DGtal
1.5.beta
|
Aim: Represents a grid point along a discrete ray defined on a grid. More...
#include <DGtal/geometry/helpers/PlaneProbingEstimatorHelper.h>
Public Member Functions | |
GridPointOnProbingRay ()=default | |
GridPointOnProbingRay (const GridPoint< Integer, Index > &aGridPoint, const std::pair< Integer, Integer > &aDirection, const Integer &aIdx=0) | |
bool | operator== (GridPointOnProbingRay const &other) const |
bool | operator!= (GridPointOnProbingRay const &other) const |
GridPointOnProbingRay | next (const Integer &aInc) const |
GridPointOnProbingRay | previous (const Integer &aDec) const |
Integer | index () const |
GridPoint< Integer, Index > | gridPoint () const |
template<typename Point > | |
Point | relativePoint (std::array< Point, 3 > const &aM) const |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CInteger< Integer >)) | |
Private Attributes | |
GridPoint< Integer, Index > | myOrigin |
std::pair< Integer, Integer > | myDirection |
Integer | myIdx |
Aim: Represents a grid point along a discrete ray defined on a grid.
Description of template class 'GridPointOnProbingRay'
More precisely, a ray consists of a starting point (represented as an instance of 'GridPoint') and a direction (respresented as a couple of coordinates for the basis of the underlying grid). A grid point along that ray is determined by an index, 0 being the starting point of the ray. The class provides several methods to compare and move points along the ray.
Integer | the integer type, model of concepts::CInteger. |
Definition at line 423 of file PlaneProbingEstimatorHelper.h.
|
default |
Default constructor.
Referenced by DGtal::detail::GridPointOnProbingRay< Integer, Index >::next(), and DGtal::detail::GridPointOnProbingRay< Integer, Index >::previous().
|
inline |
Constructor.
aGridPoint | starting point of the ray |
aDirection | direction of the ray |
aIdx | index of the grid point along the ray |
Definition at line 440 of file PlaneProbingEstimatorHelper.h.
|
private |
|
inline |
Definition at line 503 of file PlaneProbingEstimatorHelper.h.
References DGtal::detail::GridPoint< Integer, Index >::getOnSameGrid(), DGtal::detail::GridPointOnProbingRay< Integer, Index >::myDirection, DGtal::detail::GridPointOnProbingRay< Integer, Index >::myIdx, and DGtal::detail::GridPointOnProbingRay< Integer, Index >::myOrigin.
Referenced by DGtal::detail::GridPointOnProbingRay< Integer, Index >::relativePoint().
|
inline |
Definition at line 496 of file PlaneProbingEstimatorHelper.h.
References DGtal::detail::GridPointOnProbingRay< Integer, Index >::myIdx.
|
inline |
Returns a grid point lying after this one along the ray. The distance is given as an input parameter.
aInc | an increment. |
Definition at line 477 of file PlaneProbingEstimatorHelper.h.
References DGtal::detail::GridPointOnProbingRay< Integer, Index >::GridPointOnProbingRay(), DGtal::detail::GridPointOnProbingRay< Integer, Index >::myDirection, DGtal::detail::GridPointOnProbingRay< Integer, Index >::myIdx, and DGtal::detail::GridPointOnProbingRay< Integer, Index >::myOrigin.
|
inline |
Difference test.
other | another instance of GridPointOnProbingRay |
Definition at line 465 of file PlaneProbingEstimatorHelper.h.
|
inline |
Equality test. The two objects are equal iff the underlying rays are the same and the indices are the same.
other | another instance of GridPointOnProbingRay |
Definition at line 453 of file PlaneProbingEstimatorHelper.h.
References DGtal::detail::GridPointOnProbingRay< Integer, Index >::myDirection, DGtal::detail::GridPointOnProbingRay< Integer, Index >::myIdx, and DGtal::detail::GridPointOnProbingRay< Integer, Index >::myOrigin.
|
inline |
Returns a grid point lying before this one along the ray. The distance is given as an input parameter.
aDec | a decrement. |
Definition at line 489 of file PlaneProbingEstimatorHelper.h.
References DGtal::detail::GridPointOnProbingRay< Integer, Index >::GridPointOnProbingRay(), DGtal::detail::GridPointOnProbingRay< Integer, Index >::myDirection, DGtal::detail::GridPointOnProbingRay< Integer, Index >::myIdx, and DGtal::detail::GridPointOnProbingRay< Integer, Index >::myOrigin.
|
inline |
Returns the geometric realization of this grid point.
aM | an array of three points. |
Point | a type for points. |
Definition at line 515 of file PlaneProbingEstimatorHelper.h.
References DGtal::detail::GridPointOnProbingRay< Integer, Index >::gridPoint(), and DGtal::detail::GridPoint< Integer, Index >::relativePoint().
|
private |
direction of the ray
Definition at line 522 of file PlaneProbingEstimatorHelper.h.
Referenced by DGtal::detail::GridPointOnProbingRay< Integer, Index >::gridPoint(), DGtal::detail::GridPointOnProbingRay< Integer, Index >::next(), DGtal::detail::GridPointOnProbingRay< Integer, Index >::operator==(), and DGtal::detail::GridPointOnProbingRay< Integer, Index >::previous().
|
private |
index of the point along the ray
Definition at line 523 of file PlaneProbingEstimatorHelper.h.
Referenced by DGtal::detail::GridPointOnProbingRay< Integer, Index >::gridPoint(), DGtal::detail::GridPointOnProbingRay< Integer, Index >::index(), DGtal::detail::GridPointOnProbingRay< Integer, Index >::next(), DGtal::detail::GridPointOnProbingRay< Integer, Index >::operator==(), and DGtal::detail::GridPointOnProbingRay< Integer, Index >::previous().
|
private |
starting point of the ray
Definition at line 521 of file PlaneProbingEstimatorHelper.h.
Referenced by DGtal::detail::GridPointOnProbingRay< Integer, Index >::gridPoint(), DGtal::detail::GridPointOnProbingRay< Integer, Index >::next(), DGtal::detail::GridPointOnProbingRay< Integer, Index >::operator==(), and DGtal::detail::GridPointOnProbingRay< Integer, Index >::previous().