[vtkusers] retrieving mouse position in a vtkRenderWindow
winston at cat.rpi.edu
Fri Oct 4 11:42:59 EDT 2002
Steffen Oeltze wrote:
> I would like to output the mouse position (x,y) in a vtkRenderWindow each
> time the user presses a mouse button. Can anybody help me ?
See the examples at
annotatePick.tcl does what you want, except it does so when
the user presses 'p' instead of mouse-clicking. You should
be able to bind your callback to the mouse-click, but how
depends on your language (Tcl/Tk, C++, Python).
More information about the vtkusers