31 #if defined(ExplicitDigitalSurface_RECURSES)
32 #error Recursive header files inclusion detected in ExplicitDigitalSurface.h
35 #define ExplicitDigitalSurface_RECURSES
37 #if !defined ExplicitDigitalSurface_h
39 #define ExplicitDigitalSurface_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"
80 template <
typename TKSpace,
typename TSurfelPredicate>
234 bool closed =
false );
354 template <
typename TKSpace,
typename TSurfelPredicate>
364 #include "DGtal/topology/ExplicitDigitalSurface.ih"
371 #undef ExplicitDigitalSurface_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
ExplicitDigitalSurface< TKSpace, TSurfelPredicate > DigitalSurfaceContainer
const Surfel & current() const
SurfelNeighborhood< KSpace > Neighborhood
Tracker(ConstAlias< DigitalSurfaceContainer > aSurface, const Surfel &s)
const DigitalSurfaceContainer & surface() const
Dimension orthDir() const
void move(const Surfel &s)
uint8_t adjacent(Surfel &s, Dimension d, bool pos) const
const DigitalSurfaceContainer & mySurface
Neighborhood myNeighborhood
Tracker(const Tracker &other)
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as connected surfels....
DigitalSurfaceTracker * newTracker(const Surfel &s) const
void selfDisplay(std::ostream &out) const
std::vector< Surfel > SurfelStorage
const KSpace & space() const
ExplicitDigitalSurface & operator=(const ExplicitDigitalSurface &other)
SurfelStorage mySurfels
a vector storing all the surfels of the boundary.
const Adjacency & surfelAdjacency() const
accessor to surfel adjacency.
BOOST_CONCEPT_ASSERT((concepts::CSurfelPredicate< SurfelPredicate >))
KSpace::SCell Surfel
Type for surfels.
KSpace::SCellSet SCellSet
TSurfelPredicate SurfelPredicate
KSpace::Size Size
Type for sizes (unsigned integral type).
ExplicitDigitalSurface(ConstAlias< KSpace > aKSpace, const SurfelPredicate &aSP, const Adjacency &adj, const Surfel &s, bool closed=false)
const KSpace & myKSpace
a reference to the cellular space.
~ExplicitDigitalSurface()
ExplicitDigitalSurface< TKSpace, TSurfelPredicate > Self
bool isInside(const Surfel &s) const
SurfelAdjacency< KSpace::dimension > Adjacency
const SurfelPredicate & mySurfelPredicate
a reference to the surfel predicate defining the shape.
Connectedness connectedness() const
SurfelConstIterator begin() const
SurfelConstIterator end() const
Adjacency & surfelAdjacency()
mutator to surfel adjacency.
Tracker DigitalSurfaceTracker
const SurfelPredicate & surfelPredicate() const
accessor to point predicate.
void computeSurfels(const Surfel &p, bool closed)
Adjacency mySurfelAdjacency
the surfel adjacency used to determine neighbors.
SurfelStorage::const_iterator SurfelConstIterator
TKSpace KSpace
Model of cellular grid space.
ExplicitDigitalSurface(const ExplicitDigitalSurface &other)
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).
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.
Aim: Defines a predicate on a surfel.