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
25
26
#ifndef vtkButtonRepresentation_h
27
#define vtkButtonRepresentation_h
28
29
#include "vtkInteractionWidgetsModule.h"
// For export macro
30
#include "
vtkWidgetRepresentation.h
"
31
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
32
33
VTK_ABI_NAMESPACE_BEGIN
34
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkButtonRepresentation
35
:
public
vtkWidgetRepresentation
36
{
37
public
:
39
42
vtkTypeMacro(
vtkButtonRepresentation
,
vtkWidgetRepresentation
);
43
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
45
47
50
vtkSetClampMacro(
NumberOfStates
,
int
, 1,
VTK_INT_MAX
);
52
54
57
vtkGetMacro(
State
,
int
);
59
61
67
virtual
void
SetState
(
int
state);
68
virtual
void
NextState
();
69
virtual
void
PreviousState
();
71
72
enum
InteractionStateType
73
{
74
Outside
= 0,
75
Inside
76
};
77
79
87
enum
HighlightStateType
88
{
89
HighlightNormal
,
90
HighlightHovering
,
91
HighlightSelecting
92
};
93
94
void
Highlight
(
int
)
override
;
95
vtkGetMacro(
HighlightState
,
int
);
97
101
void
ShallowCopy
(
vtkProp
* prop)
override
;
102
103
protected
:
104
vtkButtonRepresentation
();
105
~vtkButtonRepresentation
()
override
;
106
107
// Values
108
int
NumberOfStates
;
109
int
State
;
110
int
HighlightState
;
111
112
private
:
113
vtkButtonRepresentation
(
const
vtkButtonRepresentation
&) =
delete
;
114
void
operator=(
const
vtkButtonRepresentation
&) =
delete
;
115
};
116
117
VTK_ABI_NAMESPACE_END
118
#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:108
vtkButtonRepresentation::State
int State
Definition
vtkButtonRepresentation.h:109
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:88
vtkButtonRepresentation::HighlightNormal
@ HighlightNormal
Definition
vtkButtonRepresentation.h:89
vtkButtonRepresentation::HighlightSelecting
@ HighlightSelecting
Definition
vtkButtonRepresentation.h:91
vtkButtonRepresentation::HighlightHovering
@ HighlightHovering
Definition
vtkButtonRepresentation.h:90
vtkButtonRepresentation::InteractionStateType
InteractionStateType
Definition
vtkButtonRepresentation.h:73
vtkButtonRepresentation::Inside
@ Inside
Definition
vtkButtonRepresentation.h:75
vtkButtonRepresentation::Outside
@ Outside
Definition
vtkButtonRepresentation.h:74
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:110
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:161
vtkWidgetRepresentation.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:53
Generated on
for VTK by
1.15.0