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) SCellToPoint(const SCellToPoint &other)
Output operator()(const Input &s) const
SCellToCode(ConstAlias< KSpace > aK)
SCellToOuterPoint(ConstAlias< KSpace > aK)
SCellToPoint & operator=(const SCellToPoint &other)
Output operator()(const Input &s) const
SCellToCode & operator=(const SCellToCode &other)
SCellToIncidentPoints & operator=(const SCellToIncidentPoints &other)
SCellToCode(const SCellToCode &other)
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Output operator()(const Input &s) const
SCellToArrow & operator=(const SCellToArrow &other)
SCellToArrow(ConstAlias< KSpace > aK)
PointVector< dim, double > RealPoint
SCellToIncidentPoints(const SCellToIncidentPoints &other)
SCell sIndirectIncident(const SCell &p, Dimension k) const
DirIterator sDirs(const SCell &p) const
Aim: transforms a signed cell into an arrow, ie. a pair point-vector.
std::pair< Point, Vector > Output
SCellToInnerPoint & operator=(const SCellToInnerPoint &other)
SCellToInnerPoint(const SCellToInnerPoint &other)
SCellToOuterPoint & operator=(const SCellToOuterPoint &other)
Aim: transforms a scell into a point.
Output operator()(const Input &s) const
Aim: transforms a 2d signed cell, basically a linel, into a code (0,1,2 or 3),.
Output operator()(const Input &aSCell) const
KSpace::Space::RealPoint Output
SCellToArrow(const SCellToArrow &other)
Dimension sDim(const SCell &p) const
const Point & sKCoords(const SCell &c) const
Point sCoords(const SCell &c) const
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: transforms a signed cell c into a point corresponding to the signed cell of greater dimension th...
BOOST_STATIC_ASSERT(KSpace::dimension==2)
DirIterator sOrthDirs(const SCell &p) const
SCell sDirectIncident(const SCell &p, Dimension k) const
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value...
Output operator()(const Input &s) const
SCellToInnerPoint(ConstAlias< KSpace > aK)
SCellToMidPoint(ConstAlias< KSpace > aK)
SCellToPoint(ConstAlias< KSpace > aK)
SCellToMidPoint(const SCellToMidPoint &other)
Aim: transforms a scell into a real point (the coordinates are divided by 2)
static const constexpr Dimension dimension
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex...
Aim: transforms a signed cell c into a point corresponding to the signed cell of greater dimension th...
SCellToMidPoint & operator=(const SCellToMidPoint &other)
std::pair< Point, Point > Output
SCellToIncidentPoints(ConstAlias< KSpace > aK)
SCellToOuterPoint(const SCellToOuterPoint &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...