VTK
9.0.1
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
=========================================================================*/
41
#ifndef vtkButtonRepresentation_h
42
#define vtkButtonRepresentation_h
43
44
#include "vtkInteractionWidgetsModule.h"
// For export macro
45
#include "
vtkWidgetRepresentation.h
"
46
47
class
VTKINTERACTIONWIDGETS_EXPORT
vtkButtonRepresentation
:
public
vtkWidgetRepresentation
48
{
49
public
:
51
54
vtkTypeMacro(
vtkButtonRepresentation
,
vtkWidgetRepresentation
);
55
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
57
59
62
vtkSetClampMacro(NumberOfStates,
int
, 1,
VTK_INT_MAX
);
64
66
69
vtkGetMacro(State,
int
);
71
73
79
virtual
void
SetState(
int
state);
80
virtual
void
NextState();
81
virtual
void
PreviousState();
83
84
enum
_InteractionState
85
{
86
Outside = 0,
87
Inside
88
};
89
91
99
enum
_HighlightState
100
{
101
HighlightNormal
,
102
HighlightHovering
,
103
HighlightSelecting
104
};
105
void
Highlight
(
int
)
override
;
106
vtkGetMacro(HighlightState,
int
);
108
112
void
ShallowCopy
(
vtkProp
* prop)
override
;
113
114
protected
:
115
vtkButtonRepresentation
();
116
~
vtkButtonRepresentation
()
override
;
117
118
// Values
119
int
NumberOfStates
;
120
int
State
;
121
int
HighlightState
;
122
123
private
:
124
vtkButtonRepresentation
(
const
vtkButtonRepresentation
&) =
delete
;
125
void
operator=(
const
vtkButtonRepresentation
&) =
delete
;
126
};
127
128
#endif
vtkWidgetRepresentation.h
VTK_INT_MAX
#define VTK_INT_MAX
Definition:
vtkType.h:155
vtkWidgetRepresentation::ShallowCopy
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp.
vtkButtonRepresentation::HighlightHovering
@ HighlightHovering
Definition:
vtkButtonRepresentation.h:102
vtkButtonRepresentation::State
int State
Definition:
vtkButtonRepresentation.h:120
vtkButtonRepresentation::NumberOfStates
int NumberOfStates
Definition:
vtkButtonRepresentation.h:119
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition:
vtkWidgetRepresentation.h:59
vtkButtonRepresentation
abstract class defines the representation for a vtkButtonWidget
Definition:
vtkButtonRepresentation.h:47
vtkButtonRepresentation::_InteractionState
_InteractionState
Definition:
vtkButtonRepresentation.h:84
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkButtonRepresentation::_HighlightState
_HighlightState
These methods control the appearance of the button as it is being interacted with.
Definition:
vtkButtonRepresentation.h:99
vtkButtonRepresentation::HighlightNormal
@ HighlightNormal
Definition:
vtkButtonRepresentation.h:101
vtkProp
abstract superclass for all actors, volumes and annotations
Definition:
vtkProp.h:53
vtkButtonRepresentation::HighlightState
int HighlightState
Definition:
vtkButtonRepresentation.h:121
vtkWidgetRepresentation::Highlight
virtual void Highlight(int vtkNotUsed(highlightOn))
Definition:
vtkWidgetRepresentation.h:140
vtkWidgetRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Generated on Thu Jun 24 2021 15:17:26 for VTK by
1.8.17