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=========================================================================*/
38#ifndef vtkInteractorStyleSwitch_h
39#define vtkInteractorStyleSwitch_h
40
41#include "vtkInteractionStyleModule.h" // For export macro
43
44#define VTKIS_JOYSTICK 0
45#define VTKIS_TRACKBALL 1
46
47#define VTKIS_CAMERA 0
48#define VTKIS_ACTOR 1
49
55
56class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleSwitch : public vtkInteractorStyleSwitchBase
57{
58public:
61 void PrintSelf(ostream& os, vtkIndent indent) override;
62
67
73
75
78 vtkGetObjectMacro(CurrentStyle, vtkInteractorStyle);
85
90 void OnChar() override;
91
93
100
101protected:
104
106
113
117
118private:
120 void operator=(const vtkInteractorStyleSwitch&) = delete;
121};
122
123#endif
a simple class to control print indentation
Definition: vtkIndent.h:43
manipulate objects in the scene independently of one another
interactive manipulation of the camera
multitouch manipulation of the camera
class to swap between interactory styles
void SetAutoAdjustCameraClippingRange(vtkTypeBool value) override
We must override this method in order to pass the setting down to the underlying styles.
vtkInteractorStyleMultiTouchCamera * MultiTouchCamera
void SetCurrentStyleToJoystickActor()
Set/Get current style.
vtkInteractorStyleJoystickActor * JoystickActor
static vtkInteractorStyleSwitch * New()
vtkInteractorStyleJoystickCamera * JoystickCamera
void SetInteractor(vtkRenderWindowInteractor *iren) override
The sub styles need the interactor too.
void SetCurrentStyleToTrackballActor()
Set/Get current style.
void SetCurrentStyleToJoystickCamera()
Set/Get current style.
void OnChar() override
Only care about the char event, which is used to switch between different styles.
void SetCurrentRenderer(vtkRenderer *) override
Overridden from vtkInteractorObserver because the interactor styles used by this class must also be u...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetCurrentStyleToMultiTouchCamera()
Set/Get current style.
void SetCurrentStyleToTrackballCamera()
Set/Get current style.
vtkInteractorStyleTrackballActor * TrackballActor
void SetDefaultRenderer(vtkRenderer *) override
Overridden from vtkInteractorObserver because the interactor styles used by this class must also be u...
vtkInteractorStyleTrackballCamera * TrackballCamera
~vtkInteractorStyleSwitch() override
manipulate objects in the scene independent of each other
interactive manipulation of the camera
provide event-driven interface to the rendering window (defines trackball mode)
platform-independent render window interaction including picking and frame rate control.
abstract specification for renderers
Definition: vtkRenderer.h:73
@ value
Definition: vtkX3D.h:226
int vtkTypeBool
Definition: vtkABI.h:69