#include <iostream>
#include "ConfigExamples.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/base/Common.h"
#include "DGtal/io/boards/Board2D.h"
int main(
int argc,
char** argv )
{
trace.beginBlock (
"Example exampleBezierCurve" );
for ( int i = 0; i < argc; ++i )
trace.info() <<
" " << argv[ i ];
Point P(0,0), Q(4,4), R(8,0);
board <<
SetMode(P.className(),
"Grid") << P << Q << R;
#ifdef DGTAL_WITH_CAIRO
#endif
board <<
SetMode(P.className(),
"Grid") << P << Q << R;
#ifdef DGTAL_WITH_CAIRO
#endif
return 0;
}
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 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
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....