00001 00002 // 00003 // This file is part of the MADELINE 2 program 00004 // written by Edward H. Trager, Ritu Khanna and Adrian Marrs 00005 // Copyright (c) 2006 by the 00006 // Regents of the University of Michigan. 00007 // All Rights Reserved. 00008 // 00009 // The latest version of this program is available from: 00010 // 00011 // http://eyegene.ophthy.med.umich.edu/madeline/ 00012 // 00013 // Released under the GNU General Public License. 00014 // A copy of the GPL is included in the distribution 00015 // package of this software, or see: 00016 // 00017 // http://www.gnu.org/copyleft/ 00018 // 00019 // ... for licensing details. 00020 // 00022 00023 // 00024 // ColorSeriesStack.h 2006.12.26.ET 00025 // 00026 00027 #ifndef ColorSeriesStack_INCLUDED 00028 #define ColorSeriesStack_INCLUDED 00029 00030 #include <vector> 00031 #include "DrawingMetrics.h" 00032 #include "ColorSeries.h" 00033 #include "DrawingColor.h" 00034 00035 class ColorSeriesStack{ 00036 00037 public: 00038 00039 enum SERIESTYPE{ BLACKANDWHITE, MONOCHROMATIC, BICHROMATIC }; 00040 00041 private: 00042 00043 SERIESTYPE _type; 00044 00045 //unsigned _n; 00046 std::vector<ColorSeries *> _colorSeriesStack; 00047 00048 00049 public: 00050 00051 // Constructor: 00052 ColorSeriesStack( SERIESTYPE type = BICHROMATIC ); 00053 00054 // Destructor: 00055 ~ColorSeriesStack(); 00056 00057 void add(unsigned levels); 00058 00059 ColorSeries *get(unsigned nth) const; 00060 00061 void setBichromatic(bool seriesAreBichromatic); 00062 00063 }; 00064 00065 00066 #endif