title
Graph Drawing Toolkit

An object-oriented C++ library for handling and drawing graphs

gdtcolor.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002 +
00003 +  gdtcolor.h
00004 +
00005 +  This file is part of GDToolkit. It can be
00006 +  used free of charge in academic research and teaching.
00007 +  Any direct or indirect commercial use of this software is illegal
00008 +  without a written authorization of
00009 +  the Dipartimento di Informatica e Automazione
00010 +  Universita' di Roma Tre, Roma, ITALIA
00011 +
00012 +
00013 *******************************************************************************/
00014 
00015 // Pier Francesco Cortese - Jan 2004
00016 
00019 #ifndef __gdtcolor__
00020 #define __gdtcolor__
00021 
00022 
00023 typedef int color;
00024 
00025 
00026 #define DEF_COLOR -16
00027 #define invisible  -1
00028 #define white      0
00029 #define black      1
00030 #define red        2
00031 #define green      3
00032 #define blue       4
00033 #define yellow     5
00034 #define violet     6
00035 #define orange     7
00036 #define cyan       8
00037 #define brown      9
00038 #define pink      10
00039 #define green2    11
00040 #define blue2     12
00041 #define grey1     13
00042 #define grey2     14
00043 #define grey3     15
00044 #define ivory     16
00045 
00046 
00047 
00048 
00049 /*
00050 enum {
00051   DEF_COLOR = -16,
00052   invisible = -1,
00053   white  =  0,
00054   black  =  1,
00055   red    =  2,
00056   green  =  3,
00057   blue   =  4,
00058   yellow =  5,
00059   violet =  6,
00060   orange =  7,
00061   cyan   =  8,
00062   brown  =  9,
00063   pink   = 10,
00064   green2 = 11,
00065   blue2  = 12,
00066   grey1  = 13,
00067   grey2  = 14,
00068   grey3  = 15,
00069   ivory  = 16
00070 };
00071 
00072 */
00073 
00074 /*
00075 class gdtcolor {
00076 
00077         private:
00078 
00079         int R;
00080         int G;
00081         int B;
00082 
00083 
00084         int color_index;
00085 
00086         public:
00087 
00088         gdtcolor(int color_name)        {
00089         color_index=color_name;
00090         };
00091 
00092         gdtcolor() {
00093         }
00094 
00095         ostream& operator<<(ostream& os) {
00096     return ( os << color_index );
00097         };
00098 
00099         ~gdtcolor(){};
00100 };
00101 
00102 
00103 
00104 }   */
00105 #endif

Generated on Thu Jan 10 14:48:01 2008 for GDToolkit GAPI by  doxygen 1.5.3