Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

GUI/Widgets/vtkKWCheckButton.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWCheckButton.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 =========================================================================*/
00021 #ifndef __vtkKWCheckButton_h
00022 #define __vtkKWCheckButton_h
00023 
00024 #include "vtkKWCoreWidget.h"
00025 
00026 class vtkKWIcon;
00027 
00028 class KWWIDGETS_EXPORT vtkKWCheckButton : public vtkKWCoreWidget
00029 {
00030 public:
00031   static vtkKWCheckButton* New();
00032   vtkTypeRevisionMacro(vtkKWCheckButton,vtkKWCoreWidget);
00033   void PrintSelf(ostream& os, vtkIndent indent);
00034 
00036   virtual void Create(vtkKWApplication *app);
00037 
00039 
00040   virtual void SetSelectedState(int );
00041   virtual int GetSelectedState();
00042   vtkBooleanMacro(SelectedState, int);
00043   virtual void ToggleSelectedState();
00044   virtual void Select() { this->SetSelectedState(1); };
00045   virtual void DeSelect() { this->SetSelectedState(0); };
00047 
00049 
00050   virtual void SetIndicatorVisibility(int ind);
00051   vtkGetMacro(IndicatorVisibility, int);
00052   vtkBooleanMacro(IndicatorVisibility, int);
00054 
00056 
00057   virtual void SetText(const char* txt);
00058   virtual const char* GetText();
00060 
00062 
00063   vtkGetStringMacro(VariableName);
00064   virtual void SetVariableName(const char *);
00066 
00073   virtual void SetCommand(vtkObject *object, const char *method);
00074 
00076 
00079   virtual void SetAnchor(int);
00080   virtual int GetAnchor();
00081   virtual void SetAnchorToNorth() 
00082     { this->SetAnchor(vtkKWTkOptions::AnchorNorth); };
00083   virtual void SetAnchorToNorthEast() 
00084     { this->SetAnchor(vtkKWTkOptions::AnchorNorthEast); };
00085   virtual void SetAnchorToEast() 
00086     { this->SetAnchor(vtkKWTkOptions::AnchorEast); };
00087   virtual void SetAnchorToSouthEast() 
00088     { this->SetAnchor(vtkKWTkOptions::AnchorSouthEast); };
00089   virtual void SetAnchorToSouth() 
00090     { this->SetAnchor(vtkKWTkOptions::AnchorSouth); };
00091   virtual void SetAnchorToSouthWest() 
00092     { this->SetAnchor(vtkKWTkOptions::AnchorSouthWest); };
00093   virtual void SetAnchorToWest() 
00094     { this->SetAnchor(vtkKWTkOptions::AnchorWest); };
00095   virtual void SetAnchorToNorthWest() 
00096     { this->SetAnchor(vtkKWTkOptions::AnchorNorthWest); };
00097   virtual void SetAnchorToCenter() 
00098     { this->SetAnchor(vtkKWTkOptions::AnchorCenter); };
00100 
00102 
00112   virtual void SetOffRelief(int);
00113   virtual int GetOffRelief();
00114   virtual void SetOffReliefToRaised() 
00115     { this->SetOffRelief(vtkKWTkOptions::ReliefRaised); };
00116   virtual void SetOffReliefToSunken() 
00117     { this->SetOffRelief(vtkKWTkOptions::ReliefSunken); };
00118   virtual void SetOffReliefToFlat() 
00119     { this->SetOffRelief(vtkKWTkOptions::ReliefFlat); };
00120   virtual void SetOffReliefToRidge() 
00121     { this->SetOffRelief(vtkKWTkOptions::ReliefRidge); };
00122   virtual void SetOffReliefToSolid() 
00123     { this->SetOffRelief(vtkKWTkOptions::ReliefSolid); };
00124   virtual void SetOffReliefToGroove() 
00125     { this->SetOffRelief(vtkKWTkOptions::ReliefGroove); };
00127 
00129 
00136   virtual void SetOverRelief(int);
00137   virtual int GetOverRelief();
00138   virtual void SetOverReliefToRaised() 
00139     { this->SetOverRelief(vtkKWTkOptions::ReliefRaised); };
00140   virtual void SetOverReliefToSunken() 
00141     { this->SetOverRelief(vtkKWTkOptions::ReliefSunken); };
00142   virtual void SetOverReliefToFlat() 
00143     { this->SetOverRelief(vtkKWTkOptions::ReliefFlat); };
00144   virtual void SetOverReliefToRidge() 
00145     { this->SetOverRelief(vtkKWTkOptions::ReliefRidge); };
00146   virtual void SetOverReliefToSolid() 
00147     { this->SetOverRelief(vtkKWTkOptions::ReliefSolid); };
00148   virtual void SetOverReliefToGroove() 
00149     { this->SetOverRelief(vtkKWTkOptions::ReliefGroove); };
00150   virtual void SetOverReliefToNone()
00151     { this->SetOverRelief(vtkKWTkOptions::ReliefUnknown); };
00153 
00155 
00170   virtual void SetImageToIcon(vtkKWIcon *icon);
00171   virtual void SetImageToPredefinedIcon(int icon_index);
00172   virtual void SetImageToPixels(
00173     const unsigned char *pixels, int width, int height, int pixel_size,
00174     unsigned long buffer_length = 0);
00176   
00183   virtual void UpdateEnableState();
00184 
00185 protected:
00186 
00187   vtkSetStringMacro(MyText);
00188 
00189   vtkKWCheckButton();
00190   ~vtkKWCheckButton();
00191 
00192   int IndicatorVisibility;
00193   char *MyText;
00194   char *VariableName;
00195 
00196   void Configure();
00197 
00198 private:
00199   vtkKWCheckButton(const vtkKWCheckButton&); // Not implemented
00200   void operator=(const vtkKWCheckButton&); // Not Implemented
00201 };
00202 
00203 
00204 #endif
00205 
00206 
00207 

Generated on Tue May 30 12:31:42 2006 for ParaView by doxygen 1.3.5