Hi Werner,

With this I get my two Rectangles shapes in a view with their positions
printed in popup.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
view := RTView new.

coll:=Array with: (Rectangle origin: 500@500 corner: 510@520) with:
(Rectangle origin: 505@504 corner: 511@522).

"Some colors"
n := RTMultiLinearColorForIdentity new objects: (coll).

"Integrating elements to the view"
coll do: [ :r | view add: ((RTBox new color: [ :value | n rtValue: r];
width: r width; height: r height) elementOn: r )].

"Moving elements to their position and add a popup to show the position"
view elements do: [ :e | e translateTo: e model center; @ (RTPopup text:
[:el | el center])].

view inspect
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

But about the axis, the idea would be to have axis from 0@0 or axis that
are placed near your elements ?
Using RTGrapher you can integrate axis easily that are placed for your
datas, but if we want particular axis to go in this view we will have to
use RTAxisConfiguration and RTAxisRenderer.


Pierre

2015-02-14 11:15 GMT-03:00 Werner Kassens <wkass...@libello.com>:

> Hi,
> i have a little problem, where i think roassal could perhaps be helpfull,
> but i have to admit this is the very first time i looked into roassal,
> hence i have a stupid question:
> i have a collection of something like rectangles, lets say:
> coll:=Array with: (Rectangle origin: 500@500 corner: 510@520) with:
> (Rectangle origin: 505@504 corner: 511@522).
> now i want to produce a graph that shows these rectangles together with
> the x & y axis that show their positions (in a sensible way). any simple
> hints how i could go about this task?
> werner
>
>

Reply via email to