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...
const DigitalSurfaceContainer & surface() const
ExplicitDigitalSurface< TKSpace, TSurfelPredicate > DigitalSurfaceContainer
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
SurfelNeighborhood< KSpace > Neighborhood
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
SurfelStorage mySurfels
a vector storing all the surfels of the boundary.
BOOST_CONCEPT_ASSERT((concepts::CSurfelPredicate< SurfelPredicate >))
TKSpace KSpace
Model of cellular grid space.
const KSpace & space() const
Adjacency & surfelAdjacency()
mutator to surfel adjacency.
KSpace::SCell Surfel
Type for surfels.
SurfelStorage::const_iterator SurfelConstIterator
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
KSpace::SCellSet SCellSet
ExplicitDigitalSurface< TKSpace, TSurfelPredicate > Self
Tracker DigitalSurfaceTracker
~ExplicitDigitalSurface()
SurfelAdjacency< KSpace::dimension > Adjacency
bool isInside(const Surfel &s) const
const SurfelPredicate & mySurfelPredicate
a reference to the surfel predicate defining the shape.
Connectedness connectedness() const
const SurfelPredicate & surfelPredicate() const
accessor to point predicate.
TSurfelPredicate SurfelPredicate
SurfelConstIterator begin() const
SurfelConstIterator end() const
void computeSurfels(const Surfel &p, bool closed)
Adjacency mySurfelAdjacency
the surfel adjacency used to determine neighbors.
std::vector< Surfel > SurfelStorage
ExplicitDigitalSurface(const ExplicitDigitalSurface &other)
const Adjacency & surfelAdjacency() const
accessor to surfel adjacency.
KSpace::Size Size
Type for sizes (unsigned integral type).
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).
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.