VTK
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 
45 class VTKINTERACTIONWIDGETS_EXPORT vtkButtonRepresentation : public vtkWidgetRepresentation
46 {
47 public:
49 
53  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
60  vtkSetClampMacro(NumberOfStates,int,1,VTK_INT_MAX);
62 
64 
67  vtkGetMacro(State,int);
69 
71 
77  virtual void SetState(int state);
78  virtual void NextState();
79  virtual void PreviousState();
81 
83  {
84  Outside=0,
85  Inside
86  };
87 
89 
97  enum _HighlightState {HighlightNormal,HighlightHovering,HighlightSelecting};
98  virtual void Highlight(int);
99  vtkGetMacro(HighlightState,int);
101 
105  virtual void ShallowCopy(vtkProp *prop);
106 
107 protected:
110 
111  // Values
113  int State;
115 
116 private:
117  vtkButtonRepresentation(const vtkButtonRepresentation&) VTK_DELETE_FUNCTION;
118  void operator=(const vtkButtonRepresentation&) VTK_DELETE_FUNCTION;
119 };
120 
121 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
virtual void ShallowCopy(vtkProp *prop)
Shallow copy of this vtkProp.
#define VTK_INT_MAX
Definition: vtkType.h:153
abstract class defines interface between the widget and widget representation classes ...
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract class defines the representation for a vtkButtonWidget
_HighlightState
These methods control the appearance of the button as it is being interacted with.
virtual void Highlight(int vtkNotUsed(highlightOn))
void PrintSelf(ostream &os, vtkIndent indent)
Standard methods for instances of this class.