|
DGtal 1.4.2
|
Structure representing a scaling and translation suitable for an SVG output. More...
#include <Board/Transforms.h>
Public Member Functions | |
| double | rounded (double x) const |
| double | mapY (double y) const |
| double | mapWidth (double width) 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 |
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 SVG output.
The TransformSVG structure.
Definition at line 95 of file Transforms.h.
| double LibBoard::TransformSVG::mapWidth | ( | double | width | ) | const |
Definition at line 188 of file Transforms.cpp.
References LibBoard::Transform::round().
|
virtual |
Implements LibBoard::Transform.
Definition at line 182 of file Transforms.cpp.
References LibBoard::Transform::_deltaY, LibBoard::Transform::_height, LibBoard::Transform::_scale, and rounded().
|
virtual |
Reimplemented from LibBoard::Transform.
Definition at line 176 of file Transforms.cpp.
References LibBoard::Transform::round().
Referenced by mapY().
|
virtual |
Implements LibBoard::Transform.
Definition at line 195 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.