DGtal 2.0.0
|
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 next(), operator!=(), operator==(), and 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.
References myDirection, myIdx, and myOrigin.
|
private |
|
inline |
Definition at line 503 of file PlaneProbingEstimatorHelper.h.
References myDirection, myIdx, and myOrigin.
Referenced by relativePoint().
|
inline |
Definition at line 496 of file PlaneProbingEstimatorHelper.h.
References 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 GridPointOnProbingRay(), myDirection, myIdx, and myOrigin.
|
inline |
Difference test.
other | another instance of GridPointOnProbingRay |
Definition at line 465 of file PlaneProbingEstimatorHelper.h.
References GridPointOnProbingRay().
|
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 GridPointOnProbingRay(), myDirection, myIdx, and 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 GridPointOnProbingRay(), myDirection, myIdx, and 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 gridPoint(), and DGtal::detail::GridPoint< Integer, Index >::relativePoint().
|
private |
direction of the ray
Definition at line 522 of file PlaneProbingEstimatorHelper.h.
Referenced by gridPoint(), GridPointOnProbingRay(), next(), operator==(), and previous().
|
private |
index of the point along the ray
Definition at line 523 of file PlaneProbingEstimatorHelper.h.
Referenced by gridPoint(), GridPointOnProbingRay(), index(), next(), operator==(), and previous().
starting point of the ray
Definition at line 521 of file PlaneProbingEstimatorHelper.h.
Referenced by gridPoint(), GridPointOnProbingRay(), next(), operator==(), and previous().