Changeset 2207:75a29ac69c19 in lemon0.x for lemon/eps.h
 Timestamp:
 09/07/06 15:27:16 (13 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2933
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/eps.h
r2174 r2207 25 25 #include<sstream> 26 26 #include<lemon/color.h> 27 #include<lemon/ xy.h>27 #include<lemon/dim2.h> 28 28 29 29 ///\ingroup eps_io … … 101 101 ///\c s determines the upper 102 102 ///right corner of the bounding box. The lower left corner is (0,0). 103 EpsDrawer(std::ostream &os, xy<double> s);103 EpsDrawer(std::ostream &os,dim2::Point<double> s); 104 104 ///\e 105 105 … … 109 109 /// determine the lower left and the upper right corners of 110 110 ///the bounding box, respectively. 111 EpsDrawer(std::ostream &os, xy<double> a, xy<double> b);111 EpsDrawer(std::ostream &os,dim2::Point<double> a, dim2::Point<double> b); 112 112 ///\e 113 113 … … 131 131 ///\c s determines the upper 132 132 ///right corner of the bounding box. The lower left corner is (0,0). 133 EpsDrawer(const std::string &name, xy<double> s);133 EpsDrawer(const std::string &name,dim2::Point<double> s); 134 134 ///\e 135 135 … … 139 139 /// determine the lower left and the upper right corners of 140 140 ///the bounding box, respectively. 141 EpsDrawer(const std::string &name, xy<double> a, xy<double> b);141 EpsDrawer(const std::string &name,dim2::Point<double> a, dim2::Point<double> b); 142 142 143 143 // template<class T> EpsDrawer(std::ostream &os,BoundingBox<T> b) … … 169 169 170 170 ///Draw a line 171 template<class T> EpsDrawer &line( xy<T> p1,xy<T> p2)171 template<class T> EpsDrawer &line(dim2::Point<T> p1,dim2::Point<T> p2) 172 172 { 173 173 return line(p1.x,p1.y,p2.x,p2.y); 174 174 } 175 175 ///Draw a line from the current point 176 template<class T> EpsDrawer &lineTo( xy<T> p)176 template<class T> EpsDrawer &lineTo(dim2::Point<T> p) 177 177 { 178 178 return lineTo(p.x,p.y); 179 179 } 180 180 ///Move the current point 181 template<class T> EpsDrawer &moveTo( xy<T> p)181 template<class T> EpsDrawer &moveTo(dim2::Point<T> p) 182 182 { 183 183 return moveTo(p.x,p.y); 184 184 } 185 185 ///Draw a circle 186 template<class T> EpsDrawer &circle( xy<T> p, double r)186 template<class T> EpsDrawer &circle(dim2::Point<T> p, double r) 187 187 { 188 188 return circle(p.x,p.y,r); … … 297 297 ///\param brd Color of the node border. The default color is black 298 298 template<class T> 299 EpsDrawer &node(NodeShapes t, xy<T> pos, double r,299 EpsDrawer &node(NodeShapes t, dim2::Point<T> pos, double r, 300 300 Color col=WHITE, Color brd=BLACK) 301 301 { … … 306 306 EpsDrawer &translate(double x,double y); 307 307 ///Translate the coordinate system 308 template<class T> EpsDrawer &translate( xy<T> p)308 template<class T> EpsDrawer &translate(dim2::Point<T> p) 309 309 { 310 310 return translate(p.x,p.y); … … 317 317 EpsDrawer &scale(double s) { return scale(s,s); } 318 318 ///Scale the coordinate system 319 template<class T> EpsDrawer &scale( xy<T> p)319 template<class T> EpsDrawer &scale(dim2::Point<T> p) 320 320 { 321 321 return scale(p.x,p.y); … … 337 337 ///Print a coordinate at the current point 338 338 template<class T> 339 EpsDrawer &operator<<( xy<T> p)339 EpsDrawer &operator<<(dim2::Point<T> p) 340 340 { 341 341 out << "((" << p.x << ',' << p.y <<")) show\n";
Note: See TracChangeset
for help on using the changeset viewer.