Go to the documentation of this file.
43 #include "ConfigExamples.h"
44 #include "DGtal/helpers/StdDefs.h"
45 #include "DGtal/base/Common.h"
47 #include "DGtal/topology/CubicalComplex.h"
49 #include "DGtal/shapes/GaussDigitizer.h"
50 #include "DGtal/shapes/Shapes.h"
51 #include "DGtal/shapes/EuclideanShapesDecorator.h"
52 #include "DGtal/shapes/parametric/Flower2D.h"
54 #include "DGtal/io/boards/Board2D.h"
55 #include "DGtal/io/Color.h"
59 using namespace DGtal;
60 using namespace functors;
70 MyEuclideanShape shape(
RealPoint( 0.0, 0.0 ), 16, 5, 5, M_PI_2/2. );
73 MyGaussDigitizer digShape;
75 digShape.init ( shape.getLowerBound(), shape.getUpperBound(), 1.0 );
76 Domain domainShape = digShape.getDomain();
77 DigitalSet aSet( domainShape );
82 Color dorange ( 255, 136, 0, 220 );
88 typedef map<Cell, CubicalCellData>
Map;
92 K.
init ( domainShape.lowerBound(), domainShape.upperBound(),
true );
96 board <<
SetMode( domainShape.className(),
"Paving" ) << domainShape;
106 Color( 0, 0, 0 ) ) );
110 Color( 100, 255, 100 ) ) );
114 Color( 100, 255, 100 ) ) );
118 board.
saveEPS (
"cubicalComplexes.eps" );
Structure representing an RGB triple with alpha component.
bool init(const Point &lower, const Point &upper, bool isClosed)
Specifies the upper and lower bounds for the maximal cells in this space.
CC::CellMapConstIterator CellMapConstIterator
ConstIterator begin() const
std::string className() const
void attach(ConstAlias< EuclideanShape > shape)
DGtal::uint32_t Dimension
CellMap::const_iterator CellMapConstIterator
Const iterator for visiting type CellMap.
void beginBlock(const std::string &keyword="")
std::unordered_map< Cell, CubicalCellData > Map
void construct(const TDigitalSet &set)
Custom style class redefining the fill color. You may use Board2D::Color::None for transparent color.
DGtal is the top-level namespace which contains all DGtal functions and types.
Custom style class redefining the pen color and the fill color. You may use Board2D::Color::None for ...
CubicalComplex< KSpace, Map > CC
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Aim: A utility class for constructing different shapes (balls, diamonds, and others).
void saveEPS(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
Modifier class in a Board2D stream. Useful to choose your own mode for a given class....
Aim: Model of the concept StarShaped represents any flower with k-petals in the plane.
ConstIterator end() const
Aim: This class represents an arbitrary cubical complex living in some Khalimsky space....
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex,...