DGtal  0.9.3
Public Member Functions | Data Fields
DGtal::CustomFillColor Struct Reference

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

Inheritance diagram for DGtal::CustomFillColor:
Collaboration diagram for DGtal::CustomFillColor:

Public Member Functions

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

Data Fields

Color myFillColor

Detailed Description

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

Board2D board;
board << CustomFillColor( Board2D::Color::Green );
See also
geometry/volumes/distance/exampleFMM2D.cpp, io/boards/dgtalBoard2D-3-custom-classes.cpp, shapes/exampleEuclideanShapesDecorator.cpp, and topology/digitalSetToCubicalComplexes2D.cpp.

Definition at line 342 of file Board2D.h.

Constructor & Destructor Documentation

◆ CustomFillColor()

DGtal::CustomFillColor::CustomFillColor ( const Color fillColor)


fillColorspecifies the fill color.

Definition at line 351 of file Board2D.h.

352  : myFillColor( fillColor )
353  {}

Member Function Documentation

◆ setStyle()

virtual void DGtal::CustomFillColor::setStyle ( Board2D ) const

Operation to override. Does nothing by default.

Reimplemented from DGtal::DrawableWithBoard2D.

Definition at line 355 of file Board2D.h.

References LibBoard::Board::setFillColor().

356  {
357  aboard.setFillColor( myFillColor );
358  }

Field Documentation

◆ myFillColor

Color DGtal::CustomFillColor::myFillColor

Definition at line 344 of file Board2D.h.

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