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


Member Function Documentation

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.

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.

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.

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

Concrete implementation of event bindings

Reimplemented from vtkInteractorStyle.

virtual void vtkInteractorStyleTrackball::OnTimer void    [virtual]
 

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

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.

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.

virtual void vtkInteractorStyleTrackball::SetActorModeToCamera   [virtual]
 

External switching between actor and camera mode.

virtual void vtkInteractorStyleTrackball::SetTrackballModeToTrackball   [virtual]
 

External switching between joystick and trackball mode.


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