Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

/cygdrive/d/Eigene Dateien/!DProcs/code_gen/src/QColor.h

Go to the documentation of this file.
00001 // Class QColor 
00002 // Filename QColor.h 
00003 // FaPra 2003-2004, A5, Alexander Kramer
00004 
00005 #ifndef QColor_h 
00006 #define QColor_h 
00007 
00008 
00009 //! Pre-declaration of QColor
00010 class QColor;
00011 
00012 
00013 
00014 #include <GL/glut.h>
00015 
00016 //! Color Class. The values of color components are in range [0..1]
00017 class QColor
00018 {
00019 protected:
00020 //! red
00021 float R;
00022 
00023 //! green
00024 float G;
00025 
00026 //! blue
00027 float B;
00028 
00029 //! alpha
00030 float A;
00031 
00032 public:
00033 //! sets the color as current for drawing context
00034  void setAsCurrent();
00035 
00036 //! sets the color
00037  const void set( float  r , float  g , float  b , float  a );
00038 
00039 //! getter method for R
00040 virtual float getR();
00041 
00042 //! setter method for R
00043 virtual void setR( float  newValue );
00044 
00045 //! getter method for G
00046 virtual float getG();
00047 
00048 //! setter method for G
00049 virtual void setG( float  newValue );
00050 
00051 //! getter method for B
00052 virtual float getB();
00053 
00054 //! setter method for B
00055 virtual void setB( float  newValue );
00056 
00057 //! getter method for A
00058 virtual float getA();
00059 
00060 //! setter method for A
00061 virtual void setA( float  newValue );
00062 
00063 //! copy itself from another instance
00064  void copyFrom( QColor*  from );
00065 
00066 //! prints itself to the cout
00067  void print();
00068 
00069 //! Constructor
00070   QColor(  );
00071 
00072 //! Destructor
00073 virtual  ~QColor();
00074 
00075 
00076 };
00077 #endif
00078 

Generated on Thu Mar 18 18:33:48 2004 for miniQT by doxygen1.2.18