COIN-OR::LEMON - Graph Library

Changeset 2207:75a29ac69c19 in lemon-0.x for lemon/eps.h


Ignore:
Timestamp:
09/07/06 15:27:16 (13 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2933
Message:

xy -> dim2::Point

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/eps.h

    r2174 r2207  
    2525#include<sstream>
    2626#include<lemon/color.h>
    27 #include<lemon/xy.h>
     27#include<lemon/dim2.h>
    2828
    2929  ///\ingroup eps_io
     
    101101    ///\c s determines the upper
    102102    ///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);
    104104    ///\e
    105105
     
    109109    /// determine the lower left and the upper right corners of
    110110    ///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);
    112112    ///\e
    113113
     
    131131    ///\c s determines the upper
    132132    ///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);
    134134    ///\e
    135135
     
    139139    /// determine the lower left and the upper right corners of
    140140    ///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);
    142142
    143143//     template<class T> EpsDrawer(std::ostream &os,BoundingBox<T> b)
     
    169169   
    170170    ///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)
    172172    {
    173173      return line(p1.x,p1.y,p2.x,p2.y);
    174174    }
    175175    ///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)
    177177    {
    178178      return lineTo(p.x,p.y);
    179179    }
    180180    ///Move the current point
    181     template<class T> EpsDrawer &moveTo(xy<T> p)
     181    template<class T> EpsDrawer &moveTo(dim2::Point<T> p)
    182182    {
    183183      return moveTo(p.x,p.y);
    184184    }
    185185    ///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)
    187187    {
    188188      return circle(p.x,p.y,r);
     
    297297    ///\param brd Color of the node border. The default color is black
    298298    template<class T>
    299     EpsDrawer &node(NodeShapes t, xy<T> pos, double r,
     299    EpsDrawer &node(NodeShapes t, dim2::Point<T> pos, double r,
    300300                    Color col=WHITE, Color brd=BLACK)
    301301    {
     
    306306    EpsDrawer &translate(double x,double y);
    307307    ///Translate the coordinate system
    308     template<class T> EpsDrawer &translate(xy<T> p)
     308    template<class T> EpsDrawer &translate(dim2::Point<T> p)
    309309    {
    310310      return translate(p.x,p.y);
     
    317317    EpsDrawer &scale(double s) { return scale(s,s); }
    318318    ///Scale the coordinate system
    319     template<class T> EpsDrawer &scale(xy<T> p)
     319    template<class T> EpsDrawer &scale(dim2::Point<T> p)
    320320    {
    321321      return scale(p.x,p.y);
     
    337337    ///Print a coordinate at the current point
    338338    template<class T>
    339     EpsDrawer &operator<<(xy<T> p)
     339    EpsDrawer &operator<<(dim2::Point<T> p)
    340340    {
    341341      out << "((" << p.x << ',' << p.y <<")) show\n";
Note: See TracChangeset for help on using the changeset viewer.