|
Board
0.6.devel
|
#include <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.
|
inline |
| int LibBoard::TransformFIG::mapDepth | ( | int | depth | ) | const |
References _maxDepth, _minDepth, and LibBoard::Transform::round().
Referenced by LibBoard::Dot::flushFIG(), LibBoard::Line::flushFIG(), LibBoard::Arrow::flushFIG(), LibBoard::Polyline::flushFIG(), LibBoard::Rectangle::flushFIG(), LibBoard::Image::flushFIG(), LibBoard::Ellipse::flushFIG(), and LibBoard::Text::flushFIG().
| int LibBoard::TransformFIG::mapWidth | ( | double | width | ) | const |
|
virtual |
Implements LibBoard::Transform.
References LibBoard::Transform::_deltaY, LibBoard::Transform::_height, LibBoard::Transform::_scale, and rounded().
Referenced by LibBoard::Path::flushFIG(), LibBoard::Group::flushFIG(), LibBoard::Dot::flushFIG(), LibBoard::Line::flushFIG(), LibBoard::Arrow::flushFIG(), LibBoard::Ellipse::flushFIG(), and LibBoard::Text::flushFIG().
|
virtual |
Reimplemented from LibBoard::Transform.
References LibBoard::Transform::round().
Referenced by mapY().
|
virtual |
| void LibBoard::TransformFIG::setDepthRange | ( | const ShapeList & | shapes | ) |
References _maxDepth, _minDepth, LibBoard::ShapeList::maxDepth(), and LibBoard::ShapeList::minDepth().
Referenced by LibBoard::Board::saveFIG().
|
private |
Referenced by mapDepth(), and setDepthRange().
|
private |
Referenced by mapDepth(), and setDepthRange().