VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Interaction
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 "vtkInteractionWidgetsModule.h"
// For export macro
46
#include "
vtkButtonRepresentation.h
"
47
48
class
vtkPropPicker
;
49
class
vtkProp3D
;
50
class
vtkProp3DFollower
;
51
class
vtkPropArray;
//PIMPLd
52
53
class
VTKINTERACTIONWIDGETS_EXPORT
vtkProp3DButtonRepresentation
:
public
vtkButtonRepresentation
54
{
55
public
:
57
static
vtkProp3DButtonRepresentation
*
New
();
58
60
61
vtkTypeMacro(
vtkProp3DButtonRepresentation
,
vtkButtonRepresentation
);
62
void
PrintSelf
(ostream& os,
vtkIndent
indent);
64
66
68
void
SetButtonProp(
int
i,
vtkProp3D
*prop);
69
vtkProp3D
*GetButtonProp(
int
i);
71
73
75
vtkSetMacro(FollowCamera,
int
);
76
vtkGetMacro(FollowCamera,
int
);
77
vtkBooleanMacro(FollowCamera,
int
);
79
81
virtual
void
SetState
(
int
state);
82
84
86
virtual
int
ComputeInteractionState
(
int
X,
int
Y,
int
modify=0);
87
virtual
void
BuildRepresentation
();
89
92
virtual
void
PlaceWidget
(
double
bounds[6]);
93
95
96
virtual
void
ShallowCopy
(
vtkProp
*prop);
97
virtual
double
*
GetBounds
();
98
virtual
void
GetActors
(
vtkPropCollection
*pc);
99
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*);
100
virtual
int
RenderOpaqueGeometry
(
vtkViewport
*);
101
virtual
int
RenderVolumetricGeometry
(
vtkViewport
*);
102
virtual
int
RenderTranslucentPolygonalGeometry
(
vtkViewport
*);
103
virtual
int
HasTranslucentPolygonalGeometry
();
105
106
protected
:
107
vtkProp3DButtonRepresentation
();
108
~
vtkProp3DButtonRepresentation
();
109
110
// The current vtkProp3D used to represent the button
111
vtkProp3D
*
CurrentProp
;
112
113
// Follow the camera if requested
114
vtkProp3DFollower
*
Follower
;
115
int
FollowCamera
;
116
117
// Keep track of the props associated with the N
118
// states of the button. This is a PIMPLd stl map.
119
vtkPropArray *
PropArray
;
120
121
// For picking the button
122
vtkPropPicker
*
Picker
;
123
124
private
:
125
vtkProp3DButtonRepresentation
(
const
vtkProp3DButtonRepresentation
&);
//Not implemented
126
void
operator=(
const
vtkProp3DButtonRepresentation
&);
//Not implemented
127
};
128
129
#endif
Generated on Thu May 24 2012 22:22:28 for VTK by
1.8.1