31 #if defined(LightImplicitDigitalSurface_RECURSES)
32 #error Recursive header files inclusion detected in LightImplicitDigitalSurface.h
35 #define LightImplicitDigitalSurface_RECURSES
37 #if !defined LightImplicitDigitalSurface_h
39 #define LightImplicitDigitalSurface_h
45 #include "DGtal/base/Common.h"
46 #include "DGtal/base/ConstAlias.h"
47 #include "DGtal/kernel/CPointPredicate.h"
48 #include "DGtal/topology/Topology.h"
49 #include "DGtal/topology/SurfelAdjacency.h"
50 #include "DGtal/topology/SurfelNeighborhood.h"
51 #include "DGtal/graph/BreadthFirstVisitor.h"
52 #include "DGtal/graph/GraphVisitorRange.h"
114 template <
typename TKSpace,
typename TPo
intPredicate>
224 template <
typename Value>
226 typedef typename KSpace::template SurfelMap<Value>::Type
Type;
335 template <
typename OutputIterator>
356 template <
typename OutputIterator,
typename VertexPredicate>
359 const VertexPredicate & pred )
const;
434 template <
typename TKSpace,
typename TPo
intPredicate>
444 #include "DGtal/topology/LightImplicitDigitalSurface.ih"
451 #undef LightImplicitDigitalSurface_RECURSES
Aim: This class is useful to perform a breadth-first exploration of a graph given a starting point or...
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: Transforms a graph visitor into a single pass input range.
NumberTraits< Integer >::UnsignedVersion Size
Type used to represent sizes in the digital space.
std::set< Cell > CellSet
Preferred type for defining a set of Cell(s).
std::set< SCell > SCellSet
Preferred type for defining a set of SCell(s).
uint8_t adjacent(Surfel &s, Dimension d, bool pos) const
LightImplicitDigitalSurface< TKSpace, TPointPredicate > DigitalSurfaceContainer
SurfelNeighborhood< KSpace > Neighborhood
void move(const Surfel &s)
const Surfel & current() const
Dimension orthDir() const
Tracker(ConstAlias< DigitalSurfaceContainer > aSurface, const Surfel &s)
Tracker(const Tracker &other)
const DigitalSurfaceContainer & mySurface
Neighborhood myNeighborhood
const DigitalSurfaceContainer & surface() const
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as the boundary of an impl...
const PointPredicate & pointPredicate() const
accessor to point predicate.
void writeNeighbors(OutputIterator &it, const Vertex &v, const VertexPredicate &pred) const
LightImplicitDigitalSurface< TKSpace, TPointPredicate > Self
SurfelConstIterator begin() const
SelfVisitorRange::ConstIterator SurfelConstIterator
const PointPredicate & myPointPredicate
a reference to the point predicate defining the shape.
Size degree(const Vertex &v) const
Adjacency & surfelAdjacency()
mutator to surfel adjacency.
Connectedness connectedness() const
SurfelAdjacency< KSpace::dimension > Adjacency
GraphVisitorRange< SelfVisitor > SelfVisitorRange
LightImplicitDigitalSurface(ConstAlias< KSpace > aKSpace, ConstAlias< PointPredicate > aPP, const Adjacency &adj, const Surfel &s)
DigitalSurfaceTracker * newTracker(const Surfel &s) const
Tracker myTracker
Internal tracker for visiting surfels.
Size bestCapacity() const
Surfel mySurfel
a surfel belonging to the surface.
~LightImplicitDigitalSurface()
void writeNeighbors(OutputIterator &it, const Vertex &v) const
BreadthFirstVisitor< Self > SelfVisitor
bool isInside(const Surfel &s) const
SurfelConstIterator end() const
Adjacency mySurfelAdjacency
the surfel adjacency used to determine neighbors.
LightImplicitDigitalSurface & operator=(const LightImplicitDigitalSurface &other)
KSpace::Size Size
Type for sizes (unsigned integral type).
const Adjacency & surfelAdjacency() const
accessor to surfel adjacency.
KSpace::SCell Surfel
Type for surfels.
TPointPredicate PointPredicate
void selfDisplay(std::ostream &out) const
Tracker DigitalSurfaceTracker
LightImplicitDigitalSurface(const LightImplicitDigitalSurface &other)
TKSpace KSpace
Model of cellular grid space.
const KSpace & space() const
BOOST_CONCEPT_ASSERT((concepts::CPointPredicate< PointPredicate >))
KSpace::SCellSet SCellSet
const KSpace & myKSpace
a reference to the cellular space.
DGtal is the top-level namespace which contains all DGtal functions and types.
boost::uint8_t uint8_t
unsigned 8-bit integer.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
DGtal::uint32_t Dimension
KSpace::template SurfelMap< Value >::Type Type
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
Aim: Defines a predicate on a point.