#include "Length.h"
+#include <cstdlib>
#include <sstream>
using namespace std;
namespace graphics {
Params::Params()
- : display(ColorDisplay),
+ : display(true),
scale(100),
+ pixel_ratio(1.0),
angle(0)
{}
a.display == b.display &&
a.bb == b.bb &&
a.scale == b.scale &&
+ a.pixel_ratio == b.pixel_ratio &&
a.angle == b.angle);
}
}
-std::ostream & operator<<(std::ostream & os, BoundingBox const & bb)
+ostream & operator<<(ostream & os, BoundingBox const & bb)
{
os << bb.xl << ' ' << bb.yb << ' ' << bb.xr << ' ' << bb.yt;
return os;
if (bb.empty())
return;
- std::istringstream is(bb.c_str());
+ istringstream is(bb.c_str());
string a, b, c, d;
is >> a >> b >> c >> d;