DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
DGtal::CustomPenColor Struct Reference

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

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

Inheritance diagram for DGtal::CustomPenColor:
DGtal::DrawableWithBoard2D

Public Member Functions

 CustomPenColor (const Color &penColor)
 
virtual void setStyle (Board2D &aboard) const
 
- Public Member Functions inherited from DGtal::DrawableWithBoard2D
virtual void setStyle (Board2D &) const
 
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 );
...
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Definition: Board2D.h:71
Custom style class redefining the pen color. You may use Board2D::Color::None for transparent color.
Definition: Board2D.h:313
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

◆ CustomPenColor()

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

◆ setStyle()

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.

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

References myPenColor, and LibBoard::Board::setPenColor().

Field Documentation

◆ myPenColor

Color DGtal::CustomPenColor::myPenColor

Definition at line 314 of file Board2D.h.

Referenced by setStyle().


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