VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkButtonRepresentation.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 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 //ETX 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 // Values 00102 int NumberOfStates; 00103 int State; 00104 int HighlightState; 00105 00106 private: 00107 vtkButtonRepresentation(const vtkButtonRepresentation&); //Not implemented 00108 void operator=(const vtkButtonRepresentation&); //Not implemented 00109 }; 00110 00111 #endif