DGtal
1.5.beta
|
Aim: Represent a way to probe the H-neighborhood. More...
#include <DGtal/geometry/surfaces/estimation/PlaneProbingHNeighborhood.h>
Public Types | |
using | Predicate = TPredicate |
using | Point = typename TPredicate::Point |
using | Triangle = typename PlaneProbingNeighborhood< TPredicate >::Triangle |
using | PointOnProbingRay = typename PlaneProbingNeighborhood< TPredicate >::PointOnProbingRay |
using | HexagonState = typename PlaneProbingNeighborhood< TPredicate >::HexagonState |
Public Types inherited from DGtal::PlaneProbingNeighborhood< TPredicate > | |
enum class | HexagonState { Empty , NonConvex , NonPlanar , Planar } |
using | Predicate = TPredicate |
using | Point = typename Predicate::Point |
using | Vector = Point |
using | Integer = typename Point::Coordinate |
using | Triangle = std::array< Vector, 3 > |
using | Index = std::size_t |
using | PointOnProbingRay = detail::PointOnProbingRay< Integer, Index > |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CPointPredicate< TPredicate >)) | |
Additional Inherited Members | |
Protected Member Functions inherited from DGtal::PlaneProbingNeighborhood< TPredicate > | |
template<class TPointAdapter > | |
TPointAdapter | closestPointInList (std::vector< TPointAdapter > const &aPoints) const |
bool | isNeighbor (PointOnProbingRay const &aRay) const |
bool | isSmallest (Point const &aX, Point const &aY) const |
template<class TPointAdapter > | |
Point | relativePoint (TPointAdapter const &aPoint) const |
template<class TPointAdapter > | |
Point | absolutePoint (TPointAdapter const &aPoint) const |
Protected Attributes inherited from DGtal::PlaneProbingNeighborhood< TPredicate > | |
Predicate const & | myPredicate |
Point const & | myQ |
Triangle const & | myM |
std::vector< PointOnProbingRay > | myCandidates |
std::vector< PointOnProbingRay > | myNeighbors |
Static Protected Attributes inherited from DGtal::PlaneProbingNeighborhood< TPredicate > | |
static const PointOnProbingRay | myNeighborhood [6] |
Aim: Represent a way to probe the H-neighborhood.
Description of template class 'PlaneProbingHNeighborhood'
TPredicate | the probing predicate, a model of concepts::CPointPredicate. |
Definition at line 62 of file PlaneProbingHNeighborhood.h.
using DGtal::PlaneProbingHNeighborhood< TPredicate >::HexagonState = typename PlaneProbingNeighborhood<TPredicate>::HexagonState |
Definition at line 72 of file PlaneProbingHNeighborhood.h.
using DGtal::PlaneProbingHNeighborhood< TPredicate >::Point = typename TPredicate::Point |
Definition at line 69 of file PlaneProbingHNeighborhood.h.
using DGtal::PlaneProbingHNeighborhood< TPredicate >::PointOnProbingRay = typename PlaneProbingNeighborhood<TPredicate>::PointOnProbingRay |
Definition at line 71 of file PlaneProbingHNeighborhood.h.
using DGtal::PlaneProbingHNeighborhood< TPredicate >::Predicate = TPredicate |
Definition at line 68 of file PlaneProbingHNeighborhood.h.
using DGtal::PlaneProbingHNeighborhood< TPredicate >::Triangle = typename PlaneProbingNeighborhood<TPredicate>::Triangle |
Definition at line 70 of file PlaneProbingHNeighborhood.h.
|
delete |
Default constructor.
DGtal::PlaneProbingHNeighborhood< TPredicate >::PlaneProbingHNeighborhood | ( | Predicate const & | aPredicate, |
Point const & | aQ, | ||
Triangle const & | aM | ||
) |
Constructor.
aPredicate | a probing predicate. |
aQ | the fixed point 'q'. |
aM | a frame composed of the three vectors. |
DGtal::PlaneProbingHNeighborhood< TPredicate >::~PlaneProbingHNeighborhood | ( | ) |
Destructor.
|
delete |
Copy constructor.
other | the object to clone. |
|
delete |
Move constructor.
other | the object to move. |
|
private |
|
overridevirtual |
Computes the current state of the neighborhood. This is the function that is overloaded for the different probing modes.
Implements DGtal::PlaneProbingNeighborhood< TPredicate >.
bool DGtal::PlaneProbingHNeighborhood< TPredicate >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
delete |
Copy assignment operator.
other | the object to copy. |
|
delete |
Move assignment operator.
other | the object to move. |
void DGtal::PlaneProbingHNeighborhood< TPredicate >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |