VTK  9.5.20250816
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
48#ifndef vtkButtonRepresentation_h
49#define vtkButtonRepresentation_h
50
51#include "vtkInteractionWidgetsModule.h" // For export macro
53#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
54
55VTK_ABI_NAMESPACE_BEGIN
56class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkButtonRepresentation
58{
59public:
61
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
95 {
96 Outside = 0,
97 Inside
98 };
99
101
110 {
113 HighlightSelecting
114 };
115
116 void Highlight(int) override;
117 vtkGetMacro(HighlightState, int);
119
123 void ShallowCopy(vtkProp* prop) override;
124
125protected:
128
129 // Values
131 int State;
133
134private:
136 void operator=(const vtkButtonRepresentation&) = delete;
137};
138
139VTK_ABI_NAMESPACE_END
140#endif
abstract class defines the representation for a vtkButtonWidget
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
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:69
abstract class defines interface between the widget and widget representation classes
#define VTK_INT_MAX
Definition vtkType.h:161
#define VTK_MARSHALAUTO