Public Member Functions | Data Fields

DGtal::CustomColors Struct Reference

#include <DGtalBoard.h>

Inheritance diagram for DGtal::CustomColors:
Inheritance graph
Collaboration diagram for DGtal::CustomColors:
Collaboration graph

Public Member Functions

 CustomColors (const DGtalBoard::Color &penColor, const DGtalBoard::Color &fillColor)
virtual void selfDraw (DGtalBoard &aboard) const

Data Fields

DGtalBoard::Color myPenColor
DGtalBoard::Color myFillColor

Detailed Description

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

   DGtalBoard board;
   board << CustomColors( DGtalBoard::Color::Red, DGtalBoard::Color::None );
See also:

dgtalboard-3-custom-classes.cpp, and dgtalboard-4-colormaps.cpp.

Constructor & Destructor Documentation

DGtal::CustomColors::CustomColors ( const DGtalBoard::Color penColor,
const DGtalBoard::Color fillColor 
) [inline]


penColor specifies the pen color.
fillColor specifies the fill color.

Member Function Documentation

virtual void DGtal::CustomColors::selfDraw ( DGtalBoard  )  const [inline, virtual]

Operation to override. Does nothing by default.

board any object of type Board.

Reimplemented from DGtal::DrawableWithDGtalBoard.

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

Field Documentation

Referenced by selfDraw().

Referenced by selfDraw().

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