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 "vtkInteractorStyle.h"
38 
39 #define VTKIS_JOYSTICK 0
40 #define VTKIS_TRACKBALL 1
41 
42 #define VTKIS_CAMERA 0
43 #define VTKIS_ACTOR 1
44 
49 
51 {
52 public:
53  static vtkInteractorStyleSwitch *New();
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
59 
63 
65 
66  vtkGetObjectMacro(CurrentStyle, vtkInteractorStyle);
67  void SetCurrentStyleToJoystickActor();
68  void SetCurrentStyleToJoystickCamera();
69  void SetCurrentStyleToTrackballActor();
70  void SetCurrentStyleToTrackballCamera();
72 
75  virtual void OnChar();
76 
78 
80  virtual void SetDefaultRenderer(vtkRenderer*);
81  virtual void SetCurrentRenderer(vtkRenderer*);
83 
84 protected:
87 
88  void SetCurrentStyle();
89 
95 
98 
99 private:
100  vtkInteractorStyleSwitch(const vtkInteractorStyleSwitch&); // Not implemented.
101  void operator=(const vtkInteractorStyleSwitch&); // Not implemented.
102 };
103 
104 #endif
virtual void SetInteractor(vtkRenderWindowInteractor *interactor)
interactive manipulation of the camera
virtual void SetAutoAdjustCameraClippingRange(int)
static vtkInteractorStyle * New()
abstract specification for renderers
Definition: vtkRenderer.h:69
vtkInteractorStyleTrackballCamera * TrackballCamera
platform-independent render window interaction including picking and frame rate control.
void PrintSelf(ostream &os, vtkIndent indent)
vtkInteractorStyleJoystickCamera * JoystickCamera
virtual void SetDefaultRenderer(vtkRenderer *)
a simple class to control print indentation
Definition: vtkIndent.h:37
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 *)
#define VTK_RENDERING_EXPORT
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