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

Color.h

Go to the documentation of this file.
00001 /* HippoPlot Color class interface
00002  *
00003  * Copyright (C) 2000, 2001, 2003   The Board of Trustees of The Leland
00004  * Stanford Junior University.  All Rights Reserved.
00005  *
00006  * $Id: Color.h,v 1.20 2004/06/13 00:26:29 pfkeb Exp $
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_

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3