DGtal 1.3.0
|
Aim: Represent a way to probe the R-neighborhood. More...
#include <DGtal/geometry/surfaces/estimation/PlaneProbingRNeighborhood.h>
Public Types | |
using | Predicate = TPredicate |
using | Point = typename TPredicate::Point |
using | Triangle = typename PlaneProbingNeighborhood< TPredicate >::Triangle |
using | Integer = typename PlaneProbingNeighborhood< TPredicate >::Integer |
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 | PointOnProbingRay = detail::PointOnProbingRay< Integer > |
Protected Member Functions | |
PointOnProbingRay | closestPointOnRayLogWithPredicate (PointOnProbingRay const &aRay) const |
PointOnProbingRay | closestPointOnRayLinearWithPredicate (PointOnProbingRay const &aRay) const |
Protected Member Functions inherited from DGtal::PlaneProbingNeighborhood< TPredicate > | |
PointOnProbingRay | closestPointInList (std::vector< PointOnProbingRay > const &aPoints) const |
bool | isNeighbor (PointOnProbingRay const &aRay) const |
bool | isSmallest (Point const &aX, Point const &aY) const |
Point | relativePoint (PointOnProbingRay const &aRay) const |
Point | absolutePoint (PointOnProbingRay const &aRay) const |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CPointPredicate< TPredicate >)) | |
Additional Inherited Members | |
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 R-neighborhood.
Description of template class 'PlaneProbingRNeighborhood'
TPredicate | the probing predicate, a model of concepts::CPointPredicate. |
Definition at line 62 of file PlaneProbingRNeighborhood.h.
using DGtal::PlaneProbingRNeighborhood< TPredicate >::HexagonState = typename PlaneProbingNeighborhood<TPredicate>::HexagonState |
Definition at line 73 of file PlaneProbingRNeighborhood.h.
using DGtal::PlaneProbingRNeighborhood< TPredicate >::Integer = typename PlaneProbingNeighborhood<TPredicate>::Integer |
Definition at line 71 of file PlaneProbingRNeighborhood.h.
using DGtal::PlaneProbingRNeighborhood< TPredicate >::Point = typename TPredicate::Point |
Definition at line 69 of file PlaneProbingRNeighborhood.h.
using DGtal::PlaneProbingRNeighborhood< TPredicate >::PointOnProbingRay = typename PlaneProbingNeighborhood<TPredicate>::PointOnProbingRay |
Definition at line 72 of file PlaneProbingRNeighborhood.h.
using DGtal::PlaneProbingRNeighborhood< TPredicate >::Predicate = TPredicate |
Definition at line 68 of file PlaneProbingRNeighborhood.h.
using DGtal::PlaneProbingRNeighborhood< TPredicate >::Triangle = typename PlaneProbingNeighborhood<TPredicate>::Triangle |
Definition at line 70 of file PlaneProbingRNeighborhood.h.
|
delete |
Default constructor.
DGtal::PlaneProbingRNeighborhood< TPredicate >::PlaneProbingRNeighborhood | ( | 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::PlaneProbingRNeighborhood< TPredicate >::~PlaneProbingRNeighborhood | ( | ) |
Destructor.
|
delete |
Copy constructor.
other | the object to clone. |
|
delete |
Move constructor.
other | the object to move. |
|
private |
|
protected |
Finds the closest point on a given ray using a linear search.
aRay | a ray. |
|
protected |
Finds the closest point on a given ray using an exponential march and a binary search.
aRay | a ray. |
|
overridevirtual |
Computes the current state of the neighborhood. This is the function that is overloaded for the different probing modes.
Implements DGtal::PlaneProbingNeighborhood< TPredicate >.
Reimplemented in DGtal::PlaneProbingR1Neighborhood< TPredicate >.
bool DGtal::PlaneProbingRNeighborhood< 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::PlaneProbingRNeighborhood< TPredicate >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |