44 #include "DGtal/base/Common.h"
45 #include "DGtal/io/Color.h"
46 #include "DGtal/io/boards/Board2D.h"
47 #include "DGtal/helpers/StdDefs.h"
51 using namespace DGtal;
59 MyDrawStyleCustomColor(
const Color & penColor,
60 const Color & fillColor )
61 : myPenColor( penColor ), myFillColor( fillColor )
64 virtual void setStyle(
Board2D & aboard)
const
80 Color red( 255, 0, 0 );
81 Color dred( 192, 0, 0 );
82 Color green( 0, 255, 0 );
83 Color dgreen( 0, 192, 0 );
84 Color blue( 0, 0, 255 );
85 Color dblue( 0, 0, 192 );
95 board.
saveSVG(
"dgtalBoard2D-3-custom-points.svg");
96 board.
saveEPS(
"dgtalBoard2D-3-custom-points.eps");
97 board.
saveTikZ(
"dgtalBoard2D-3-custom-points.tikz");
100 board.
saveCairo(
"dgtalBoard2D-3-custom-points-cairo.pdf", Board2D::CairoPDF);
101 board.
saveCairo(
"dgtalBoard2D-3-custom-points-cairo.png", Board2D::CairoPNG);
102 board.
saveCairo(
"dgtalBoard2D-3-custom-points-cairo.ps", Board2D::CairoPS);
103 board.
saveCairo(
"dgtalBoard2D-3-custom-points-cairo.svg", Board2D::CairoSVG);
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Structure representing an RGB triple with alpha component.
std::string className() const
void beginBlock(const std::string &keyword="")
Board & setPenColor(const DGtal::Color &color)
void saveTikZ(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
Board & setFillColor(const DGtal::Color &color)
void saveEPS(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
void saveSVG(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
void saveCairo(const char *filename, CairoType type=CairoPNG, PageSize size=Board::BoundingBox, double margin=10.0) const
Z2i this namespace gathers the standard of types for 2D imagery.
DGtal is the top-level namespace which contains all DGtal functions and types.