DGtal  0.9.4beta
Public Types | Public Member Functions | Private Attributes
DGtal::functors::ShapeGeometricFunctors::ShapeMeanCurvatureFunctor< TShape > Struct Template Reference

#include <DGtal/shapes/ShapeGeometricFunctors.h>

Collaboration diagram for DGtal::functors::ShapeGeometricFunctors::ShapeMeanCurvatureFunctor< TShape >:
[legend]

Public Types

typedef TShape Shape
 
typedef Shape::RealPoint RealPoint
 
typedef Shape::RealVector RealVector
 
typedef RealVector::Component Scalar
 
typedef RealPoint Argument
 
typedef Scalar Quantity
 
typedef Quantity Value
 

Public Member Functions

 ShapeMeanCurvatureFunctor (ConstAlias< Shape > aShape=0)
 
void attach (ConstAlias< Shape > aShape)
 
Quantity operator() (const RealPoint &p) const
 

Private Attributes

CountedConstPtrOrConstPtr< ShapemyShape
 

Detailed Description

template<typename TShape>
struct DGtal::functors::ShapeGeometricFunctors::ShapeMeanCurvatureFunctor< TShape >

Aim: A functor RealPoint -> Quantity that returns the mean curvature at given point.

Description of template class 'ShapeMeanCurvatureFunctor'

Template Parameters
TShapethe type of the shape where geometric estimation are made. It must have method meanCurvature.

Definition at line 169 of file ShapeGeometricFunctors.h.

Member Typedef Documentation

Definition at line 174 of file ShapeGeometricFunctors.h.

Definition at line 175 of file ShapeGeometricFunctors.h.

template<typename TShape >
typedef Shape::RealPoint DGtal::functors::ShapeGeometricFunctors::ShapeMeanCurvatureFunctor< TShape >::RealPoint

Definition at line 171 of file ShapeGeometricFunctors.h.

template<typename TShape >
typedef Shape::RealVector DGtal::functors::ShapeGeometricFunctors::ShapeMeanCurvatureFunctor< TShape >::RealVector

Definition at line 172 of file ShapeGeometricFunctors.h.

template<typename TShape >
typedef RealVector::Component DGtal::functors::ShapeGeometricFunctors::ShapeMeanCurvatureFunctor< TShape >::Scalar

Definition at line 173 of file ShapeGeometricFunctors.h.

template<typename TShape >
typedef TShape DGtal::functors::ShapeGeometricFunctors::ShapeMeanCurvatureFunctor< TShape >::Shape

Definition at line 170 of file ShapeGeometricFunctors.h.

Definition at line 176 of file ShapeGeometricFunctors.h.

Constructor & Destructor Documentation

Constructor. A shape may also be attached at construction.

Parameters
aShapethe shape of interest. The alias can be secured if a some counted pointer is handed.

Definition at line 184 of file ShapeGeometricFunctors.h.

184 : myShape( aShape ) {}
CountedConstPtrOrConstPtr< Shape > myShape
The shape of interest.

Member Function Documentation

template<typename TShape >
void DGtal::functors::ShapeGeometricFunctors::ShapeMeanCurvatureFunctor< TShape >::attach ( ConstAlias< Shape aShape)
inline

Attach a shape.

Parameters
aShapethe shape of interest. The alias can be secured if a some counted pointer is handed.

Definition at line 192 of file ShapeGeometricFunctors.h.

References DGtal::functors::ShapeGeometricFunctors::ShapeMeanCurvatureFunctor< TShape >::myShape.

193  {
194  myShape = aShape;
195  }
CountedConstPtrOrConstPtr< Shape > myShape
The shape of interest.
template<typename TShape >
Quantity DGtal::functors::ShapeGeometricFunctors::ShapeMeanCurvatureFunctor< TShape >::operator() ( const RealPoint p) const
inline

Map operator RealPoint -> RealVector giving the normal vector.

Parameters
pany point on the shape.
Returns
the normal at point p (as the normalized gradient).

Definition at line 202 of file ShapeGeometricFunctors.h.

References DGtal::functors::ShapeGeometricFunctors::ShapeMeanCurvatureFunctor< TShape >::myShape.

203  {
204  return myShape->meanCurvature( p );
205  }
CountedConstPtrOrConstPtr< Shape > myShape
The shape of interest.

Field Documentation


The documentation for this struct was generated from the following file: