31 #include "DGtal/base/Common.h" 32 #include "DGtal/io/boards/Board2D.h" 33 #include "DGtal/io/Color.h" 34 #include "DGtal/io/colormaps/GradientColorMap.h" 35 #include "DGtal/shapes/Shapes.h" 36 #include "DGtal/graph/CUndirectedSimpleGraph.h" 37 #include "DGtal/graph/BreadthFirstVisitor.h" 38 #include "DGtal/graph/CGraphVisitor.h" 45 using namespace DGtal;
70 DigitalSet shape_set(
domain );
78 Object obj(Z2i::dt4_8, shape_set);
89 <<
SetMode( p1.className(),
"Paving" );
104 string specificStyle = p1.className() +
"/Paving";
107 it != shape_set.end();
123 cmap_grad(
image(*it) ) ) )
136 board.
saveEPS(
"testBreadthFirstPropagation.eps");
Aim: An object (or digital object) represents a set in some digital space associated with a digital t...
HyperRectDomain< Space > Domain
Aim: This class template may be used to (linearly) convert scalar values in a given range into a colo...
Aim: implements association bewteen points lying in a digital domain and values.
MyDigitalSurface::ConstIterator ConstIterator
Aim: Define utilities to convert a digital set into an image.
void addColor(const Color &color)
const Node & current() const
Custom style class redefining the pen color and the fill color. You may use Board2D::Color::None for ...
BreadthFirstVisitor< MyDigitalSurface > Visitor
Aim: Gathers several functions useful for concept checks.
void saveEPS(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
ImageSelector< Z2i::Domain, int >::Type Image
std::string className() const
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
Aim: Represents the concept of local graph: each vertex has neighboring vertices, but we do not neces...
Aim: This class is useful to perform a breadth-first exploration of a graph given a starting point or...
Modifier class in a Board2D stream. Useful to choose your own mode for a given class....
Structure representing an RGB triple with alpha component.
Aim: A utility class for constructing different shapes (balls, diamonds, and others).
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Aim: Defines the concept of a visitor onto a graph, that is an object that traverses vertices of the ...
void testBreadthFirstPropagation()