COIN-OR::LEMON - Graph Library

Changeset 1091:c756973cd53c in lemon-0.x for src/lemon


Ignore:
Timestamp:
01/20/05 15:16:40 (19 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1488
Message:

Now, the actual drawing is made by run() instead of the destructor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/graph_to_eps.h

    r1089 r1091  
    422422
    423423public:
    424   ~GraphToEps()
    425   {
     424  ~GraphToEps() { }
     425 
     426  ///Draws the graph.
     427
     428  ///Like other functions using
     429  ///\ref named-templ-func-param "named template parameters",
     430  ///this function calles the algorithm itself, i.e. in this case
     431  ///it draws the graph.
     432  void run() {
    426433    if(dontPrint) return;
    427434   
     
    668675///By default it is <tt>std::cout</tt>
    669676///
    670 ///This function also has a lot of \ref named-templ-param "named parameters",
     677///This function also has a lot of
     678///\ref named-templ-func-param "named parameters",
    671679///they are declared as the members of class \ref GraphToEps. The following
    672680///example shows how to use these parameters.
     
    674682/// graphToEps(g).scale(10).coords(coords)
    675683///              .nodeScale(2).nodeSizes(sizes)
    676 ///              .edgeWidthScale(.4);
     684///              .edgeWidthScale(.4).run();
    677685///\endcode
     686///\warning Don't forget to put the \ref GraphToEps::run() "run()"
     687///to the end of the parameter list.
    678688///\sa GraphToEps
    679689///\sa graphToEps(G &g, char *file_name)
Note: See TracChangeset for help on using the changeset viewer.