[vtkusers] How to subclass vtkInteractorStyle to manage vtk mouse picking
Malsoaz James
jmalsoaz at yahoo.fr
Thu Feb 18 06:29:53 EST 2010
Hello,
I would like to create a subclass of vtkInteractorStyle to enable a picking on a mouse event (middle button for example). Indeed, the default way to pick a cell is to press the key "p" but I don't like this way and I would like to use the mouse. Can someone help me to do this ?
I guess I need to subclass vtkInteractorStyle and to add observers but I don't know how to do this in C++ and the sample I found are written in Tcl (ie: http://www.itk.org/Wiki/VTK_Mouse_Picking).
I hope that someone will be able to help me.
Thank you
Best
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100218/98e0dc4d/attachment.htm>
More information about the vtkusers
mailing list