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 [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Interesting. What is the use case? Doru On Mon, Nov 25, 2013 at 12:51 PM, Yuriy Tymchuk <[hidden email]> wrote: Hi, "Every thing has its own flow"
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
In reply to this post by Uko2
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 -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Nov 25, 2013, at 8:51 AM, Yuriy Tymchuk <[hidden email]> 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 > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
In reply to this post by Tudor Girba-2
On 25 Nov 2013, at 13:33, Tudor Girba <[hidden email]> wrote:
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 :)
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
In reply to this post by Tudor Girba-2
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 <[hidden email]> wrote:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
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 <[hidden email]> wrote:
"Every thing has its own flow"
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |