DGtal
1.5.beta
|
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::TransformSVG, LibBoard::TransformFIG, and LibBoard::TransformEPS.
Referenced by apply().
|
inlinestatic |
|
virtual |
Reimplemented in LibBoard::TransformCairo, LibBoard::TransformSVG, and LibBoard::TransformFIG.
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::TransformSVG, LibBoard::TransformFIG, and LibBoard::TransformEPS.
|
protected |
Definition at line 49 of file Transforms.h.
Referenced by mapX(), LibBoard::TransformEPS::setBoundingBox(), LibBoard::TransformFIG::setBoundingBox(), LibBoard::TransformSVG::setBoundingBox(), and LibBoard::TransformCairo::setBoundingBox().
|
protected |
Definition at line 50 of file Transforms.h.
Referenced by LibBoard::TransformEPS::mapY(), LibBoard::TransformFIG::mapY(), LibBoard::TransformSVG::mapY(), LibBoard::TransformCairo::mapY(), LibBoard::TransformEPS::setBoundingBox(), LibBoard::TransformFIG::setBoundingBox(), LibBoard::TransformSVG::setBoundingBox(), and LibBoard::TransformCairo::setBoundingBox().
|
protected |
Definition at line 51 of file Transforms.h.
Referenced by LibBoard::TransformFIG::mapY(), LibBoard::TransformSVG::mapY(), LibBoard::TransformCairo::mapY(), LibBoard::TransformEPS::setBoundingBox(), LibBoard::TransformFIG::setBoundingBox(), LibBoard::TransformSVG::setBoundingBox(), and LibBoard::TransformCairo::setBoundingBox().
|
protected |
Definition at line 48 of file Transforms.h.
Referenced by mapX(), LibBoard::TransformEPS::mapY(), LibBoard::TransformFIG::mapY(), LibBoard::TransformSVG::mapY(), LibBoard::TransformCairo::mapY(), scale(), LibBoard::TransformEPS::setBoundingBox(), LibBoard::TransformFIG::setBoundingBox(), LibBoard::TransformSVG::setBoundingBox(), and LibBoard::TransformCairo::setBoundingBox().