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 =========================================================================*/
34 #ifndef vtkInteractorStyleSwitch_h
35 #define vtkInteractorStyleSwitch_h
36 
37 #include "vtkInteractionStyleModule.h" // For export macro
39 
40 #define VTKIS_JOYSTICK 0
41 #define VTKIS_TRACKBALL 1
42 
43 #define VTKIS_CAMERA 0
44 #define VTKIS_ACTOR 1
45 
51 
54 {
55 public:
56  static vtkInteractorStyleSwitch *New();
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
62 
66 
68 
69  vtkGetObjectMacro(CurrentStyle, vtkInteractorStyle);
70  void SetCurrentStyleToJoystickActor();
71  void SetCurrentStyleToJoystickCamera();
72  void SetCurrentStyleToTrackballActor();
73  void SetCurrentStyleToTrackballCamera();
74  void SetCurrentStyleToMultiTouchCamera();
76 
79  virtual void OnChar();
80 
82 
84  virtual void SetDefaultRenderer(vtkRenderer*);
85  virtual void SetCurrentRenderer(vtkRenderer*);
87 
88 protected:
91 
92  void SetCurrentStyle();
93 
100 
104 
105 private:
106  vtkInteractorStyleSwitch(const vtkInteractorStyleSwitch&); // Not implemented.
107  void operator=(const vtkInteractorStyleSwitch&); // Not implemented.
108 };
109 
110 #endif
virtual void SetInteractor(vtkRenderWindowInteractor *interactor)
interactive manipulation of the camera
virtual void SetAutoAdjustCameraClippingRange(int)
#define VTKINTERACTIONSTYLE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
abstract specification for renderers
Definition: vtkRenderer.h:63
vtkInteractorStyleMultiTouchCamera * MultiTouchCamera
interactive manipulation of the camera
vtkInteractorStyleTrackballCamera * TrackballCamera
platform-independent render window interaction including picking and frame rate control.
vtkInteractorStyleJoystickCamera * JoystickCamera
static vtkInteractorStyleSwitchBase * New()
virtual void SetDefaultRenderer(vtkRenderer *)
a simple class to control print indentation
Definition: vtkIndent.h:38
manipulate objects in the scene independently of one another
vtkInteractorStyleTrackballActor * TrackballActor
manipulate objects in the scene independent of each other
vtkInteractorStyle * CurrentStyle
virtual void SetCurrentRenderer(vtkRenderer *)
virtual void OnChar()
vtkInteractorStyleJoystickActor * JoystickActor
provide event-driven interface to the rendering window (defines trackball mode)
interactive manipulation of the camera
class to swap between interactory styles