[vtkusers] Help needed!

Rahul Goela rahulgoela at yahoo.com
Thu Dec 4 00:25:25 EST 2003


Hi,

I need some help regarding using mouse events with
VTK. I am usnig an AddObserver method to implement the
following :

iren->AddObserver(vtkCommand::LeftButtonPressEvent,
mouseCB);
 
iren->AddObserver(vtkCommand::LeftButtonReleaseEvent,
mouseCB); 
  iren->AddObserver(vtkCommand::MouseMoveEvent,
mouseCB); 

I wish to select a vtkActor say a sphere and then drag
it along the screen using mouse. For this I wish to
disable the default interation associated with
leftButton i.e. Rotate as soon as i 'Pick' the sphere
with mouse. 

I tried iren->Disable , but this disables all
interactions, and therefore even my call back methods
don't work. 

Kindly provide a way by whcih I can disable default
interactions , but still allow my interactor window to
send me mouse events.

Any help would be appreciated.

thanks and regards,

rahul



________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com



More information about the vtkusers mailing list