31 #if defined(Preimage2D_RECURSES)
32 #error Recursive header files inclusion detected in Preimage2D.h
35 #define Preimage2D_RECURSES
37 #if !defined Preimage2D_h
45 #include "DGtal/base/Common.h"
46 #include "DGtal/base/OpInSTLContainers.h"
47 #include "DGtal/shapes/fromPoints/Point2ShapePredicate.h"
48 #include "DGtal/io/Color.h"
92 template <
typename Shape>
415 template <
typename Iterator,
typename Predicate>
418 Iterator & anIterator,
419 const Iterator & anEndIterator);
435 template <
typename Shape>
445 #include "DGtal/geometry/tools/Preimage2D.ih"
452 #undef Preimage2D_RECURSES
Aim: Computes the preimage of the 2D Euclidean shapes crossing a sequence of n straigth segments in O...
functors::Point2ShapePredicate< Shape, true, true > QHullBackPHullFrontPred
functors::Point2ShapePredicate< Shape, true, true > PHullFrontQHullBackPred
bool addBack(const Point &aP, const Point &aQ)
Preimage2D(const Preimage2D &other)
functors::Point2ShapePredicate< Shape, false, false > BackPHullUpdatePred
bool operator!=(const Preimage2D &other) const
std::list< Point >::iterator ForwardIterator
bool addFront(const Point &aP, const Point &aQ)
void selfDisplay(std::ostream &out) const
functors::Point2ShapePredicate< Shape, false, true > PHullBackQHullFrontPred
const Shape & shape() const
void update(const Point &aPoint, Container &aContainer, Iterator &anIterator, const Iterator &anEndIterator)
bool isRightExteriorAtTheFront(const Point &aP, const Point &aQ)
void getSeparatingStraightLine(double &alpha, double &beta, double &gamma) const
Preimage2D(const Point &firstPoint, const Point &secondPoint, const Shape &aShape)
functors::Point2ShapePredicate< Shape, false, false > FrontQHullUpdatePred
std::list< Point > Container
bool canBeAddedAtTheFront(const Point &aP, const Point &aQ)
functors::Point2ShapePredicate< Shape, false, true > QHullFrontPHullBackPred
bool operator==(const Preimage2D &other) const
std::string className() const
bool isLeftExteriorAtTheFront(const Point &aP, const Point &aQ)
bool canBeAddedAtTheBack(const Point &aP, const Point &aQ)
const Container & pHull() const
std::list< Point >::const_iterator ConstForwardIterator
std::list< Point >::reverse_iterator BackwardIterator
const Container & qHull() const
functors::Point2ShapePredicate< Shape, true, false > BackQHullUpdatePred
Preimage2D & operator=(const Preimage2D &other)
bool isRightExteriorAtTheBack(const Point &aP, const Point &aQ)
bool isLeftExteriorAtTheBack(const Point &aP, const Point &aQ)
std::list< Point >::const_reverse_iterator ConstBackwardIterator
functors::Point2ShapePredicate< Shape, true, false > FrontPHullUpdatePred
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)