43 #include "DGtal/base/Common.h"
44 #include "DGtal/io/boards/Board2D.h"
45 #include "DGtal/helpers/StdDefs.h"
46 #include "DGtal/io/Color.h"
50 using namespace DGtal;
63 Color red( 255, 0, 0 );
64 Color dred( 192, 0, 0 );
65 Color dgreen( 0, 192, 0 );
66 Color blue( 0, 0, 255 );
67 Color dblue( 0, 0, 192 );
77 Board2D::Shape::SolidStyle,
78 Board2D::Shape::RoundCap,
79 Board2D::Shape::RoundJoin ) )
81 board.
saveSVG(
"dgtalBoard2D-3-custom-classes.svg");
82 board.
saveEPS(
"dgtalBoard2D-3-custom-classes.eps");
83 board.
saveTikZ(
"dgtalBoard2D-3-custom-classes.tikz");
86 board.
saveCairo(
"dgtalBoard2D-3-custom-classes-cairo.pdf", Board2D::CairoPDF);
87 board.
saveCairo(
"dgtalBoard2D-3-custom-classes-cairo.png", Board2D::CairoPNG);
88 board.
saveCairo(
"dgtalBoard2D-3-custom-classes-cairo.ps", Board2D::CairoPS);
89 board.
saveCairo(
"dgtalBoard2D-3-custom-classes-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="")
void saveTikZ(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
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.
Custom style class redefining the pen color and the fill color. You may use Board2D::Color::None for ...
Custom style class redefining the fill color. You may use Board2D::Color::None for transparent color.
Custom style class redefining the pen attributes. You may use Board2D::Color::None for transparent co...