VTK
9.5.2
Main Page
Related Pages
Topics
Namespaces
Classes
Files
Examples
File List
File Members
Interaction
Widgets
vtkButtonRepresentation.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
44
45
#ifndef vtkButtonRepresentation_h
46
#define vtkButtonRepresentation_h
47
48
#include "vtkInteractionWidgetsModule.h"
// For export macro
49
#include "
vtkWidgetRepresentation.h
"
50
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
51
52
VTK_ABI_NAMESPACE_BEGIN
53
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkButtonRepresentation
54
:
public
vtkWidgetRepresentation
55
{
56
public
:
58
61
vtkTypeMacro(
vtkButtonRepresentation
,
vtkWidgetRepresentation
);
62
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
64
66
69
vtkSetClampMacro(
NumberOfStates
,
int
, 1,
VTK_INT_MAX
);
71
73
76
vtkGetMacro(
State
,
int
);
78
80
86
virtual
void
SetState
(
int
state);
87
virtual
void
NextState
();
88
virtual
void
PreviousState
();
90
91
enum
InteractionStateType
92
{
93
Outside
= 0,
94
Inside
95
};
96
98
106
enum
HighlightStateType
107
{
108
HighlightNormal
,
109
HighlightHovering
,
110
HighlightSelecting
111
};
112
113
void
Highlight
(
int
)
override
;
114
vtkGetMacro(
HighlightState
,
int
);
116
120
void
ShallowCopy
(
vtkProp
* prop)
override
;
121
122
protected
:
123
vtkButtonRepresentation
();
124
~vtkButtonRepresentation
()
override
;
125
126
// Values
127
int
NumberOfStates
;
128
int
State
;
129
int
HighlightState
;
130
131
private
:
132
vtkButtonRepresentation
(
const
vtkButtonRepresentation
&) =
delete
;
133
void
operator=(
const
vtkButtonRepresentation
&) =
delete
;
134
};
135
136
VTK_ABI_NAMESPACE_END
137
#endif
vtkButtonRepresentation::Highlight
void Highlight(int) override
These methods control the appearance of the button as it is being interacted with.
vtkButtonRepresentation::vtkButtonRepresentation
vtkButtonRepresentation()
vtkButtonRepresentation::NumberOfStates
int NumberOfStates
Definition
vtkButtonRepresentation.h:127
vtkButtonRepresentation::State
int State
Definition
vtkButtonRepresentation.h:128
vtkButtonRepresentation::ShallowCopy
void ShallowCopy(vtkProp *prop) override
Satisfy some of vtkProp's API.
vtkButtonRepresentation::SetState
virtual void SetState(int state)
Manipulate the state.
vtkButtonRepresentation::HighlightStateType
HighlightStateType
These methods control the appearance of the button as it is being interacted with.
Definition
vtkButtonRepresentation.h:107
vtkButtonRepresentation::HighlightNormal
@ HighlightNormal
Definition
vtkButtonRepresentation.h:108
vtkButtonRepresentation::HighlightSelecting
@ HighlightSelecting
Definition
vtkButtonRepresentation.h:110
vtkButtonRepresentation::HighlightHovering
@ HighlightHovering
Definition
vtkButtonRepresentation.h:109
vtkButtonRepresentation::InteractionStateType
InteractionStateType
Definition
vtkButtonRepresentation.h:92
vtkButtonRepresentation::Inside
@ Inside
Definition
vtkButtonRepresentation.h:94
vtkButtonRepresentation::Outside
@ Outside
Definition
vtkButtonRepresentation.h:93
vtkButtonRepresentation::~vtkButtonRepresentation
~vtkButtonRepresentation() override
vtkButtonRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
vtkButtonRepresentation::HighlightState
int HighlightState
Definition
vtkButtonRepresentation.h:129
vtkButtonRepresentation::NextState
virtual void NextState()
Manipulate the state.
vtkButtonRepresentation::PreviousState
virtual void PreviousState()
Manipulate the state.
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkProp::vtkProp
vtkProp()
vtkWidgetRepresentation::vtkWidgetRepresentation
vtkWidgetRepresentation()
VTK_INT_MAX
#define VTK_INT_MAX
Definition
vtkType.h:161
vtkWidgetRepresentation.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:53
Generated on
for VTK by
1.15.0