DGtal
1.0.beta
|
#include <DGtal/io/boards/Board2D.h>
Public Member Functions | |
CustomPen (const Color &penColor, const Color &fillColor, double lineWidth=1.0, Board2D::Shape::LineStyle lineStyle=Board2D::Shape::SolidStyle, Board2D::Shape::LineCap lineCap=Board2D::Shape::ButtCap, Board2D::Shape::LineJoin lineJoin=Board2D::Shape::MiterJoin) | |
virtual void | setStyle (Board2D &aboard) const |
Public Member Functions inherited from DGtal::DrawableWithBoard2D | |
virtual | ~DrawableWithBoard2D () |
Data Fields | |
Color | myPenColor |
Color | myFillColor |
double | myLineWidth |
Board2D::Shape::LineStyle | myLineStyle |
Board2D::Shape::LineCap | myLineCap |
Board2D::Shape::LineJoin | myLineJoin |
int | myDepth |
Custom style class redefining the pen attributes. You may use Board2D::Color::None for transparent color.
|
inline |
Constructor.
penColor | specifies the pen color. |
fillColor | specifies the fill color. |
lineWidth | specifies the width of the drawing line. |
lineStyle | specifies the drawing line style (SolidStyle, DashStyle, DotStyle, DashDotStyle, DashDotDotStyle, DashDotDotDotStyle ) |
lineCap | specifies the drawing line cap (ButtCap, RoundCap, SquareCap ) |
lineJoin | specifies the drawing line join (MiterJoin, RoundJoin, BevelJoin ) |
Definition at line 400 of file Board2D.h.
|
inlinevirtual |
Operation to override. Does nothing by default.
Reimplemented from DGtal::DrawableWithBoard2D.
Definition at line 411 of file Board2D.h.
References LibBoard::Board::setFillColor(), LibBoard::Board::setLineCap(), LibBoard::Board::setLineJoin(), LibBoard::Board::setLineStyle(), LibBoard::Board::setLineWidth(), and LibBoard::Board::setPenColor().
Board2D::Shape::LineCap DGtal::CustomPen::myLineCap |
Board2D::Shape::LineJoin DGtal::CustomPen::myLineJoin |
Board2D::Shape::LineStyle DGtal::CustomPen::myLineStyle |