[vtkusers] Drawing objects interactively in VTK..??

John Drescher drescherjm at gmail.com
Tue Apr 6 08:38:52 EDT 2010


> I am trying to draw a polyline interactively (with help of mouse). What i'm
> doing is at every left button down event, i get the mouse position and store
> it is a vector list. Later using this points am displaying on the rendering
> window.
>
> But when i do this, i noticed the following:
>
> The mouse position values are totally different from the the points which
> are displayed.. I mean, i click at one location, and it is displayed at far
> end another location..
>
> I tried changing the coordinate system also.. Still the result is
> unchanged..
>
> Any suggestions how it is to be done..??
>

I believe mouse coordinates are in display coordinates not world coordinates.

John



More information about the vtkusers mailing list