31 #if defined(MelkmanConvexHull_RECURSES) 32 #error Recursive header files inclusion detected in MelkmanConvexHull.h 33 #else // defined(MelkmanConvexHull_RECURSES) 35 #define MelkmanConvexHull_RECURSES 37 #if !defined MelkmanConvexHull_h 39 #define MelkmanConvexHull_h 44 #include "DGtal/base/Common.h" 45 #include "DGtal/base/Alias.h" 46 #include "DGtal/base/CountedConstPtrOrConstPtr.h" 47 #include "DGtal/base/IteratorCirculatorTraits.h" 48 #include "DGtal/base/FrontInsertionSequenceToStackAdapter.h" 49 #include "DGtal/base/BackInsertionSequenceToStackAdapter.h" 51 #include "DGtal/geometry/tools/determinant/COrientationFunctor2.h" 52 #include "DGtal/geometry/tools/determinant/PredicateFromOrientationFunctor2.h" 54 #include "DGtal/geometry/tools/Hull2DHelpers.h" 87 template <
typename TPoint,
88 typename TOrientationFunctor >
150 ConstIterator
begin()
const;
156 ConstIterator
end()
const;
182 const Point &
operator[](
unsigned int i)
const;
187 unsigned int size()
const;
238 template <
typename TPo
int,
typename TOrientationFunctor>
240 operator<< ( std::ostream & out, const MelkmanConvexHull<TPoint, TOrientationFunctor> & object );
264 template <
typename ForwardIterator,
265 typename OutputIterator,
267 void melkmanConvexHullAlgorithm(
const ForwardIterator& itb,
268 const ForwardIterator& ite,
279 #include "DGtal/geometry/tools/MelkmanConvexHull.ih" 284 #endif // !defined MelkmanConvexHull_h 286 #undef MelkmanConvexHull_RECURSES 287 #endif // else defined(MelkmanConvexHull_RECURSES)
std::deque< Point >::const_iterator ConstIterator
BOOST_STATIC_ASSERT((boost::is_same< Point, typename Functor::Point >::value))
MelkmanConvexHull< TPoint, TOrientationFunctor > Self
Self & operator=(const Self &mch)
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
TOrientationFunctor Functor
ForwardPredicate myForwardPredicate
Aim: This concept is a refinement of COrientationFunctor, useful for simple algebraic curves that can...
Aim: This class implements the on-line algorithm of Melkman for the computation of the convex hull of...
const Point & operator[](unsigned int i) const
PredicateFromOrientationFunctor2< Functor, true, false > ForwardPredicate
void selfDisplay(std::ostream &out) const
std::deque< Point > myContainer
BackwardPredicate myBackwardPredicate
DGtal is the top-level namespace which contains all DGtal functions and types.
void add(const Point &aPoint)
BOOST_CONCEPT_ASSERT((concepts::COrientationFunctor2< Functor >))
PredicateFromOrientationFunctor2< Functor, false, false > BackwardPredicate
ConstIterator end() const
unsigned int size() const
ConstIterator begin() const