00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
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&);
00100 void operator=(const vtkKWProgressGauge&);
00101 };
00102
00103
00104 #endif
00105