VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
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 "
vtkWidgetRepresentation.h
"
44
45
46
class
VTK_WIDGETS_EXPORT
vtkButtonRepresentation
:
public
vtkWidgetRepresentation
47
{
48
public
:
50
51
vtkTypeMacro(
vtkButtonRepresentation
,
vtkWidgetRepresentation
);
52
void
PrintSelf
(ostream& os,
vtkIndent
indent);
54
56
57
vtkSetClampMacro(NumberOfStates,
int
,1,
VTK_LARGE_INTEGER
);
59
61
62
vtkGetMacro(State,
int
);
64
66
70
virtual
void
SetState(
int
state);
71
virtual
void
NextState();
72
virtual
void
PreviousState();
74
75
enum
_InteractionState
76
{
77
Outside=0,
78
Inside
79
};
80
//ETX
81
83
89
enum
_HighlightState
{HighlightNormal,HighlightHovering,HighlightSelecting};
90
virtual
void
Highlight
(
int
);
91
vtkGetMacro(HighlightState,
int
);
93
95
virtual
void
ShallowCopy
(
vtkProp
*prop);
96
97
protected
:
98
vtkButtonRepresentation
();
99
~
vtkButtonRepresentation
();
100
101
// Values
102
int
NumberOfStates
;
103
int
State
;
104
int
HighlightState
;
105
106
private
:
107
vtkButtonRepresentation
(
const
vtkButtonRepresentation
&);
//Not implemented
108
void
operator=(
const
vtkButtonRepresentation
&);
//Not implemented
109
};
110
111
#endif
Generated on Thu Mar 13 2014 08:10:39 for VTK by
1.8.1.2