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 
44 
45 
47 {
48 public:
50 
52  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
57  vtkSetClampMacro(NumberOfStates,int,1,VTK_LARGE_INTEGER);
59 
61 
62  vtkGetMacro(State,int);
64 
66 
70  virtual void SetState(int state);
71  virtual void NextState();
72  virtual void PreviousState();
74 
76  {
77  Outside=0,
78  Inside
79  };
80 //ETX
81 
83 
89  enum _HighlightState {HighlightNormal,HighlightHovering,HighlightSelecting};
90  virtual void Highlight(int);
91  vtkGetMacro(HighlightState,int);
93 
95  virtual void ShallowCopy(vtkProp *prop);
96 
97 protected:
100 
101  // Values
103  int State;
105 
106 private:
107  vtkButtonRepresentation(const vtkButtonRepresentation&); //Not implemented
108  void operator=(const vtkButtonRepresentation&); //Not implemented
109 };
110 
111 #endif