<div dir="ltr">I think you want SetActionToButton() on vtkChart to change mouse bindings. You should be able to listen for a selection event once that is set up.<div><br></div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkChart.html#ac4162187f5f3ad97f0163a079e06f13d">http://www.vtk.org/doc/nightly/html/classvtkChart.html#ac4162187f5f3ad97f0163a079e06f13d</a></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 15, 2016 at 9:13 AM mbcx9rb9 <<a href="mailto:richard.j.brown@live.co.uk">richard.j.brown@live.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'd like to create a custom interactor for vtkChartXY (inherited from<br>
vtkContextInteractorStyle), but I can't figure out how to select single<br>
points with the left click of the mouse. Once I manage to that, I would need<br>
to return the index of the selected point.<br>
<br>
This seems very straightforward to me, but I haven't seen any concrete<br>
examples.<br>
<br>
Any pointers would be greatly appreciated.<br>
<br>
Regards,<br>
Richard<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkChartXY-picking-tp5737711.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/vtkChartXY-picking-tp5737711.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<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/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_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=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/mailman/listinfo/vtkusers</a><br>
</blockquote></div>