31 #if defined(LightExplicitDigitalSurface_RECURSES)
32 #error Recursive header files inclusion detected in LightExplicitDigitalSurface.h
33 #else // defined(LightExplicitDigitalSurface_RECURSES)
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"
455 #endif // !defined LightExplicitDigitalSurface_h
457 #undef LightExplicitDigitalSurface_RECURSES
458 #endif // else defined(LightExplicitDigitalSurface_RECURSES)
Connectedness connectedness() const
BreadthFirstVisitor< Self > SelfVisitor
Adjacency mySurfelAdjacency
the surfel adjacency used to determine neighbors.
DigitalSurfaceTracker * newTracker(const Surfel &s) const
LightExplicitDigitalSurface< TKSpace, TSurfelPredicate > DigitalSurfaceContainer
void setSurfel(const Surfel &aSurfel)
mutator to starting surfel.
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
GraphVisitorRange< SelfVisitor > SelfVisitorRange
KSpace::Size Size
Type for sizes (unsigned integral type).
Size degree(const Vertex &v) const
Aim: Transforms a graph visitor into a single pass input range.
const SurfelPredicate & surfelPredicate() const
accessor to surfel predicate.
Tracker(const Tracker &other)
Tracker DigitalSurfaceTracker
Aim: Defines a predicate on a surfel.
const KSpace & myKSpace
a reference to the cellular space.
SurfelNeighborhood< KSpace > Neighborhood
Aim: This class is useful to perform a breadth-first exploration of a graph given a starting point or...
DGtal::uint32_t Dimension
TKSpace KSpace
Model of cellular grid space.
LightExplicitDigitalSurface(const LightExplicitDigitalSurface &other)
KSpace::template SurfelMap< Value >::Type Type
Dimension orthDir() const
void selfDisplay(std::ostream &out) const
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
const DigitalSurfaceContainer & surface() const
Tracker myTracker
Internal tracker for visiting surfels.
Size bestCapacity() const
const Surfel & surfel() const
accessor to starting surfel.
std::set< SCell > SCellSet
Preferred type for defining a set of SCell(s).
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as connected surfels....
std::set< Cell > CellSet
Preferred type for defining a set of Cell(s).
uint8_t adjacent(Surfel &s, Dimension d, bool pos) const
void writeNeighbors(OutputIterator &it, const Vertex &v, const VertexPredicate &pred) const
Neighborhood myNeighborhood
LightExplicitDigitalSurface< TKSpace, TSurfelPredicate > Self
NumberTraits< Integer >::UnsignedVersion Size
Type used to represent sizes in the digital space.
DGtal is the top-level namespace which contains all DGtal functions and types.
BOOST_CONCEPT_ASSERT((concepts::CSurfelPredicate< SurfelPredicate >))
~LightExplicitDigitalSurface()
KSpace::SCellSet SCellSet
LightExplicitDigitalSurface & operator=(const LightExplicitDigitalSurface &other)
TSurfelPredicate SurfelPredicate
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
LightExplicitDigitalSurface(ConstAlias< KSpace > aKSpace, ConstAlias< SurfelPredicate > aSP, const Adjacency &adj, const Surfel &s)
SelfVisitorRange::ConstIterator SurfelConstIterator
const DigitalSurfaceContainer & mySurface
const KSpace & space() const
Surfel mySurfel
a surfel belonging to the surface.
const SurfelPredicate & mySurfelPredicate
a reference to the surfel predicate defining the shape.
Tracker(ConstAlias< DigitalSurfaceContainer > aSurface, const Surfel &s)
void move(const Surfel &s)
const Adjacency & surfelAdjacency() const
accessor to surfel adjacency.
SurfelConstIterator end() const
void writeNeighbors(OutputIterator &it, const Vertex &v) const
const Surfel & current() const
Adjacency & surfelAdjacency()
mutator to surfel adjacency.
SurfelConstIterator begin() const
bool isInside(const Surfel &s) const
KSpace::SCell Surfel
Type for surfels.
boost::uint8_t uint8_t
unsigned 8-bit integer.
SurfelAdjacency< KSpace::dimension > Adjacency