vtkWorldPointPicker does not see vtkImagePlaneWidget (vtk-5.0)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

vtkWorldPointPicker does not see vtkImagePlaneWidget (vtk-5.0)

Dean Inglis
Boris,

read the class documentation:

http: // www . vtk . org /doc/nightly/html/classvtkWorldPointPicker.html


you could try a subclass of vtkAbstractPropPicker,
in fact, you could get world coords from the cursor
of vtkImagePlaneWidget directly using:

double pos[3];
widget->GetCurrentCursorPosition( pos );

Dean

_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: vtkWorldPointPicker does not see vtkImagePlaneWidget (vtk-5.0)

Boris Avdeev
Now I am using CellPicker and it works fine. The reason I tried
WorldPointPicker is that it is supposed to be faster and the only
thing I want to get is a world coordinate of a point on a nearest
solid under the cursor. It worked for me in vtk-4.2 regardless of the
documentation, which I do not quite understand anyway (what is "find
the x,y,z world coordinate of a screen x,y,z"?).

Thanks for your help,
Boris

On 2/2/06, [hidden email] <[hidden email]> wrote:

> Boris,
>
> read the class documentation:
>
> http: // www . vtk . org /doc/nightly/html/classvtkWorldPointPicker.html
>
>
> you could try a subclass of vtkAbstractPropPicker,
> in fact, you could get world coords from the cursor
> of vtkImagePlaneWidget directly using:
>
> double pos[3];
> widget->GetCurrentCursorPosition( pos );
>
> Dean
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers