[Lemon-commits] [lemon_svn] alpar: r2073 - hugo/trunk/lemon
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:49:55 CET 2006
Author: alpar
Date: Wed Jul 20 10:33:33 2005
New Revision: 2073
Modified:
hugo/trunk/lemon/graph_to_eps.h
Log:
- Doc improvements, spell checks
- Obsolete \todo's removed
Modified: hugo/trunk/lemon/graph_to_eps.h
==============================================================================
--- hugo/trunk/lemon/graph_to_eps.h (original)
+++ hugo/trunk/lemon/graph_to_eps.h Wed Jul 20 10:33:33 2005
@@ -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<T> &enableParallel(bool b=true) {_enableParallel=b;return *this;}
///Sets the distance
More information about the Lemon-commits
mailing list