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>
95 typedef typename TKSpace::SCell
Surfel;
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 DigitalSurfaceContainer & surface() const
SurfelNeighborhood< KSpace > Neighborhood
Tracker(ConstAlias< DigitalSurfaceContainer > aSurface, const Surfel &s)
Dimension orthDir() const
void move(const Surfel &s)
uint8_t adjacent(Surfel &s, Dimension d, bool pos) const
const DigitalSurfaceContainer & mySurface
const Surfel & current() const
Neighborhood myNeighborhood
Tracker(const Tracker &other)
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as connected surfels....
ExplicitDigitalSurface & operator=(const ExplicitDigitalSurface &other)
void selfDisplay(std::ostream &out) const
std::vector< Surfel > SurfelStorage
SurfelStorage mySurfels
a vector storing all the surfels of the boundary.
BOOST_CONCEPT_ASSERT((concepts::CSurfelPredicate< SurfelPredicate >))
const KSpace & space() const
KSpace::SCell Surfel
Type for surfels.
KSpace::SCellSet SCellSet
TSurfelPredicate SurfelPredicate
KSpace::Size Size
Type for sizes (unsigned integral type).
Adjacency & surfelAdjacency()
mutator to surfel adjacency.
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.
DigitalSurfaceTracker * newTracker(const Surfel &s) const
~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
const SurfelPredicate & surfelPredicate() const
accessor to point predicate.
SurfelConstIterator begin() const
SurfelConstIterator end() const
Tracker DigitalSurfaceTracker
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)
const Adjacency & surfelAdjacency() const
accessor to surfel adjacency.
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).
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
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
Aim: Defines a predicate on a surfel.