#include <Shapes.h>
Inheritance diagram for BoardLib::Arrow:
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, 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 |
The arrow structure.
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 , |
|||
unsigned int | depth = 0 | |||
) | [inline] |
Constructs an arrow.
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. |
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.
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.
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.
stream | The output stream. | |
transform | A 2D transform to be applied. |
Reimplemented from BoardLib::Line.