BoardLib::Polyline Struct Reference

A polygonal line described by a series of 2D points. More...

#include <Shapes.h>

Inheritance diagram for BoardLib::Polyline:

BoardLib::Shape BoardLib::GouraudTriangle List of all members.

Public Member Functions

 Polyline (const std::vector< Point > &points, bool closed, Color penColor, Color fillColor, float lineWidth, const LineCap cap=ButtCap, const LineJoin join=MiterJoin, unsigned int depth=0)
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

std::vector< Pointpoints
bool closed

Detailed Description

A polygonal line described by a series of 2D points.

The polyline structure.


Member Function Documentation

void BoardLib::Polyline::flushPostscript ( std::ostream &  stream,
const TransformEPS transform 
) const [virtual]

Writes the EPS code of the shape in a stream according to a transform.

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

Implements BoardLib::Shape.

Reimplemented in BoardLib::GouraudTriangle.

void BoardLib::Polyline::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.

Implements BoardLib::Shape.

Reimplemented in BoardLib::GouraudTriangle.

void BoardLib::Polyline::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.

Implements BoardLib::Shape.

Reimplemented in BoardLib::GouraudTriangle.

Rect BoardLib::Polyline::boundingBox (  )  const [virtual]

Returns the bounding box of the figure.

Returns:
The rectangle of the bounding box.

Implements BoardLib::Shape.


The documentation for this struct was generated from the following files:
Generated on Fri Aug 24 19:07:40 2007 for Board by  doxygen 1.5.1