DGtal 1.4.0
|
Aim: A functor RealPoint -> Quantity that returns the position of the point itself. More...
#include <DGtal/shapes/ShapeGeometricFunctors.h>
Public Types | |
typedef TShape | Shape |
typedef Shape::RealPoint | RealPoint |
typedef RealPoint | Argument |
typedef RealPoint | Quantity |
typedef Quantity | Value |
Public Member Functions | |
ShapePositionFunctor (ConstAlias< Shape > aShape=0) | |
void | attach (ConstAlias< Shape > aShape) |
Quantity | operator() (const RealPoint &p) const |
Private Attributes | |
CountedConstPtrOrConstPtr< Shape > | myShape |
The shape of interest. | |
Aim: A functor RealPoint -> Quantity that returns the position of the point itself.
Description of template class 'ShapePositionFunctor'
TShape | the type of the shape where geometric estimation are made. |
Definition at line 64 of file ShapeGeometricFunctors.h.
typedef RealPoint DGtal::functors::ShapeGeometricFunctors::ShapePositionFunctor< TShape >::Argument |
Definition at line 67 of file ShapeGeometricFunctors.h.
typedef RealPoint DGtal::functors::ShapeGeometricFunctors::ShapePositionFunctor< TShape >::Quantity |
Definition at line 68 of file ShapeGeometricFunctors.h.
typedef Shape::RealPoint DGtal::functors::ShapeGeometricFunctors::ShapePositionFunctor< TShape >::RealPoint |
Definition at line 66 of file ShapeGeometricFunctors.h.
typedef TShape DGtal::functors::ShapeGeometricFunctors::ShapePositionFunctor< TShape >::Shape |
Definition at line 65 of file ShapeGeometricFunctors.h.
typedef Quantity DGtal::functors::ShapeGeometricFunctors::ShapePositionFunctor< TShape >::Value |
Definition at line 69 of file ShapeGeometricFunctors.h.
|
inline |
Constructor. A shape may also be attached at construction.
aShape | the shape of interest. The alias can be secured if a some counted pointer is handed. |
Definition at line 77 of file ShapeGeometricFunctors.h.
|
inline |
Attach a shape.
aShape | the shape of interest. The alias can be secured if a some counted pointer is handed. |
Definition at line 85 of file ShapeGeometricFunctors.h.
References DGtal::functors::ShapeGeometricFunctors::ShapePositionFunctor< TShape >::myShape.
|
inline |
Map operator RealPoint -> RealPoint giving the position.
p | any point on the shape. |
Definition at line 95 of file ShapeGeometricFunctors.h.
|
private |
The shape of interest.
Definition at line 102 of file ShapeGeometricFunctors.h.
Referenced by DGtal::functors::ShapeGeometricFunctors::ShapePositionFunctor< TShape >::attach().