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>
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
const DigitalSurfaceContainer & surface() const
Neighborhood myNeighborhood
ImplicitDigitalSurface< TKSpace, TPointPredicate > DigitalSurfaceContainer
void move(const Surfel &s)
uint8_t adjacent(Surfel &s, Dimension d, bool pos) const
Tracker(ConstAlias< DigitalSurfaceContainer > aSurface, const Surfel &s)
Tracker(const Tracker &other)
const Surfel & current() const
const DigitalSurfaceContainer & mySurface
Aim: A model of CDigitalSurfaceContainer which defines the digital surface as the boundary of an impl...
ImplicitDigitalSurface(const ImplicitDigitalSurface &other)
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
ImplicitDigitalSurface & operator=(const ImplicitDigitalSurface &other)
BOOST_CONCEPT_ASSERT((concepts::CPointPredicate< PointPredicate >))
const KSpace & myKSpace
a reference to the cellular space.
Adjacency mySurfelAdjacency
the surfel adjacency used to determine neighbors.
void selfDisplay(std::ostream &out) const
DigitalSurfaceTracker * newTracker(const Surfel &s) const
ImplicitDigitalSurface< TKSpace, TPointPredicate > Self
KSpace::SCell Surfel
Type for surfels.
Adjacency & surfelAdjacency()
mutator to surfel adjacency.
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
const PointPredicate & pointPredicate() const
accessor to point predicate.
const KSpace & space() const
KSpace::Size Size
Type for sizes (unsigned integral type).
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).
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: This concept describes a cellular grid space in nD. In these spaces obtained by cartesian produc...
Aim: Defines a predicate on a point.