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

GUI/Widgets/vtkKWProgressGauge.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWProgressGauge.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 __vtkKWProgressGauge_h
00022 #define __vtkKWProgressGauge_h
00023 
00024 #include "vtkKWCompositeWidget.h"
00025 
00026 class vtkKWCanvas;
00027 
00028 class KWWIDGETS_EXPORT vtkKWProgressGauge : public vtkKWCompositeWidget
00029 {
00030 public:
00031   static vtkKWProgressGauge* New();
00032   vtkTypeRevisionMacro(vtkKWProgressGauge,vtkKWCompositeWidget);
00033   void PrintSelf(ostream& os, vtkIndent indent);
00034 
00036   virtual void Create(vtkKWApplication *app);
00037 
00039 
00041   virtual void SetValue(double value);
00042   vtkGetMacro(Value, double);
00044   
00046 
00048   virtual void SetWidth(int width);
00049   vtkGetMacro(Width, int);
00050   virtual void SetHeight(int height);
00051   vtkGetMacro(Height, int);
00053 
00055 
00058   vtkBooleanMacro(ExpandHeight, int);
00059   virtual void SetExpandHeight(int);
00060   vtkGetMacro(ExpandHeight, int);
00062 
00064 
00068   virtual void SetMinimumHeight(int height);
00069   vtkGetMacro(MinimumHeight, int);
00071   
00073 
00074   virtual void SetBarColor(double r, double g, double b);
00075   virtual void SetBarColor(double rgb[3])
00076     { this->SetBarColor(rgb[0], rgb[1], rgb[2]); }
00077   vtkGetVectorMacro(BarColor,double,3);
00079 
00081   virtual void ConfigureCallback();
00082 
00083 protected:
00084   vtkKWProgressGauge();
00085   ~vtkKWProgressGauge();
00086 
00087   virtual void Redraw();
00088 
00089   int Width;
00090   int Height;
00091   int MinimumHeight;
00092   double BarColor[3];
00093   double Value;
00094   int ExpandHeight;
00095 
00096   vtkKWCanvas *Canvas;
00097 
00098 private:
00099   vtkKWProgressGauge(const vtkKWProgressGauge&); // Not implemented
00100   void operator=(const vtkKWProgressGauge&); // Not implemented
00101 };
00102 
00103 
00104 #endif
00105 

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