VTK
9.4.20251007
Main Page
Related Pages
Topics
Namespaces
Classes
Files
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
28
29
#ifndef vtkButtonRepresentation_h
30
#define vtkButtonRepresentation_h
31
32
#include "vtkInteractionWidgetsModule.h"
// For export macro
33
#include "
vtkWidgetRepresentation.h
"
34
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
35
36
VTK_ABI_NAMESPACE_BEGIN
37
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkButtonRepresentation
38
:
public
vtkWidgetRepresentation
39
{
40
public
:
42
45
vtkTypeMacro(
vtkButtonRepresentation
,
vtkWidgetRepresentation
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
48
50
53
vtkSetClampMacro(
NumberOfStates
,
int
, 1,
VTK_INT_MAX
);
55
57
60
vtkGetMacro(
State
,
int
);
62
64
70
virtual
void
SetState
(
int
state);
71
virtual
void
NextState
();
72
virtual
void
PreviousState
();
74
75
enum
InteractionStateType
76
{
77
Outside
= 0,
78
Inside
79
};
80
82
90
enum
HighlightStateType
91
{
92
HighlightNormal
,
93
HighlightHovering
,
94
HighlightSelecting
95
};
96
97
void
Highlight
(
int
)
override
;
98
vtkGetMacro(
HighlightState
,
int
);
100
104
void
ShallowCopy
(
vtkProp
* prop)
override
;
105
106
protected
:
107
vtkButtonRepresentation
();
108
~vtkButtonRepresentation
()
override
;
109
110
// Values
111
int
NumberOfStates
;
112
int
State
;
113
int
HighlightState
;
114
115
private
:
116
vtkButtonRepresentation
(
const
vtkButtonRepresentation
&) =
delete
;
117
void
operator=(
const
vtkButtonRepresentation
&) =
delete
;
118
};
119
120
VTK_ABI_NAMESPACE_END
121
#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:111
vtkButtonRepresentation::State
int State
Definition
vtkButtonRepresentation.h:112
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:91
vtkButtonRepresentation::HighlightNormal
@ HighlightNormal
Definition
vtkButtonRepresentation.h:92
vtkButtonRepresentation::HighlightSelecting
@ HighlightSelecting
Definition
vtkButtonRepresentation.h:94
vtkButtonRepresentation::HighlightHovering
@ HighlightHovering
Definition
vtkButtonRepresentation.h:93
vtkButtonRepresentation::InteractionStateType
InteractionStateType
Definition
vtkButtonRepresentation.h:76
vtkButtonRepresentation::Inside
@ Inside
Definition
vtkButtonRepresentation.h:78
vtkButtonRepresentation::Outside
@ Outside
Definition
vtkButtonRepresentation.h:77
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:113
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:29
vtkProp::vtkProp
vtkProp()
vtkWidgetRepresentation::vtkWidgetRepresentation
vtkWidgetRepresentation()
VTK_INT_MAX
#define VTK_INT_MAX
Definition
vtkType.h:144
vtkWidgetRepresentation.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:53
Generated on
for VTK by
1.14.0