BoardLib::Rectangle Struct Reference

A rectangle. More...

#include <Shapes.h>

Inheritance diagram for BoardLib::Rectangle:

BoardLib::Polyline BoardLib::Shape

List of all members.

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
Shapeclone () const


Detailed Description

A rectangle.

The rectangle structure.


Member Function Documentation

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.

Parameters:
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.

Parameters:
stream The output stream.
transform A 2D transform to be applied.

Reimplemented from BoardLib::Polyline.

Shape* BoardLib::Rectangle::clone (  )  const [inline, virtual]

Return a copy of the shape.

Returns:

Reimplemented from BoardLib::Polyline.


The documentation for this struct was generated from the following files:
Generated on Mon Dec 17 11:15:52 2007 for Board by  doxygen 1.5.3-20071008