[vtkusers] vtkinteractorStyleFlight-Confused
John Biddiscombe
jbiddiscombe at skippingmouse.co.uk
Sun Nov 19 12:53:36 EST 2000
It depends on how you're using the interactors. If you're capturing mouse
events in your own code, then passing them to the interactors, problem
solved (hence I doubt this is the case in your program). If you're using a
built in event handler (ie managed by the vtk window + interactor), then
yes, hook into the left/right button press methods.
My own preferred choice would be to subclass InteractorStyleFlight, do
additional processing in each handler and then pass on to the inherited
functions.
As the person responsible for the flight mode class, I'll welcome any
suggestions you have for additional functions. If there's something you
want added and it doesn't change existing stuff. Post away...
JB
>I am a little bit confused with the vtkInteractorStyle stuff.
>I want to use the vtkInteractorStyleFlight class but for every event I
>want to do some additional things. To be more precise whenever a
>OnRightButtonDown event takes place I need to capture the camera
>position and then continue with the standard code contained in the
>class. The question is how do I do that?
>
>Do I have to use the SetLeftButtonPressMethod and if yes can somebody
>help with the argument stuff?
>
>Or do I have to subclass the vtkInteractorStyleFlight? Again any help
>would be appreciated.
>
>Or is there another way ?
>
>Please Help!!
>
>Thanks in advance
>Dimitris
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list