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

GUI/Widgets/vtkKWSegmentedProgressGauge.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWSegmentedProgressGauge.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 =========================================================================*/
00023 #ifndef __vtkKWSegmentedProgressGauge_h
00024 #define __vtkKWSegmentedProgressGauge_h
00025 
00026 #include "vtkKWCompositeWidget.h"
00027 
00028 class vtkKWFrame;
00029 class vtkKWCanvas;
00030 
00031 class KWWIDGETS_EXPORT vtkKWSegmentedProgressGauge : public vtkKWCompositeWidget
00032 {
00033 public:
00035 
00036   static vtkKWSegmentedProgressGauge *New();
00037   vtkTypeRevisionMacro(vtkKWSegmentedProgressGauge, vtkKWCompositeWidget);
00038   void PrintSelf(ostream& os, vtkIndent indent);
00040   
00042   void Create(vtkKWApplication *app);
00043   
00046   void SetValue(int segment, int value);
00047 
00049 
00050   void SetNumberOfSegments(int number);
00051   vtkGetMacro(NumberOfSegments, int);
00053   
00055 
00056   vtkSetMacro(Width, int);
00057   vtkGetMacro(Width, int);
00058   vtkSetMacro(Height, int);
00059   vtkGetMacro(Height, int);
00061 
00063 
00064   void SetSegmentColor( int index, float r, float g, float b );
00065   void SetSegmentColor( int index, float color[3] )
00066     {this->SetSegmentColor( index, color[0], color[1], color[2] );}
00067   void GetSegmentColor( int index, float color[3] );
00069       
00070 protected:
00071   vtkKWSegmentedProgressGauge();
00072   ~vtkKWSegmentedProgressGauge();
00073 
00074   vtkKWFrame *ProgressFrame;
00075   vtkKWCanvas *ProgressCanvas;
00076 
00077   int NumberOfSegments;
00078   int Width;
00079   int Height;
00080 
00081   float SegmentColor[10][3];
00082   
00083   int Segment;
00084   int Value;
00085   
00086 private:
00087   vtkKWSegmentedProgressGauge(const vtkKWSegmentedProgressGauge&);  //Not implemented
00088   void operator=(const vtkKWSegmentedProgressGauge&);  //Not implemented
00089 };
00090 
00091 #endif
00092 

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