|
Board 0.9.6
|
Structure representing a scaling and translation suitable for an XFig output. More...
#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) |
| unsigned int | shapeDepth (const Shape *) const |
| unsigned int | mapDepth (unsigned int depth) const |
| void | setDepthMap (const std::map< const Shape *, unsigned int > *, unsigned int min) |
Public Member Functions inherited from LibBoard::Transform | |
| Transform () | |
| virtual | ~Transform () |
| virtual double | mapX (double x) const |
| virtual double | mapY (double y) const =0 |
| virtual Point | map (const Point &) const |
| virtual void | apply (double &x, double &y) const |
| virtual double | scale (double x) const |
| virtual Point | scale (const Point &) 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 XFig output.
The TransformFIG structure.
|
inline |
| unsigned int LibBoard::TransformFIG::mapDepth | ( | unsigned int | depth | ) | const |
References LibBoard::Transform::round().
Referenced by shapeDepth().
| 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::Dot::flushFIG(), LibBoard::Ellipse::flushFIG(), LibBoard::Group::flushFIG(), LibBoard::Image::flushFIG(), and LibBoard::Text::flushFIG().
|
virtual |
Reimplemented from LibBoard::Transform.
References LibBoard::Transform::round().
Referenced by mapY().
|
virtual |
Implements LibBoard::Transform.
References LibBoard::Transform::_deltaX, LibBoard::Transform::_deltaY, LibBoard::Transform::_height, LibBoard::Transform::_scale, LibBoard::Rect::center(), LibBoard::Rect::height, LibBoard::Rect::width, LibBoard::Point::x, and LibBoard::Point::y.
Referenced by LibBoard::Board::saveFIG().
| void LibBoard::TransformFIG::setDepthMap | ( | const std::map< const Shape *, unsigned int > * | depthMap, |
| unsigned int | min | ||
| ) |
Referenced by LibBoard::Board::saveFIG().
| unsigned int LibBoard::TransformFIG::shapeDepth | ( | const Shape * | shape | ) | const |