VTK  9.1.0
vtkButtonRepresentation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkButtonRepresentation.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
47#ifndef vtkButtonRepresentation_h
48#define vtkButtonRepresentation_h
49
50#include "vtkInteractionWidgetsModule.h" // For export macro
52
53class VTKINTERACTIONWIDGETS_EXPORT vtkButtonRepresentation : public vtkWidgetRepresentation
54{
55public:
57
61 void PrintSelf(ostream& os, vtkIndent indent) override;
63
65
68 vtkSetClampMacro(NumberOfStates, int, 1, VTK_INT_MAX);
70
72
75 vtkGetMacro(State, int);
77
79
85 virtual void SetState(int state);
86 virtual void NextState();
87 virtual void PreviousState();
89
91 {
92 Outside = 0,
93 Inside
94 };
95
97
106 {
109 HighlightSelecting
110 };
111 void Highlight(int) override;
112 vtkGetMacro(HighlightState, int);
114
118 void ShallowCopy(vtkProp* prop) override;
119
120protected:
123
124 // Values
126 int State;
128
129private:
131 void operator=(const vtkButtonRepresentation&) = delete;
132};
133
134#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.
_HighlightState
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.
~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:43
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:57
abstract class defines interface between the widget and widget representation classes
#define VTK_INT_MAX
Definition: vtkType.h:155