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 OnTimer (void)
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 ()

Static Public Methods

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

Protected Methods

 vtkInteractorStyleTrackball ()
 ~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:
2001/10/11 13:38:12
Revision:
1.17

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
Events:
vtkCommand::LeftButtonReleaseEvent vtkCommand::RightButtonReleaseEvent vtkCommand::RightButtonPressEvent vtkCommand::MiddleButtonPressEvent vtkCommand::MiddleButtonReleaseEvent vtkCommand::LeftButtonPressEvent
Tests:
vtkInteractorStyleTrackball (Tests)

Definition at line 79 of file vtkInteractorStyleTrackball.h.


Constructor & Destructor Documentation

vtkInteractorStyleTrackball::vtkInteractorStyleTrackball   [protected]
 

vtkInteractorStyleTrackball::~vtkInteractorStyleTrackball   [protected]
 


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]
 

Concrete implementation of event bindings

Reimplemented from vtkInteractorStyle.

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

Concrete implementation of event bindings

Reimplemented from vtkInteractorStyle.

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

Concrete implementation of event bindings

Reimplemented from vtkInteractorStyle.

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

Concrete implementation of event bindings

Reimplemented from vtkInteractorStyle.

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

Concrete implementation of event bindings

Reimplemented from vtkInteractorStyle.

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

Concrete implementation of event bindings

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleTrackball::SetActorModeToCamera   [virtual]
 

External switching between actor and camera mode.

virtual void vtkInteractorStyleTrackball::SetActorModeToActor   [virtual]
 

External switching between actor and camera mode.

virtual int vtkInteractorStyleTrackball::GetActorMode   [virtual]
 

External switching between actor and camera mode.

virtual void vtkInteractorStyleTrackball::SetTrackballModeToTrackball   [virtual]
 

External switching between joystick and trackball mode.

virtual void vtkInteractorStyleTrackball::SetTrackballModeToJoystick   [virtual]
 

External switching between joystick and trackball mode.

virtual int vtkInteractorStyleTrackball::GetTrackballMode   [virtual]
 

External switching between joystick and trackball mode.

virtual void vtkInteractorStyleTrackball::OnTimer void    [virtual]
 

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

Reimplemented from vtkInteractorStyle.

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 122 of file vtkInteractorStyleTrackball.h.

int vtkInteractorStyleTrackball::PropPicked [protected]
 

Reimplemented from vtkInteractorStyle.

Definition at line 123 of file vtkInteractorStyleTrackball.h.

vtkProp3D* vtkInteractorStyleTrackball::InteractionProp [protected]
 

Definition at line 124 of file vtkInteractorStyleTrackball.h.

int vtkInteractorStyleTrackball::ActorMode [protected]
 

Definition at line 127 of file vtkInteractorStyleTrackball.h.

int vtkInteractorStyleTrackball::TrackballMode [protected]
 

Definition at line 128 of file vtkInteractorStyleTrackball.h.

int vtkInteractorStyleTrackball::ControlMode [protected]
 

Definition at line 129 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::MotionFactor [protected]
 

Definition at line 130 of file vtkInteractorStyleTrackball.h.

int vtkInteractorStyleTrackball::Preprocess [protected]
 

Definition at line 131 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::RadianToDegree [protected]
 

Definition at line 132 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::NewPickPoint[4] [protected]
 

Definition at line 135 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::OldPickPoint[4] [protected]
 

Definition at line 136 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::MotionVector[3] [protected]
 

Definition at line 137 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::OldX [protected]
 

Definition at line 138 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::OldY [protected]
 

Definition at line 139 of file vtkInteractorStyleTrackball.h.

double vtkInteractorStyleTrackball::ViewLook[3] [protected]
 

Definition at line 142 of file vtkInteractorStyleTrackball.h.

double vtkInteractorStyleTrackball::ViewPoint[3] [protected]
 

Definition at line 143 of file vtkInteractorStyleTrackball.h.

double vtkInteractorStyleTrackball::ViewFocus[3] [protected]
 

Definition at line 144 of file vtkInteractorStyleTrackball.h.

double vtkInteractorStyleTrackball::ViewUp[3] [protected]
 

Definition at line 145 of file vtkInteractorStyleTrackball.h.

double vtkInteractorStyleTrackball::ViewRight[3] [protected]
 

Definition at line 146 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::Origin[3] [protected]
 

Definition at line 149 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::Position[3] [protected]
 

Definition at line 150 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::ObjCenter[3] [protected]
 

Definition at line 151 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::DispObjCenter[3] [protected]
 

Definition at line 152 of file vtkInteractorStyleTrackball.h.

float vtkInteractorStyleTrackball::Radius [protected]
 

Definition at line 153 of file vtkInteractorStyleTrackball.h.


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