[vtkusers] Please help to solve the problem on Picking a point on surface

David Cole david.cole at kitware.com
Mon Feb 21 16:59:22 EST 2005


Did you try using AddObserver to listen for the EndPickEvent?


Searching for "endpick" in the current CVS source code yields the 
following results:
Common\vtkCommand.cxx:30:  "EndPickEvent",
Common\vtkCommand.h:110:    EndPickEvent,
Examples\Annotation\Python\annotatePick.py:59:picker.AddObserver("EndPickEvent", 
annotatePick)
Examples\Annotation\Tcl\annotatePick.tcl:37:    picker AddObserver 
EndPickEvent annotatePick
Rendering\vtkAbstractPicker.h:28:// events are StartPickEvent, 
PickEvent, and EndPickEvent which are
Rendering\vtkInteractorStyle.cxx:805:        rwi->EndPickCallback();
Rendering\vtkInteractorStyleImage.cxx:76:void 
vtkInteractorStyleImage::EndPick()
Rendering\vtkInteractorStyleImage.cxx:82:  
this->InvokeEvent(vtkCommand::EndPickEvent, this);
Rendering\vtkInteractorStyleImage.cxx:189:      this->EndPick();
Rendering\vtkInteractorStyleImage.h:84:  virtual void EndPick();
Rendering\vtkPicker.cxx:452:  
this->InvokeEvent(vtkCommand::EndPickEvent,NULL);
Rendering\vtkPropPicker.cxx:93:  
this->InvokeEvent(vtkCommand::EndPickEvent,NULL);
Rendering\vtkRenderWindowInteractor.cxx:207:void 
vtkRenderWindowInteractor::EndPickCallback()
Rendering\vtkRenderWindowInteractor.cxx:209:  
this->InvokeEvent(vtkCommand::EndPickEvent,NULL);
Rendering\vtkRenderWindowInteractor.h:157:  virtual void EndPickCallback();
Rendering\vtkWorldPointPicker.cxx:91:  
this->InvokeEvent(vtkCommand::EndPickEvent,NULL);
Rendering\vtkWorldPointPicker.h:23:// The PickMethod() is not invoked, 
but StartPickMethod() and EndPickMethod
()
Wrapping\Tcl\vtkinteraction\bindings-iw.tcl:115:    # EndPickEvent observer.
Wrapping\Tcl\vtkinteraction\bindings-iw.tcl:208:        
::vtk::set_widget_variable_value $istyle EndPickEventT
ag \
Wrapping\Tcl\vtkinteraction\bindings-iw.tcl:209:                [$istyle 
AddObserver EndPickEvent \


Hope this helps,
David Cole






More information about the vtkusers mailing list