VTK  9.5.2
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
50#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
51
52VTK_ABI_NAMESPACE_BEGIN
53class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkButtonRepresentation
55{
56public:
58
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
96
98
112
113 void Highlight(int) override;
114 vtkGetMacro(HighlightState, int);
116
120 void ShallowCopy(vtkProp* prop) override;
121
122protected:
125
126 // Values
128 int State;
130
131private:
133 void operator=(const vtkButtonRepresentation&) = delete;
134};
135
136VTK_ABI_NAMESPACE_END
137#endif
void Highlight(int) override
These methods control the appearance of the button as it is being interacted with.
void ShallowCopy(vtkProp *prop) override
Satisfy some of vtkProp's API.
virtual void SetState(int state)
Manipulate the state.
HighlightStateType
These methods control the appearance of the button as it is being interacted with.
~vtkButtonRepresentation() override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
virtual void NextState()
Manipulate the state.
virtual void PreviousState()
Manipulate the state.
a simple class to control print indentation
Definition vtkIndent.h:108
#define VTK_INT_MAX
Definition vtkType.h:161
#define VTK_MARSHALAUTO