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

vtkInteractorStyleTrackballActor Class Reference

manipulate objects in the scene independent of each other. More...

#include <vtkInteractorStyleTrackballActor.h>

Inheritance diagram for vtkInteractorStyleTrackballActor:

Inheritance graph
[legend]
Collaboration diagram for vtkInteractorStyleTrackballActor:

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)
void OnMouseMove (int ctrl, int shift, int x, int y)
void OnLeftButtonDown (int ctrl, int shift, int x, int y)
void OnLeftButtonUp (int ctrl, int shift, int x, int y)
void OnMiddleButtonDown (int ctrl, int shift, int x, int y)
void OnMiddleButtonUp (int ctrl, int shift, int x, int y)
void OnRightButtonDown (int ctrl, int shift, int x, int y)
void OnRightButtonUp (int ctrl, int shift, int x, int y)

Static Public Methods

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

Protected Methods

 vtkInteractorStyleTrackballActor ()
 ~vtkInteractorStyleTrackballActor ()
void RotateXY (int x, int y, int oldX, int oldY)
void PanXY (int x, int y, int oldX, int oldY)
void DollyXY (int dx, int dy)
void SpinXY (int dx, int dy, int oldX, int oldY)
void ScaleXY (int x, int y, int oldX, int oldY)
void FindPickedActor (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)

Protected Attributes

int State
float MotionFactor
float RadianToDegree
vtkProp3DInteractionProp
double ViewUp [3]
double ViewLook [3]
double ViewRight [3]
float ObjCenter [3]
float DispObjCenter [3]
float Radius
float NewPickPoint [4]
float OldPickPoint [4]
float MotionVector [3]
double ViewPoint [3]
double ViewFocus [3]
vtkCellPickerInteractionPicker

Detailed Description

manipulate objects in the scene independent of each other.

Date:
2001/10/11 13:38:12
Revision:
1.8

vtkInteractorStyleTrackballActor allows the user to interact with (rotate, pan, etc.) objects in the scene indendent of each other. The position of the mouse relative to the center of the object determine's the speed at which the object moves. When the mouse stops moving, so does the object being manipulated. For a 3-button mouse, the left button is for rotation, the right button for zooming, the middle button for panning, and ctrl + left button for spinning. (With fewer mouse buttons, ctrl + shift + left button is for zooming, and shift + left button is for panning.)

See also:
vtkInteractorStyleTrackballCamera vtkInteractorStyleJoystickActor vtkInteractorStyleJoystickCamera
Events:
vtkCommand::RightButtonPressEvent vtkCommand::MiddleButtonPressEvent vtkCommand::LeftButtonPressEvent

Definition at line 77 of file vtkInteractorStyleTrackballActor.h.


Constructor & Destructor Documentation

vtkInteractorStyleTrackballActor::vtkInteractorStyleTrackballActor   [protected]
 

vtkInteractorStyleTrackballActor::~vtkInteractorStyleTrackballActor   [protected]
 


Member Function Documentation

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

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

void vtkInteractorStyleTrackballActor::OnMouseMove int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleTrackballActor::OnLeftButtonDown int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleTrackballActor::OnLeftButtonUp int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleTrackballActor::OnMiddleButtonDown int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleTrackballActor::OnMiddleButtonUp int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleTrackballActor::OnRightButtonDown int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleTrackballActor::OnRightButtonUp int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleTrackballActor::RotateXY int    x,
int    y,
int    oldX,
int    oldY
[protected]
 

void vtkInteractorStyleTrackballActor::PanXY int    x,
int    y,
int    oldX,
int    oldY
[protected]
 

void vtkInteractorStyleTrackballActor::DollyXY int    dx,
int    dy
[protected]
 

void vtkInteractorStyleTrackballActor::SpinXY int    dx,
int    dy,
int    oldX,
int    oldY
[protected]
 

void vtkInteractorStyleTrackballActor::ScaleXY int    x,
int    y,
int    oldX,
int    oldY
[protected]
 

void vtkInteractorStyleTrackballActor::FindPickedActor int    x,
int    y
[protected]
 

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

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


Member Data Documentation

int vtkInteractorStyleTrackballActor::State [protected]
 

Reimplemented from vtkInteractorStyle.

Definition at line 113 of file vtkInteractorStyleTrackballActor.h.

float vtkInteractorStyleTrackballActor::MotionFactor [protected]
 

Definition at line 114 of file vtkInteractorStyleTrackballActor.h.

float vtkInteractorStyleTrackballActor::RadianToDegree [protected]
 

Definition at line 115 of file vtkInteractorStyleTrackballActor.h.

vtkProp3D* vtkInteractorStyleTrackballActor::InteractionProp [protected]
 

Definition at line 116 of file vtkInteractorStyleTrackballActor.h.

double vtkInteractorStyleTrackballActor::ViewUp[3] [protected]
 

Definition at line 117 of file vtkInteractorStyleTrackballActor.h.

double vtkInteractorStyleTrackballActor::ViewLook[3] [protected]
 

Definition at line 118 of file vtkInteractorStyleTrackballActor.h.

double vtkInteractorStyleTrackballActor::ViewRight[3] [protected]
 

Definition at line 119 of file vtkInteractorStyleTrackballActor.h.

float vtkInteractorStyleTrackballActor::ObjCenter[3] [protected]
 

Definition at line 120 of file vtkInteractorStyleTrackballActor.h.

float vtkInteractorStyleTrackballActor::DispObjCenter[3] [protected]
 

Definition at line 121 of file vtkInteractorStyleTrackballActor.h.

float vtkInteractorStyleTrackballActor::Radius [protected]
 

Definition at line 122 of file vtkInteractorStyleTrackballActor.h.

float vtkInteractorStyleTrackballActor::NewPickPoint[4] [protected]
 

Definition at line 123 of file vtkInteractorStyleTrackballActor.h.

float vtkInteractorStyleTrackballActor::OldPickPoint[4] [protected]
 

Definition at line 124 of file vtkInteractorStyleTrackballActor.h.

float vtkInteractorStyleTrackballActor::MotionVector[3] [protected]
 

Definition at line 125 of file vtkInteractorStyleTrackballActor.h.

double vtkInteractorStyleTrackballActor::ViewPoint[3] [protected]
 

Definition at line 126 of file vtkInteractorStyleTrackballActor.h.

double vtkInteractorStyleTrackballActor::ViewFocus[3] [protected]
 

Definition at line 127 of file vtkInteractorStyleTrackballActor.h.

vtkCellPicker* vtkInteractorStyleTrackballActor::InteractionPicker [protected]
 

Definition at line 129 of file vtkInteractorStyleTrackballActor.h.


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