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