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 =========================================================================*/
40 #ifndef vtkButtonRepresentation_h
41 #define vtkButtonRepresentation_h
42 
43 #include "vtkInteractionWidgetsModule.h" // For export macro
45 
46 
48 {
49 public:
51 
53  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
58  vtkSetClampMacro(NumberOfStates,int,1,VTK_INT_MAX);
60 
62 
63  vtkGetMacro(State,int);
65 
67 
71  virtual void SetState(int state);
72  virtual void NextState();
73  virtual void PreviousState();
75 
77  {
78  Outside=0,
79  Inside
80  };
81 //ETX
82 
84 
90  enum _HighlightState {HighlightNormal,HighlightHovering,HighlightSelecting};
91  virtual void Highlight(int);
92  vtkGetMacro(HighlightState,int);
94 
96  virtual void ShallowCopy(vtkProp *prop);
97 
98 protected:
101 
102  // Values
104  int State;
106 
107 private:
108  vtkButtonRepresentation(const vtkButtonRepresentation&); //Not implemented
109  void operator=(const vtkButtonRepresentation&); //Not implemented
110 };
111 
112 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
virtual void ShallowCopy(vtkProp *prop)
#define VTK_INT_MAX
Definition: vtkType.h:130
abstract class defines interface between the widget and widget representation classes ...
#define VTKINTERACTIONWIDGETS_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract class defines the representation for a vtkButtonWidget
virtual void Highlight(int vtkNotUsed(highlightOn))
void PrintSelf(ostream &os, vtkIndent indent)