VTK  9.1.0
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 =========================================================================*/
98 #ifndef vtkInteractorStyleSwitch_h
99 #define vtkInteractorStyleSwitch_h
100 
101 #include "vtkInteractionStyleModule.h" // For export macro
103 
104 #define VTKIS_JOYSTICK 0
105 #define VTKIS_TRACKBALL 1
106 
107 #define VTKIS_CAMERA 0
108 #define VTKIS_ACTOR 1
109 
115 
116 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleSwitch : public vtkInteractorStyleSwitchBase
117 {
118 public:
121  void PrintSelf(ostream& os, vtkIndent indent) override;
122 
127 
133 
135 
138  vtkGetObjectMacro(CurrentStyle, vtkInteractorStyle);
145 
150  void OnChar() override;
151 
153 
160 
161 protected:
164 
166 
173 
177 
178 private:
180  void operator=(const vtkInteractorStyleSwitch&) = delete;
181 };
182 
183 #endif
vtkInteractorStyleSwitch::SetCurrentStyleToJoystickActor
void SetCurrentStyleToJoystickActor()
Set/Get current style.
vtkInteractorStyleSwitch::OnChar
void OnChar() override
Only care about the char event, which is used to switch between different styles.
vtkInteractorStyleSwitch::CameraOrActor
int CameraOrActor
Definition: vtkInteractorStyleSwitch.h:175
vtkInteractorStyleSwitch::JoystickOrTrackball
int JoystickOrTrackball
Definition: vtkInteractorStyleSwitch.h:174
vtkInteractorStyleSwitch::JoystickActor
vtkInteractorStyleJoystickActor * JoystickActor
Definition: vtkInteractorStyleSwitch.h:167
vtkX3D::value
@ value
Definition: vtkX3D.h:226
vtkInteractorStyleSwitch::SetInteractor
void SetInteractor(vtkRenderWindowInteractor *iren) override
The sub styles need the interactor too.
vtkInteractorStyleSwitch::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInteractorStyleSwitch::MultiTouchCamera
vtkInteractorStyleMultiTouchCamera * MultiTouchCamera
Definition: vtkInteractorStyleSwitch.h:171
vtkInteractorStyleSwitchBase.h
vtkInteractorStyleMultiTouchCamera
multitouch manipulation of the camera
Definition: vtkInteractorStyleMultiTouchCamera.h:37
vtkInteractorStyleSwitch::vtkInteractorStyleSwitch
vtkInteractorStyleSwitch()
vtkInteractorStyleSwitch::TrackballCamera
vtkInteractorStyleTrackballCamera * TrackballCamera
Definition: vtkInteractorStyleSwitch.h:170
vtkInteractorStyleSwitch::New
static vtkInteractorStyleSwitch * New()
vtkInteractorStyleSwitch::SetDefaultRenderer
void SetDefaultRenderer(vtkRenderer *) override
Overridden from vtkInteractorObserver because the interactor styles used by this class must also be u...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkInteractorStyleSwitch::SetCurrentStyleToMultiTouchCamera
void SetCurrentStyleToMultiTouchCamera()
Set/Get current style.
vtkInteractorStyleSwitch::JoystickCamera
vtkInteractorStyleJoystickCamera * JoystickCamera
Definition: vtkInteractorStyleSwitch.h:168
vtkInteractorStyleSwitch::SetAutoAdjustCameraClippingRange
void SetAutoAdjustCameraClippingRange(vtkTypeBool value) override
We must override this method in order to pass the setting down to the underlying styles.
vtkInteractorStyleSwitch::SetCurrentStyleToTrackballCamera
void SetCurrentStyleToTrackballCamera()
Set/Get current style.
vtkInteractorStyleSwitch::SetCurrentStyleToTrackballActor
void SetCurrentStyleToTrackballActor()
Set/Get current style.
vtkInteractorStyleSwitchBase
dummy interface class.
Definition: vtkInteractorStyleSwitchBase.h:35
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:192
vtkInteractorStyle
provide event-driven interface to the rendering window (defines trackball mode)
Definition: vtkInteractorStyle.h:207
vtkInteractorStyleSwitch::SetCurrentStyleToJoystickCamera
void SetCurrentStyleToJoystickCamera()
Set/Get current style.
vtkInteractorStyleJoystickCamera
interactive manipulation of the camera
Definition: vtkInteractorStyleJoystickCamera.h:46
vtkInteractorStyleTrackballCamera
interactive manipulation of the camera
Definition: vtkInteractorStyleTrackballCamera.h:160
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:182
vtkInteractorStyleSwitch::CurrentStyle
vtkInteractorStyle * CurrentStyle
Definition: vtkInteractorStyleSwitch.h:172
vtkInteractorStyleSwitch
class to swap between interactory styles
Definition: vtkInteractorStyleSwitch.h:117
vtkInteractorStyleJoystickActor
manipulate objects in the scene independently of one another
Definition: vtkInteractorStyleJoystickActor.h:48
vtkInteractorStyleSwitch::SetCurrentRenderer
void SetCurrentRenderer(vtkRenderer *) override
Overridden from vtkInteractorObserver because the interactor styles used by this class must also be u...
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkInteractorStyleSwitch::MultiTouch
bool MultiTouch
Definition: vtkInteractorStyleSwitch.h:176
vtkInteractorStyleSwitch::~vtkInteractorStyleSwitch
~vtkInteractorStyleSwitch() override
vtkInteractorStyleTrackballActor
manipulate objects in the scene independent of each other
Definition: vtkInteractorStyleTrackballActor.h:158
vtkInteractorStyleSwitch::TrackballActor
vtkInteractorStyleTrackballActor * TrackballActor
Definition: vtkInteractorStyleSwitch.h:169
vtkInteractorStyleSwitch::SetCurrentStyle
void SetCurrentStyle()