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

GUI/Widgets/vtkKWLabel.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWLabel.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 =========================================================================*/
00026 #ifndef __vtkKWLabel_h
00027 #define __vtkKWLabel_h
00028 
00029 #include "vtkKWCoreWidget.h"
00030 
00031 class vtkKWIcon;
00032 
00033 class KWWIDGETS_EXPORT vtkKWLabel : public vtkKWCoreWidget
00034 {
00035 public:
00036   static vtkKWLabel* New();
00037   vtkTypeRevisionMacro(vtkKWLabel,vtkKWCoreWidget);
00038   void PrintSelf(ostream& os, vtkIndent indent);
00039 
00041   virtual void Create(vtkKWApplication *app);
00042   
00044 
00045   virtual void SetText(const char*);
00046   vtkGetStringMacro(Text);
00048 
00050 
00053   virtual void SetWidth(int);
00054   virtual int GetWidth();
00056 
00058 
00061   virtual void SetHeight(int);
00062   virtual int GetHeight();
00064 
00066 
00070   virtual void SetJustification(int);
00071   virtual int GetJustification();
00072   virtual void SetJustificationToLeft() 
00073     { this->SetJustification(vtkKWTkOptions::JustificationLeft); };
00074   virtual void SetJustificationToCenter() 
00075     { this->SetJustification(vtkKWTkOptions::JustificationCenter); };
00076   virtual void SetJustificationToRight() 
00077     { this->SetJustification(vtkKWTkOptions::JustificationRight); };
00079 
00081 
00084   virtual void SetAnchor(int);
00085   virtual int GetAnchor();
00086   virtual void SetAnchorToNorth() 
00087     { this->SetAnchor(vtkKWTkOptions::AnchorNorth); };
00088   virtual void SetAnchorToNorthEast() 
00089     { this->SetAnchor(vtkKWTkOptions::AnchorNorthEast); };
00090   virtual void SetAnchorToEast() 
00091     { this->SetAnchor(vtkKWTkOptions::AnchorEast); };
00092   virtual void SetAnchorToSouthEast() 
00093     { this->SetAnchor(vtkKWTkOptions::AnchorSouthEast); };
00094   virtual void SetAnchorToSouth() 
00095     { this->SetAnchor(vtkKWTkOptions::AnchorSouth); };
00096   virtual void SetAnchorToSouthWest() 
00097     { this->SetAnchor(vtkKWTkOptions::AnchorSouthWest); };
00098   virtual void SetAnchorToWest() 
00099     { this->SetAnchor(vtkKWTkOptions::AnchorWest); };
00100   virtual void SetAnchorToNorthWest() 
00101     { this->SetAnchor(vtkKWTkOptions::AnchorNorthWest); };
00102   virtual void SetAnchorToCenter() 
00103     { this->SetAnchor(vtkKWTkOptions::AnchorCenter); };
00105 
00107 
00115   virtual void SetWrapLength(const char *length);
00116   virtual const char* GetWrapLength();
00118   
00120 
00122   virtual void SetAdjustWrapLengthToWidth(int);
00123   vtkGetMacro(AdjustWrapLengthToWidth, int);
00124   vtkBooleanMacro(AdjustWrapLengthToWidth, int);
00126 
00128 
00143   virtual void SetImageToIcon(vtkKWIcon *icon);
00144   virtual void SetImageToPredefinedIcon(int icon_index);
00145   virtual void SetImageToPixels(
00146     const unsigned char *pixels, int width, int height, int pixel_size,
00147     unsigned long buffer_length = 0);
00149   
00156   virtual void UpdateEnableState();
00157 
00159   virtual void AdjustWrapLengthToWidthCallback();
00160 
00161 protected:
00162   vtkKWLabel();
00163   ~vtkKWLabel();
00164 
00165   virtual void UpdateBindings();
00166   virtual void UpdateText();
00167 
00168 private:
00169   char* Text;
00170   int AdjustWrapLengthToWidth;
00171 
00172   vtkKWLabel(const vtkKWLabel&); // Not implemented
00173   void operator=(const vtkKWLabel&); // Not implemented
00174 };
00175 
00176 #endif

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