31 #if defined(StabbingLineComputer_RECURSES) 32 #error Recursive header files inclusion detected in StabbingLineComputer.h 33 #else // defined(StabbingLineComputer_RECURSES) 35 #define StabbingLineComputer_RECURSES 37 #if !defined StabbingLineComputer_h 39 #define StabbingLineComputer_h 44 #include "DGtal/base/Common.h" 45 #include <boost/static_assert.hpp> 46 #include "DGtal/base/CowPtr.h" 47 #include "DGtal/base/ConceptUtils.h" 48 #include "DGtal/base/ReverseIterator.h" 49 #include "DGtal/geometry/curves/SegmentComputerUtils.h" 51 #include "DGtal/geometry/tools/Preimage2D.h" 52 #include "DGtal/shapes/fromPoints/StraightLineFrom2Points.h" 91 template <
typename TConstIterator>
104 typedef typename Pair::first_type
Point;
108 <
typename Pair::first_type,
typename Pair::second_type >
225 void getParameters(
double& alpha,
double& beta,
double& gamma)
const;
237 const double& alpha,
const double& beta,
const double& gamma)
const;
391 template <
typename TConstIterator>
393 operator<< ( std::ostream & out, const StabbingLineComputer<TConstIterator> & object );
400 #include "DGtal/geometry/curves/StabbingLineComputer.ih" 405 #endif // !defined StabbingLineComputer_h 407 #undef StabbingLineComputer_RECURSES 408 #endif // else defined(StabbingLineComputer_RECURSES)
void selfDisplay(std::ostream &out) const
Aim: Computes the preimage of the 2D Euclidean shapes crossing a sequence of n straigth segments in O...
Self & operator=(const Self &other)
Aim: Represents a straight line uniquely defined by two 2D points and that is able to return for any ...
void getParameters(double &alpha, double &beta, double &gamma) const
Preimage2D< StraightLine > Preimage
StabbingLineComputer< ConstIterator > Self
ConstIterator begin() const
TConstIterator ConstIterator
StraightLineFrom2Points< Point > StraightLine
BOOST_STATIC_ASSERT((concepts::ConceptUtils::SameType< typename Pair::first_type, typename Pair::second_type > ::value))
Aim: On-line recognition of a digital straight segment (DSS) defined as a sequence of connected grid ...
bool isClockwiseOriented() const
bool operator==(const Self &other) const
void projects(double &x, double &y, const double &alpha, const double &beta, const double &gamma) const
ConstIterator end() const
bool isOppositeEndConcave()
IteratorCirculatorTraits< ConstIterator >::Value Pair
PreimagePtr myPreimagePtr
bool operator!=(const Self &other) const
DGtal is the top-level namespace which contains all DGtal functions and types.
std::string className() const
void init(const ConstIterator &anIt)
StabbingLineComputer< ReverseIterator< ConstIterator > > Reverse
Reverse getReverse() const
CowPtr< Preimage > PreimagePtr
PreimagePtr getPreimage() const
bool isOppositeEndConvex()