DGtal  1.5.beta
DGtal::CustomPenColor Struct Reference

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

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

Inheritance diagram for DGtal::CustomPenColor:
[legend]

Public Member Functions

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

Data Fields

Color myPenColor
 

Detailed Description

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

Board2D board;
board << CustomPenColor( Board2D::Color::Green );
...
CustomPenColor(const Color &penColor)
Definition: Board2D.h:321
See also
Board2D

Definition at line 312 of file Board2D.h.

Constructor & Destructor Documentation

◆ CustomPenColor()

DGtal::CustomPenColor::CustomPenColor ( const Color penColor)
inline

Constructor.

Parameters
penColorspecifies the pen color.

Definition at line 321 of file Board2D.h.

322  : myPenColor( penColor )
323  {}

Member Function Documentation

◆ setStyle()

virtual void DGtal::CustomPenColor::setStyle ( Board2D ) const
inlinevirtual

Operation to override. Does nothing by default.

Reimplemented from DGtal::DrawableWithBoard2D.

Definition at line 325 of file Board2D.h.

326  {
327  aboard.setPenColor( myPenColor );
328  }

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

Field Documentation

◆ myPenColor

Color DGtal::CustomPenColor::myPenColor

Definition at line 314 of file Board2D.h.

Referenced by setStyle().


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