DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
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:
DGtal::DrawableWithBoard2D

Public Member Functions

 CustomFillColor (const Color &fillColor)
 
virtual void setStyle (Board2D &aboard) const
 
- Public Member Functions inherited from DGtal::DrawableWithBoard2D
virtual void setStyle (Board2D &) const
 
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 );
...
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 fill color. You may use Board2D::Color::None for transparent color.
Definition: Board2D.h:343
See also
Board2D
Examples
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)
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: