<div dir="ltr">Hi,<div><br>you will need a vtkPropPicker.<br><br>to retrieve the image coordinate from the viewport coordinate I use (in Python) this code<br><a href="https://github.com/vais-ral/CILViewer/blob/master/ccpi/viewer/CILViewer2D.py#L608">https://github.com/vais-ral/CILViewer/blob/master/ccpi/viewer/CILViewer2D.py#L608</a><br><br>as<br>position = interactor.GetEventPosition()<br>voxel = self.viewport2imageCoordinate(position)<br><br>I hope it helps a bit.</div><div><br></div><div>Edo<br><div class="gmail-cye-lm-tag gmail-cye-lm-tag cye-lm-tag"><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container gmail-cye-lm-tag gmail-cye-lm-tag cye-lm-tag" style="box-sizing:border-box;border-collapse:collapse;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"><tbody class="gmail-cye-lm-tag gmail-cye-lm-tag cye-lm-tag" style="box-sizing:border-box"><tr style="box-sizing:border-box" class="cye-lm-tag"><td id="gmail-L767" class="gmail-blob-num gmail-js-line-number cye-lm-tag" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;line-height:20px;vertical-align:top"></td><td id="gmail-LC767" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line cye-lm-tag" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">        </td></tr></tbody></table></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 18, 2017 at 7:41 PM, Met@ll <span dir="ltr"><<a href="mailto:simakov.w@gmail.com" target="_blank">simakov.w@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Good day<br>
Faced with the need to display the coordinates of the point where the cursor<br>
was pointed.<br>
I draw a graph and when I hover over it I would like to display the<br>
coordinates of the selected point ...<br>
Can someone do this?<br>
Thank you!<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Edo</div><div>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)<br>:wq</div></div></div></div></div>
</div>