#include <Shapes.h>
Public Member Functions | |
Rectangle (double x, double y, double width, double height, Color penColor, Color fillColor, float lineWidth, const LineCap cap=ButtCap, const LineJoin join=MiterJoin, int depth=-1) | |
Rectangle (const Rect &rect, Color penColor, Color fillColor, float lineWidth, const LineCap cap=ButtCap, const LineJoin join=MiterJoin, int depth=-1) | |
double | x () const |
double | y () const |
double | width () |
double | height () |
void | flushFIG (std::ostream &stream, const TransformFIG &transform, std::map< Color, int > &colormap) const |
void | flushSVG (std::ostream &stream, const TransformSVG &transform) const |
Shape * | clone () const |
The rectangle structure.
void BoardLib::Rectangle::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 BoardLib::Polyline.
void BoardLib::Rectangle::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 BoardLib::Polyline.
Shape* BoardLib::Rectangle::clone | ( | ) | const [inline, virtual] |