lemon/graph_to_eps.h
changeset 807 78071e00de00
parent 617 4137ef9aacc6
child 838 2c35bef44dd1
equal deleted inserted replaced
27:0dd65e8c6a1f 28:50dc33e98779
   140   ///Constructor
   140   ///Constructor
   141 
   141 
   142   ///Constructor
   142   ///Constructor
   143   ///\param gr  Reference to the graph to be printed.
   143   ///\param gr  Reference to the graph to be printed.
   144   ///\param ost Reference to the output stream.
   144   ///\param ost Reference to the output stream.
   145   ///By default it is <tt>std::cout</tt>.
   145   ///By default, it is <tt>std::cout</tt>.
   146   ///\param pros If it is \c true, then the \c ostream referenced by \c os
   146   ///\param pros If it is \c true, then the \c ostream referenced by \c os
   147   ///will be explicitly deallocated by the destructor.
   147   ///will be explicitly deallocated by the destructor.
   148   DefaultGraphToEpsTraits(const GR &gr, std::ostream& ost = std::cout,
   148   DefaultGraphToEpsTraits(const GR &gr, std::ostream& ost = std::cout,
   149                           bool pros = false) :
   149                           bool pros = false) :
   150     g(gr), os(ost),
   150     g(gr), os(ost),
   510     _negY=b;return *this;
   510     _negY=b;return *this;
   511   }
   511   }
   512 
   512 
   513   ///Turn on/off pre-scaling
   513   ///Turn on/off pre-scaling
   514 
   514 
   515   ///By default graphToEps() rescales the whole image in order to avoid
   515   ///By default, graphToEps() rescales the whole image in order to avoid
   516   ///very big or very small bounding boxes.
   516   ///very big or very small bounding boxes.
   517   ///
   517   ///
   518   ///This (p)rescaling can be turned off with this function.
   518   ///This (p)rescaling can be turned off with this function.
   519   ///
   519   ///
   520   GraphToEps<T> &preScale(bool b=true) {
   520   GraphToEps<T> &preScale(bool b=true) {
  1112 
  1112 
  1113 ///\ingroup eps_io
  1113 ///\ingroup eps_io
  1114 ///Generates an EPS file from a graph.
  1114 ///Generates an EPS file from a graph.
  1115 ///\param g Reference to the graph to be printed.
  1115 ///\param g Reference to the graph to be printed.
  1116 ///\param os Reference to the output stream.
  1116 ///\param os Reference to the output stream.
  1117 ///By default it is <tt>std::cout</tt>.
  1117 ///By default, it is <tt>std::cout</tt>.
  1118 ///
  1118 ///
  1119 ///This function also has a lot of
  1119 ///This function also has a lot of
  1120 ///\ref named-templ-func-param "named parameters",
  1120 ///\ref named-templ-func-param "named parameters",
  1121 ///they are declared as the members of class \ref GraphToEps. The following
  1121 ///they are declared as the members of class \ref GraphToEps. The following
  1122 ///example shows how to use these parameters.
  1122 ///example shows how to use these parameters.
  1124 /// graphToEps(g,os).scale(10).coords(coords)
  1124 /// graphToEps(g,os).scale(10).coords(coords)
  1125 ///              .nodeScale(2).nodeSizes(sizes)
  1125 ///              .nodeScale(2).nodeSizes(sizes)
  1126 ///              .arcWidthScale(.4).run();
  1126 ///              .arcWidthScale(.4).run();
  1127 ///\endcode
  1127 ///\endcode
  1128 ///
  1128 ///
  1129 ///For more detailed examples see the \ref graph_to_eps_demo.cc demo file.
  1129 ///For more detailed examples, see the \ref graph_to_eps_demo.cc demo file.
  1130 ///
  1130 ///
  1131 ///\warning Don't forget to put the \ref GraphToEps::run() "run()"
  1131 ///\warning Don't forget to put the \ref GraphToEps::run() "run()"
  1132 ///to the end of the parameter list.
  1132 ///to the end of the parameter list.
  1133 ///\sa GraphToEps
  1133 ///\sa GraphToEps
  1134 ///\sa graphToEps(GR &g, const char *file_name)
  1134 ///\sa graphToEps(GR &g, const char *file_name)