#include <ShapeList.h>
Public Member Functions | |
Group (int depth=-1) | |
Group (const Group &other) | |
const std::string & | name () const |
Group | rotated (double angle, const Point ¢er) |
Group | rotated (double angle) |
Group | translated (double dx, double dy) |
Group | scaled (double sx, double sy) |
Group | scaled (double s) |
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 |
Group & | operator= (const Group &other) |
Shape * | clone () const |
The Group structure.
examples/arrows.cpp, examples/ellipse.cpp, examples/example4.cpp, and examples/koch.cpp.
const std::string & LibBoard::Group::name | ( | ) | const [virtual] |
Returns the generic name of the shape (e.g., Circle, Rectangle, etc.)
Reimplemented from LibBoard::ShapeList.
void LibBoard::Group::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. |
Reimplemented from LibBoard::ShapeList.
References LibBoard::ShapeList::flushPostscript().
void LibBoard::Group::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. |
Reimplemented from LibBoard::ShapeList.
References LibBoard::Shape::bbox(), LibBoard::ShapeList::boundingBox(), LibBoard::ShapeList::flushFIG(), LibBoard::Rect::height, LibBoard::Rect::left, LibBoard::Transform::mapX(), LibBoard::TransformFIG::mapY(), LibBoard::Rect::top, and LibBoard::Rect::width.
void LibBoard::Group::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. |
Reimplemented from LibBoard::ShapeList.
References LibBoard::ShapeList::flushSVG().
Shape * LibBoard::Group::clone | ( | ) | const [virtual] |