31 #if defined(LightExplicitDigitalSurface_RECURSES)
32 #error Recursive header files inclusion detected in LightExplicitDigitalSurface.h
35 #define LightExplicitDigitalSurface_RECURSES
37 #if !defined LightExplicitDigitalSurface_h
39 #define LightExplicitDigitalSurface_h
45 #include "DGtal/base/Common.h"
46 #include "DGtal/base/ConstAlias.h"
47 #include "DGtal/topology/CSurfelPredicate.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"
117 template <
typename TKSpace,
typename TSurfelPredicate>
227 template <
typename Value>
229 typedef typename KSpace::template SurfelMap<Value>::Type
Type;
341 template <
typename OutputIterator>
362 template <
typename OutputIterator,
typename VertexPredicate>
365 const VertexPredicate & pred )
const;
440 template <
typename TKSpace,
typename TSurfelPredicate>
450 #include "DGtal/topology/LightExplicitDigitalSurface.ih"
457 #undef LightExplicitDigitalSurface_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).
Tracker(const Tracker &other)
const DigitalSurfaceContainer & mySurface
Neighborhood myNeighborhood
const Surfel & current() const
Dimension orthDir() const
void move(const Surfel &s)
uint8_t adjacent(Surfel &s, Dimension d, bool pos) const
Tracker(ConstAlias< DigitalSurfaceContainer > aSurface, const Surfel &s)
SurfelNeighborhood< KSpace > Neighborhood
const DigitalSurfaceContainer & surface() const
LightExplicitDigitalSurface< TKSpace, TSurfelPredicate > DigitalSurfaceContainer
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as connected surfels....
Size degree(const Vertex &v) const
void writeNeighbors(OutputIterator &it, const Vertex &v) const
KSpace::SCell Surfel
Type for surfels.
const Surfel & surfel() const
accessor to starting surfel.
void selfDisplay(std::ostream &out) const
BreadthFirstVisitor< Self > SelfVisitor
Adjacency & surfelAdjacency()
mutator to surfel adjacency.
Surfel mySurfel
a surfel belonging to the surface.
const SurfelPredicate & surfelPredicate() const
accessor to surfel predicate.
SurfelConstIterator begin() const
KSpace::SCellSet SCellSet
SurfelConstIterator end() const
void writeNeighbors(OutputIterator &it, const Vertex &v, const VertexPredicate &pred) const
BOOST_CONCEPT_ASSERT((concepts::CSurfelPredicate< SurfelPredicate >))
LightExplicitDigitalSurface(const LightExplicitDigitalSurface &other)
TSurfelPredicate SurfelPredicate
LightExplicitDigitalSurface & operator=(const LightExplicitDigitalSurface &other)
SurfelAdjacency< KSpace::dimension > Adjacency
SelfVisitorRange::ConstIterator SurfelConstIterator
bool isInside(const Surfel &s) const
const SurfelPredicate & mySurfelPredicate
a reference to the surfel predicate defining the shape.
Adjacency mySurfelAdjacency
the surfel adjacency used to determine neighbors.
~LightExplicitDigitalSurface()
const KSpace & space() const
const KSpace & myKSpace
a reference to the cellular space.
KSpace::Size Size
Type for sizes (unsigned integral type).
DigitalSurfaceTracker * newTracker(const Surfel &s) const
GraphVisitorRange< SelfVisitor > SelfVisitorRange
Tracker DigitalSurfaceTracker
Size bestCapacity() const
LightExplicitDigitalSurface(ConstAlias< KSpace > aKSpace, ConstAlias< SurfelPredicate > aSP, const Adjacency &adj, const Surfel &s)
TKSpace KSpace
Model of cellular grid space.
LightExplicitDigitalSurface< TKSpace, TSurfelPredicate > Self
Connectedness connectedness() const
const Adjacency & surfelAdjacency() const
accessor to surfel adjacency.
void setSurfel(const Surfel &aSurfel)
mutator to starting surfel.
Tracker myTracker
Internal tracker for visiting surfels.
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 surfel.