Some style cleanup to libglabels.

This commit is contained in:
Jim Evins
2015-08-11 17:18:49 -04:00
parent de8ec9b66a
commit 0ad6caeeca
46 changed files with 1294 additions and 380 deletions
+20
View File
@@ -28,6 +28,19 @@
namespace libglabels
{
Layout::Layout( int nx, int ny, double x0, double y0, double dx, double dy )
: mNx(nx), mNy(ny), mX0(x0), mY0(y0), mDx(dx), mDy(dy)
{
}
Layout::Layout( const Layout& other )
: mNx(other.mNx), mNy(other.mNy), mX0(other.mX0), mY0(other.mY0),
mDx(other.mDx), mDy(other.mDy)
{
}
bool Layout::isSimilarTo( const Layout *other )
{
return ( (mNx == other->mNx) &&
@@ -38,4 +51,11 @@ namespace libglabels
(fabs(mDy - other->mDy) < Constants::EPSILON) );
}
Layout* Layout::dup() const
{
Layout *other = new Layout( *this );
return other;
}
}