Public Member Functions | Data Fields

DGtal::CustomColors Struct Reference

#include <DGtalBoard.h>

Inheritance diagram for DGtal::CustomColors:
Inheritance graph
[legend]
Collaboration diagram for DGtal::CustomColors:
Collaboration graph
[legend]

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
Examples:

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]

Constructor.

Parameters:
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.

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