|
DGtal 1.4.2
|
Custom style class redefining the pen attributes. You may use Board2D::Color::None for transparent color. More...
#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 myFillColor, myLineCap, myLineJoin, myLineStyle, myLineWidth, myPenColor, LibBoard::Board::setFillColor(), LibBoard::Board::setLineCap(), LibBoard::Board::setLineJoin(), LibBoard::Board::setLineStyle(), LibBoard::Board::setLineWidth(), and LibBoard::Board::setPenColor().
| Color DGtal::CustomPen::myFillColor |
Definition at line 376 of file Board2D.h.
Referenced by setStyle().
| Board2D::Shape::LineCap DGtal::CustomPen::myLineCap |
The linecap attribute. (The way line terminates.)
Definition at line 379 of file Board2D.h.
Referenced by setStyle().
| Board2D::Shape::LineJoin DGtal::CustomPen::myLineJoin |
The linejoin attribute. (The shape of line junctions.)
Definition at line 380 of file Board2D.h.
Referenced by setStyle().
| Board2D::Shape::LineStyle DGtal::CustomPen::myLineStyle |
The line style (solid, dashed, etc.).
Definition at line 378 of file Board2D.h.
Referenced by setStyle().
| double DGtal::CustomPen::myLineWidth |
Definition at line 377 of file Board2D.h.
Referenced by setStyle().
| Color DGtal::CustomPen::myPenColor |
Definition at line 375 of file Board2D.h.
Referenced by setStyle().