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();
82 Color dorange ( 255, 136, 0, 220 );
88 typedef map<Cell, CubicalCellData>
Map;
106 Color( 0, 0, 0 ) ) );
110 Color( 100, 255, 100 ) ) );
114 Color( 100, 255, 100 ) ) );
118 board.
saveEPS (
"cubicalComplexes.eps" );
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: This class represents an arbitrary cubical complex living in some Khalimsky space....
ConstIterator end() const
void construct(const TDigitalSet &set)
ConstIterator begin() const
CellMap::const_iterator CellMapConstIterator
Const iterator for visiting type CellMap.
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
std::string className() const
Aim: Model of the concept StarShaped represents any flower with k-petals in the plane.
void attach(ConstAlias< EuclideanShape > shape)
const Point & lowerBound() const
const Point & upperBound() const
std::string className() const
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex,...
bool init(const Point &lower, const Point &upper, bool isClosed)
Specifies the upper and lower bounds for the maximal cells in this space.
Aim: A utility class for constructing different shapes (balls, diamonds, and others).
void beginBlock(const std::string &keyword="")
void saveEPS(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::uint32_t Dimension
Custom style class redefining the pen color and the fill color. You may use Board2D::Color::None for ...
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....
std::unordered_map< Cell, CubicalCellData > Map
CubicalComplex< KSpace, Map > CC
CC::CellMapConstIterator CellMapConstIterator
PointVector< 3, double > RealPoint