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)
ConstIterator begin() const
SCellsRange getSCellsRange() const
Storage::const_reverse_iterator ConstReverseIterator
Storage::const_reverse_iterator const_reverse_iterator
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::Identity, SCell > SCellsRange
void pushBack(const SCell &aSCell)
ConstReverseIterator rbegin() const
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToOuterPoint< KSpace >, Point > OuterPointsRange
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToIncidentPoints< KSpace >, std::pair< Point, Point > > IncidentPointsRange
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToCode< KSpace >, char > CodesRange
IncidentPointsRange getIncidentPointsRange() const
bool initFromSCellsVector(const std::vector< SCell > &aVectorOfSCells)
GridCurve(ConstAlias< KSpace > aKSpace)
void writeVectorToStream(std::ostream &out)
ConstRangeAdapter< typename Storage::const_iterator, CanonicSCellEmbedder< KSpace >, typename KSpace::Space::RealPoint > MidPointsRange
ArrowsRange getArrowsRange() const
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToInnerPoint< KSpace >, Point > InnerPointsRange
std::vector< SCell > Storage
ConstIterator end() const
OuterPointsRange getOuterPointsRange() const
Storage::const_iterator ConstIterator
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)
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToPoint< KSpace >, Point > PointsRange
bool initFromSCellsRange(const TIterator &itb, const TIterator &ite)
ConstReverseIterator rend() const
GridCurve & operator=(const GridCurve &other)
GridCurve::CodesRange getCodesRange() const
ConstRangeAdapter< typename Storage::const_iterator, functors::SCellToArrow< KSpace >, std::pair< Point, Vector > > ArrowsRange
BOOST_CONCEPT_ASSERT((concepts::CCellularGridSpaceND< KSpace >))
Storage::const_iterator const_iterator
void push_back(const SCell &aSCell)
bool initFromVector(const std::vector< Point > &aVectorOfPoints)
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 ClosedIntegerHalfPlane< TSpace > &object)
Aim: A trivial embedder for signed cell, which corresponds to the canonic injection of cell centroids...
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.