VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkInteractorStyleFlight Class Reference

provides flight motion routines More...

#include <vtkInteractorStyleFlight.h>

Inherits vtkInteractorStyle.

Collaboration diagram for vtkInteractorStyleFlight:
[legend]

Public Types

typedef vtkInteractorStyle Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkInteractorStyleFlightNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void JumpTo (double campos[3], double focpos[3])
 
virtual double * GetDefaultUpVector ()
 
virtual void GetDefaultUpVector (double data[3])
 
virtual void SetDefaultUpVector (double data[])
 
virtual void SetMotionStepSize (double)
 
virtual double GetMotionStepSize ()
 
virtual void SetMotionAccelerationFactor (double)
 
virtual double GetMotionAccelerationFactor ()
 
virtual void SetAngleStepSize (double)
 
virtual double GetAngleStepSize ()
 
virtual void SetAngleAccelerationFactor (double)
 
virtual double GetAngleAccelerationFactor ()
 
virtual void SetDisableMotion (int)
 
virtual int GetDisableMotion ()
 
virtual void DisableMotionOn ()
 
virtual void DisableMotionOff ()
 
virtual void SetRestoreUpVector (int)
 
virtual int GetRestoreUpVector ()
 
virtual void RestoreUpVectorOn ()
 
virtual void RestoreUpVectorOff ()
 
virtual void OnMouseMove ()
 
virtual void OnLeftButtonDown ()
 
virtual void OnLeftButtonUp ()
 
virtual void OnMiddleButtonDown ()
 
virtual void OnMiddleButtonUp ()
 
virtual void OnRightButtonDown ()
 
virtual void OnRightButtonUp ()
 
virtual void OnChar ()
 
virtual void OnKeyDown ()
 
virtual void OnKeyUp ()
 
virtual void OnTimer ()
 
virtual void ForwardFly ()
 
virtual void ReverseFly ()
 
virtual void StartForwardFly ()
 
virtual void EndForwardFly ()
 
virtual void StartReverseFly ()
 
virtual void EndReverseFly ()
 

Static Public Member Functions

static vtkInteractorStyleFlightNew ()
 
static int IsTypeOf (const char *type)
 
static vtkInteractorStyleFlightSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkInteractorStyleFlight ()
 
 ~vtkInteractorStyleFlight ()
 
unsigned char KeysDown
 
int DisableMotion
 
int RestoreUpVector
 
double DiagonalLength
 
double MotionStepSize
 
double MotionUserScale
 
double MotionAccelerationFactor
 
double AngleStepSize
 
double AngleAccelerationFactor
 
double DefaultUpVector [3]
 
double AzimuthStepSize
 
double IdealFocalPoint [3]
 
vtkPerspectiveTransformTransform
 
double DeltaYaw
 
double lYaw
 
double DeltaPitch
 
double lPitch
 
CPIDControl * PID_Yaw
 
CPIDControl * PID_Pitch
 
void UpdateSteering (vtkCamera *cam)
 
void UpdateMouseSteering (vtkCamera *cam)
 
void FlyByMouse (vtkCamera *cam)
 
void FlyByKey (vtkCamera *cam)
 
void GetLRVector (double vector[3], vtkCamera *cam)
 
void MotionAlongVector (double vector[3], double amount, vtkCamera *cam)
 
void SetupMotionVars (vtkCamera *cam)
 
void FinishCamera (vtkCamera *cam)
 

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.

Events:
vtkCommand::InteractionEvent
Examples:
vtkInteractorStyleFlight (Examples)

Definition at line 52 of file vtkInteractorStyleFlight.h.

Member Typedef Documentation

typedef vtkInteractorStyle vtkInteractorStyleFlight::Superclass

Definition at line 56 of file vtkInteractorStyleFlight.h.

Constructor & Destructor Documentation

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

Member Function Documentation

static vtkInteractorStyleFlight* vtkInteractorStyleFlight::New ( )
static
static int vtkInteractorStyleFlight::IsTypeOf ( const char *  type)
static
virtual int vtkInteractorStyleFlight::IsA ( const char *  type)
virtual
static vtkInteractorStyleFlight* vtkInteractorStyleFlight::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkInteractorStyleFlight::NewInstanceInternal ( ) const
protectedvirtual
vtkInteractorStyleFlight* vtkInteractorStyleFlight::NewInstance ( ) const
void vtkInteractorStyleFlight::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
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
virtual void vtkInteractorStyleFlight::OnMouseMove ( )
virtual

Concrete implementation of Mouse event bindings for flight

virtual void vtkInteractorStyleFlight::OnLeftButtonDown ( )
virtual

Concrete implementation of Mouse event bindings for flight

virtual void vtkInteractorStyleFlight::OnLeftButtonUp ( )
virtual

Concrete implementation of Mouse event bindings for flight

virtual void vtkInteractorStyleFlight::OnMiddleButtonDown ( )
virtual

Concrete implementation of Mouse event bindings for flight

virtual void vtkInteractorStyleFlight::OnMiddleButtonUp ( )
virtual

Concrete implementation of Mouse event bindings for flight

virtual void vtkInteractorStyleFlight::OnRightButtonDown ( )
virtual

Concrete implementation of Mouse event bindings for flight

virtual void vtkInteractorStyleFlight::OnRightButtonUp ( )
virtual

Concrete implementation of Mouse event bindings for flight

virtual void vtkInteractorStyleFlight::OnChar ( )
virtual

Concrete implementation of Keyboard event bindings for flight

virtual void vtkInteractorStyleFlight::OnKeyDown ( )
virtual

Concrete implementation of Keyboard event bindings for flight

virtual void vtkInteractorStyleFlight::OnKeyUp ( )
virtual

Concrete implementation of Keyboard event bindings for flight

virtual void vtkInteractorStyleFlight::OnTimer ( )
virtual

Concrete implementation of Keyboard event bindings for flight

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 152 of file vtkInteractorStyleFlight.h.

int vtkInteractorStyleFlight::DisableMotion
protected

Routines used internally for computing motion and steering

Definition at line 153 of file vtkInteractorStyleFlight.h.

int vtkInteractorStyleFlight::RestoreUpVector
protected

Routines used internally for computing motion and steering

Definition at line 154 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::DiagonalLength
protected

Routines used internally for computing motion and steering

Definition at line 155 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::MotionStepSize
protected

Routines used internally for computing motion and steering

Definition at line 156 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::MotionUserScale
protected

Routines used internally for computing motion and steering

Definition at line 157 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::MotionAccelerationFactor
protected

Routines used internally for computing motion and steering

Definition at line 158 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::AngleStepSize
protected

Routines used internally for computing motion and steering

Definition at line 159 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::AngleAccelerationFactor
protected

Routines used internally for computing motion and steering

Definition at line 160 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::DefaultUpVector[3]
protected

Routines used internally for computing motion and steering

Definition at line 161 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::AzimuthStepSize
protected

Routines used internally for computing motion and steering

Definition at line 162 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::IdealFocalPoint[3]
protected

Routines used internally for computing motion and steering

Definition at line 163 of file vtkInteractorStyleFlight.h.

vtkPerspectiveTransform* vtkInteractorStyleFlight::Transform
protected

Routines used internally for computing motion and steering

Definition at line 164 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::DeltaYaw
protected

Routines used internally for computing motion and steering

Definition at line 165 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::lYaw
protected

Routines used internally for computing motion and steering

Definition at line 166 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::DeltaPitch
protected

Routines used internally for computing motion and steering

Definition at line 167 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::lPitch
protected

Routines used internally for computing motion and steering

Definition at line 168 of file vtkInteractorStyleFlight.h.

CPIDControl* vtkInteractorStyleFlight::PID_Yaw
protected

Routines used internally for computing motion and steering

Definition at line 170 of file vtkInteractorStyleFlight.h.

CPIDControl* vtkInteractorStyleFlight::PID_Pitch
protected

Routines used internally for computing motion and steering

Definition at line 171 of file vtkInteractorStyleFlight.h.


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