|
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 > &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 > | 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 > | 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 425 of file PlaneProbingEstimatorHelper.h.
|
default |
Default constructor.
Referenced by DGtal::detail::GridPointOnProbingRay< Integer >::next(), and DGtal::detail::GridPointOnProbingRay< Integer >::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 442 of file PlaneProbingEstimatorHelper.h.
|
private |
|
inline |
Definition at line 505 of file PlaneProbingEstimatorHelper.h.
References DGtal::detail::GridPoint< Integer >::getOnSameGrid(), DGtal::detail::GridPointOnProbingRay< Integer >::myDirection, DGtal::detail::GridPointOnProbingRay< Integer >::myIdx, and DGtal::detail::GridPointOnProbingRay< Integer >::myOrigin.
Referenced by DGtal::detail::GridPointOnProbingRay< Integer >::relativePoint().
|
inline |
Definition at line 498 of file PlaneProbingEstimatorHelper.h.
References DGtal::detail::GridPointOnProbingRay< Integer >::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 479 of file PlaneProbingEstimatorHelper.h.
References DGtal::detail::GridPointOnProbingRay< Integer >::GridPointOnProbingRay(), DGtal::detail::GridPointOnProbingRay< Integer >::myDirection, DGtal::detail::GridPointOnProbingRay< Integer >::myIdx, and DGtal::detail::GridPointOnProbingRay< Integer >::myOrigin.
|
inline |
Difference test.
| other | another instance of GridPointOnProbingRay |
Definition at line 467 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 455 of file PlaneProbingEstimatorHelper.h.
References DGtal::detail::GridPointOnProbingRay< Integer >::myDirection, DGtal::detail::GridPointOnProbingRay< Integer >::myIdx, and DGtal::detail::GridPointOnProbingRay< Integer >::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 491 of file PlaneProbingEstimatorHelper.h.
References DGtal::detail::GridPointOnProbingRay< Integer >::GridPointOnProbingRay(), DGtal::detail::GridPointOnProbingRay< Integer >::myDirection, DGtal::detail::GridPointOnProbingRay< Integer >::myIdx, and DGtal::detail::GridPointOnProbingRay< Integer >::myOrigin.
|
inline |
Returns the geometric realization of this grid point.
| aM | an array of three points. |
| Point | a type for points. |
Definition at line 517 of file PlaneProbingEstimatorHelper.h.
References DGtal::detail::GridPointOnProbingRay< Integer >::gridPoint(), and DGtal::detail::GridPoint< Integer >::relativePoint().
|
private |
direction of the ray
Definition at line 524 of file PlaneProbingEstimatorHelper.h.
Referenced by DGtal::detail::GridPointOnProbingRay< Integer >::gridPoint(), DGtal::detail::GridPointOnProbingRay< Integer >::next(), DGtal::detail::GridPointOnProbingRay< Integer >::operator==(), and DGtal::detail::GridPointOnProbingRay< Integer >::previous().
|
private |
index of the point along the ray
Definition at line 525 of file PlaneProbingEstimatorHelper.h.
Referenced by DGtal::detail::GridPointOnProbingRay< Integer >::gridPoint(), DGtal::detail::GridPointOnProbingRay< Integer >::index(), DGtal::detail::GridPointOnProbingRay< Integer >::next(), DGtal::detail::GridPointOnProbingRay< Integer >::operator==(), and DGtal::detail::GridPointOnProbingRay< Integer >::previous().
|
private |
starting point of the ray
Definition at line 523 of file PlaneProbingEstimatorHelper.h.
Referenced by DGtal::detail::GridPointOnProbingRay< Integer >::gridPoint(), DGtal::detail::GridPointOnProbingRay< Integer >::next(), DGtal::detail::GridPointOnProbingRay< Integer >::operator==(), and DGtal::detail::GridPointOnProbingRay< Integer >::previous().