Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkInteractorStyleFlight Class Reference

provides flight motion routines. More...

#include <vtkInteractorStyleFlight.h>

Inheritance diagram for vtkInteractorStyleFlight:

Inheritance graph
[legend]
Collaboration diagram for vtkInteractorStyleFlight:

Collaboration graph
[legend]
List of all members.

[NOHEADER]

void DoTimerStart (void)
void DoTimerStop (void)
void UpdateMouseSteering (int x, int y)
void FlyByMouse (void)
void FlyByKey (void)
void ComputeLRVector (double vector[3])
void MotionAlongVector (double vector[3], double amount)
void SetupMotionVars (void)
void AzimuthScan (void)
unsigned char KeysDown
int Flying
int Reversing
int TimerRunning
int AzimuthScanning
int DisableMotion
int FixUpVector
double OldX
double OldY
double X2
double Y2
double DiagonalLength
double MotionStepSize
double MotionUserScale
double MotionAccelerationFactor
double AngleStepSize
double AngleAccelerationFactor
double YawAngle
double PitchAngle
double FixedUpVector [3]
double AzimuthStepSize

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void OnTimer (void)
void JumpTo (double campos[3], double focpos[3])
void PerformAzimuthalScan (int numsteps)
virtual double * GetFixedUpVector ()
virtual void GetFixedUpVector (double data[3])
virtual void SetFixedUpVector (double data[])
virtual void OnRightButtonDown (int ctrl, int shift, int X, int Y)
virtual void OnRightButtonUp (int ctrl, int shift, int X, int Y)
virtual void OnMiddleButtonDown (int ctrl, int shift, int X, int Y)
virtual void OnMiddleButtonUp (int ctrl, int shift, int X, int Y)
virtual void OnLeftButtonDown (int ctrl, int shift, int X, int Y)
virtual void OnLeftButtonUp (int ctrl, int shift, int X, int Y)
virtual void OnMouseMove (int ctrl, int shift, int X, int Y)
virtual void OnChar (int ctrl, int shift, char keycode, int repeatcount)
virtual void OnKeyDown (int ctrl, int shift, char keycode, int repeatcount)
virtual void OnKeyUp (int ctrl, int shift, char keycode, int repeatcount)
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 SetFixUpVector (int)
virtual int GetFixUpVector ()
virtual void FixUpVectorOn ()
virtual void FixUpVectorOff ()

Static Public Methods

vtkInteractorStyleFlight * New ()
int IsTypeOf (const char *type)
vtkInteractorStyleFlight * SafeDownCast (vtkObject *o)

Protected Methods

 vtkInteractorStyleFlight ()
 ~vtkInteractorStyleFlight ()

Detailed Description

provides flight motion routines.

Date:
2001/10/11 13:38:11
Revision:
1.11
Thanks:
Thanks to John Biddiscombe of the Rutherford Appleton Laboratory who developed this class.
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

Stationary 'look' can be achieved by holding both mouse buttons down and steering with the mouse. Stationary 'look' can also be achieved by holding 'Z' (or 'A') and steering with mouse in forward (or reverse) motion mode. 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.

Definition at line 75 of file vtkInteractorStyleFlight.h.


Constructor & Destructor Documentation

vtkInteractorStyleFlight::vtkInteractorStyleFlight   [protected]
 

vtkInteractorStyleFlight::~vtkInteractorStyleFlight   [protected]
 


Member Function Documentation

vtkInteractorStyleFlight* vtkInteractorStyleFlight::New   [static]
 

This class must be supplied with a vtkRenderWindowInteractor wrapper or parent. This class should not normally be instantiated by application programmers.

Reimplemented from vtkInteractorStyle.

virtual const char* vtkInteractorStyleFlight::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkInteractorStyle.

int vtkInteractorStyleFlight::IsTypeOf const char *    type [static]
 

Return 1 if this class type 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.

virtual int vtkInteractorStyleFlight::IsA const char *    type [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.

vtkInteractorStyleFlight* vtkInteractorStyleFlight::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleFlight::PrintSelf ostream &    os,
vtkIndent    indent
[virtual]
 

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 vtkInteractorStyle.

virtual void vtkInteractorStyleFlight::OnRightButtonDown int    ctrl,
int    shift,
int    X,
int    Y
[virtual]
 

Concrete implementation of Mouse event bindings for flight

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleFlight::OnRightButtonUp int    ctrl,
int    shift,
int    X,
int    Y
[virtual]
 

Concrete implementation of Mouse event bindings for flight

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleFlight::OnMiddleButtonDown int    ctrl,
int    shift,
int    X,
int    Y
[virtual]
 

Concrete implementation of Mouse event bindings for flight

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleFlight::OnMiddleButtonUp int    ctrl,
int    shift,
int    X,
int    Y
[virtual]
 

Concrete implementation of Mouse event bindings for flight

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleFlight::OnLeftButtonDown int    ctrl,
int    shift,
int    X,
int    Y
[virtual]
 

Concrete implementation of Mouse event bindings for flight

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleFlight::OnLeftButtonUp int    ctrl,
int    shift,
int    X,
int    Y
[virtual]
 

Concrete implementation of Mouse event bindings for flight

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleFlight::OnMouseMove int    ctrl,
int    shift,
int    X,
int    Y
[virtual]
 

Concrete implementation of Mouse event bindings for flight

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleFlight::OnChar int    ctrl,
int    shift,
char    keycode,
int    repeatcount
[virtual]
 

Concrete implementation of Keyboard event bindings for flight

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleFlight::OnKeyDown int    ctrl,
int    shift,
char    keycode,
int    repeatcount
[virtual]
 

Concrete implementation of Keyboard event bindings for flight

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleFlight::OnKeyUp int    ctrl,
int    shift,
char    keycode,
int    repeatcount
[virtual]
 

Concrete implementation of Keyboard event bindings for flight

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleFlight::OnTimer void    [virtual]
 

Mouse and key events set correct motion states, OnTimer performs the motion

Reimplemented from vtkInteractorStyle.

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

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

void vtkInteractorStyleFlight::PerformAzimuthalScan int    numsteps
 

rotate the camera round z axis by 360 degrees for viewing scene this routine starts a timer and disables key/mouse events preventing user interaction until finished (not fully implemented yet) the number of steps can be supplied.

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::SetFixUpVector int    [virtual]
 

Fix the "up" vector: also use FixedUpVector

virtual int vtkInteractorStyleFlight::GetFixUpVector   [virtual]
 

Fix the "up" vector: also use FixedUpVector

virtual void vtkInteractorStyleFlight::FixUpVectorOn   [virtual]
 

Fix the "up" vector: also use FixedUpVector

virtual void vtkInteractorStyleFlight::FixUpVectorOff   [virtual]
 

Fix the "up" vector: also use FixedUpVector

virtual double* vtkInteractorStyleFlight::GetFixedUpVector   [virtual]
 

virtual void vtkInteractorStyleFlight::GetFixedUpVector double    data[3] [virtual]
 

virtual void vtkInteractorStyleFlight::SetFixedUpVector double    data[] [virtual]
 

void vtkInteractorStyleFlight::DoTimerStart void    [protected]
 

Routines used internally for computing motion and steering

void vtkInteractorStyleFlight::DoTimerStop void    [protected]
 

Routines used internally for computing motion and steering

void vtkInteractorStyleFlight::UpdateMouseSteering int    x,
int    y
[protected]
 

Routines used internally for computing motion and steering

void vtkInteractorStyleFlight::FlyByMouse void    [protected]
 

Routines used internally for computing motion and steering

void vtkInteractorStyleFlight::FlyByKey void    [protected]
 

Routines used internally for computing motion and steering

void vtkInteractorStyleFlight::ComputeLRVector double    vector[3] [protected]
 

Routines used internally for computing motion and steering

void vtkInteractorStyleFlight::MotionAlongVector double    vector[3],
double    amount
[protected]
 

Routines used internally for computing motion and steering

void vtkInteractorStyleFlight::SetupMotionVars void    [protected]
 

Routines used internally for computing motion and steering

void vtkInteractorStyleFlight::AzimuthScan void    [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 173 of file vtkInteractorStyleFlight.h.

int vtkInteractorStyleFlight::Flying [protected]
 

Routines used internally for computing motion and steering

Definition at line 174 of file vtkInteractorStyleFlight.h.

int vtkInteractorStyleFlight::Reversing [protected]
 

Routines used internally for computing motion and steering

Definition at line 175 of file vtkInteractorStyleFlight.h.

int vtkInteractorStyleFlight::TimerRunning [protected]
 

Routines used internally for computing motion and steering

Definition at line 176 of file vtkInteractorStyleFlight.h.

int vtkInteractorStyleFlight::AzimuthScanning [protected]
 

Routines used internally for computing motion and steering

Definition at line 177 of file vtkInteractorStyleFlight.h.

int vtkInteractorStyleFlight::DisableMotion [protected]
 

Routines used internally for computing motion and steering

Definition at line 178 of file vtkInteractorStyleFlight.h.

int vtkInteractorStyleFlight::FixUpVector [protected]
 

Routines used internally for computing motion and steering

Definition at line 179 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::OldX [protected]
 

Routines used internally for computing motion and steering

Definition at line 180 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::OldY [protected]
 

Routines used internally for computing motion and steering

Definition at line 181 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::X2 [protected]
 

Routines used internally for computing motion and steering

Definition at line 182 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::Y2 [protected]
 

Routines used internally for computing motion and steering

Definition at line 183 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::DiagonalLength [protected]
 

Routines used internally for computing motion and steering

Definition at line 184 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::MotionStepSize [protected]
 

Routines used internally for computing motion and steering

Definition at line 185 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::MotionUserScale [protected]
 

Routines used internally for computing motion and steering

Definition at line 186 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::MotionAccelerationFactor [protected]
 

Routines used internally for computing motion and steering

Definition at line 187 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::AngleStepSize [protected]
 

Routines used internally for computing motion and steering

Definition at line 188 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::AngleAccelerationFactor [protected]
 

Routines used internally for computing motion and steering

Definition at line 189 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::YawAngle [protected]
 

Routines used internally for computing motion and steering

Definition at line 190 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::PitchAngle [protected]
 

Routines used internally for computing motion and steering

Definition at line 191 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::FixedUpVector[3] [protected]
 

Routines used internally for computing motion and steering

Definition at line 192 of file vtkInteractorStyleFlight.h.

double vtkInteractorStyleFlight::AzimuthStepSize [protected]
 

Routines used internally for computing motion and steering

Definition at line 193 of file vtkInteractorStyleFlight.h.


The documentation for this class was generated from the following file:
Generated on Thu Mar 28 14:32:38 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001