Changeset 1574:697ed4dd309a in lemon-0.x
- Timestamp:
- 07/20/05 10:33:33 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2073
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/graph_to_eps.h
r1573 r1574 56 56 Color(double r,double g,double b) :_r(r),_g(g),_b(b) {}; 57 57 ///Returns the red component 58 58 59 59 ///\todo \c red() could be a better name... 60 /// 60 61 double getR() const {return _r;} 61 62 ///Returns the green component … … 83 84 84 85 ///Constructor 85 ///\param have_white indicates whet er white is86 ///\param have_white indicates whether white is 86 87 ///amongst the provided color (\c true) or not (\c false). If it is true, 87 88 ///white will be assigned to \c 0. … … 90 91 ///If \c num is less then 26/27 then the default color list is cut. Otherwise 91 92 ///the color list is filled repeatedly with the default color list. 93 ///(The colors can be changed later on.) 92 94 ColorSet(bool have_white=false,int num=0) 93 95 { … … 145 147 ///Sets the number of the exiting colors. 146 148 void resize(int s) { colors.resize(s);} 147 ///Returns the munber of the existing colors.149 ///Returns the number of the existing colors. 148 150 std::size_t size() const { return colors.size();} 149 151 }; … … 160 162 161 163 ///Returns black for light colors and white for the dark ones. 162 ///\todo weighted average would be better163 164 inline Color distantBW(const Color &c){ 164 165 double v=(.2125*c.getR()+.7154*c.getG()+.0721*c.getB())<.5?1:0; … … 598 599 599 600 ///Enables parallel edges 600 ///\todo Partially implemented601 601 GraphToEps<T> &enableParallel(bool b=true) {_enableParallel=b;return *this;} 602 602
Note: See TracChangeset
for help on using the changeset viewer.