VTK
vtkInteractorStyleSwitch.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleSwitch.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
35 #ifndef vtkInteractorStyleSwitch_h
36 #define vtkInteractorStyleSwitch_h
37 
38 #include "vtkInteractionStyleModule.h" // For export macro
40 
41 #define VTKIS_JOYSTICK 0
42 #define VTKIS_TRACKBALL 1
43 
44 #define VTKIS_CAMERA 0
45 #define VTKIS_ACTOR 1
46 
52 
53 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleSwitch
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
65 
71 
73 
76  vtkGetObjectMacro(CurrentStyle, vtkInteractorStyle);
83 
88  virtual void OnChar();
89 
91 
98 
99 protected:
102 
104 
111 
115 
116 private:
117  vtkInteractorStyleSwitch(const vtkInteractorStyleSwitch&) VTK_DELETE_FUNCTION;
118  void operator=(const vtkInteractorStyleSwitch&) VTK_DELETE_FUNCTION;
119 };
120 
121 #endif
vtkInteractorStyleSwitch::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkInteractorStyleSwitch::SetCurrentStyleToJoystickActor
void SetCurrentStyleToJoystickActor()
vtkInteractorStyleSwitch::CameraOrActor
int CameraOrActor
Definition: vtkInteractorStyleSwitch.h:113
vtkInteractorStyleSwitch::OnChar
virtual void OnChar()
Only care about the char event, which is used to switch between different styles.
vtkInteractorStyleSwitch::JoystickOrTrackball
int JoystickOrTrackball
Definition: vtkInteractorStyleSwitch.h:112
vtkInteractorStyleSwitch::JoystickActor
vtkInteractorStyleJoystickActor * JoystickActor
Definition: vtkInteractorStyleSwitch.h:105
vtkX3D::value
@ value
Definition: vtkX3D.h:220
vtkInteractorStyleSwitch::~vtkInteractorStyleSwitch
~vtkInteractorStyleSwitch()
vtkInteractorStyleSwitch::MultiTouchCamera
vtkInteractorStyleMultiTouchCamera * MultiTouchCamera
Definition: vtkInteractorStyleSwitch.h:109
vtkInteractorStyleSwitch::SetInteractor
void SetInteractor(vtkRenderWindowInteractor *iren)
The sub styles need the interactor too.
vtkInteractorStyleSwitch::SetDefaultRenderer
virtual void SetDefaultRenderer(vtkRenderer *)
Overridden from vtkInteractorObserver because the interactor styles used by this class must also be u...
vtkInteractorStyleSwitchBase.h
vtkInteractorStyleMultiTouchCamera
multitouch manipulation of the camera
Definition: vtkInteractorStyleMultiTouchCamera.h:36
vtkInteractorStyleSwitch::SetAutoAdjustCameraClippingRange
void SetAutoAdjustCameraClippingRange(int value)
We must override this method in order to pass the setting down to the underlying styles.
vtkInteractorStyleSwitch::vtkInteractorStyleSwitch
vtkInteractorStyleSwitch()
vtkInteractorStyleSwitch::TrackballCamera
vtkInteractorStyleTrackballCamera * TrackballCamera
Definition: vtkInteractorStyleSwitch.h:108
vtkInteractorStyleSwitch::New
static vtkInteractorStyleSwitch * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkInteractorStyleSwitch::SetCurrentStyleToMultiTouchCamera
void SetCurrentStyleToMultiTouchCamera()
vtkInteractorStyleSwitch::JoystickCamera
vtkInteractorStyleJoystickCamera * JoystickCamera
Definition: vtkInteractorStyleSwitch.h:106
vtkInteractorStyleSwitch::SetCurrentStyleToTrackballCamera
void SetCurrentStyleToTrackballCamera()
vtkInteractorStyleSwitch::SetCurrentStyleToTrackballActor
void SetCurrentStyleToTrackballActor()
vtkInteractorStyleSwitchBase
dummy interface class.
Definition: vtkInteractorStyleSwitchBase.h:36
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:79
vtkInteractorStyle
provide event-driven interface to the rendering window (defines trackball mode)
Definition: vtkInteractorStyle.h:134
vtkInteractorStyleSwitch::SetCurrentRenderer
virtual void SetCurrentRenderer(vtkRenderer *)
vtkInteractorStyleSwitch::SetCurrentStyleToJoystickCamera
void SetCurrentStyleToJoystickCamera()
vtkInteractorStyleJoystickCamera
interactive manipulation of the camera
Definition: vtkInteractorStyleJoystickCamera.h:43
vtkInteractorStyleTrackballCamera
interactive manipulation of the camera
Definition: vtkInteractorStyleTrackballCamera.h:48
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkInteractorStyleSwitch::CurrentStyle
vtkInteractorStyle * CurrentStyle
Definition: vtkInteractorStyleSwitch.h:110
vtkInteractorStyleSwitch
class to swap between interactory styles
Definition: vtkInteractorStyleSwitch.h:55
vtkInteractorStyleJoystickActor
manipulate objects in the scene independently of one another
Definition: vtkInteractorStyleJoystickActor.h:45
vtkInteractorStyleSwitch::MultiTouch
bool MultiTouch
Definition: vtkInteractorStyleSwitch.h:114
vtkInteractorStyleTrackballActor
manipulate objects in the scene independent of each other
Definition: vtkInteractorStyleTrackballActor.h:46
vtkInteractorStyleSwitch::TrackballActor
vtkInteractorStyleTrackballActor * TrackballActor
Definition: vtkInteractorStyleSwitch.h:107
vtkInteractorStyleSwitch::SetCurrentStyle
void SetCurrentStyle()