40 #include "ConfigExamples.h"
41 #include "DGtal/helpers/StdDefs.h"
42 #include "DGtal/base/Common.h"
44 #include "DGtal/io/boards/Board2D.h"
48 using namespace DGtal;
52 int main(
int argc,
char** argv )
56 for (
int i = 0; i < argc; ++i )
62 Point P(0,0), Q(4,4), R(8,0);
68 board <<
SetMode(P.className(),
"Grid") << P << Q << R;
71 board.
saveSVG(
"BezierCurve.svg", Board2D::BoundingBox, 5000 );
72 board.
saveEPS(
"BezierCurve.eps", Board2D::BoundingBox, 5000 );
73 board.
saveTikZ(
"BezierCurve.tikz", Board2D::BoundingBox, 5000 );
74 board.
saveFIG(
"BezierCurve.fig", Board2D::BoundingBox, 5000 );
76 board.
saveCairo(
"BezierCurve.pdf", Board2D::CairoPDF);
81 board <<
SetMode(P.className(),
"Grid") << P << Q << R;
85 board.
saveSVG(
"BezierCurve2.svg", Board2D::BoundingBox, 5000 );
86 board.
saveEPS(
"BezierCurve2.eps", Board2D::BoundingBox, 5000 );
87 board.
saveTikZ(
"BezierCurve2.tikz", Board2D::BoundingBox, 5000 );
88 board.
saveFIG(
"BezierCurve2.fig", Board2D::BoundingBox, 5000 );
90 board.
saveCairo(
"BezierCurve2.pdf", Board2D::CairoPDF);
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Aim: Implements basic operations that will be used in Point and Vector classes.
void beginBlock(const std::string &keyword="")
void saveTikZ(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
void saveFIG(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0, bool includeFIGHeader=true) const
void drawQuadraticBezierCurve(double x1, double y1, double x2, double y2, double x3, double y3, int depthValue=-1)
void clear(const DGtal::Color &color=DGtal::Color::None)
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
int main(int argc, char **argv)
DGtal is the top-level namespace which contains all DGtal functions and types.
Modifier class in a Board2D stream. Useful to choose your own mode for a given class....