31#if defined(Naive3DDSSComputer_RECURSES)
32#error Recursive header files inclusion detected in Naive3DDSSComputer.h
35#define Naive3DDSSComputer_RECURSES
37#if !defined Naive3DDSSComputer_h
39#define Naive3DDSSComputer_h
47#include "DGtal/base/Exceptions.h"
48#include "DGtal/base/Common.h"
49#include "DGtal/kernel/PointVector.h"
50#include "DGtal/kernel/CInteger.h"
51#include "DGtal/geometry/curves/ArithmeticalDSSComputer.h"
52#include "DGtal/base/ConstIteratorAdapter.h"
53#include "DGtal/kernel/BasicPointFunctors.h"
96template <
typename TIterator,
typename TInteger,
int connectivity = 8>
360#if !defined(BUILD_INLINE)
361#include "DGtal/geometry/curves/Naive3DDSSComputer.ih"
370#undef Naive3DDSSComputer_RECURSES
This class adapts any iterator so that operator* returns another element than the one pointed to by t...
Aim: Dynamic recognition of a 3d-digital straight segment (DSS)
std::pair< Integer, Integer > Quotient
Type which represent quotient of two integers first/second.
Naive3DDSSComputer(const Naive3DDSSComputer &other)
bool operator==(const Naive3DDSSComputer &other) const
IteratorCirculatorTraits< ConstIterator >::Value Vector3d
Type of 3d digital vector.
void init(const ConstIterator &it)
ArithmeticalDSSComputer2d myYZalgo
2d-arithmeticalDSS recognition algorithms for YZ-plane.
ArithmeticalDSSComputer2d myXYalgo
2d-arithmeticalDSS recognition algorithms for XY-plane.
Point3d::Coordinate Coordinate
Type of 3d digital point coordinate.
TInteger Integer
Type of integer, devoted to remainders (and intercepts)
Naive3DDSSComputer< ReverseIterator< ConstIterator >, TInteger, connectivity > Reverse
Reverse type.
Naive3DDSSComputer & operator=(const Naive3DDSSComputer &other)
const ArithmeticalDSSComputer2d & arithmeticalDSS2dXZ() const
ConstIterator begin() const
DGtal::ArithmeticalDSSComputer< IteratorAdapter, TInteger, connectivity > ArithmeticalDSSComputer2d
2D arithmetical DSS recognition algorithm
DGtal::PointVector< 2, Coordinate > Point2d
Type of 2d digital point.
const ArithmeticalDSSComputer2d & arithmeticalDSS2d(Dimension i) const
bool operator!=(const Naive3DDSSComputer &other) const
ConstIteratorAdapter< ConstIterator, Projector2d, Point2d > IteratorAdapter
Iterator over adapter.
Reverse getReverse() const
bool extendFront(ArithmeticalDSSComputer2d &DSS2D, bool &blocked)
void getParameters(Vector3d &direction, PointR3d &intercept, PointR3d &thickness) const
void selfDisplay(std::ostream &out)
bool isInDSS(const ConstIterator &it) const
IteratorCirculatorTraits< ConstIterator >::Value Point3d
Type of 3d digital point.
Naive3DDSSComputer(const ConstIterator &it)
Projector2d myProjYZ
Projector for YZ-plane.
BOOST_CONCEPT_ASSERT((concepts::CInteger< TInteger >))
const ArithmeticalDSSComputer2d & arithmeticalDSS2dYZ() const
Projector2d myProjXY
Projector for XY-plane.
bool isInDSS(const Point3d &aPoint) const
ConstIterator myBegin
begin and end iterators
Projector2d myProjXZ
Projector for XZ-plane.
ConstIterator end() const
TIterator ConstIterator
Type of iterator, at least readable and forward.
functors::Projector< SpaceND< 2, Coordinate > > Projector2d
Adapter for iterators.
std::array< Quotient, 3 > PointR3d
Type of 3d rational point.
Naive3DDSSComputer< ConstIterator, TInteger, connectivity > Self
Self type.
ArithmeticalDSSComputer2d myXZalgo
2d-arithmeticalDSS recognition algorithms for XZ-plane.
std::string className() const
bool validArithmeticalDSS2d(Dimension i) const
const ArithmeticalDSSComputer2d & arithmeticalDSS2dXY() const
Aim: Implements basic operations that will be used in Point and Vector classes.
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::uint32_t Dimension
Aim: Concept checking for Integer Numbers. More precisely, this concept is a refinement of both CEucl...
Aim: Functor that maps a point P of dimension i to a point Q of dimension j. The member myDims is an ...