[vtkusers] Picking a text (label) using mouse.
Jeff Baumes
jeff.baumes at kitware.com
Wed Jan 12 10:43:01 EST 2011
On Wed, Jan 12, 2011 at 12:21 AM, rakesh patil <prakeshofficial at gmail.com>wrote:
> What i want to implement is similar to the text widget.. vtkTextWidget.. I
> can pick and move the text here..
> But in vtkTextWidget, the text remains bounded to the screen coordinates..
> i.e. when i zoom in or out, the text is unaffected... The text should be
> scaled, and zoomed automatically as it happens with
> vtkLabelPlacementMapper.. i.e. the text must be bound to the world
> coordinates..
>
> Can this be done..?? Or can anyone help me to implement this.??
>
>
Since it looks like you are only concerned with rendering the text, you can
ignore what I had said in the previous email about duplicating the points.
But the strategy I laid out in the previous email still holds. I am pretty
sure there is no functionality for this, so you would have to manually
intercept mouse drag events and change the point location to move the label.
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110112/ce78c22e/attachment.htm>
More information about the vtkusers
mailing list