VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
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
45
class
vtkInteractorStyleJoystickActor
;
46
class
vtkInteractorStyleJoystickCamera
;
47
class
vtkInteractorStyleTrackballActor
;
48
class
vtkInteractorStyleTrackballCamera
;
49
50
class
VTK_RENDERING_EXPORT
vtkInteractorStyleSwitch
:
public
vtkInteractorStyle
51
{
52
public
:
53
static
vtkInteractorStyleSwitch
*
New
();
54
vtkTypeMacro(
vtkInteractorStyleSwitch
,
vtkInteractorStyle
);
55
void
PrintSelf
(ostream& os,
vtkIndent
indent);
56
58
void
SetInteractor
(
vtkRenderWindowInteractor
*iren);
59
62
void
SetAutoAdjustCameraClippingRange
(
int
value
);
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
:
85
vtkInteractorStyleSwitch
();
86
~
vtkInteractorStyleSwitch
();
87
88
void
SetCurrentStyle();
89
90
vtkInteractorStyleJoystickActor
*
JoystickActor
;
91
vtkInteractorStyleJoystickCamera
*
JoystickCamera
;
92
vtkInteractorStyleTrackballActor
*
TrackballActor
;
93
vtkInteractorStyleTrackballCamera
*
TrackballCamera
;
94
vtkInteractorStyle
*
CurrentStyle
;
95
96
int
JoystickOrTrackball
;
97
int
CameraOrActor
;
98
99
private
:
100
vtkInteractorStyleSwitch
(
const
vtkInteractorStyleSwitch
&);
// Not implemented.
101
void
operator=(
const
vtkInteractorStyleSwitch
&);
// Not implemented.
102
};
103
104
#endif
Generated on Wed May 30 2012 13:22:22 for VTK by
1.8.1