# HG changeset patch # User alpar # Date 1121848413 0 # Node ID 697ed4dd309a046d188a153aa89104d76574ba35 # Parent b76a0af36f447bc3f0e76b82328992603ca1906c - Doc improvements, spell checks - Obsolete \todo's removed diff -r b76a0af36f44 -r 697ed4dd309a lemon/graph_to_eps.h --- a/lemon/graph_to_eps.h Wed Jul 20 08:06:32 2005 +0000 +++ b/lemon/graph_to_eps.h Wed Jul 20 08:33:33 2005 +0000 @@ -55,8 +55,9 @@ ///Constructor Color(double r,double g,double b) :_r(r),_g(g),_b(b) {}; ///Returns the red component - + ///\todo \c red() could be a better name... + /// double getR() const {return _r;} ///Returns the green component double getG() const {return _g;} @@ -82,13 +83,14 @@ ///Constructor ///Constructor - ///\param have_white indicates wheter white is + ///\param have_white indicates whether white is ///amongst the provided color (\c true) or not (\c false). If it is true, ///white will be assigned to \c 0. ///\param num the number of the allocated colors. If it is \c 0 ///the default color configuration is set up (26 color plus the while). ///If \c num is less then 26/27 then the default color list is cut. Otherwise ///the color list is filled repeatedly with the default color list. + ///(The colors can be changed later on.) ColorSet(bool have_white=false,int num=0) { do { @@ -144,7 +146,7 @@ } ///Sets the number of the exiting colors. void resize(int s) { colors.resize(s);} - ///Returns the munber of the existing colors. + ///Returns the number of the existing colors. std::size_t size() const { return colors.size();} }; @@ -159,7 +161,6 @@ ///Returns black for light colors and white for the dark ones. ///Returns black for light colors and white for the dark ones. -///\todo weighted average would be better inline Color distantBW(const Color &c){ double v=(.2125*c.getR()+.7154*c.getG()+.0721*c.getB())<.5?1:0; return Color(v,v,v); @@ -597,7 +598,6 @@ ///Enables parallel edges ///Enables parallel edges - ///\todo Partially implemented GraphToEps &enableParallel(bool b=true) {_enableParallel=b;return *this;} ///Sets the distance