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
45class VTKINTERACTIONWIDGETS_EXPORT vtkButtonRepresentation : public vtkWidgetRepresentation
46{
47public:
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
107protected:
110
111 // Values
113 int State;
115
116private:
117 vtkButtonRepresentation(const vtkButtonRepresentation&) VTK_DELETE_FUNCTION;
118 void operator=(const vtkButtonRepresentation&) VTK_DELETE_FUNCTION;
119};
120
121#endif
abstract class defines the representation for a vtkButtonWidget
_HighlightState
These methods control the appearance of the button as it is being interacted with.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void Highlight(int)
virtual void SetState(int state)
Manipulate the state.
virtual void NextState()
virtual void ShallowCopy(vtkProp *prop)
Satisfy some of vtkProp's API.
virtual void PreviousState()
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
abstract class defines interface between the widget and widget representation classes
#define VTK_INT_MAX
Definition: vtkType.h:153