00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00040 #ifndef __vtkButtonRepresentation_h
00041 #define __vtkButtonRepresentation_h
00042
00043 #include "vtkWidgetRepresentation.h"
00044
00045
00046 class VTK_WIDGETS_EXPORT vtkButtonRepresentation : public vtkWidgetRepresentation
00047 {
00048 public:
00050
00051 vtkTypeMacro(vtkButtonRepresentation,vtkWidgetRepresentation);
00052 void PrintSelf(ostream& os, vtkIndent indent);
00054
00056
00057 vtkSetClampMacro(NumberOfStates,int,1,VTK_LARGE_INTEGER);
00059
00061
00062 vtkGetMacro(State,int);
00064
00066
00070 virtual void SetState(int state);
00071 virtual void NextState();
00072 virtual void PreviousState();
00074
00075 enum _InteractionState
00076 {
00077 Outside=0,
00078 Inside
00079 };
00080
00081
00083
00089 enum _HighlightState {HighlightNormal,HighlightHovering,HighlightSelecting};
00090 virtual void Highlight(int);
00091 vtkGetMacro(HighlightState,int);
00093
00095 virtual void ShallowCopy(vtkProp *prop);
00096
00097 protected:
00098 vtkButtonRepresentation();
00099 ~vtkButtonRepresentation();
00100
00101
00102 int NumberOfStates;
00103 int State;
00104 int HighlightState;
00105
00106 private:
00107 vtkButtonRepresentation(const vtkButtonRepresentation&);
00108 void operator=(const vtkButtonRepresentation&);
00109 };
00110
00111 #endif