34 #if defined(GridCurve_RECURSES) 35 #error Recursive header files inclusion detected in GridCurve.h 36 #else // defined(GridCurve_RECURSES) 38 #define GridCurve_RECURSES 40 #if !defined GridCurve_h 53 #include "DGtal/base/Common.h" 54 #include "DGtal/io/readers/PointListReader.h" 55 #include "DGtal/base/ConstAlias.h" 57 #include "DGtal/base/BasicFunctors.h" 58 #include "DGtal/base/Circulator.h" 59 #include "DGtal/base/ConstRangeAdapter.h" 60 #include "DGtal/base/ConstIteratorAdapter.h" 62 #include "DGtal/topology/CCellularGridSpaceND.h" 63 #include "DGtal/topology/KhalimskySpaceND.h" 64 #include "DGtal/topology/SCellsFunctors.h" 65 #include "DGtal/topology/CanonicSCellEmbedder.h" 171 template <
typename TKSpace = KhalimskySpaceND<2> >
273 template <
typename TIterator>
288 template <
typename TIterator>
360 typename Storage::size_type
size()
const;
510 template<
typename TKSpace>
512 operator<< ( std::ostream & out, const GridCurve<TKSpace> & object );
520 #include "DGtal/geometry/curves/GridCurve.ih" 525 #endif // !defined GridCurve_h 527 #undef GridCurve_RECURSES 528 #endif // else defined(GridCurve_RECURSES)
ConstIterator end() const
InnerPointsRange getInnerPointsRange() const
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToPoint< KSpace >, Point > PointsRange
void selfDisplay(std::ostream &out) const
Storage::const_reverse_iterator const_reverse_iterator
std::vector< SCell > Storage
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToOuterPoint< KSpace >, Point > OuterPointsRange
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
ConstRangeAdapter< typename Storage::const_iterator, CanonicSCellEmbedder< KSpace >, typename KSpace::Space::RealPoint > MidPointsRange
Storage::const_iterator const_iterator
Storage::const_reverse_iterator ConstReverseIterator
PointVector< dim, double > RealPoint
bool initFromPointsRange(const TIterator &itb, const TIterator &ite)
OuterPointsRange getOuterPointsRange() const
BOOST_CONCEPT_ASSERT((concepts::CCellularGridSpaceND< KSpace >))
PointsRange getPointsRange() const
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToIncidentPoints< KSpace >, std::pair< Point, Point > > IncidentPointsRange
Aim: Define a simple default functor that just returns its argument.
SCellsRange getSCellsRange() const
GridCurve::CodesRange getCodesRange() const
Aim: transforms a signed cell into an arrow, ie. a pair point-vector.
bool initFromVector(const std::vector< Point > &aVectorOfPoints)
ConstRangeAdapter< typename Storage::const_iterator, functors::Identity, SCell > SCellsRange
Aim: transforms a scell into a point.
Aim: transforms a 2d signed cell, basically a linel, into a code (0,1,2 or 3),.
Storage::size_type size() const
Storage::const_iterator ConstIterator
SCell PointVectorTo1SCell(const Point &aPoint, const Vector &aVector)
std::string className() const
void pushBack(const SCell &aSCell)
bool initFromSCellsRange(const TIterator &itb, const TIterator &ite)
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...
Aim: model of CConstBidirectionalRange that adapts any range of elements bounded by two iterators [it...
bool initFromVectorStream(std::istream &in)
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value...
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToInnerPoint< KSpace >, Point > InnerPointsRange
bool isInside(const SCell &aSCell) const
Aim: This concept describes a cellular grid space in nD. In these spaces obtained by cartesian produc...
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToArrow< KSpace >, std::pair< Point, Vector > > ArrowsRange
ConstReverseIterator rend() const
void push_back(const SCell &aSCell)
ConstReverseIterator rbegin() const
ConstIterator begin() const
bool initFromPointsVector(const std::vector< Point > &aVectorOfPoints)
IncidentPointsRange getIncidentPointsRange() const
Aim: describes, in a cellular space of dimension n, a closed or open sequence of signed d-cells (or d...
bool initFromSCellsVector(const std::vector< SCell > &aVectorOfSCells)
Aim: transforms a signed cell c into a point corresponding to the signed cell of greater dimension th...
MidPointsRange getMidPointsRange() const
GridCurve & operator=(const GridCurve &other)
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToCode< KSpace >, char > CodesRange
void writeVectorToStream(std::ostream &out)
ArrowsRange getArrowsRange() const
Aim: transforms a signed cell c into a pair of points corresponding to the signed cells of greater di...