DGtal 1.4.0
|
Aim: A functor RealPoint -> Quantity that returns the normal vector at given point. More...
#include <DGtal/shapes/ShapeGeometricFunctors.h>
Public Types | |
typedef TShape | Shape |
typedef Shape::RealPoint | RealPoint |
typedef Shape::RealVector | RealVector |
typedef RealPoint | Argument |
typedef RealVector::Component | Scalar |
typedef RealVector | Quantity |
typedef Quantity | Value |
Public Member Functions | |
ShapeNormalVectorFunctor (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 normal vector at given point.
Description of template class 'ShapeNormalVectorFunctor'
TShape | the type of the shape where geometric estimation are made. It must have methods gradient. |
Definition at line 114 of file ShapeGeometricFunctors.h.
typedef RealPoint DGtal::functors::ShapeGeometricFunctors::ShapeNormalVectorFunctor< TShape >::Argument |
Definition at line 118 of file ShapeGeometricFunctors.h.
typedef RealVector DGtal::functors::ShapeGeometricFunctors::ShapeNormalVectorFunctor< TShape >::Quantity |
Definition at line 120 of file ShapeGeometricFunctors.h.
typedef Shape::RealPoint DGtal::functors::ShapeGeometricFunctors::ShapeNormalVectorFunctor< TShape >::RealPoint |
Definition at line 116 of file ShapeGeometricFunctors.h.
typedef Shape::RealVector DGtal::functors::ShapeGeometricFunctors::ShapeNormalVectorFunctor< TShape >::RealVector |
Definition at line 117 of file ShapeGeometricFunctors.h.
typedef RealVector::Component DGtal::functors::ShapeGeometricFunctors::ShapeNormalVectorFunctor< TShape >::Scalar |
Definition at line 119 of file ShapeGeometricFunctors.h.
typedef TShape DGtal::functors::ShapeGeometricFunctors::ShapeNormalVectorFunctor< TShape >::Shape |
Definition at line 115 of file ShapeGeometricFunctors.h.
typedef Quantity DGtal::functors::ShapeGeometricFunctors::ShapeNormalVectorFunctor< TShape >::Value |
Definition at line 121 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 129 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 137 of file ShapeGeometricFunctors.h.
References DGtal::functors::ShapeGeometricFunctors::ShapeNormalVectorFunctor< TShape >::myShape.
|
inline |
Map operator RealPoint -> RealVector giving the normal vector.
p | any point on the shape. |
Definition at line 147 of file ShapeGeometricFunctors.h.
References DGtal::functors::ShapeGeometricFunctors::ShapeNormalVectorFunctor< TShape >::myShape.
|
private |
The shape of interest.
Definition at line 156 of file ShapeGeometricFunctors.h.
Referenced by DGtal::functors::ShapeGeometricFunctors::ShapeNormalVectorFunctor< TShape >::attach(), and DGtal::functors::ShapeGeometricFunctors::ShapeNormalVectorFunctor< TShape >::operator()().