34 #if defined(GridCurve_RECURSES)
35 #error Recursive header files inclusion detected in GridCurve.h
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>
520 #include "DGtal/geometry/curves/GridCurve.ih"
527 #undef GridCurve_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: model of CConstBidirectionalRange that adapts any range of elements bounded by two iterators [it...
Aim: describes, in a cellular space of dimension n, a closed or open sequence of signed d-cells (or d...
bool initFromPointsVector(const std::vector< Point > &aVectorOfPoints)
SCell PointVectorTo1SCell(const Point &aPoint, const Vector &aVector)
Storage::const_reverse_iterator ConstReverseIterator
ConstRangeAdapter< typename Storage::const_iterator, functors::Identity, SCell > SCellsRange
ConstIterator begin() const
Storage::const_reverse_iterator const_reverse_iterator
SCellsRange getSCellsRange() const
MidPointsRange getMidPointsRange() const
std::string className() const
bool initFromVectorStream(std::istream &in)
void selfDisplay(std::ostream &out) const
PointsRange getPointsRange() const
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToCode< KSpace >, char > CodesRange
ConstRangeAdapter< typename Storage::const_iterator, CanonicSCellEmbedder< KSpace >, typename KSpace::Space::RealPoint > MidPointsRange
void pushBack(const SCell &aSCell)
Storage::const_iterator const_iterator
ConstReverseIterator rbegin() const
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToPoint< KSpace >, Point > PointsRange
std::vector< SCell > Storage
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToInnerPoint< KSpace >, Point > InnerPointsRange
IncidentPointsRange getIncidentPointsRange() const
bool initFromSCellsVector(const std::vector< SCell > &aVectorOfSCells)
GridCurve(ConstAlias< KSpace > aKSpace)
void writeVectorToStream(std::ostream &out)
ArrowsRange getArrowsRange() const
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToIncidentPoints< KSpace >, std::pair< Point, Point > > IncidentPointsRange
ConstIterator end() const
OuterPointsRange getOuterPointsRange() const
bool isInside(const SCell &aSCell) const
bool initFromPointsRange(const TIterator &itb, const TIterator &ite)
Storage::size_type size() const
InnerPointsRange getInnerPointsRange() const
GridCurve(const GridCurve &other)
bool initFromSCellsRange(const TIterator &itb, const TIterator &ite)
ConstReverseIterator rend() const
GridCurve::CodesRange getCodesRange() const
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToArrow< KSpace >, std::pair< Point, Vector > > ArrowsRange
Storage::const_iterator ConstIterator
BOOST_CONCEPT_ASSERT((concepts::CCellularGridSpaceND< KSpace >))
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToOuterPoint< KSpace >, Point > OuterPointsRange
GridCurve & operator=(const GridCurve &other)
void push_back(const SCell &aSCell)
bool initFromVector(const std::vector< Point > &aVectorOfPoints)
PointVector< dim, double > RealPoint
Aim: transforms a signed cell into an arrow, ie. a pair point-vector.
Aim: transforms a 2d signed cell, basically a linel, into a code (0,1,2 or 3),.
Aim: transforms a signed cell c into a pair of points corresponding to the signed cells of greater di...
Aim: transforms a signed cell c into a point corresponding to the signed cell of greater dimension th...
Aim: transforms a signed cell c into a point corresponding to the signed cell of greater dimension th...
Aim: transforms a scell into a point.
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
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: Define a simple default functor that just returns its argument.