DGtal
1.5.beta
|
A ray consists of a permutation \( \sigma \) and an integer index \( \lambda \) (position on the ray). For a triplet of vectors \( (m_k)_{0 \leq k \leq 2} \) and a point \( q \), a point on the ray is defined as: \( q - m_{\sigma(0)} + m_{\sigma(1)} + \lambda m_{\sigma(2)} \). \( q - m_{\sigma(0)} + m_{\sigma(1)} \) is called the base point. More...
#include <DGtal/geometry/helpers/PlaneProbingEstimatorHelper.h>
Public Types | |
using | Permutation = std::array< Index, 3 > |
Public Member Functions | |
PointOnProbingRay ()=default | |
PointOnProbingRay (Permutation const &aSigma, Integer const &aInt=Integer(0)) | |
PointOnProbingRay | getBase () const |
Permutation const & | sigma () const |
Index | sigma (Index const &aIndex) const |
Integer const & | position () const |
template<typename Point > | |
Point | relativePoint (std::array< Point, 3 > const &aM) const |
bool | operator== (PointOnProbingRay const &aRay) const |
bool | operator!= (PointOnProbingRay const &aRay) const |
bool | operator<= (PointOnProbingRay const &aRay) const |
PointOnProbingRay | next (Integer const &aInc) const |
PointOnProbingRay | previous (Integer const &aDec) const |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CInteger< Integer >)) | |
Private Attributes | |
Permutation | mySigma |
Integer | myPosition |
A ray consists of a permutation \( \sigma \) and an integer index \( \lambda \) (position on the ray). For a triplet of vectors \( (m_k)_{0 \leq k \leq 2} \) and a point \( q \), a point on the ray is defined as: \( q - m_{\sigma(0)} + m_{\sigma(1)} + \lambda m_{\sigma(2)} \). \( q - m_{\sigma(0)} + m_{\sigma(1)} \) is called the base point.
Description of template class 'PointOnProbingRay'
This class is used to represent points on rays for a plane-probing estimator, so in practice the point \( q \) is the fixed point and the three vectors \( (m_k)_{0 \leq k \leq 2} \) are the vectors defining the current probing frame.
Integer | the integer type, model of concepts::CInteger. |
Definition at line 112 of file PlaneProbingEstimatorHelper.h.
using DGtal::detail::PointOnProbingRay< Integer, Index >::Permutation = std::array<Index, 3> |
Definition at line 118 of file PlaneProbingEstimatorHelper.h.
|
default |
Default constructor.
DGtal::detail::PointOnProbingRay< Integer, Index >::PointOnProbingRay | ( | Permutation const & | aSigma, |
Integer const & | aInt = Integer(0) |
||
) |
Constructs a ray with a permutation and an index.
aSigma | a permutation. |
aInt | an integer that determines a point along the ray. |
|
private |
PointOnProbingRay DGtal::detail::PointOnProbingRay< Integer, Index >::getBase | ( | ) | const |
PointOnProbingRay DGtal::detail::PointOnProbingRay< Integer, Index >::next | ( | Integer const & | aInc | ) | const |
aInc | an increment. |
bool DGtal::detail::PointOnProbingRay< Integer, Index >::operator!= | ( | PointOnProbingRay< Integer, Index > const & | aRay | ) | const |
Inequality test between two rays.
aRay | an other ray. |
bool DGtal::detail::PointOnProbingRay< Integer, Index >::operator<= | ( | PointOnProbingRay< Integer, Index > const & | aRay | ) | const |
Comparison operator between two rays: one ray is less than another if they have the same internal permutation and the first one has a smaller index than the second one.
aRay | an other ray. |
bool DGtal::detail::PointOnProbingRay< Integer, Index >::operator== | ( | PointOnProbingRay< Integer, Index > const & | aRay | ) | const |
Equality test between two rays: the internal permutations and indices must be the same.
aRay | an other ray. |
Integer const& DGtal::detail::PointOnProbingRay< Integer, Index >::position | ( | ) | const |
PointOnProbingRay DGtal::detail::PointOnProbingRay< Integer, Index >::previous | ( | Integer const & | aDec | ) | const |
aDec | a decrement. |
Point DGtal::detail::PointOnProbingRay< Integer, Index >::relativePoint | ( | std::array< Point, 3 > const & | aM | ) | const |
Returns the geometric realization of this grid point.
aM | an array of three points. |
Point | a type for points. |
Permutation const& DGtal::detail::PointOnProbingRay< Integer, Index >::sigma | ( | ) | const |
Index DGtal::detail::PointOnProbingRay< Integer, Index >::sigma | ( | Index const & | aIndex | ) | const |
aIndex | an index between 0 and 2. |
|
private |
The index.
Definition at line 207 of file PlaneProbingEstimatorHelper.h.
|
private |
The permutation.
Definition at line 206 of file PlaneProbingEstimatorHelper.h.