32 #if defined(SCellsFunctors_RECURSES)
33 #error Recursive header files inclusion detected in SCellsFunctors.h
34 #else // defined(SCellsFunctors_RECURSES)
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';
635 #endif // !defined SCellsFunctors_h
637 #undef SCellsFunctors_RECURSES
638 #endif // else defined(SCellsFunctors_RECURSES)
Output operator()(const Input &s) const
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
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...
SCellToIncidentPoints(const SCellToIncidentPoints &other)
Aim: transforms a signed cell c into a point corresponding to the signed cell of greater dimension th...
SCellToArrow(ConstAlias< KSpace > aK)
SCellToPoint & operator=(const SCellToPoint &other)
SCellToInnerPoint & operator=(const SCellToInnerPoint &other)
SCellToOuterPoint & operator=(const SCellToOuterPoint &other)
Output operator()(const Input &s) const
DirIterator sDirs(const SCell &p) const
Given a signed cell [p], returns an iterator to iterate over each coordinate the cell spans.
SCellToIncidentPoints & operator=(const SCellToIncidentPoints &other)
std::pair< Point, Vector > Output
Point sCoords(const SCell &c) const
Return its digital coordinates.
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
std::pair< Point, Point > Output
Aim: transforms a scell into a point.
KSpace::Space::RealPoint Output
BOOST_STATIC_ASSERT(KSpace::dimension==2)
SCellToMidPoint(ConstAlias< KSpace > aK)
static const constexpr Dimension dimension
Aim: transforms a scell into a real point (the coordinates are divided by 2)
SCell sDirectIncident(const SCell &p, Dimension k) const
Return the direct incident cell of [p] along [k] (the incident cell along [k])
SCellToIncidentPoints(ConstAlias< KSpace > aK)
Aim: transforms a signed cell into an arrow, ie. a pair point-vector.
SCellToInnerPoint(ConstAlias< KSpace > aK)
DGtal is the top-level namespace which contains all DGtal functions and types.
SCellToPoint(ConstAlias< KSpace > aK)
DirIterator sOrthDirs(const SCell &p) const
Given a signed cell [p], returns an iterator to iterate over each coordinate the cell does not span.
const Point & sKCoords(const SCell &c) const
Return its Khalimsky coordinates.
Aim: transforms a signed cell c into a point corresponding to the signed cell of greater dimension th...
SCellToInnerPoint(const SCellToInnerPoint &other)
SCellToCode & operator=(const SCellToCode &other)
Output operator()(const Input &aSCell) const
SCellToArrow(const SCellToArrow &other)
SCellToPoint(const SCellToPoint &other)
SCellToOuterPoint(ConstAlias< KSpace > aK)
PointVector< dim, double > RealPoint
Output operator()(const Input &s) const
SCellToCode(const SCellToCode &other)
Output operator()(const Input &s) const
Output operator()(const Input &s) const
Aim: transforms a 2d signed cell, basically a linel, into a code (0,1,2 or 3),.
SCellToArrow & operator=(const SCellToArrow &other)
SCellToMidPoint(const SCellToMidPoint &other)
Dimension sDim(const SCell &p) const
Return the dimension of the cell [p].
SCellToOuterPoint(const SCellToOuterPoint &other)
SCellToCode(ConstAlias< KSpace > aK)
SCellToMidPoint & operator=(const SCellToMidPoint &other)
Output operator()(const Input &s) const
Aim: transforms a signed cell c into a pair of points corresponding to the signed cells of greater di...
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex,...