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

vtkInteractorStyleSwitch Class Reference

class to swap between interactory styles. More...

#include <vtkInteractorStyleSwitch.h>

Inheritance diagram for vtkInteractorStyleSwitch:

Inheritance graph
[legend]
Collaboration diagram for vtkInteractorStyleSwitch:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void SetInteractor (vtkRenderWindowInteractor *iren)
void OnTimer ()
void SetAutoAdjustCameraClippingRange (int value)
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 OnMouseMove (int ctrl, int shift, int x, int y)
void OnChar (int ctrl, int shift, char keycode, int repeatcount)

Static Public Methods

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

Protected Methods

 vtkInteractorStyleSwitch ()
 ~vtkInteractorStyleSwitch ()

Protected Attributes

vtkInteractorStyleJoystickActorJoystickActor
vtkInteractorStyleJoystickCameraJoystickCamera
vtkInteractorStyleTrackballActorTrackballActor
vtkInteractorStyleTrackballCameraTrackballCamera
int JoystickOrTrackball
int CameraOrActor

Detailed Description

class to swap between interactory styles.

Date:
2001/11/16 16:36:14
Revision:
1.11

The class vtkInteractorStyleSwitch allows handles interactively switching between four interactor styles -- joystick actor, joystick camera, trackball actor, and trackball camera. Type 'j' or 't' to select joystick or trackball, and type 'c' or 'a' to select camera or actor. The default interactor style is joystick camera.

See also:
vtkInteractorStyleJoystickActor vtkInteractorStyleJoystickCamera vtkInteractorStyleTrackballActor vtkInteractorStyleTrackballCamera
Events:
vtkCommand::LeftButtonReleaseEvent vtkCommand::RightButtonReleaseEvent vtkCommand::RightButtonPressEvent vtkCommand::MiddleButtonPressEvent vtkCommand::MiddleButtonReleaseEvent vtkCommand::LeftButtonPressEvent
Tests:
vtkInteractorStyleSwitch (Tests)

Definition at line 76 of file vtkInteractorStyleSwitch.h.


Constructor & Destructor Documentation

vtkInteractorStyleSwitch::vtkInteractorStyleSwitch   [protected]
 

vtkInteractorStyleSwitch::~vtkInteractorStyleSwitch   [protected]
 


Member Function Documentation

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

Reimplemented in vtkInteractorStyleUser.

virtual const char* vtkInteractorStyleSwitch::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.

Reimplemented in vtkInteractorStyleUser.

int vtkInteractorStyleSwitch::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.

Reimplemented in vtkInteractorStyleUser.

virtual int vtkInteractorStyleSwitch::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.

Reimplemented in vtkInteractorStyleUser.

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

Reimplemented in vtkInteractorStyleUser.

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

Event bindings controlling the effects of pressing mouse buttons or moving the mouse. The correct subclass method is called depending on the current mode (trackball or joystick, camera or actor).

Reimplemented from vtkInteractorStyle.

Reimplemented in vtkInteractorStyleUser.

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

Event bindings controlling the effects of pressing mouse buttons or moving the mouse. The correct subclass method is called depending on the current mode (trackball or joystick, camera or actor).

Reimplemented from vtkInteractorStyle.

Reimplemented in vtkInteractorStyleUser.

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

Event bindings controlling the effects of pressing mouse buttons or moving the mouse. The correct subclass method is called depending on the current mode (trackball or joystick, camera or actor).

Reimplemented from vtkInteractorStyle.

Reimplemented in vtkInteractorStyleUser.

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

Event bindings controlling the effects of pressing mouse buttons or moving the mouse. The correct subclass method is called depending on the current mode (trackball or joystick, camera or actor).

Reimplemented from vtkInteractorStyle.

Reimplemented in vtkInteractorStyleUser.

void vtkInteractorStyleSwitch::OnRightButtonDown int    ctrl,
int    shift,
int    X,
int    Y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse. The correct subclass method is called depending on the current mode (trackball or joystick, camera or actor).

Reimplemented from vtkInteractorStyle.

Reimplemented in vtkInteractorStyleUser.

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

Event bindings controlling the effects of pressing mouse buttons or moving the mouse. The correct subclass method is called depending on the current mode (trackball or joystick, camera or actor).

Reimplemented from vtkInteractorStyle.

Reimplemented in vtkInteractorStyleUser.

void vtkInteractorStyleSwitch::OnMouseMove int    ctrl,
int    shift,
int    X,
int    Y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse. The correct subclass method is called depending on the current mode (trackball or joystick, camera or actor).

Reimplemented from vtkInteractorStyle.

Reimplemented in vtkInteractorStyleUser.

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

Event bindings controlling the effects of pressing mouse buttons or moving the mouse. The correct subclass method is called depending on the current mode (trackball or joystick, camera or actor).

Reimplemented from vtkInteractorStyle.

Reimplemented in vtkInteractorStyleUser.

void vtkInteractorStyleSwitch::SetInteractor vtkRenderWindowInteractor   iren [virtual]
 

The sub styles need the interactor too.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleSwitch::OnTimer void    [virtual]
 

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

Reimplemented from vtkInteractorStyle.

Reimplemented in vtkInteractorStyleUser.

void vtkInteractorStyleSwitch::SetAutoAdjustCameraClippingRange int    value [virtual]
 

We must override this method in order to pass the setting down to the underlying styles

Reimplemented from vtkInteractorStyle.


Member Data Documentation

vtkInteractorStyleJoystickActor* vtkInteractorStyleSwitch::JoystickActor [protected]
 

Definition at line 109 of file vtkInteractorStyleSwitch.h.

vtkInteractorStyleJoystickCamera* vtkInteractorStyleSwitch::JoystickCamera [protected]
 

Definition at line 110 of file vtkInteractorStyleSwitch.h.

vtkInteractorStyleTrackballActor* vtkInteractorStyleSwitch::TrackballActor [protected]
 

Definition at line 111 of file vtkInteractorStyleSwitch.h.

vtkInteractorStyleTrackballCamera* vtkInteractorStyleSwitch::TrackballCamera [protected]
 

Definition at line 112 of file vtkInteractorStyleSwitch.h.

int vtkInteractorStyleSwitch::JoystickOrTrackball [protected]
 

Definition at line 114 of file vtkInteractorStyleSwitch.h.

int vtkInteractorStyleSwitch::CameraOrActor [protected]
 

Definition at line 115 of file vtkInteractorStyleSwitch.h.


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