[vtkusers] vtkPointPicker sample/question/problem

Will Schroeder will.schroeder at kitware.com
Thu Dec 11 07:51:18 EST 2003


Try observing EndPickEvent. If I remember correctly 
vtkRenderWindowInteractor does not invoke "PickEvent" on itself.

Instead of

>   // init callback
>   vtkMyCallback *callback = vtkMyCallback::New();
>   iren->AddObserver(vtkCommand::PickEvent, callback);

try

>   // init callback
>   vtkMyCallback *callback = vtkMyCallback::New();
>   iren->AddObserver(vtkCommand::EndPickEvent, callback);

Will


William J. Schroeder, Ph.D.
Kitware, Inc.
469 Clifton Corporate Parkway
Clifton Park, NY 12065
will.schroeder at kitware.com
1-518-371-3971 x102 (phone)
1-518-371-3971 (fax) 





More information about the vtkusers mailing list