DGtal 1.3.0
|
Structure representing a scaling and translation suitable for an Cairo 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 double | mapY (double y) const =0 |
virtual void | apply (double &x, double &y) const |
virtual double | scale (double x) const |
virtual double | rounded (double x) const |
virtual void | setBoundingBox (const Rect &rect, const double pageWidth, const double pageHeight, const double margin)=0 |
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 Cairo output.
The TransformCairo structure.
Definition at line 112 of file Transforms.h.
double LibBoard::TransformCairo::mapWidth | ( | double | width | ) | const |
Definition at line 240 of file Transforms.cpp.
References LibBoard::Transform::round().
|
virtual |
Implements LibBoard::Transform.
Definition at line 234 of file Transforms.cpp.
References LibBoard::Transform::_deltaY, LibBoard::Transform::_height, LibBoard::Transform::_scale, and rounded().
|
virtual |
Reimplemented from LibBoard::Transform.
Definition at line 228 of file Transforms.cpp.
References LibBoard::Transform::round().
Referenced by mapY().
|
virtual |
Implements LibBoard::Transform.
Definition at line 247 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.