VTK  9.2.6
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 =========================================================================*/
50 #ifndef vtkButtonRepresentation_h
51 #define vtkButtonRepresentation_h
52 
53 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
54 #include "vtkInteractionWidgetsModule.h" // For export macro
56 
57 class VTKINTERACTIONWIDGETS_EXPORT vtkButtonRepresentation : public vtkWidgetRepresentation
58 {
59 public:
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 #if !defined(VTK_LEGACY_REMOVE)
100  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
102 #endif
103 
105 
114  {
117  HighlightSelecting
118  };
119 #if !defined(VTK_LEGACY_REMOVE)
120  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
122 #endif
123  void Highlight(int) override;
124  vtkGetMacro(HighlightState, int);
126 
130  void ShallowCopy(vtkProp* prop) override;
131 
132 protected:
135 
136  // Values
138  int State;
140 
141 private:
143  void operator=(const vtkButtonRepresentation&) = delete;
144 };
145 
146 #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:49
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:66
abstract class defines interface between the widget and widget representation classes
#define VTK_DEPRECATED_IN_9_2_0(reason)
#define VTK_INT_MAX
Definition: vtkType.h:155