35 #include "DGtal/base/Common.h"
38 #include "DGtal/shapes/GaussDigitizer.h"
39 #include "DGtal/topology/LightImplicitDigitalSurface.h"
40 #include "DGtal/topology/DigitalSurface.h"
41 #include "DGtal/io/boards/Board2D.h"
42 #include "DGtal/images/ImageHelper.h"
43 #include "DGtal/shapes/Shapes.h"
44 #include "DGtal/shapes/implicit/ImplicitBall.h"
45 #include "DGtal/shapes/EuclideanShapesDecorator.h"
48 #include "DGtal/io/boards/Board2D.h"
53 using namespace DGtal;
57 int main(
int argc,
char** argv )
61 for (
int i = 0; i < argc; ++i )
76 Minus s_minus ( shapeA );
77 s_minus.minus( shapeB );
78 s_minus.plus( shapeC );
82 MyGaussDigitizer digShape;
83 digShape.
attach( s_minus );
84 digShape.init( s_minus.getLowerBound(), s_minus.getUpperBound(), h );
93 Color dorange ( 255, 136, 0, 220 );
98 board.
saveSVG (
"example-EuclideanShapesDecorator.svg" );
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Structure representing an RGB triple with alpha component.
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
std::string className() const
Aim: Constructive Solid Geometry (CSG) between models of CEuclideanBoundedShape and CEuclideanOriente...
Aim: A class for computing the Gauss digitization of some Euclidean shape, i.e. its intersection with...
void attach(ConstAlias< EuclideanShape > shape)
std::string className() const
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball in nD....
Aim: Implements basic operations that will be used in Point and Vector classes.
Aim: A utility class for constructing different shapes (balls, diamonds, and others).
void beginBlock(const std::string &keyword="")
void saveSVG(const char *filename, 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.
Custom style class redefining the fill color. You may use Board2D::Color::None for transparent color.
Modifier class in a Board2D stream. Useful to choose your own mode for a given class....