[vtkusers] Picking and moving a vertex

Dean Inglis dean.inglis at sympatico.ca
Thu Jun 14 16:46:22 EDT 2007


Hi,

if you want to pick and move a particular actor,
have a look at the code in vtkSplineWidget:
in particular, the constructor, the OnLeftButtonDown() and
OnMouseMove() events, and MovePoint(double *p1, double *p2)
method.  Also, there is an example in 
VTK/Examples/GUI/Tcl/CustomInteraction.tcl
that shows how to retrieve mouse clicks and
then manipulate the camera.  In your case,
you want to move the actor(s).  There are a number
of other widgets in VTK/Widgets that have similar
code.

Dean






More information about the vtkusers mailing list