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

vtkInteractorStyleJoystickActor Class Reference

manipulate objects in the scene independently of one another. More...

#include <vtkInteractorStyleJoystickActor.h>

Inheritance diagram for vtkInteractorStyleJoystickActor:

Inheritance graph
[legend]
Collaboration diagram for vtkInteractorStyleJoystickActor:

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

Static Public Methods

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

Protected Methods

 vtkInteractorStyleJoystickActor ()
 ~vtkInteractorStyleJoystickActor ()
void RotateXY (int x, int y)
void PanXY (int x, int y)
void DollyXY (int x, int y)
void SpinXY (int x, int y)
void ScaleXY (int x, int y)
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 independently of one another.

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

The class vtkInteractorStyleJoystickActor allows the user to interact with (rotate, zoom, etc.) separate objects in the scene independent of each other. The position of the mouse relative to the center of the object determines the speed of the object's motion. The mouse's velocity detemines the acceleration of the object's motion, so the object will continue moving even when the mouse is not moving. 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:
vtkInteractorStyleJoystickCamera vtkInteractorStyleTrackballActor vtkInteractorStyleTrackballCamera
Events:
vtkCommand::RightButtonPressEvent vtkCommand::MiddleButtonPressEvent vtkCommand::LeftButtonPressEvent

Definition at line 78 of file vtkInteractorStyleJoystickActor.h.


Constructor & Destructor Documentation

vtkInteractorStyleJoystickActor::vtkInteractorStyleJoystickActor   [protected]
 

vtkInteractorStyleJoystickActor::~vtkInteractorStyleJoystickActor   [protected]
 


Member Function Documentation

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

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

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

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleJoystickActor::RotateXY int    x,
int    y
[protected]
 

void vtkInteractorStyleJoystickActor::PanXY int    x,
int    y
[protected]
 

void vtkInteractorStyleJoystickActor::DollyXY int    x,
int    y
[protected]
 

void vtkInteractorStyleJoystickActor::SpinXY int    x,
int    y
[protected]
 

void vtkInteractorStyleJoystickActor::ScaleXY int    x,
int    y
[protected]
 

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

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

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


Member Data Documentation

int vtkInteractorStyleJoystickActor::State [protected]
 

Reimplemented from vtkInteractorStyle.

Definition at line 116 of file vtkInteractorStyleJoystickActor.h.

float vtkInteractorStyleJoystickActor::MotionFactor [protected]
 

Definition at line 117 of file vtkInteractorStyleJoystickActor.h.

float vtkInteractorStyleJoystickActor::RadianToDegree [protected]
 

Definition at line 118 of file vtkInteractorStyleJoystickActor.h.

vtkProp3D* vtkInteractorStyleJoystickActor::InteractionProp [protected]
 

Definition at line 119 of file vtkInteractorStyleJoystickActor.h.

double vtkInteractorStyleJoystickActor::ViewUp[3] [protected]
 

Definition at line 120 of file vtkInteractorStyleJoystickActor.h.

double vtkInteractorStyleJoystickActor::ViewLook[3] [protected]
 

Definition at line 121 of file vtkInteractorStyleJoystickActor.h.

double vtkInteractorStyleJoystickActor::ViewRight[3] [protected]
 

Definition at line 122 of file vtkInteractorStyleJoystickActor.h.

float vtkInteractorStyleJoystickActor::ObjCenter[3] [protected]
 

Definition at line 123 of file vtkInteractorStyleJoystickActor.h.

float vtkInteractorStyleJoystickActor::DispObjCenter[3] [protected]
 

Definition at line 124 of file vtkInteractorStyleJoystickActor.h.

float vtkInteractorStyleJoystickActor::Radius [protected]
 

Definition at line 125 of file vtkInteractorStyleJoystickActor.h.

float vtkInteractorStyleJoystickActor::NewPickPoint[4] [protected]
 

Definition at line 126 of file vtkInteractorStyleJoystickActor.h.

float vtkInteractorStyleJoystickActor::OldPickPoint[4] [protected]
 

Definition at line 127 of file vtkInteractorStyleJoystickActor.h.

float vtkInteractorStyleJoystickActor::MotionVector[3] [protected]
 

Definition at line 128 of file vtkInteractorStyleJoystickActor.h.

double vtkInteractorStyleJoystickActor::ViewPoint[3] [protected]
 

Definition at line 129 of file vtkInteractorStyleJoystickActor.h.

double vtkInteractorStyleJoystickActor::ViewFocus[3] [protected]
 

Definition at line 130 of file vtkInteractorStyleJoystickActor.h.

vtkCellPicker* vtkInteractorStyleJoystickActor::InteractionPicker [protected]
 

Definition at line 132 of file vtkInteractorStyleJoystickActor.h.


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