Hi,
Is it possible to have an element that does not scale when the camera extent changes? Eg. I want to have circle that is always 10px in diameter no matter what is the zoom.
Cheers. Uko
Interesting. What is the use case?
Doru
On Mon, Nov 25, 2013 at 12:51 PM, Yuriy Tymchuk yuriy.tymchuk@me.comwrote:
Hi,
Is it possible to have an element that does not scale when the camera extent changes? Eg. I want to have circle that is always 10px in diameter no matter what is the zoom.
Cheers. Uko
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
On 25 Nov 2013, at 13:33, Tudor Girba tudor@tudorgirba.com wrote:
Interesting. What is the use case?
You have a scatterplot. With a lot of elements. Some of them form clusters. Some are very distant. What should be a size of a dot depicting them? Too big and they will overlap in clusters, too small and you won’t be able to see them when when zoomed out.
Also second view won’t work for this. I need distances to scale but not sizes :)
Doru
On Mon, Nov 25, 2013 at 12:51 PM, Yuriy Tymchuk yuriy.tymchuk@me.com wrote: Hi,
Is it possible to have an element that does not scale when the camera extent changes? Eg. I want to have circle that is always 10px in diameter no matter what is the zoom.
Cheers. Uko
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow" _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
This is a recurrent situation. For example, if you zoom in, you usually not want to have the size of the button or popup text to increase.
Alexandre
Yes, but I think Yuriy is asking for semantic zooming in which the level of detail changes with the zoom.
Doru
On Mon, Nov 25, 2013 at 2:16 PM, Alexandre Bergel alexandre.bergel@me.comwrote:
This is a recurrent situation. For example, if you zoom in, you usually not want to have the size of the button or popup text to increase.
Alexandre
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Nov 25, 2013, at 9:33 AM, Tudor Girba tudor@tudorgirba.com wrote:
Interesting. What is the use case?
Doru
On Mon, Nov 25, 2013 at 12:51 PM, Yuriy Tymchuk yuriy.tymchuk@me.comwrote:
Hi,
Is it possible to have an element that does not scale when the camera extent changes? Eg. I want to have circle that is always 10px in diameter no matter what is the zoom.
Cheers. Uko
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow" _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Yes it is possible. This is exactly what ROViewStack is about.
A ROViewStack is a stack of views. It is usually used to contains menus and popup, triggered by the added view. This is convenient to not have the buttons or popup be under the effect of zooming in and out.
Inserting elements in the stack makes the elements not subject to the variation of the camera for the added views.
Here is an example: -=-=-=-=-=-=-=-=-=-=-=-= | stack view el1 el2 | view := ROView new. el1 := (ROEllipse red size: 30) element. view add: el1. el1 @ RODraggable. el1 translateTo: 100 @ 100.
stack := ROViewStack new. stack zoomInButton; zoomOutButton. el2 := (ROEllipse green size: 30) element. el2 @ RODraggable. stack add: el2.
stack addView: view. stack open -=-=-=-=-=-=-=-=-=-=-=-=
Alexandre