DGtal  1.5.beta
DGtal::CustomFillColor Struct Reference

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

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

Inheritance diagram for DGtal::CustomFillColor:
[legend]

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 );
...
CustomFillColor(const Color &fillColor)
Definition: Board2D.h:351
See also
Board2D

Definition at line 342 of file Board2D.h.

Constructor & Destructor Documentation

◆ CustomFillColor()

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

Constructor.

Parameters
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
inlinevirtual

Operation to override. Does nothing by default.

Reimplemented from DGtal::DrawableWithBoard2D.

Definition at line 355 of file Board2D.h.

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

References myFillColor, and LibBoard::Board::setFillColor().

Field Documentation

◆ myFillColor

Color DGtal::CustomFillColor::myFillColor

Definition at line 344 of file Board2D.h.

Referenced by setStyle().


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