VTK
9.5.20251126
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
47
48
#ifndef vtkButtonRepresentation_h
49
#define vtkButtonRepresentation_h
50
51
#include "vtkInteractionWidgetsModule.h"
// For export macro
52
#include "
vtkWidgetRepresentation.h
"
53
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
54
55
VTK_ABI_NAMESPACE_BEGIN
56
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkButtonRepresentation
57
:
public
vtkWidgetRepresentation
58
{
59
public
:
61
64
vtkTypeMacro(
vtkButtonRepresentation
,
vtkWidgetRepresentation
);
65
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
67
69
72
vtkSetClampMacro(
NumberOfStates
,
int
, 1,
VTK_INT_MAX
);
74
76
79
vtkGetMacro(
State
,
int
);
81
83
89
virtual
void
SetState
(
int
state);
90
virtual
void
NextState
();
91
virtual
void
PreviousState
();
93
94
enum
InteractionStateType
95
{
96
Outside
= 0,
97
Inside
98
};
99
101
109
enum
HighlightStateType
110
{
111
HighlightNormal
,
112
HighlightHovering
,
113
HighlightSelecting
114
};
115
116
void
Highlight
(
int
)
override
;
117
vtkGetMacro(
HighlightState
,
int
);
119
123
void
ShallowCopy
(
vtkProp
* prop)
override
;
124
125
protected
:
126
vtkButtonRepresentation
();
127
~vtkButtonRepresentation
()
override
;
128
129
// Values
130
int
NumberOfStates
;
131
int
State
;
132
int
HighlightState
;
133
134
private
:
135
vtkButtonRepresentation
(
const
vtkButtonRepresentation
&) =
delete
;
136
void
operator=(
const
vtkButtonRepresentation
&) =
delete
;
137
};
138
139
VTK_ABI_NAMESPACE_END
140
#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:130
vtkButtonRepresentation::State
int State
Definition
vtkButtonRepresentation.h:131
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:110
vtkButtonRepresentation::HighlightNormal
@ HighlightNormal
Definition
vtkButtonRepresentation.h:111
vtkButtonRepresentation::HighlightSelecting
@ HighlightSelecting
Definition
vtkButtonRepresentation.h:113
vtkButtonRepresentation::HighlightHovering
@ HighlightHovering
Definition
vtkButtonRepresentation.h:112
vtkButtonRepresentation::InteractionStateType
InteractionStateType
Definition
vtkButtonRepresentation.h:95
vtkButtonRepresentation::Inside
@ Inside
Definition
vtkButtonRepresentation.h:97
vtkButtonRepresentation::Outside
@ Outside
Definition
vtkButtonRepresentation.h:96
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:132
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:196
vtkWidgetRepresentation.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:60
Generated on Wed Nov 26 2025 07:47:51 for VTK by
1.13.2