COIN-OR::LEMON - Graph Library

Changeset 206:4e22275a2b52 in lemon-main for lemon/color.h


Ignore:
Timestamp:
07/13/08 17:34:27 (16 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Improvements related to graphToEps()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/color.h

    r157 r206  
    109109    ///Constructor
    110110
    111     ///Constructor 
    112     ///\param have_white indicates whether white is amongst the
     111    ///Constructor.
     112    ///\param have_white Indicates whether white is among the
    113113    ///provided initial colors (\c true) or not (\c false). If it is true,
    114114    ///white will be assigned to \c 0.
    115     ///\param num the number of the allocated colors. If it is \c -1,
     115    ///\param num The number of the allocated colors. If it is \c -1,
    116116    ///the default color configuration is set up (26 color plus optionaly the
    117117    ///white).  If \c num is less then 26/27 then the default color
     
    154154        colors.push_back(Color(.5,0,1));
    155155      } while(int(colors.size())<num);
    156       //    colors.push_back(Color(1,1,1));
    157156      if(num>=0) colors.resize(num);
    158157    }
     
    172171      colors[i%colors.size()]=c;
    173172    }
    174     ///Add a new color to the end of the color list.
     173    ///Adds a new color to the end of the color list.
    175174    void add(const Color &c)
    176175    {
     
    178177    }
    179178
    180     ///Sets the number of the exiting colors.
     179    ///Sets the number of the existing colors.
    181180    void resize(int s) { colors.resize(s);}
    182181    ///Returns the number of the existing colors.
Note: See TracChangeset for help on using the changeset viewer.