Changeset 1107:d972653c89d5 in lemon-0.x
- Timestamp:
- 01/29/05 16:09:41 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1506
- Files:
-
- 7 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/Doxyfile
r1064 r1107 518 518 # the \image command). 519 519 520 IMAGE_PATH = 520 IMAGE_PATH = images 521 521 522 522 # The INPUT_FILTER tag can be used to specify a program that doxygen should -
src/lemon/graph_to_eps.h
r1103 r1107 153 153 /// 154 154 ///\todo Follow PostScript's DSC. 155 ///\todo Use own dictionary. 155 /// Use own dictionary. 156 ///\todo Provide a way to set %%Title: and %%Copyright:. Set %%CreationDate: 157 ///\todo Useful new features. 158 /// - Linestyles: dotted, dashed etc. 159 /// - A second color and percent value for the lines. 156 160 template<class T> class GraphToEps : public T 157 161 { … … 168 172 bool dontPrint; 169 173 170 enum NodeShapes { CIRCLE=0, SQUARE=1, DIAMOND=2 }; 171 174 public: 175 ///Node shapes 176 177 ///Node shapes 178 /// 179 enum NodeShapes { 180 /// = 0 181 ///\image html nodeshape_0.png 182 ///\image latex nodeshape_0.eps "CIRCLE shape (0)" width=2cm 183 CIRCLE=0, 184 /// = 1 185 ///\image html nodeshape_1.png 186 ///\image latex nodeshape_1.eps "SQUARE shape (1)" width=2cm 187 /// 188 SQUARE=1, 189 /// = 2 190 ///\image html nodeshape_2.png 191 ///\image latex nodeshape_2.eps "DIAMOND shape (2)" width=2cm 192 /// 193 DIAMOND=2 194 }; 195 196 private: 172 197 class edgeLess { 173 198 const Graph &g; … … 236 261 ///Sets the map of the node shapes 237 262 238 ///Sets the map of the node shapes 263 ///Sets the map of the node shapes. 264 ///The availabe shape values 265 ///can be found in \ref NodeShapes "enum NodeShapes". 239 266 ///\param x must be a node map with \c int (or convertible) values. 240 ///\ todo Incomplete doc.267 ///\sa NodeShapes 241 268 template<class X> GraphToEps<NodeShapesTraits<X> > nodeShapes(const X &x) 242 269 { … … 450 477 451 478 os << "%!PS-Adobe-2.0 EPSF-2.0\n"; 452 //\todo: Chech whether the graph is empty. 479 os << "%%Title: LEMON GraphToEps figure\n" ///\todo setTitle() is needed 480 // << "%%Copyright: XXXX\n" 481 << "%%Creator: LEMON GraphToEps function\n" 482 // << "%%CreationDate: XXXXXXX\n" 483 ; 484 ///\todo: Chech whether the graph is empty. 453 485 BoundingBox<double> bb; 454 486 for(NodeIt n(g);n!=INVALID;++n) { … … 463 495 << bb.right()* _scale+_xBorder << ' ' 464 496 << bb.top()* _scale+_yBorder << '\n'; 497 498 os << "%%EndComments\n"; 499 465 500 //x1 y1 x2 y2 x3 y3 cr cg cb w 466 501 os << "/lb { setlinewidth setrgbcolor newpath moveto\n" … … 740 775 template<class G> 741 776 GraphToEps<DefaultGraphToEpsTraits<G> > 742 graphToEps(G &g,c har *file_name)777 graphToEps(G &g,const char *file_name) 743 778 { 744 779 return GraphToEps<DefaultGraphToEpsTraits<G> >
Note: See TracChangeset
for help on using the changeset viewer.