31 #if defined(SetOfSurfels_RECURSES)
32 #error Recursive header files inclusion detected in SetOfSurfels.h
35 #define SetOfSurfels_RECURSES
37 #if !defined SetOfSurfels_h
39 #define SetOfSurfels_h
45 #include "DGtal/base/Common.h"
46 #include "DGtal/base/ConstAlias.h"
47 #include "DGtal/topology/Topology.h"
48 #include "DGtal/topology/SurfelAdjacency.h"
49 #include "DGtal/topology/SurfelNeighborhood.h"
50 #include "DGtal/topology/SurfelSetPredicate.h"
71 template <
typename TKSpace,
327 template <
typename TKSpace,
typename TSurfelSet>
337 #include "DGtal/topology/SetOfSurfels.ih"
344 #undef SetOfSurfels_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
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).
SurfelNeighborhood< KSpace > Neighborhood
Tracker(const Tracker &other)
Dimension orthDir() const
const DigitalSurfaceContainer & surface() const
uint8_t adjacent(Surfel &s, Dimension d, bool pos) const
Tracker(ConstAlias< DigitalSurfaceContainer > aSurface, const Surfel &s)
const DigitalSurfaceContainer & mySurface
Neighborhood myNeighborhood
SetOfSurfels< TKSpace, TSurfelSet > DigitalSurfaceContainer
void move(const Surfel &s)
const Surfel & current() const
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as connected surfels....
KSpace::SCellSet SCellSet
functors::SurfelSetPredicate< SurfelSet, Surfel > SurfelPredicate
SurfelConstIterator begin() const
DigitalSurfaceTracker * newTracker(const Surfel &s) const
const Adjacency & surfelAdjacency() const
accessor to surfel adjacency.
KSpace::Size Size
Type for sizes (unsigned integral type).
SurfelConstIterator end() const
Tracker DigitalSurfaceTracker
SurfelSet mySurfelSet
the set of surfels
const SurfelPredicate & surfelPredicate() const
accessor to surfel predicate.
Adjacency mySurfelAdjacency
the surfel adjacency used to determine neighbors.
const SurfelSet & surfelSet() const
SetOfSurfels(const SetOfSurfels &other)
TKSpace KSpace
Model of cellular grid space.
KSpace::SCell Surfel
Type for surfels.
SetOfSurfels< TKSpace, TSurfelSet > Self
SurfelSet::const_iterator SurfelConstIterator
SurfelPredicate mySurfelPredicate
the surfel predicate defining the shape (related to mySurfelSet).
SetOfSurfels & operator=(const SetOfSurfels &other)
SurfelAdjacency< KSpace::dimension > Adjacency
Adjacency & surfelAdjacency()
mutator to surfel adjacency.
const KSpace & myKSpace
a reference to the cellular space.
Connectedness connectedness() const
SetOfSurfels(ConstAlias< KSpace > aKSpace, const Adjacency &adj, SurfelSet aSetOfSurfels=SurfelSet())
void selfDisplay(std::ostream &out) const
const KSpace & space() const
bool isInside(const Surfel &s) const
MyDigitalSurface::SurfelSet SurfelSet
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
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.