DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Data Fields
DGtal::CustomPenColor Struct Reference

#include <Board2D.h>

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

Public Member Functions

 CustomPenColor (const Color &penColor)
virtual void setStyle (Board2D &aboard) const

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 );
...
See also:
Board2D

Definition at line 325 of file Board2D.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
penColorspecifies the pen color.

Definition at line 334 of file Board2D.h.

: myPenColor( penColor )
{}

Member Function Documentation

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

Operation to override. Does nothing by default.

Parameters:
boardany object of type Board.

Reimplemented from DGtal::DrawableWithBoard2D.

Definition at line 338 of file Board2D.h.

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

{
aboard.setPenColor( myPenColor );
}

Field Documentation

Color DGtal::CustomPenColor::myPenColor

Definition at line 327 of file Board2D.h.

Referenced by setStyle().


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