32 #if defined(SCellsFunctors_RECURSES)
33 #error Recursive header files inclusion detected in SCellsFunctors.h
36 #define SCellsFunctors_RECURSES
38 #if !defined SCellsFunctors_h
40 #define SCellsFunctors_h
46 #include "DGtal/base/Common.h"
47 #include "DGtal/base/ConstAlias.h"
48 #include "DGtal/base/BasicBoolFunctors.h"
49 #include "DGtal/kernel/SpaceND.h"
73 template <
typename KSpace>
165 template <
typename KSpace>
223 for(
unsigned int i = 0; i < o.dimension; ++i )
239 template <
typename KSpace>
322 template <
typename KSpace>
398 template <
typename KSpace>
473 template <
typename KSpace>
549 template <
typename KSpace>
615 if (v ==
Vector(1,0))
return '0';
616 else if (v ==
Vector(0,1))
return '1';
617 else if (v ==
Vector(-1,0))
return '2';
618 else if (v ==
Vector(0,-1))
return '3';
637 #undef SCellsFunctors_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex,...
SCell sIndirectIncident(const SCell &p, Dimension k) const
Return the indirect incident cell of [p] along [k] (the incident cell along [k] whose sign is negativ...
DirIterator sDirs(const SCell &p) const
Given a signed cell [p], returns an iterator to iterate over each coordinate the cell spans.
Point sCoords(const SCell &c) const
Return its digital coordinates.
const Point & sKCoords(const SCell &c) const
Return its Khalimsky coordinates.
SCell sDirectIncident(const SCell &p, Dimension k) const
Return the direct incident cell of [p] along [k] (the incident cell along [k])
DirIterator sOrthDirs(const SCell &p) const
Given a signed cell [p], returns an iterator to iterate over each coordinate the cell does not span.
Dimension sDim(const SCell &p) const
Return the dimension of the cell [p].
PointVector< dim, double > RealPoint
Aim: transforms a signed cell into an arrow, ie. a pair point-vector.
Output operator()(const Input &s) const
std::pair< Point, Vector > Output
SCellToArrow & operator=(const SCellToArrow &other)
SCellToArrow(ConstAlias< KSpace > aK)
SCellToArrow(const SCellToArrow &other)
Aim: transforms a 2d signed cell, basically a linel, into a code (0,1,2 or 3),.
SCellToCode(const SCellToCode &other)
Output operator()(const Input &s) const
BOOST_STATIC_ASSERT(KSpace::dimension==2)
SCellToCode(ConstAlias< KSpace > aK)
SCellToCode & operator=(const SCellToCode &other)
Aim: transforms a signed cell c into a pair of points corresponding to the signed cells of greater di...
SCellToIncidentPoints & operator=(const SCellToIncidentPoints &other)
Output operator()(const Input &s) const
SCellToIncidentPoints(ConstAlias< KSpace > aK)
SCellToIncidentPoints(const SCellToIncidentPoints &other)
std::pair< Point, Point > Output
Aim: transforms a signed cell c into a point corresponding to the signed cell of greater dimension th...
SCellToInnerPoint(const SCellToInnerPoint &other)
SCellToInnerPoint(ConstAlias< KSpace > aK)
SCellToInnerPoint & operator=(const SCellToInnerPoint &other)
Output operator()(const Input &s) const
Aim: transforms a signed cell c into a point corresponding to the signed cell of greater dimension th...
SCellToOuterPoint(const SCellToOuterPoint &other)
Output operator()(const Input &s) const
SCellToOuterPoint & operator=(const SCellToOuterPoint &other)
SCellToOuterPoint(ConstAlias< KSpace > aK)
Aim: transforms a scell into a point.
SCellToPoint & operator=(const SCellToPoint &other)
SCellToPoint(const SCellToPoint &other)
Output operator()(const Input &aSCell) const
SCellToPoint(ConstAlias< KSpace > aK)
Aim: transforms a scell into a real point (the coordinates are divided by 2)
Output operator()(const Input &s) const
SCellToMidPoint & operator=(const SCellToMidPoint &other)
SCellToMidPoint(const SCellToMidPoint &other)
SCellToMidPoint(ConstAlias< KSpace > aK)
KSpace::Space::RealPoint Output
DGtal is the top-level namespace which contains all DGtal functions and types.
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.