DGtal 1.4.0
|
Structure representing a scaling and translation suitable for an EPS output. More...
#include <Board/Transforms.h>
Public Member Functions | |
double | mapY (double y) const |
void | setBoundingBox (const Rect &rect, const double pageWidth, const double pageHeight, const double margin) |
Public Member Functions inherited from LibBoard::Transform | |
Transform () | |
virtual | ~Transform () |
virtual double | mapX (double x) const |
virtual void | apply (double &x, double &y) const |
virtual double | scale (double x) const |
virtual double | rounded (double x) const |
Additional Inherited Members | |
Static Public Member Functions inherited from LibBoard::Transform | |
static double | round (const double &x) |
Protected Attributes inherited from LibBoard::Transform | |
double | _scale |
double | _deltaX |
double | _deltaY |
double | _height |
Structure representing a scaling and translation suitable for an EPS output.
The TransformEPS structure.
Definition at line 59 of file Transforms.h.
|
virtual |
Implements LibBoard::Transform.
Definition at line 62 of file Transforms.cpp.
References LibBoard::Transform::_deltaY, LibBoard::Transform::_scale, and LibBoard::Transform::rounded().
|
virtual |
Implements LibBoard::Transform.
Definition at line 68 of file Transforms.cpp.
References LibBoard::Transform::_deltaX, LibBoard::Transform::_deltaY, LibBoard::Transform::_height, LibBoard::Transform::_scale, LibBoard::Rect::height, LibBoard::Rect::left, LibBoard::Rect::top, and LibBoard::Rect::width.
Referenced by LibBoard::Board::saveEPS().