VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkInteractorStyleSwitch Class Reference

class to swap between interactory styles More...

#include <vtkInteractorStyleSwitch.h>

Inheritance diagram for vtkInteractorStyleSwitch:
[legend]
Collaboration diagram for vtkInteractorStyleSwitch:
[legend]

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 vtkInteractorStyle * GetCurrentStyle ()
 
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 vtkObjectBase * NewInstanceInternal () const
 
 vtkInteractorStyleSwitch ()
 
 ~vtkInteractorStyleSwitch ()
 
void SetCurrentStyle ()
 

Protected Attributes

vtkInteractorStyleJoystickActorJoystickActor
 
vtkInteractorStyleJoystickCameraJoystickCamera
 
vtkInteractorStyleTrackballActorTrackballActor
 
vtkInteractorStyleTrackballCameraTrackballCamera
 
vtkInteractorStyle * CurrentStyle
 
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

typedef vtkInteractorStyleSwitchBase vtkInteractorStyleSwitch::Superclass

Definition at line 56 of file vtkInteractorStyleSwitch.h.

Constructor & Destructor Documentation

vtkInteractorStyleSwitch::vtkInteractorStyleSwitch ( )
protected
vtkInteractorStyleSwitch::~vtkInteractorStyleSwitch ( )
protected

Member Function Documentation

static vtkInteractorStyleSwitch* vtkInteractorStyleSwitch::New ( )
static
static int vtkInteractorStyleSwitch::IsTypeOf ( const char *  type)
static
virtual int vtkInteractorStyleSwitch::IsA ( const char *  type)
virtual

Reimplemented in vtkInteractorStyleTrackball.

static vtkInteractorStyleSwitch* vtkInteractorStyleSwitch::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkInteractorStyleSwitch::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented in vtkInteractorStyleTrackball.

vtkInteractorStyleSwitch* vtkInteractorStyleSwitch::NewInstance ( ) const
void vtkInteractorStyleSwitch::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
void vtkInteractorStyleSwitch::SetInteractor ( vtkRenderWindowInteractor *  iren)

The sub styles need the interactor too.

void vtkInteractorStyleSwitch::SetAutoAdjustCameraClippingRange ( int  value)

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

virtual vtkInteractorStyle* vtkInteractorStyleSwitch::GetCurrentStyle ( )
virtual

Set/Get current style

void vtkInteractorStyleSwitch::SetCurrentStyleToJoystickActor ( )

Set/Get current style

void vtkInteractorStyleSwitch::SetCurrentStyleToJoystickCamera ( )

Set/Get current style

void vtkInteractorStyleSwitch::SetCurrentStyleToTrackballActor ( )

Set/Get current style

void vtkInteractorStyleSwitch::SetCurrentStyleToTrackballCamera ( )

Set/Get current style

virtual void vtkInteractorStyleSwitch::OnChar ( )
virtual

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

virtual void vtkInteractorStyleSwitch::SetDefaultRenderer ( vtkRenderer *  )
virtual

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

virtual void vtkInteractorStyleSwitch::SetCurrentRenderer ( vtkRenderer *  )
virtual

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

void vtkInteractorStyleSwitch::SetCurrentStyle ( )
protected

Member Data Documentation

vtkInteractorStyleJoystickActor* vtkInteractorStyleSwitch::JoystickActor
protected

Definition at line 92 of file vtkInteractorStyleSwitch.h.

vtkInteractorStyleJoystickCamera* vtkInteractorStyleSwitch::JoystickCamera
protected

Definition at line 93 of file vtkInteractorStyleSwitch.h.

vtkInteractorStyleTrackballActor* vtkInteractorStyleSwitch::TrackballActor
protected

Definition at line 94 of file vtkInteractorStyleSwitch.h.

vtkInteractorStyleTrackballCamera* vtkInteractorStyleSwitch::TrackballCamera
protected

Definition at line 95 of file vtkInteractorStyleSwitch.h.

vtkInteractorStyle* vtkInteractorStyleSwitch::CurrentStyle
protected

Definition at line 96 of file vtkInteractorStyleSwitch.h.

int vtkInteractorStyleSwitch::JoystickOrTrackball
protected

Definition at line 98 of file vtkInteractorStyleSwitch.h.

int vtkInteractorStyleSwitch::CameraOrActor
protected

Definition at line 99 of file vtkInteractorStyleSwitch.h.


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