00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWRadioButton.h,v $ 00004 00005 Copyright (c) Kitware, Inc. 00006 All rights reserved. 00007 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 00012 00013 =========================================================================*/ 00024 #ifndef __vtkKWRadioButton_h 00025 #define __vtkKWRadioButton_h 00026 00027 #include "vtkKWCheckButton.h" 00028 00029 class KWWidgets_EXPORT vtkKWRadioButton : public vtkKWCheckButton 00030 { 00031 // @cond section_public 00032 public: 00033 static vtkKWRadioButton* New(); 00034 vtkTypeRevisionMacro(vtkKWRadioButton,vtkKWCheckButton); 00035 void PrintSelf(ostream& os, vtkIndent indent); 00036 00038 00039 vtkBooleanMacro(SelectedState,int); 00040 virtual int GetSelectedState(); 00042 00044 00046 virtual void SetValue(const char *v); 00047 virtual void SetValueAsInt(int v); 00048 virtual const char* GetValue(); 00049 virtual int GetValueAsInt(); 00051 00062 virtual void SetCommand(vtkObject *object, const char *method); 00063 00065 00070 enum 00071 { 00072 SelectedStateChangedEvent = 10000 00073 }; 00074 //ETX 00076 00078 00080 virtual void SetVariableValue(const char *v); 00081 virtual void SetVariableValueAsInt(int v); 00082 virtual const char* GetVariableValue(); 00083 virtual int GetVariableValueAsInt(); 00085 00087 virtual void CommandCallback(); 00088 00089 // @endcond 00090 // @cond section_protected 00091 protected: 00092 vtkKWRadioButton() {}; 00093 ~vtkKWRadioButton() {}; 00094 00096 virtual void CreateWidget(); 00097 00098 // Override the superclass (state is ignored) 00099 virtual void InvokeCommand(int state); 00100 00101 // @endcond 00102 // @cond section_private 00103 private: 00104 vtkKWRadioButton(const vtkKWRadioButton&); // Not implemented 00105 void operator=(const vtkKWRadioButton&); // Not implemented 00106 }; 00107 00108 00109 #endif 00110 00111 00112 00113 // @endcond
1.6.1