This is interesting request which can have some consequences. Majority of
moose code I have seen is like that:
-=-=-
view := ROMondrianViewBuilder new.
elements := view nodes: (1 to: 10).
view gridLayout.
view open.
-=-=-
The layout is applied before a window exists. So you can write:
-=-=-
view := ROMondrianViewBuilder new.
elements := view nodes: (1 to: 10).
view gridLayout.
view open.
elements any view camera windowSize inspect. "!!!!"
-=-=-
But you do not obtain expected data if you write:
-=-=-
view := ROMondrianViewBuilder new.
elements := view nodes: (1 to: 10).
elements any view camera windowSize inspect. "!!!!"
view gridLayout.
view open.
-=-=-
2013/5/14 stephane ducasse <stephane.ducasse(a)free.fr>
Yes we discussed with mathieu and this is important
for a layout to know
- the dimensions of the window
so that the layout can be smart
Example above.
- the camera position
Example above.
- the size of the nodes
anElement extent
so how a layout get such information?
Stef
Cheers,
Jura
On May 13, 2013, at 4:48 PM, mathieubmddehouck(a)mailoo.org wrote:
Hi
I was working on translating the center of the radial tree at the middle
of the window and I faced a problem.
I had already faced it when working on the ForceBasedLayout.
How does the layout access to his view to get informations ? (Basically it
could be very useful to access to the camera to have size informations...)
Regards
Mathieu
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev