[vtkusers] Display the coordinates of the point on which the cursor is hovered
Edoardo Pasca
edo.paskino at gmail.com
Tue Sep 19 11:36:19 EDT 2017
Hi,
you will need a vtkPropPicker.
to retrieve the image coordinate from the viewport coordinate I use (in
Python) this code
https://github.com/vais-ral/CILViewer/blob/master/ccpi/viewer/CILViewer2D.py#L608
as
position = interactor.GetEventPosition()
voxel = self.viewport2imageCoordinate(position)
I hope it helps a bit.
Edo
On Mon, Sep 18, 2017 at 7:41 PM, Met at ll <simakov.w at gmail.com> wrote:
> Good day
> Faced with the need to display the coordinates of the point where the
> cursor
> was pointed.
> I draw a graph and when I hover over it I would like to display the
> coordinates of the selected point ...
> Can someone do this?
> Thank you!
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
--
Edo
I know you think you understand what you thought I said, but I'm not sure
you realize that what you heard is not what I meant (prob. Alan Greenspan)
:wq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170919/d9703860/attachment.html>
More information about the vtkusers
mailing list