BoardLib::Arrow Struct Reference

A line between two points with an arrow at one extremity. More...

#include <Shapes.h>

Inheritance diagram for BoardLib::Arrow:

BoardLib::Line BoardLib::Shape

List of all members.

Public Member Functions

 Arrow (double x1, double y1, double x2, double y2, Color penColor, Color fillColor, float lineWidth, const LineCap cap=ButtCap, const LineJoin join=MiterJoin, int depth=-1)
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
Shapeclone () const


Detailed Description

A line between two points with an arrow at one extremity.

The arrow structure.


Constructor & Destructor Documentation

BoardLib::Arrow::Arrow ( double  x1,
double  y1,
double  x2,
double  y2,
Color  penColor,
Color  fillColor,
float  lineWidth,
const LineCap  cap = ButtCap,
const LineJoin  join = MiterJoin,
int  depth = -1 
) [inline]

Constructs an arrow.

Parameters:
x1 First coordinate of the start point.
y1 Second coordinate of the start point.
x2 First coordinate of the end point.
y2 Second coordinate of the end point.
penColor The color of the line.
fillColor The fill color of the sharp end.
lineWidth The line thickness.
depth The depth of the line.


Member Function Documentation

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

Reimplemented from BoardLib::Line.

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

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

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

Return a copy of the shape.

Returns:

Reimplemented from BoardLib::Line.


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