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

vtkInteractorStyleTrackball Class Reference

provides trackball motion control. More...

#include <vtkInteractorStyleTrackball.h>

Inheritance diagram for vtkInteractorStyleTrackball:

Inheritance graph
[legend]
Collaboration diagram for vtkInteractorStyleTrackball:

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 OnChar (int ctrl, int shift, char keycode, int repeatcount)
virtual void SetActorModeToCamera ()
virtual void SetActorModeToActor ()
virtual int GetActorMode ()
virtual void SetTrackballModeToTrackball ()
virtual void SetTrackballModeToJoystick ()
virtual int GetTrackballMode ()
virtual void OnTimer (void)

Static Public Methods

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

Protected Methods

 vtkInteractorStyleTrackball ()
 ~vtkInteractorStyleTrackball ()
 vtkInteractorStyleTrackball (const vtkInteractorStyleTrackball &)
void operator= (const vtkInteractorStyleTrackball &)
virtual void TrackballRotateCamera (int x, int y)
virtual void TrackballSpinCamera (int x, int y)
virtual void TrackballPanCamera (int x, int y)
virtual void TrackballDollyCamera (int x, int y)
virtual void JoystickRotateActor (int x, int y)
virtual void JoystickSpinActor (int x, int y)
virtual void JoystickPanActor (int x, int y)
virtual void JoystickDollyActor (int x, int y)
virtual void JoystickScaleActor (int x, int y)
virtual void TrackballRotateActor (int x, int y)
virtual void TrackballSpinActor (int x, int y)
virtual void TrackballPanActor (int x, int y)
virtual void TrackballDollyActor (int x, int y)
virtual void TrackballScaleActor (int x, int y)
void Prop3DTransform (vtkProp3D *prop3D, double *boxCenter, int numRotation, double **rotate, double *scale)
void Prop3DTransform (vtkProp3D *prop3D, float *boxCenter, int NumRotation, double **rotate, double *scale)
void FindPickedActor (int X, int Y)

Protected Attributes

vtkAbstractPropPickerInteractionPicker
int PropPicked
vtkProp3DInteractionProp
int ActorMode
int TrackballMode
int ControlMode
float MotionFactor
int Preprocess
float RadianToDegree
float NewPickPoint [4]
float OldPickPoint [4]
float MotionVector [3]
float OldX
float OldY
double ViewLook [3]
double ViewPoint [3]
double ViewFocus [3]
double ViewUp [3]
double ViewRight [3]
float Origin [3]
float Position [3]
float ObjCenter [3]
float DispObjCenter [3]
float Radius

Detailed Description

provides trackball motion control.

Date:
2000/12/10 20:08:40
Revision:
1.14

vtkInteractorStyleTrackball is an implementation of vtkInteractorStyle that defines the trackball style. The trackball style can be thought of as a "grab and move" approach. That is, on mouse down a point on the object is grabbed, and then moving the mouse cause motion in proportion to the amount of motion. Note that the events that are bound by this class are the same as vtkInteractorStyle (which implements joystick mode), just the behavior is modified consistent with the trackball style of interaction.

See also:
vtkInteractorStyle

Definition at line 72 of file vtkInteractorStyleTrackball.h.


Constructor & Destructor Documentation

vtkInteractorStyleTrackball::vtkInteractorStyleTrackball   [protected]
 

vtkInteractorStyleTrackball::~vtkInteractorStyleTrackball   [protected]
 

vtkInteractorStyleTrackball::vtkInteractorStyleTrackball const vtkInteractorStyleTrackball &    [inline, protected]
 

Definition at line 105 of file vtkInteractorStyleTrackball.h.


Member Function Documentation

vtkInteractorStyleTrackball* vtkInteractorStyleTrackball::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* vtkInteractorStyleTrackball::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 vtkInteractorStyleTrackball::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 vtkInteractorStyleTrackball::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.

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

Concrete implementation of event bindings

Reimplemented from vtkInteractorStyle.

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

Reimplemented from vtkInteractorStyle.

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

Reimplemented from vtkInteractorStyle.

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

Reimplemented from vtkInteractorStyle.

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

Reimplemented from vtkInteractorStyle.

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

Reimplemented from vtkInteractorStyle.

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

OnChar implements keyboard functions, but subclasses can override this behavior

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleTrackball::SetActorModeToCamera   [virtual]
 

External switching between actor and camera mode.

virtual void vtkInteractorStyleTrackball::SetActorModeToActor   [virtual]
 

virtual int vtkInteractorStyleTrackball::GetActorMode   [virtual]
 

virtual void vtkInteractorStyleTrackball::SetTrackballModeToTrackball   [virtual]
 

External switching between joystick and trackball mode.

virtual void vtkInteractorStyleTrackball::SetTrackballModeToJoystick   [virtual]
 

virtual int vtkInteractorStyleTrackball::GetTrackballMode   [virtual]
 

virtual void vtkInteractorStyleTrackball::OnTimer void    [virtual]
 

OnTimer calls RotateCamera, RotateActor etc which should be overridden by style subclasses.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleTrackball::operator= const vtkInteractorStyleTrackball &    [inline, protected]
 

Definition at line 106 of file vtkInteractorStyleTrackball.h.

virtual void vtkInteractorStyleTrackball::TrackballRotateCamera int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::TrackballSpinCamera int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::TrackballPanCamera int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::TrackballDollyCamera int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::JoystickRotateActor int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::JoystickSpinActor int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::JoystickPanActor int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::JoystickDollyActor int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::JoystickScaleActor int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::TrackballRotateActor int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::TrackballSpinActor int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::TrackballPanActor int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::TrackballDollyActor int    x,
int    y
[protected, virtual]
 

virtual void vtkInteractorStyleTrackball::TrackballScaleActor int    x,
int    y
[protected, virtual]
 

void vtkInteractorStyleTrackball::Prop3DTransform vtkProp3D   prop3D,
double *    boxCenter,
int    numRotation,
double **    rotate,
double *    scale
[protected]
 

void vtkInteractorStyleTrackball::Prop3DTransform vtkProp3D   prop3D,
float *    boxCenter,
int    NumRotation,
double **    rotate,
double *    scale
[protected]
 

void vtkInteractorStyleTrackball::FindPickedActor int    X,
int    Y
[protected]
 


Member Data Documentation

vtkAbstractPropPicker* vtkInteractorStyleTrackball::InteractionPicker [protected]
 

Definition at line 111 of file vtkInteractorStyleTrackball.h.

int vtkInteractorStyleTrackball::PropPicked [protected]
 

Reimplemented from vtkInteractorStyle.

Definition at line 112 of file vtkInteractorStyleTrackball.h.

vtkProp3D* vtkInteractorStyleTrackball::InteractionProp [protected]
 

Definition at line 113 of file vtkInteractorStyleTrackball.h.

int vtkInteractorStyleTrackball::ActorMode [protected]
 

Definition at line 116 of file vtkInteractorStyleTrackball.h.

int vtkInteractorStyleTrackball::TrackballMode [protected]
 

Definition at line 117 of file vtkInteractorStyleTrackball.h.

int vtkInteractorStyleTrackball::ControlMode [protected]
 

Definition at line 118 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::MotionFactor [protected]
 

Definition at line 119 of file vtkInteractorStyleTrackball.h.

int vtkInteractorStyleTrackball::Preprocess [protected]
 

Definition at line 120 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::RadianToDegree [protected]
 

Definition at line 121 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::NewPickPoint[4] [protected]
 

Definition at line 124 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::OldPickPoint[4] [protected]
 

Definition at line 125 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::MotionVector[3] [protected]
 

Definition at line 126 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::OldX [protected]
 

Definition at line 127 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::OldY [protected]
 

Definition at line 128 of file vtkInteractorStyleTrackball.h.

double vtkInteractorStyleTrackball::ViewLook[3] [protected]
 

Definition at line 131 of file vtkInteractorStyleTrackball.h.

double vtkInteractorStyleTrackball::ViewPoint[3] [protected]
 

Definition at line 132 of file vtkInteractorStyleTrackball.h.

double vtkInteractorStyleTrackball::ViewFocus[3] [protected]
 

Definition at line 133 of file vtkInteractorStyleTrackball.h.

double vtkInteractorStyleTrackball::ViewUp[3] [protected]
 

Definition at line 134 of file vtkInteractorStyleTrackball.h.

double vtkInteractorStyleTrackball::ViewRight[3] [protected]
 

Definition at line 135 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::Origin[3] [protected]
 

Definition at line 138 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::Position[3] [protected]
 

Definition at line 139 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::ObjCenter[3] [protected]
 

Definition at line 140 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::DispObjCenter[3] [protected]
 

Definition at line 141 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::Radius [protected]
 

Definition at line 142 of file vtkInteractorStyleTrackball.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:51:19 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001