#include <Shapes.h>
Inheritance diagram for BoardLib::Text:
Public Member Functions | |
Text (float x, float y, const std::string &text, const std::string &font, float size, Color color, unsigned int depth) | |
void | flushPostscript (std::ostream &stream, const TransformEPS &transform) const |
void | flushFIG (std::ostream &stream, const TransformFIG &transform, std::map< Color, int > &colormap) const |
void | flushSVG (std::ostream &stream, const TransformSVG &transform) const |
Rect | boundingBox () const |
Public Attributes | |
float | x |
float | y |
std::string | text |
std::string | font |
float | size |
The text structure.
void BoardLib::Text::flushPostscript | ( | std::ostream & | stream, | |
const TransformEPS & | transform | |||
) | const [virtual] |
Writes the EPS code of the shape in a stream according to a transform.
stream | The output stream. | |
transform | A 2D transform to be applied. |
Implements BoardLib::Shape.
void BoardLib::Text::flushFIG | ( | std::ostream & | stream, | |
const TransformFIG & | transform, | |||
std::map< Color, int > & | colormap | |||
) | const [virtual] |
Writes the FIG code of the shape in a stream according to a transform.
stream | The output stream. | |
transform | A 2D transform to be applied. |
Implements BoardLib::Shape.
void BoardLib::Text::flushSVG | ( | std::ostream & | stream, | |
const TransformSVG & | transform | |||
) | const [virtual] |
Writes the SVG code of the shape in a stream according to a transform.
stream | The output stream. | |
transform | A 2D transform to be applied. |
Implements BoardLib::Shape.
Rect BoardLib::Text::boundingBox | ( | ) | const [virtual] |
Returns the bounding box of the figure.
Implements BoardLib::Shape.