DGtal  0.9.3beta
Public Member Functions | Data Fields
DGtal::CustomPenColor Struct Reference

#include <DGtal/io/boards/Board2D.h>

Inheritance diagram for DGtal::CustomPenColor:
[legend]
Collaboration diagram for DGtal::CustomPenColor:
[legend]

Public Member Functions

 CustomPenColor (const Color &penColor)
 
virtual void setStyle (Board2D &aboard) const
 
- Public Member Functions inherited from DGtal::DrawableWithBoard2D
virtual ~DrawableWithBoard2D ()
 

Data Fields

Color myPenColor
 

Detailed Description

Custom style class redefining the pen color. You may use Board2D::Color::None for transparent color.

Board2D board;
board << CustomPenColor( Board2D::Color::Green );
...
See also
Board2D
Examples:
geometry/curves/convex-and-concave-parts.cpp, geometry/curves/greedy-dss-decomposition.cpp, geometry/curves/greedyAlphaThickDecomposition.cpp, geometry/tools/exampleAlphaShape.cpp, and geometry/tools/exampleConvexHull2D.cpp.

Definition at line 312 of file Board2D.h.

Constructor & Destructor Documentation

DGtal::CustomPenColor::CustomPenColor ( const Color penColor)
inline

Constructor.

Parameters
penColorspecifies the pen color.

Definition at line 321 of file Board2D.h.

322  : myPenColor( penColor )
323  {}

Member Function Documentation

virtual void DGtal::CustomPenColor::setStyle ( Board2D ) const
inlinevirtual

Operation to override. Does nothing by default.

Reimplemented from DGtal::DrawableWithBoard2D.

Definition at line 325 of file Board2D.h.

References LibBoard::Board::setPenColor().

326  {
327  aboard.setPenColor( myPenColor );
328  }

Field Documentation

Color DGtal::CustomPenColor::myPenColor

Definition at line 314 of file Board2D.h.


The documentation for this struct was generated from the following file: