[vtkusers] Getting Original 3d Point co-ordinate on mouse hover

Alex Malyushytskyy alexmalvtk at gmail.com
Wed Apr 3 21:39:53 EDT 2013


If you need point to be picked you should use vtkPointPicker.
It has has GetPointId method which returns point ID.
If you know point id you can get coordinates for this point from dataset.

Regards,
     Alex





On Wed, Apr 3, 2013 at 12:01 PM, mahendra <mahendra123awale at gmail.com>wrote:

> thanks alex for comments. I tried with vtk cell picker as follows:
>
>                  public void mouseMoved(MouseEvent e) {
>                 renderWindowPanel.lock();
>                     double[] p = cellPicker.GetPickPosition();
>                     System.out.println(" Position: " + p[0] + ", " + p[1] +
> ", " + p[2]);
>             }
>
> It gives me some co-ordinates but i do not know how to convert them or link
> them to original point co-ordinates. Any suggestion?
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Getting-Original-3d-Point-co-ordinate-on-mouse-hover-tp5719771p5719805.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130403/a8fa5973/attachment.htm>


More information about the vtkusers mailing list