1#include "DGtal/base/Common.h"
2#include "DGtal/helpers/StdDefs.h"
3#include "DGtal/io/boards/Board2D.h"
12int main(
int ,
char** )
19 board.
setUnit(Board2D::UCentimeter);
20 board.
drawArc(0.0, 1.0, 5.0, 0, M_PI/2.0,
false);
21 board.
drawArc(0.0, 1.0, 4.0, 0, M_PI/2.0,
true);
22 board.
drawArc(0.0, 1.0, 3.0, -0.5, M_PI/2.0-0.5,
false);
23 board.
drawArc(0.0, 1.0, 2.0, 0.5, M_PI/2.0+0.5,
false);
28 board.
saveCairo(
"essai.pdf", Board2D::CairoPDF);
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
void saveTikZ(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
void drawArc(double x, double y, double radius, double angle1, double angle2, bool neg, int depthValue=-1)
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
DGtal is the top-level namespace which contains all DGtal functions and types.