equal
deleted
inserted
replaced
67 out(os) |
67 out(os) |
68 { |
68 { |
69 init(x1,y1,x2,y2); |
69 init(x1,y1,x2,y2); |
70 } |
70 } |
71 |
71 |
72 EpsDrawer::EpsDrawer(std::ostream &os,xy<double> s) : local_stream(false), |
72 EpsDrawer::EpsDrawer(std::ostream &os,dim2::Point<double> s) : local_stream(false), |
73 out(os) |
73 out(os) |
74 { |
74 { |
75 init(0.0,0.0,s.x,s.y); |
75 init(0.0,0.0,s.x,s.y); |
76 } |
76 } |
77 |
77 |
78 EpsDrawer::EpsDrawer(std::ostream &os,xy<double> a, xy<double> b) : |
78 EpsDrawer::EpsDrawer(std::ostream &os,dim2::Point<double> a, dim2::Point<double> b) : |
79 local_stream(false), |
79 local_stream(false), |
80 out(os) |
80 out(os) |
81 { |
81 { |
82 init(a.x,a.y,b.x,b.y); |
82 init(a.x,a.y,b.x,b.y); |
83 } |
83 } |
95 out(*new std::ofstream(name.c_str())) |
95 out(*new std::ofstream(name.c_str())) |
96 { |
96 { |
97 init(x1,y1,x2,y2); |
97 init(x1,y1,x2,y2); |
98 } |
98 } |
99 |
99 |
100 EpsDrawer::EpsDrawer(const std::string &name,xy<double> s) : |
100 EpsDrawer::EpsDrawer(const std::string &name,dim2::Point<double> s) : |
101 local_stream(true), |
101 local_stream(true), |
102 out(*new std::ofstream(name.c_str())) |
102 out(*new std::ofstream(name.c_str())) |
103 { |
103 { |
104 init(0.0,0.0,s.x,s.y); |
104 init(0.0,0.0,s.x,s.y); |
105 } |
105 } |
106 |
106 |
107 EpsDrawer::EpsDrawer(const std::string &name,xy<double> a, xy<double> b) : |
107 EpsDrawer::EpsDrawer(const std::string &name,dim2::Point<double> a, dim2::Point<double> b) : |
108 local_stream(true), |
108 local_stream(true), |
109 out(*new std::ofstream(name.c_str())) |
109 out(*new std::ofstream(name.c_str())) |
110 { |
110 { |
111 init(a.x,a.y,b.x,b.y); |
111 init(a.x,a.y,b.x,b.y); |
112 } |
112 } |