vtkInteractorStyleJoystickActor.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00047 #ifndef __vtkInteractorStyleJoystickActor_h
00048 #define __vtkInteractorStyleJoystickActor_h
00049
00050 #include "vtkInteractorStyle.h"
00051
00052 class vtkCellPicker;
00053
00054
00055
00056 class VTK_RENDERING_EXPORT vtkInteractorStyleJoystickActor : public vtkInteractorStyle
00057 {
00058 public:
00059 static vtkInteractorStyleJoystickActor *New();
00060
00061 vtkTypeRevisionMacro(vtkInteractorStyleJoystickActor,vtkInteractorStyle);
00062 void PrintSelf(ostream& os, vtkIndent indent);
00063
00065
00067 virtual void OnMouseMove();
00068 virtual void OnLeftButtonDown();
00069 virtual void OnLeftButtonUp();
00070 virtual void OnMiddleButtonDown();
00071 virtual void OnMiddleButtonUp();
00072 virtual void OnRightButtonDown();
00073 virtual void OnRightButtonUp();
00075
00076
00077
00078
00079
00080 virtual void Rotate();
00081 virtual void Spin();
00082 virtual void Pan();
00083 virtual void Dolly();
00084 virtual void UniformScale();
00085
00086 protected:
00087 vtkInteractorStyleJoystickActor();
00088 ~vtkInteractorStyleJoystickActor();
00089
00090 void FindPickedActor(int x, int y);
00091
00092 void Prop3DTransform(vtkProp3D *prop3D,
00093 double *boxCenter,
00094 int numRotation,
00095 double **rotate,
00096 double *scale);
00097
00098 double MotionFactor;
00099
00100 vtkProp3D *InteractionProp;
00101 vtkCellPicker *InteractionPicker;
00102
00103 private:
00104 vtkInteractorStyleJoystickActor(const vtkInteractorStyleJoystickActor&);
00105 void operator=(const vtkInteractorStyleJoystickActor&);
00106 };
00107
00108 #endif