31#if defined(ImplicitDigitalSurface_RECURSES)
32#error Recursive header files inclusion detected in ImplicitDigitalSurface.h
35#define ImplicitDigitalSurface_RECURSES
37#if !defined ImplicitDigitalSurface_h
39#define ImplicitDigitalSurface_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"
70 template <
typename TKSpace,
typename TPo
intPredicate>
85 typedef typename TKSpace::SCell
Surfel;
224 bool closed =
false );
345 template <
typename TKSpace,
typename TPo
intPredicate>
355#include "DGtal/topology/ImplicitDigitalSurface.ih"
362#undef ImplicitDigitalSurface_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
SurfelNeighborhood< KSpace > Neighborhood
Dimension orthDir() const
Neighborhood myNeighborhood
ImplicitDigitalSurface< TKSpace, TPointPredicate > DigitalSurfaceContainer
const Surfel & current() const
void move(const Surfel &s)
uint8_t adjacent(Surfel &s, Dimension d, bool pos) const
const DigitalSurfaceContainer & surface() const
Tracker(ConstAlias< DigitalSurfaceContainer > aSurface, const Surfel &s)
Tracker(const Tracker &other)
const DigitalSurfaceContainer & mySurface
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as the boundary of an impl...
const KSpace & space() const
ImplicitDigitalSurface(const ImplicitDigitalSurface &other)
DigitalSurfaceTracker * newTracker(const Surfel &s) const
TPointPredicate PointPredicate
const PointPredicate & myPointPredicate
a reference to the point predicate defining the shape.
~ImplicitDigitalSurface()
SurfelAdjacency< KSpace::dimension > Adjacency
void computeSurfels(const Surfel &p, bool closed)
SurfelConstIterator begin() const
TKSpace KSpace
Model of cellular grid space.
std::vector< Surfel > SurfelStorage
BOOST_CONCEPT_ASSERT((concepts::CPointPredicate< PointPredicate >))
const KSpace & myKSpace
a reference to the cellular space.
const PointPredicate & pointPredicate() const
accessor to point predicate.
Adjacency mySurfelAdjacency
the surfel adjacency used to determine neighbors.
void selfDisplay(std::ostream &out) const
ImplicitDigitalSurface & operator=(const ImplicitDigitalSurface &other)
ImplicitDigitalSurface< TKSpace, TPointPredicate > Self
KSpace::SCell Surfel
Type for surfels.
const Adjacency & surfelAdjacency() const
accessor to surfel adjacency.
Tracker DigitalSurfaceTracker
ImplicitDigitalSurface(ConstAlias< KSpace > aKSpace, ConstAlias< PointPredicate > aPP, const Adjacency &adj, const Surfel &s, bool closed=false)
bool isInside(const Surfel &s) const
KSpace::Size Size
Type for sizes (unsigned integral type).
Adjacency & surfelAdjacency()
mutator to surfel adjacency.
BOOST_CONCEPT_ASSERT((concepts::CCellularGridSpaceND< KSpace >))
SurfelStorage mySurfels
a vector storing all the surfels of the boundary.
SurfelConstIterator end() const
Connectedness connectedness() const
KSpace::SCellSet SCellSet
SurfelStorage::const_iterator SurfelConstIterator
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: This concept describes a cellular grid space in nD. In these spaces obtained by cartesian produc...
Aim: Defines a predicate on a point.