VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Widgets
vtkProp3DButtonRepresentation.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkProp3DButtonRepresentation.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
=========================================================================*/
42
#ifndef __vtkProp3DButtonRepresentation_h
43
#define __vtkProp3DButtonRepresentation_h
44
45
#include "
vtkButtonRepresentation.h
"
46
47
class
vtkPropPicker
;
48
class
vtkProp3D
;
49
class
vtkProp3DFollower
;
50
class
vtkPropArray;
//PIMPLd
51
52
class
VTK_WIDGETS_EXPORT
vtkProp3DButtonRepresentation
:
public
vtkButtonRepresentation
53
{
54
public
:
56
static
vtkProp3DButtonRepresentation
*
New
();
57
59
60
vtkTypeMacro(
vtkProp3DButtonRepresentation
,
vtkButtonRepresentation
);
61
void
PrintSelf
(ostream& os,
vtkIndent
indent);
63
65
67
void
SetButtonProp(
int
i,
vtkProp3D
*prop);
68
vtkProp3D
*GetButtonProp(
int
i);
70
72
74
vtkSetMacro(FollowCamera,
int
);
75
vtkGetMacro(FollowCamera,
int
);
76
vtkBooleanMacro(FollowCamera,
int
);
78
80
virtual
void
SetState
(
int
state);
81
83
85
virtual
int
ComputeInteractionState
(
int
X,
int
Y,
int
modify=0);
86
virtual
void
BuildRepresentation
();
88
91
virtual
void
PlaceWidget
(
double
bounds[6]);
92
94
95
virtual
void
ShallowCopy
(
vtkProp
*prop);
96
virtual
double
*
GetBounds
();
97
virtual
void
GetActors
(
vtkPropCollection
*pc);
98
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*);
99
virtual
int
RenderOpaqueGeometry
(
vtkViewport
*);
100
virtual
int
RenderVolumetricGeometry
(
vtkViewport
*);
101
virtual
int
RenderTranslucentPolygonalGeometry
(
vtkViewport
*);
102
virtual
int
HasTranslucentPolygonalGeometry
();
104
105
protected
:
106
vtkProp3DButtonRepresentation
();
107
~
vtkProp3DButtonRepresentation
();
108
109
// The current vtkProp3D used to represent the button
110
vtkProp3D
*
CurrentProp
;
111
112
// Follow the camera if requested
113
vtkProp3DFollower
*
Follower
;
114
int
FollowCamera
;
115
116
// Keep track of the props associated with the N
117
// states of the button. This is a PIMPLd stl map.
118
vtkPropArray *
PropArray
;
119
120
// For picking the button
121
vtkPropPicker
*
Picker
;
122
123
private
:
124
vtkProp3DButtonRepresentation
(
const
vtkProp3DButtonRepresentation
&);
//Not implemented
125
void
operator=(
const
vtkProp3DButtonRepresentation
&);
//Not implemented
126
};
127
128
#endif
Generated on Sun Sep 9 2012 13:03:50 for VTK by
1.8.1.2