#include <DGtal/io/boards/Board2D.h>
Custom style class redefining the pen color and the fill color. You may use Board2D::Color::None for transparent color.
Board2D board;
board <<
CustomColors( Board2D::Color::Red, Board2D::Color::None );
...
- See also
- Board2D
- Examples:
- arithmetic/lower-integer-convex-hull.cpp, geometry/curves/exampleAlphaThickSegment.cpp, geometry/curves/exampleAlphaThickSegmentNoisy.cpp, geometry/curves/exampleArithmeticalDSS.cpp, geometry/surfaces/dvcm-2d-curvature.cpp, geometry/volumes/distance/distancetransform2D.cpp, geometry/volumes/distance/toricdomainvolumetric.cpp, geometry/volumes/distance/voronoimap2D.cpp, geometry/volumes/dvcm-2d.cpp, graph/graphTraversal.cpp, io/boards/dgtalBoard2D-3-custom-classes.cpp, io/boards/dgtalBoard2D-4-colormaps.cpp, topology/ctopo-1.cpp, topology/ctopo-2.cpp, topology/ctopo-fillContours.cpp, topology/cubical-complex-illustrations.cpp, topology/digitalSetToCubicalComplexes2D.cpp, topology/generateSimplicityTables2D.cpp, and tutorial-examples/freemanChainFromImage.cpp.
Definition at line 278 of file Board2D.h.
◆ CustomColors()
DGtal::CustomColors::CustomColors |
( |
const Color & |
penColor, |
|
|
const Color & |
fillColor |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
penColor | specifies the pen color. |
fillColor | specifies the fill color. |
Definition at line 289 of file Board2D.h.
◆ setStyle()
virtual void DGtal::CustomColors::setStyle |
( |
Board2D & |
| ) |
const |
|
inlinevirtual |
◆ myFillColor
Color DGtal::CustomColors::myFillColor |
◆ myPenColor
Color DGtal::CustomColors::myPenColor |
The documentation for this struct was generated from the following file: