VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkInteractorStyleFlight Class Reference

provides flight motion routines More...

#include <vtkInteractorStyleFlight.h>

Inheritance diagram for vtkInteractorStyleFlight:
[legend]
Collaboration diagram for vtkInteractorStyleFlight:
[legend]

Public Types

typedef vtkInteractorStyle Superclass
 
- Public Types inherited from vtkInteractorStyle
typedef vtkInteractorObserver Superclass
 
- Public Types inherited from vtkInteractorObserver
typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class. More...
 
vtkInteractorStyleFlightNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses. More...
 
void JumpTo (double campos[3], double focpos[3])
 Move the Eye/Camera to a specific location (no intermediate steps are taken. More...
 
virtual doubleGetDefaultUpVector ()
 
virtual void GetDefaultUpVector (double data[3])
 
virtual void SetDefaultUpVector (double data[])
 
virtual void SetMotionStepSize (double)
 Set the basic unit step size : by default 1/250 of bounding diagonal. More...
 
virtual double GetMotionStepSize ()
 Set the basic unit step size : by default 1/250 of bounding diagonal. More...
 
virtual void SetMotionAccelerationFactor (double)
 Set acceleration factor when shift key is applied : default 10. More...
 
virtual double GetMotionAccelerationFactor ()
 Set acceleration factor when shift key is applied : default 10. More...
 
virtual void SetAngleStepSize (double)
 Set the basic angular unit for turning : default 1 degree. More...
 
virtual double GetAngleStepSize ()
 Set the basic angular unit for turning : default 1 degree. More...
 
virtual void SetAngleAccelerationFactor (double)
 Set angular acceleration when shift key is applied : default 5. More...
 
virtual double GetAngleAccelerationFactor ()
 Set angular acceleration when shift key is applied : default 5. More...
 
virtual void SetDisableMotion (int)
 Disable motion (temporarily - for viewing etc) More...
 
virtual int GetDisableMotion ()
 Disable motion (temporarily - for viewing etc) More...
 
virtual void DisableMotionOn ()
 Disable motion (temporarily - for viewing etc) More...
 
virtual void DisableMotionOff ()
 Disable motion (temporarily - for viewing etc) More...
 
virtual void SetRestoreUpVector (int)
 When flying, apply a restorative force to the "Up" vector. More...
 
virtual int GetRestoreUpVector ()
 When flying, apply a restorative force to the "Up" vector. More...
 
virtual void RestoreUpVectorOn ()
 When flying, apply a restorative force to the "Up" vector. More...
 
virtual void RestoreUpVectorOff ()
 When flying, apply a restorative force to the "Up" vector. More...
 
void OnMouseMove () override
 Concrete implementation of Mouse event bindings for flight. More...
 
void OnLeftButtonDown () override
 Concrete implementation of Mouse event bindings for flight. More...
 
void OnLeftButtonUp () override
 Concrete implementation of Mouse event bindings for flight. More...
 
void OnMiddleButtonDown () override
 Concrete implementation of Mouse event bindings for flight. More...
 
void OnMiddleButtonUp () override
 Concrete implementation of Mouse event bindings for flight. More...
 
void OnRightButtonDown () override
 Concrete implementation of Mouse event bindings for flight. More...
 
void OnRightButtonUp () override
 Concrete implementation of Mouse event bindings for flight. More...
 
void OnChar () override
 Concrete implementation of Keyboard event bindings for flight. More...
 
void OnKeyDown () override
 Concrete implementation of Keyboard event bindings for flight. More...
 
void OnKeyUp () override
 Concrete implementation of Keyboard event bindings for flight. More...
 
void OnTimer () override
 Concrete implementation of Keyboard event bindings for flight. More...
 
virtual void ForwardFly ()
 Concrete implementation of Keyboard event bindings for flight. More...
 
virtual void ReverseFly ()
 Concrete implementation of Keyboard event bindings for flight. More...
 
virtual void StartForwardFly ()
 Concrete implementation of Keyboard event bindings for flight. More...
 
virtual void EndForwardFly ()
 Concrete implementation of Keyboard event bindings for flight. More...
 
virtual void StartReverseFly ()
 Concrete implementation of Keyboard event bindings for flight. More...
 
virtual void EndReverseFly ()
 Concrete implementation of Keyboard event bindings for flight. More...
 
- Public Member Functions inherited from vtkInteractorStyle
vtkInteractorStyleNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses. More...
 
void SetInteractor (vtkRenderWindowInteractor *interactor) override
 Set/Get the Interactor wrapper being controlled by this object. More...
 
void SetEnabled (int) override
 Turn on/off this interactor. More...
 
void FindPokedRenderer (int, int)
 When an event occurs, we must determine which Renderer the event occurred within, since one RenderWindow may contain multiple renderers. More...
 
virtual void OnMouseWheelForward ()
 
virtual void OnMouseWheelBackward ()
 
virtual void OnFourthButtonDown ()
 
virtual void OnFourthButtonUp ()
 
virtual void OnFifthButtonDown ()
 
virtual void OnFifthButtonUp ()
 
virtual void OnMove3D (vtkEventData *)
 Generic 3D event bindings can be overridden in subclasses. More...
 
virtual void OnButton3D (vtkEventData *)
 
void OnChar () override
 OnChar is triggered when an ASCII key is pressed. More...
 
virtual void OnKeyPress ()
 
virtual void OnKeyRelease ()
 
virtual void OnExpose ()
 These are more esoteric events, but are useful in some cases. More...
 
virtual void OnConfigure ()
 
virtual void OnEnter ()
 
virtual void OnLeave ()
 
virtual void Rotate ()
 These methods for the different interactions in different modes are overridden in subclasses to perform the correct motion. More...
 
virtual void Spin ()
 
virtual void Pan ()
 
virtual void Dolly ()
 
virtual void Zoom ()
 
virtual void UniformScale ()
 
virtual void OnPinch ()
 gesture based events More...
 
virtual void OnRotate ()
 
virtual void OnPan ()
 
virtual void OnTap ()
 
virtual void OnLongTap ()
 
virtual void OnSwipe ()
 
void DelegateTDxEvent (unsigned long event, void *calldata)
 Called by the callback to process 3DConnexion device events. More...
 
virtual void SetAutoAdjustCameraClippingRange (int)
 If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene. More...
 
virtual int GetAutoAdjustCameraClippingRange ()
 If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene. More...
 
virtual void AutoAdjustCameraClippingRangeOn ()
 If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene. More...
 
virtual void AutoAdjustCameraClippingRangeOff ()
 If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene. More...
 
virtual int GetState ()
 Some useful information for interaction. More...
 
virtual int GetUseTimers ()
 Set/Get timer hint. More...
 
virtual void SetUseTimers (int)
 Set/Get timer hint. More...
 
virtual void UseTimersOn ()
 Set/Get timer hint. More...
 
virtual void UseTimersOff ()
 Set/Get timer hint. More...
 
virtual void SetTimerDuration (unsigned long)
 If using timers, specify the default timer interval (in milliseconds). More...
 
virtual unsigned long GetTimerDuration ()
 If using timers, specify the default timer interval (in milliseconds). More...
 
virtual void SetHandleObservers (int)
 Does ProcessEvents handle observers on this class or not. More...
 
virtual int GetHandleObservers ()
 Does ProcessEvents handle observers on this class or not. More...
 
virtual void HandleObserversOn ()
 Does ProcessEvents handle observers on this class or not. More...
 
virtual void HandleObserversOff ()
 Does ProcessEvents handle observers on this class or not. More...
 
virtual void StartState (int newstate)
 utility routines used by state changes More...
 
virtual void StopState ()
 utility routines used by state changes More...
 
virtual void StartAnimate ()
 Interaction mode entry points used internally. More...
 
virtual void StopAnimate ()
 Interaction mode entry points used internally. More...
 
virtual void StartRotate ()
 Interaction mode entry points used internally. More...
 
virtual void EndRotate ()
 Interaction mode entry points used internally. More...
 
virtual void StartZoom ()
 Interaction mode entry points used internally. More...
 
virtual void EndZoom ()
 Interaction mode entry points used internally. More...
 
virtual void StartPan ()
 Interaction mode entry points used internally. More...
 
virtual void EndPan ()
 Interaction mode entry points used internally. More...
 
virtual void StartSpin ()
 Interaction mode entry points used internally. More...
 
virtual void EndSpin ()
 Interaction mode entry points used internally. More...
 
virtual void StartDolly ()
 Interaction mode entry points used internally. More...
 
virtual void EndDolly ()
 Interaction mode entry points used internally. More...
 
virtual void StartUniformScale ()
 Interaction mode entry points used internally. More...
 
virtual void EndUniformScale ()
 Interaction mode entry points used internally. More...
 
virtual void StartTimer ()
 Interaction mode entry points used internally. More...
 
virtual void EndTimer ()
 Interaction mode entry points used internally. More...
 
virtual void StartTwoPointer ()
 Interaction mode entry points used internally. More...
 
virtual void EndTwoPointer ()
 Interaction mode entry points used internally. More...
 
virtual void HighlightProp (vtkProp *prop)
 When picking successfully selects an actor, this method highlights the picked prop appropriately. More...
 
virtual void HighlightActor2D (vtkActor2D *actor2D)
 When picking successfully selects an actor, this method highlights the picked prop appropriately. More...
 
virtual void HighlightProp3D (vtkProp3D *prop3D)
 When picking successfully selects an actor, this method highlights the picked prop appropriately. More...
 
virtual void SetPickColor (double, double, double)
 Set/Get the pick color (used by default to color vtkActor2D's). More...
 
virtual void SetPickColor (double[3])
 Set/Get the pick color (used by default to color vtkActor2D's). More...
 
virtual doubleGetPickColor ()
 Set/Get the pick color (used by default to color vtkActor2D's). More...
 
virtual void GetPickColor (double data[3])
 Set/Get the pick color (used by default to color vtkActor2D's). More...
 
virtual void SetMouseWheelMotionFactor (double)
 Set/Get the mouse wheel motion factor. More...
 
virtual double GetMouseWheelMotionFactor ()
 Set/Get the mouse wheel motion factor. More...
 
virtual vtkTDxInteractorStyleGetTDxStyle ()
 3Dconnexion device interactor style. More...
 
virtual void SetTDxStyle (vtkTDxInteractorStyle *tdxStyle)
 3Dconnexion device interactor style. More...
 
- Public Member Functions inherited from vtkInteractorObserver
vtkInteractorObserverNewInstance () const
 
int GetEnabled ()
 
void EnabledOn ()
 
void EnabledOff ()
 
void On ()
 
void Off ()
 
virtual vtkRenderWindowInteractorGetInteractor ()
 This method is used to associate the widget with the render window interactor. More...
 
virtual void SetPriority (float)
 Set/Get the priority at which events are processed. More...
 
virtual float GetPriority ()
 Set/Get the priority at which events are processed. More...
 
virtual void PickingManagedOn ()
 Enable/Disable the use of a manager to process the picking. More...
 
virtual void PickingManagedOff ()
 Enable/Disable the use of a manager to process the picking. More...
 
virtual void SetPickingManaged (bool)
 Enable/Disable the use of a manager to process the picking. More...
 
virtual bool GetPickingManaged ()
 Enable/Disable the use of a manager to process the picking. More...
 
virtual void SetKeyPressActivation (int)
 Enable/Disable of the use of a keypress to turn on and off the interactor observer. More...
 
virtual int GetKeyPressActivation ()
 Enable/Disable of the use of a keypress to turn on and off the interactor observer. More...
 
virtual void KeyPressActivationOn ()
 Enable/Disable of the use of a keypress to turn on and off the interactor observer. More...
 
virtual void KeyPressActivationOff ()
 Enable/Disable of the use of a keypress to turn on and off the interactor observer. More...
 
virtual void SetKeyPressActivationValue (char)
 Specify which key press value to use to activate the interactor observer (if key press activation is enabled). More...
 
virtual char GetKeyPressActivationValue ()
 Specify which key press value to use to activate the interactor observer (if key press activation is enabled). More...
 
virtual vtkRendererGetDefaultRenderer ()
 Set/Get the default renderer to use when activating the interactor observer. More...
 
virtual void SetDefaultRenderer (vtkRenderer *)
 Set/Get the default renderer to use when activating the interactor observer. More...
 
virtual vtkRendererGetCurrentRenderer ()
 Set/Get the current renderer. More...
 
virtual void SetCurrentRenderer (vtkRenderer *)
 Set/Get the current renderer. More...
 
void GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr)
 These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor. More...
 
void ReleaseFocus ()
 These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor. More...
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 Turn debugging output on. More...
 
virtual void DebugOff ()
 Turn debugging output off. More...
 
bool GetDebug ()
 Get the value of the debug flag. More...
 
void SetDebug (bool debugFlag)
 Set the value of the debug flag. More...
 
virtual void Modified ()
 Update the modification time for this object. More...
 
virtual vtkMTimeType GetMTime ()
 Return this object's modified time. More...
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkCommandGetCommand (unsigned long tag)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObserver (vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
int HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
int HasObserver (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Allow user to set the AbortFlagOn() with the return value of the callback method. More...
 
int InvokeEvent (unsigned long event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
int InvokeEvent (const char *event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string. More...
 
virtual void Delete ()
 Delete a VTK object. More...
 
virtual void FastDelete ()
 Delete a reference to this object. More...
 
void InitializeObjectBase ()
 
void Print (ostream &os)
 Print an object to an ostream. More...
 
virtual void Register (vtkObjectBase *o)
 Increase the reference count (mark as used by another object). More...
 
virtual void UnRegister (vtkObjectBase *o)
 Decrease the reference count (release by another object). More...
 
int GetReferenceCount ()
 Return the current reference count of this object. More...
 
void SetReferenceCount (int)
 Sets the reference count. More...
 
void PrintRevisions (ostream &)
 Legacy. More...
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 

Static Public Member Functions

static vtkInteractorStyleFlightNew ()
 
static int IsTypeOf (const char *type)
 
static vtkInteractorStyleFlightSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkInteractorStyle
static vtkInteractorStyleNew ()
 This class must be supplied with a vtkRenderWindowInteractor wrapper or parent. More...
 
static int IsTypeOf (const char *type)
 
static vtkInteractorStyleSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkInteractorObserver
static int IsTypeOf (const char *type)
 
static vtkInteractorObserverSafeDownCast (vtkObjectBase *o)
 
static void ComputeDisplayToWorld (vtkRenderer *ren, double x, double y, double z, double worldPt[4])
 Convenience methods for outside classes. More...
 
static void ComputeWorldToDisplay (vtkRenderer *ren, double x, double y, double z, double displayPt[3])
 Convenience methods for outside classes. More...
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
static void BreakOnError ()
 This method is called when vtkErrorMacro executes. More...
 
static void SetGlobalWarningDisplay (int val)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static int GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 Return 1 if this class type is the same type of (or a subclass of) the named class. More...
 
static vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkInteractorStyleFlight ()
 
 ~vtkInteractorStyleFlight () override
 
- Protected Member Functions inherited from vtkInteractorStyle
 vtkInteractorStyle ()
 
 ~vtkInteractorStyle () override
 
- Protected Member Functions inherited from vtkInteractorObserver
 vtkInteractorObserver ()
 
 ~vtkInteractorObserver () override
 
virtual void RegisterPickers ()
 Register internal Pickers in the Picking Manager. More...
 
void UnRegisterPickers ()
 Unregister internal pickers from the Picking Manager. More...
 
virtual void PickersModified ()
 Update the pickers registered in the Picking Manager when pickers are modified. More...
 
vtkPickingManagerGetPickingManager ()
 Return the picking manager associated on the context on which the observer currently belong. More...
 
vtkAssemblyPathGetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker)
 Proceed to a pick, whether through the PickingManager if the picking is managed or directly using the picker, and return the assembly path. More...
 
int RequestCursorShape (int requestedShape)
 
virtual void StartInteraction ()
 Utility routines used to start and end interaction. More...
 
virtual void EndInteraction ()
 Utility routines used to start and end interaction. More...
 
void ComputeDisplayToWorld (double x, double y, double z, double worldPt[4])
 Helper method for subclasses. More...
 
void ComputeWorldToDisplay (double x, double y, double z, double displayPt[3])
 Helper method for subclasses. More...
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
 ~vtkObject () override
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr)
 These methods allow a command to exclusively grab all events. More...
 
void InternalReleaseFocus ()
 These methods allow a command to exclusively grab all events. More...
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

CPIDControl * PID_Yaw
 
CPIDControl * PID_Pitch
 
- Protected Attributes inherited from vtkInteractorStyle
int State
 
int AnimState
 
int HandleObservers
 
int UseTimers
 
int TimerId
 
int AutoAdjustCameraClippingRange
 
vtkOutlineSourceOutline
 
vtkPolyDataMapperOutlineMapper
 
vtkActorOutlineActor
 
vtkRendererPickedRenderer
 
vtkPropCurrentProp
 
vtkActor2DPickedActor2D
 
int PropPicked
 
double PickColor [3]
 
double MouseWheelMotionFactor
 
unsigned long TimerDuration
 
vtkEventForwarderCommandEventForwarder
 
vtkTDxInteractorStyleTDxStyle
 
- Protected Attributes inherited from vtkInteractorObserver
int Enabled
 
vtkCallbackCommandEventCallbackCommand
 
vtkCallbackCommandKeyPressCallbackCommand
 
float Priority
 
bool PickingManaged
 
int KeyPressActivation
 
char KeyPressActivationValue
 
vtkRenderWindowInteractorInteractor
 
vtkRendererCurrentRenderer
 
vtkRendererDefaultRenderer
 
unsigned long CharObserverTag
 
unsigned long DeleteObserverTag
 
vtkObserverMediatorObserverMediator
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 
unsigned char KeysDown
 Routines used internally for computing motion and steering. More...
 
int DisableMotion
 Routines used internally for computing motion and steering. More...
 
int RestoreUpVector
 Routines used internally for computing motion and steering. More...
 
double DiagonalLength
 Routines used internally for computing motion and steering. More...
 
double MotionStepSize
 Routines used internally for computing motion and steering. More...
 
double MotionUserScale
 Routines used internally for computing motion and steering. More...
 
double MotionAccelerationFactor
 Routines used internally for computing motion and steering. More...
 
double AngleStepSize
 Routines used internally for computing motion and steering. More...
 
double AngleAccelerationFactor
 Routines used internally for computing motion and steering. More...
 
double DefaultUpVector [3]
 Routines used internally for computing motion and steering. More...
 
double AzimuthStepSize
 Routines used internally for computing motion and steering. More...
 
double IdealFocalPoint [3]
 Routines used internally for computing motion and steering. More...
 
vtkPerspectiveTransformTransform
 Routines used internally for computing motion and steering. More...
 
double DeltaYaw
 Routines used internally for computing motion and steering. More...
 
double lYaw
 Routines used internally for computing motion and steering. More...
 
double DeltaPitch
 Routines used internally for computing motion and steering. More...
 
double lPitch
 Routines used internally for computing motion and steering. More...
 
void UpdateSteering (vtkCamera *cam)
 Routines used internally for computing motion and steering. More...
 
void UpdateMouseSteering (vtkCamera *cam)
 Routines used internally for computing motion and steering. More...
 
void FlyByMouse (vtkCamera *cam)
 Routines used internally for computing motion and steering. More...
 
void FlyByKey (vtkCamera *cam)
 Routines used internally for computing motion and steering. More...
 
void GetLRVector (double vector[3], vtkCamera *cam)
 Routines used internally for computing motion and steering. More...
 
void MotionAlongVector (double vector[3], double amount, vtkCamera *cam)
 Routines used internally for computing motion and steering. More...
 
void SetupMotionVars (vtkCamera *cam)
 Routines used internally for computing motion and steering. More...
 
void FinishCamera (vtkCamera *cam)
 Routines used internally for computing motion and steering. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkInteractorStyle
static void ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 Main process event method. More...
 
- Static Protected Member Functions inherited from vtkInteractorObserver
static void ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 Handles the char widget activation event. More...
 

Detailed Description

provides flight motion routines

Left mouse button press produces forward motion. Right mouse button press produces reverse motion. Moving mouse during motion steers user in desired direction. Keyboard controls are: Left/Right/Up/Down Arrows for steering direction 'A' forward, 'Z' reverse motion Ctrl Key causes sidestep instead of steering in mouse and key modes Shift key is accelerator in mouse and key modes Ctrl and Shift together causes Roll in mouse and key modes

By default, one "step" of motion corresponds to 1/250th of the diagonal of bounding box of visible actors, '+' and '-' keys allow user to increase or decrease step size.

Examples:
vtkInteractorStyleFlight (Examples)

Definition at line 49 of file vtkInteractorStyleFlight.h.

Member Typedef Documentation

Definition at line 53 of file vtkInteractorStyleFlight.h.

Constructor & Destructor Documentation

vtkInteractorStyleFlight::vtkInteractorStyleFlight ( )
protected
vtkInteractorStyleFlight::~vtkInteractorStyleFlight ( )
overrideprotected

Member Function Documentation

static vtkInteractorStyleFlight* vtkInteractorStyleFlight::New ( )
static
static int vtkInteractorStyleFlight::IsTypeOf ( const char *  type)
static
virtual int vtkInteractorStyleFlight::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class.

Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkInteractorStyle.

static vtkInteractorStyleFlight* vtkInteractorStyleFlight::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkInteractorStyleFlight::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkInteractorStyle.

vtkInteractorStyleFlight* vtkInteractorStyleFlight::NewInstance ( ) const
void vtkInteractorStyleFlight::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Methods invoked by print to print information about the object including superclasses.

Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

void vtkInteractorStyleFlight::JumpTo ( double  campos[3],
double  focpos[3] 
)

Move the Eye/Camera to a specific location (no intermediate steps are taken.

virtual void vtkInteractorStyleFlight::SetMotionStepSize ( double  )
virtual

Set the basic unit step size : by default 1/250 of bounding diagonal.

virtual double vtkInteractorStyleFlight::GetMotionStepSize ( )
virtual

Set the basic unit step size : by default 1/250 of bounding diagonal.

virtual void vtkInteractorStyleFlight::SetMotionAccelerationFactor ( double  )
virtual

Set acceleration factor when shift key is applied : default 10.

virtual double vtkInteractorStyleFlight::GetMotionAccelerationFactor ( )
virtual

Set acceleration factor when shift key is applied : default 10.

virtual void vtkInteractorStyleFlight::SetAngleStepSize ( double  )
virtual

Set the basic angular unit for turning : default 1 degree.

virtual double vtkInteractorStyleFlight::GetAngleStepSize ( )
virtual

Set the basic angular unit for turning : default 1 degree.

virtual void vtkInteractorStyleFlight::SetAngleAccelerationFactor ( double  )
virtual

Set angular acceleration when shift key is applied : default 5.

virtual double vtkInteractorStyleFlight::GetAngleAccelerationFactor ( )
virtual

Set angular acceleration when shift key is applied : default 5.

virtual void vtkInteractorStyleFlight::SetDisableMotion ( int  )
virtual

Disable motion (temporarily - for viewing etc)

virtual int vtkInteractorStyleFlight::GetDisableMotion ( )
virtual

Disable motion (temporarily - for viewing etc)

virtual void vtkInteractorStyleFlight::DisableMotionOn ( )
virtual

Disable motion (temporarily - for viewing etc)

virtual void vtkInteractorStyleFlight::DisableMotionOff ( )
virtual

Disable motion (temporarily - for viewing etc)

virtual void vtkInteractorStyleFlight::SetRestoreUpVector ( int  )
virtual

When flying, apply a restorative force to the "Up" vector.

This is activated when the current 'up' is close to the actual 'up' (as defined in DefaultUpVector). This prevents excessive twisting forces when viewing from arbitrary angles, but keep the horizon level when the user is flying over terrain.

virtual int vtkInteractorStyleFlight::GetRestoreUpVector ( )
virtual

When flying, apply a restorative force to the "Up" vector.

This is activated when the current 'up' is close to the actual 'up' (as defined in DefaultUpVector). This prevents excessive twisting forces when viewing from arbitrary angles, but keep the horizon level when the user is flying over terrain.

virtual void vtkInteractorStyleFlight::RestoreUpVectorOn ( )
virtual

When flying, apply a restorative force to the "Up" vector.

This is activated when the current 'up' is close to the actual 'up' (as defined in DefaultUpVector). This prevents excessive twisting forces when viewing from arbitrary angles, but keep the horizon level when the user is flying over terrain.

virtual void vtkInteractorStyleFlight::RestoreUpVectorOff ( )
virtual

When flying, apply a restorative force to the "Up" vector.

This is activated when the current 'up' is close to the actual 'up' (as defined in DefaultUpVector). This prevents excessive twisting forces when viewing from arbitrary angles, but keep the horizon level when the user is flying over terrain.

virtual double* vtkInteractorStyleFlight::GetDefaultUpVector ( )
virtual
virtual void vtkInteractorStyleFlight::GetDefaultUpVector ( double  data[3])
virtual
virtual void vtkInteractorStyleFlight::SetDefaultUpVector ( double  data[])
virtual
void vtkInteractorStyleFlight::OnMouseMove ( )
overridevirtual

Concrete implementation of Mouse event bindings for flight.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleFlight::OnLeftButtonDown ( )
overridevirtual

Concrete implementation of Mouse event bindings for flight.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleFlight::OnLeftButtonUp ( )
overridevirtual

Concrete implementation of Mouse event bindings for flight.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleFlight::OnMiddleButtonDown ( )
overridevirtual

Concrete implementation of Mouse event bindings for flight.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleFlight::OnMiddleButtonUp ( )
overridevirtual

Concrete implementation of Mouse event bindings for flight.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleFlight::OnRightButtonDown ( )
overridevirtual

Concrete implementation of Mouse event bindings for flight.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleFlight::OnRightButtonUp ( )
overridevirtual

Concrete implementation of Mouse event bindings for flight.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleFlight::OnChar ( )
overridevirtual

Concrete implementation of Keyboard event bindings for flight.

Reimplemented from vtkInteractorObserver.

void vtkInteractorStyleFlight::OnKeyDown ( )
overridevirtual

Concrete implementation of Keyboard event bindings for flight.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleFlight::OnKeyUp ( )
overridevirtual

Concrete implementation of Keyboard event bindings for flight.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleFlight::OnTimer ( )
overridevirtual

Concrete implementation of Keyboard event bindings for flight.

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleFlight::ForwardFly ( )
virtual

Concrete implementation of Keyboard event bindings for flight.

virtual void vtkInteractorStyleFlight::ReverseFly ( )
virtual

Concrete implementation of Keyboard event bindings for flight.

virtual void vtkInteractorStyleFlight::StartForwardFly ( )
virtual

Concrete implementation of Keyboard event bindings for flight.

virtual void vtkInteractorStyleFlight::EndForwardFly ( )
virtual

Concrete implementation of Keyboard event bindings for flight.

virtual void vtkInteractorStyleFlight::StartReverseFly ( )
virtual

Concrete implementation of Keyboard event bindings for flight.

virtual void vtkInteractorStyleFlight::EndReverseFly ( )
virtual

Concrete implementation of Keyboard event bindings for flight.

void vtkInteractorStyleFlight::UpdateSteering ( vtkCamera cam)
protected

Routines used internally for computing motion and steering.

void vtkInteractorStyleFlight::UpdateMouseSteering ( vtkCamera cam)
protected

Routines used internally for computing motion and steering.

void vtkInteractorStyleFlight::FlyByMouse ( vtkCamera cam)
protected

Routines used internally for computing motion and steering.

void vtkInteractorStyleFlight::FlyByKey ( vtkCamera cam)
protected

Routines used internally for computing motion and steering.

void vtkInteractorStyleFlight::GetLRVector ( double  vector[3],
vtkCamera cam 
)
protected

Routines used internally for computing motion and steering.

void vtkInteractorStyleFlight::MotionAlongVector ( double  vector[3],
double  amount,
vtkCamera cam 
)
protected

Routines used internally for computing motion and steering.

void vtkInteractorStyleFlight::SetupMotionVars ( vtkCamera cam)
protected

Routines used internally for computing motion and steering.

void vtkInteractorStyleFlight::FinishCamera ( vtkCamera cam)
protected

Routines used internally for computing motion and steering.

Member Data Documentation

unsigned char vtkInteractorStyleFlight::KeysDown
protected

Routines used internally for computing motion and steering.

Definition at line 169 of file vtkInteractorStyleFlight.h.

int vtkInteractorStyleFlight::DisableMotion
protected

Routines used internally for computing motion and steering.

Definition at line 170 of file vtkInteractorStyleFlight.h.

int vtkInteractorStyleFlight::RestoreUpVector
protected

Routines used internally for computing motion and steering.

Definition at line 171 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::DiagonalLength
protected

Routines used internally for computing motion and steering.

Definition at line 172 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::MotionStepSize
protected

Routines used internally for computing motion and steering.

Definition at line 173 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::MotionUserScale
protected

Routines used internally for computing motion and steering.

Definition at line 174 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::MotionAccelerationFactor
protected

Routines used internally for computing motion and steering.

Definition at line 175 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::AngleStepSize
protected

Routines used internally for computing motion and steering.

Definition at line 176 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::AngleAccelerationFactor
protected

Routines used internally for computing motion and steering.

Definition at line 177 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::DefaultUpVector[3]
protected

Routines used internally for computing motion and steering.

Definition at line 178 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::AzimuthStepSize
protected

Routines used internally for computing motion and steering.

Definition at line 179 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::IdealFocalPoint[3]
protected

Routines used internally for computing motion and steering.

Definition at line 180 of file vtkInteractorStyleFlight.h.

vtkPerspectiveTransform* vtkInteractorStyleFlight::Transform
protected

Routines used internally for computing motion and steering.

Definition at line 181 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::DeltaYaw
protected

Routines used internally for computing motion and steering.

Definition at line 182 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::lYaw
protected

Routines used internally for computing motion and steering.

Definition at line 183 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::DeltaPitch
protected

Routines used internally for computing motion and steering.

Definition at line 184 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::lPitch
protected

Routines used internally for computing motion and steering.

Definition at line 185 of file vtkInteractorStyleFlight.h.

CPIDControl* vtkInteractorStyleFlight::PID_Yaw
protected

Definition at line 188 of file vtkInteractorStyleFlight.h.

CPIDControl* vtkInteractorStyleFlight::PID_Pitch
protected

Definition at line 189 of file vtkInteractorStyleFlight.h.


The documentation for this class was generated from the following file: