VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
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 Types

typedef
vtkInteractorStyleSwitchBase 
Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkInteractorStyleSwitchNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void SetInteractor (vtkRenderWindowInteractor *iren)
void SetAutoAdjustCameraClippingRange (int value)
virtual void OnChar ()
virtual vtkInteractorStyleGetCurrentStyle ()
void SetCurrentStyleToJoystickActor ()
void SetCurrentStyleToJoystickCamera ()
void SetCurrentStyleToTrackballActor ()
void SetCurrentStyleToTrackballCamera ()
virtual void SetDefaultRenderer (vtkRenderer *)
virtual void SetCurrentRenderer (vtkRenderer *)

Static Public Member Functions

static vtkInteractorStyleSwitchNew ()
static int IsTypeOf (const char *type)
static vtkInteractorStyleSwitchSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkInteractorStyleSwitch ()
 ~vtkInteractorStyleSwitch ()
void SetCurrentStyle ()

Protected Attributes

vtkInteractorStyleJoystickActorJoystickActor
vtkInteractorStyleJoystickCameraJoystickCamera
vtkInteractorStyleTrackballActorTrackballActor
vtkInteractorStyleTrackballCameraTrackballCamera
vtkInteractorStyleCurrentStyle
int JoystickOrTrackball
int CameraOrActor

Detailed Description

class to swap between interactory styles

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
Examples:
vtkInteractorStyleSwitch (Examples)
Tests:
vtkInteractorStyleSwitch (Tests)

Definition at line 51 of file vtkInteractorStyleSwitch.h.


Member Typedef Documentation

Reimplemented from vtkInteractorStyleSwitchBase.

Reimplemented in vtkInteractorStyleTrackball.

Definition at line 56 of file vtkInteractorStyleSwitch.h.


Constructor & Destructor Documentation


Member Function Documentation

This class must be supplied with a vtkRenderWindowInteractor wrapper or parent. This class should not normally be instantiated by application programmers.

Reimplemented from vtkInteractorStyleSwitchBase.

Reimplemented in vtkInteractorStyleTrackball.

static int vtkInteractorStyleSwitch::IsTypeOf ( const char *  name) [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 vtkInteractorStyleSwitchBase.

Reimplemented in vtkInteractorStyleTrackball.

virtual int vtkInteractorStyleSwitch::IsA ( const char *  name) [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 vtkInteractorStyleSwitchBase.

Reimplemented in vtkInteractorStyleTrackball.

Reimplemented from vtkInteractorStyleSwitchBase.

Reimplemented in vtkInteractorStyleTrackball.

virtual vtkObjectBase* vtkInteractorStyleSwitch::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkInteractorStyleSwitchBase.

Reimplemented in vtkInteractorStyleTrackball.

Reimplemented from vtkInteractorStyleSwitchBase.

Reimplemented in vtkInteractorStyleTrackball.

void vtkInteractorStyleSwitch::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 vtkInteractorStyleSwitchBase.

Reimplemented in vtkInteractorStyleTrackball.

The sub styles need the interactor too.

Reimplemented from vtkInteractorStyle.

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

Reimplemented from vtkInteractorStyle.

Set/Get current style

Set/Get current style

Set/Get current style

Set/Get current style

Set/Get current style

virtual void vtkInteractorStyleSwitch::OnChar ( ) [virtual]

Only care about the char event, which is used to switch between different styles.

Reimplemented from vtkInteractorStyle.

Overridden from vtkInteractorObserver because the interactor styles used by this class must also be updated.

Reimplemented from vtkInteractorObserver.

Overridden from vtkInteractorObserver because the interactor styles used by this class must also be updated.

Reimplemented from vtkInteractorObserver.


Member Data Documentation

Definition at line 92 of file vtkInteractorStyleSwitch.h.

Definition at line 93 of file vtkInteractorStyleSwitch.h.

Definition at line 94 of file vtkInteractorStyleSwitch.h.

Definition at line 95 of file vtkInteractorStyleSwitch.h.

Definition at line 96 of file vtkInteractorStyleSwitch.h.

Definition at line 98 of file vtkInteractorStyleSwitch.h.

Definition at line 99 of file vtkInteractorStyleSwitch.h.


The documentation for this class was generated from the following file: