VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Interaction
Widgets
vtkButtonRepresentation.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkButtonRepresentation.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
=========================================================================*/
40
#ifndef __vtkButtonRepresentation_h
41
#define __vtkButtonRepresentation_h
42
43
#include "vtkInteractionWidgetsModule.h"
// For export macro
44
#include "
vtkWidgetRepresentation.h
"
45
46
47
class
VTKINTERACTIONWIDGETS_EXPORT
vtkButtonRepresentation
:
public
vtkWidgetRepresentation
48
{
49
public
:
51
52
vtkTypeMacro(
vtkButtonRepresentation
,
vtkWidgetRepresentation
);
53
void
PrintSelf
(ostream& os,
vtkIndent
indent);
55
57
58
vtkSetClampMacro(NumberOfStates,
int
,1,
VTK_LARGE_INTEGER
);
60
62
63
vtkGetMacro(State,
int
);
65
67
71
virtual
void
SetState(
int
state);
72
virtual
void
NextState();
73
virtual
void
PreviousState();
75
76
enum
_InteractionState
77
{
78
Outside=0,
79
Inside
80
};
81
//ETX
82
84
90
enum
_HighlightState
{HighlightNormal,HighlightHovering,HighlightSelecting};
91
virtual
void
Highlight
(
int
);
92
vtkGetMacro(HighlightState,
int
);
94
96
virtual
void
ShallowCopy
(
vtkProp
*prop);
97
98
protected
:
99
vtkButtonRepresentation
();
100
~
vtkButtonRepresentation
();
101
102
// Values
103
int
NumberOfStates
;
104
int
State
;
105
int
HighlightState
;
106
107
private
:
108
vtkButtonRepresentation
(
const
vtkButtonRepresentation
&);
//Not implemented
109
void
operator=(
const
vtkButtonRepresentation
&);
//Not implemented
110
};
111
112
#endif
Generated on Thu May 24 2012 22:22:27 for VTK by
1.8.1