DGtal 1.4.0
|
base class for transforms. More...
#include <Board/Transforms.h>
Public Member Functions | |
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 |
Static Public Member Functions | |
static double | round (const double &x) |
Protected Attributes | |
double | _scale |
double | _deltaX |
double | _deltaY |
double | _height |
base class for transforms.
The base class for transforms.
Definition at line 31 of file Transforms.h.
|
inline |
|
inlinevirtual |
Definition at line 34 of file Transforms.h.
|
virtual |
Definition at line 51 of file Transforms.cpp.
|
virtual |
|
pure virtual |
Implemented in LibBoard::TransformCairo, LibBoard::TransformEPS, LibBoard::TransformFIG, and LibBoard::TransformSVG.
Referenced by apply().
|
inlinestatic |
|
virtual |
Reimplemented in LibBoard::TransformCairo, LibBoard::TransformFIG, and LibBoard::TransformSVG.
Definition at line 33 of file Transforms.cpp.
References round().
Referenced by mapX(), LibBoard::TransformEPS::mapY(), and scale().
|
virtual |
|
pure virtual |
Implemented in LibBoard::TransformCairo, LibBoard::TransformEPS, LibBoard::TransformFIG, and LibBoard::TransformSVG.
|
protected |
Definition at line 49 of file Transforms.h.
Referenced by mapX(), LibBoard::TransformCairo::setBoundingBox(), LibBoard::TransformEPS::setBoundingBox(), LibBoard::TransformFIG::setBoundingBox(), and LibBoard::TransformSVG::setBoundingBox().
|
protected |
Definition at line 50 of file Transforms.h.
Referenced by LibBoard::TransformCairo::mapY(), LibBoard::TransformEPS::mapY(), LibBoard::TransformFIG::mapY(), LibBoard::TransformSVG::mapY(), LibBoard::TransformCairo::setBoundingBox(), LibBoard::TransformEPS::setBoundingBox(), LibBoard::TransformFIG::setBoundingBox(), and LibBoard::TransformSVG::setBoundingBox().
|
protected |
Definition at line 51 of file Transforms.h.
Referenced by LibBoard::TransformCairo::mapY(), LibBoard::TransformFIG::mapY(), LibBoard::TransformSVG::mapY(), LibBoard::TransformCairo::setBoundingBox(), LibBoard::TransformEPS::setBoundingBox(), LibBoard::TransformFIG::setBoundingBox(), and LibBoard::TransformSVG::setBoundingBox().
|
protected |
Definition at line 48 of file Transforms.h.
Referenced by mapX(), LibBoard::TransformCairo::mapY(), LibBoard::TransformEPS::mapY(), LibBoard::TransformFIG::mapY(), LibBoard::TransformSVG::mapY(), scale(), LibBoard::TransformCairo::setBoundingBox(), LibBoard::TransformEPS::setBoundingBox(), LibBoard::TransformFIG::setBoundingBox(), and LibBoard::TransformSVG::setBoundingBox().