VTK  9.0.1
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 =========================================================================*/
38 #ifndef vtkButtonRepresentation_h
39 #define vtkButtonRepresentation_h
40 
41 #include "vtkInteractionWidgetsModule.h" // For export macro
43 
44 class VTKINTERACTIONWIDGETS_EXPORT vtkButtonRepresentation : public vtkWidgetRepresentation
45 {
46 public:
48 
52  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
59  vtkSetClampMacro(NumberOfStates, int, 1, VTK_INT_MAX);
61 
63 
66  vtkGetMacro(State, int);
68 
70 
76  virtual void SetState(int state);
77  virtual void NextState();
78  virtual void PreviousState();
80 
82  {
83  Outside = 0,
84  Inside
85  };
86 
88 
97  {
100  HighlightSelecting
101  };
102  void Highlight(int) override;
103  vtkGetMacro(HighlightState, int);
105 
109  void ShallowCopy(vtkProp* prop) override;
110 
111 protected:
114 
115  // Values
117  int State;
119 
120 private:
122  void operator=(const vtkButtonRepresentation&) = delete;
123 };
124 
125 #endif
vtkWidgetRepresentation.h
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkButtonRepresentation::HighlightHovering
@ HighlightHovering
Definition: vtkButtonRepresentation.h:99
vtkButtonRepresentation::State
int State
Definition: vtkButtonRepresentation.h:117
vtkButtonRepresentation::NumberOfStates
int NumberOfStates
Definition: vtkButtonRepresentation.h:116
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:60
vtkButtonRepresentation::ShallowCopy
void ShallowCopy(vtkProp *prop) override
Satisfy some of vtkProp's API.
vtkButtonRepresentation
abstract class defines the representation for a vtkButtonWidget
Definition: vtkButtonRepresentation.h:45
vtkButtonRepresentation::_InteractionState
_InteractionState
Definition: vtkButtonRepresentation.h:82
vtkButtonRepresentation::~vtkButtonRepresentation
~vtkButtonRepresentation() override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkButtonRepresentation::_HighlightState
_HighlightState
These methods control the appearance of the button as it is being interacted with.
Definition: vtkButtonRepresentation.h:97
vtkButtonRepresentation::PreviousState
virtual void PreviousState()
vtkButtonRepresentation::Highlight
void Highlight(int) override
vtkButtonRepresentation::HighlightNormal
@ HighlightNormal
Definition: vtkButtonRepresentation.h:98
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
vtkButtonRepresentation::NextState
virtual void NextState()
vtkButtonRepresentation::vtkButtonRepresentation
vtkButtonRepresentation()
vtkButtonRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkButtonRepresentation::HighlightState
int HighlightState
Definition: vtkButtonRepresentation.h:118
vtkButtonRepresentation::SetState
virtual void SetState(int state)
Manipulate the state.