39 #ifndef vtkInteractorStyleFlight_h 40 #define vtkInteractorStyleFlight_h 42 #include "vtkInteractionStyleModule.h" 60 void JumpTo(
double campos[3],
double focpos[3]);
67 vtkGetMacro(MotionStepSize,
double);
75 vtkGetMacro(MotionAccelerationFactor,
double);
83 vtkGetMacro(AngleStepSize,
double);
91 vtkGetMacro(AngleAccelerationFactor,
double);
99 vtkGetMacro(DisableMotion,
int);
112 vtkGetMacro(RestoreUpVector,
int);
117 vtkGetVectorMacro(DefaultUpVector,
double,3);
118 vtkSetVectorMacro(DefaultUpVector,
double,3);
125 void OnLeftButtonDown() VTK_OVERRIDE;
126 void OnLeftButtonUp() VTK_OVERRIDE;
127 void OnMiddleButtonDown() VTK_OVERRIDE;
128 void OnMiddleButtonUp() VTK_OVERRIDE;
129 void OnRightButtonDown() VTK_OVERRIDE;
130 void OnRightButtonUp() VTK_OVERRIDE;
137 void OnChar() VTK_OVERRIDE;
138 void OnKeyDown() VTK_OVERRIDE;
139 void OnKeyUp() VTK_OVERRIDE;
140 void OnTimer() VTK_OVERRIDE;
142 virtual
void ForwardFly();
143 virtual
void ReverseFly();
145 virtual
void StartForwardFly();
146 virtual
void EndForwardFly();
147 virtual
void StartReverseFly();
148 virtual
void EndReverseFly();
153 ~vtkInteractorStyleFlight() VTK_OVERRIDE;
160 void UpdateMouseSteering(
vtkCamera *cam);
164 void MotionAlongVector(
double vector[3],
double amount,
vtkCamera* cam);
169 unsigned char KeysDown;
172 double DiagonalLength;
173 double MotionStepSize;
174 double MotionUserScale;
175 double MotionAccelerationFactor;
176 double AngleStepSize;
177 double AngleAccelerationFactor;
178 double DefaultUpVector[3];
179 double AzimuthStepSize;
180 double IdealFocalPoint[3];
188 CPIDControl *PID_Yaw;
189 CPIDControl *PID_Pitch;
192 vtkInteractorStyleFlight(const vtkInteractorStyleFlight&) VTK_DELETE_FUNCTION;
193 void operator=(const vtkInteractorStyleFlight&) VTK_DELETE_FUNCTION;
static vtkInteractorStyle * New()
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent.
provides flight motion routines
a simple class to control print indentation
a virtual camera for 3D rendering
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
provide event-driven interface to the rendering window (defines trackball mode)
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.