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" 
   57int main( 
int argc, 
char** argv )
 
   59    trace.beginBlock ( 
"Example EuclideanShapesDecorator" );
 
   60    trace.info() << 
"Args:";
 
   61    for ( 
int i = 0; i < argc; ++i )
 
   62        trace.info() << 
" " << argv[ 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.
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....
static void digitalShaper(TDigitalSet &aSet, const TShapeFunctor &aFunctor)
void saveSVG(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
Space::RealPoint RealPoint
DigitalSetSelector< Domain, BIG_DS+HIGH_BEL_DS >::Type DigitalSet
HyperRectDomain< Space > Domain
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....