|
DGtal 1.4.0
|
Structure representing a scaling and translation suitable for an XFig output. More...
#include <Board/Transforms.h>
Public Member Functions | |
| TransformFIG () | |
| double | rounded (double x) const |
| double | mapY (double y) const |
| int | mapWidth (double width) const |
| void | setBoundingBox (const Rect &rect, const double pageWidth, const double pageHeight, const double margin) |
| void | setDepthRange (const ShapeList &shapes) |
| int | mapDepth (int depth) const |
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 |
Private Attributes | |
| int | _maxDepth |
| int | _minDepth |
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 XFig output.
The TransformFIG structure.
Definition at line 73 of file Transforms.h.
|
inline |
| int LibBoard::TransformFIG::mapDepth | ( | int | depth | ) | const |
Definition at line 158 of file Transforms.cpp.
References _maxDepth, _minDepth, and LibBoard::Transform::round().
| int LibBoard::TransformFIG::mapWidth | ( | double | width | ) | const |
Definition at line 111 of file Transforms.cpp.
References LibBoard::Transform::round().
|
virtual |
Implements LibBoard::Transform.
Definition at line 105 of file Transforms.cpp.
References LibBoard::Transform::_deltaY, LibBoard::Transform::_height, LibBoard::Transform::_scale, and rounded().
|
virtual |
Reimplemented from LibBoard::Transform.
Definition at line 99 of file Transforms.cpp.
References LibBoard::Transform::round().
Referenced by mapY().
|
virtual |
Implements LibBoard::Transform.
Definition at line 121 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.
| void LibBoard::TransformFIG::setDepthRange | ( | const ShapeList & | shapes | ) |
Definition at line 151 of file Transforms.cpp.
References _maxDepth, _minDepth, LibBoard::ShapeList::maxDepth(), and LibBoard::ShapeList::minDepth().
|
private |
Definition at line 86 of file Transforms.h.
Referenced by mapDepth(), and setDepthRange().
|
private |
Definition at line 87 of file Transforms.h.
Referenced by mapDepth(), and setDepthRange().