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.
std::set< Cell > CellSet
Preferred type for defining a set of Cell(s).
NumberTraits< Integer >::UnsignedVersion Size
Type used to represent sizes in the digital space.
std::set< SCell > SCellSet
Preferred type for defining a set of SCell(s).
LightExplicitDigitalSurface< TKSpace, TSurfelPredicate > DigitalSurfaceContainer
Tracker(const Tracker &other)
const DigitalSurfaceContainer & mySurface
Neighborhood myNeighborhood
Dimension orthDir() const
const Surfel & current() 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
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
DigitalSurfaceTracker * newTracker(const Surfel &s) const
void selfDisplay(std::ostream &out) const
const Surfel & surfel() const
accessor to starting surfel.
TSurfelPredicate SurfelPredicate
Surfel mySurfel
a surfel belonging to the surface.
const KSpace & space() const
LightExplicitDigitalSurface & operator=(const LightExplicitDigitalSurface &other)
SurfelConstIterator begin() const
SurfelConstIterator end() const
SelfVisitorRange::ConstIterator SurfelConstIterator
void writeNeighbors(OutputIterator &it, const Vertex &v, const VertexPredicate &pred) const
const Adjacency & surfelAdjacency() const
accessor to surfel adjacency.
BOOST_CONCEPT_ASSERT((concepts::CSurfelPredicate< SurfelPredicate >))
LightExplicitDigitalSurface(const LightExplicitDigitalSurface &other)
Tracker DigitalSurfaceTracker
bool isInside(const Surfel &s) const
const SurfelPredicate & surfelPredicate() const
accessor to surfel predicate.
KSpace::SCellSet SCellSet
const SurfelPredicate & mySurfelPredicate
a reference to the surfel predicate defining the shape.
Adjacency mySurfelAdjacency
the surfel adjacency used to determine neighbors.
~LightExplicitDigitalSurface()
const KSpace & myKSpace
a reference to the cellular space.
GraphVisitorRange< SelfVisitor > SelfVisitorRange
BreadthFirstVisitor< Self > SelfVisitor
Adjacency & surfelAdjacency()
mutator to surfel adjacency.
Size bestCapacity() const
TKSpace KSpace
Model of cellular grid space.
LightExplicitDigitalSurface(ConstAlias< KSpace > aKSpace, ConstAlias< SurfelPredicate > aSP, const Adjacency &adj, const Surfel &s)
SurfelAdjacency< KSpace::dimension > Adjacency
KSpace::Size Size
Type for sizes (unsigned integral type).
KSpace::SCell Surfel
Type for surfels.
Connectedness connectedness() const
LightExplicitDigitalSurface< TKSpace, TSurfelPredicate > Self
void setSurfel(const Surfel &aSurfel)
mutator to starting surfel.
Tracker myTracker
Internal tracker for visiting surfels.
Aim: Represent adjacencies between surfel elements, telling if it follows an interior to exterior ord...
Aim: This helper class is useful to compute the neighboring surfels of a given surfel,...
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 ClosedIntegerHalfPlane< TSpace > &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.