00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _Color_H_
00010 #define _Color_H_
00011
00012 #include "pattern/libhippo.h"
00013
00014
00029 #include <iosfwd>
00030
00031 class MDL_HIPPOPLOT_API Color
00032 {
00033 private:
00034
00036 int m_red;
00037
00039 int m_green;
00040
00042 int m_blue;
00043
00044 public:
00045
00047 static Color red;
00048
00050 static Color green;
00051
00053 static Color blue;
00054
00056 static Color cyan;
00057
00059 static Color magenta;
00060
00062 static Color yellow;
00063
00065 static Color orange;
00066
00068 static Color black;
00069
00071 static Color darkgray;
00072
00074 static Color lightgray;
00075
00077 static Color white;
00078
00082 explicit Color ( int red = 0, int green = 0, int blue = 0 );
00083
00085 void setColor ( int red = 0, int green = 0, int blue = 0 );
00086
00087 int getRed () const;
00088
00089 int getGreen () const;
00090
00091 int getBlue () const;
00092
00093 friend std::ostream & operator << ( std::ostream &, const Color & );
00094
00095 };
00096
00097 #endif // _Color_H_