Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound 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.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
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 OnTimer (void)
void JumpTo (double campos[3], double focpos[3])
void PerformAzimuthalScan (int numsteps)
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 ()
virtual double * GetFixedUpVector ()
virtual void GetFixedUpVector (double data[3])
virtual void SetFixedUpVector (double data[])

Static Public Methods

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

Protected Methods

 vtkInteractorStyleFlight ()
 ~vtkInteractorStyleFlight ()
 vtkInteractorStyleFlight (const vtkInteractorStyleFlight &)
void operator= (const vtkInteractorStyleFlight &)
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)

Protected Attributes

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

Detailed Description

provides flight motion routines.

Date:
2000/12/10 20:08:40
Revision:
1.8
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.


Member Function Documentation

void vtkInteractorStyleFlight::DoTimerStart void    [protected]
 

Routines used internally for computing motion and steering

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.

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.

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.

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

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

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 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::OnMouseMove int    ctrl,
int    shift,
int    X,
int    Y
[virtual]
 

Generic event bindings must be overridden in subclasses

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::OnTimer void    [virtual]
 

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

Reimplemented from vtkInteractorStyle.

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.

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.

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.

virtual void vtkInteractorStyleFlight::SetAngleAccelerationFactor double    [virtual]
 

Set angular acceleration when shift key is applied : default 5

virtual void vtkInteractorStyleFlight::SetAngleStepSize double    [virtual]
 

Set the basic angular unit for turning : default 1 degree

virtual void vtkInteractorStyleFlight::SetDisableMotion int    [virtual]
 

Disable motion (temporarily - for viewing etc)

virtual void vtkInteractorStyleFlight::SetFixUpVector int    [virtual]
 

Fix the "up" vector: also use FixedUpVector

virtual void vtkInteractorStyleFlight::SetMotionAccelerationFactor double    [virtual]
 

Set acceleration factor when shift key is applied : default 10

virtual void vtkInteractorStyleFlight::SetMotionStepSize double    [virtual]
 

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


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:27:40 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002