DGtal  1.0.0
Public Types | Public Member Functions | Private Attributes
DGtal::functors::ShapeGeometricFunctors::ShapeGaussianCurvatureFunctor< TShape > Struct Template Reference

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

#include <DGtal/shapes/ShapeGeometricFunctors.h>

Collaboration diagram for DGtal::functors::ShapeGeometricFunctors::ShapeGaussianCurvatureFunctor< 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

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

Private Attributes

CountedConstPtrOrConstPtr< ShapemyShape
 The shape of interest. More...
 

Detailed Description

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

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

Description of template class 'ShapeGaussianCurvatureFunctor'

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

Definition at line 221 of file ShapeGeometricFunctors.h.

Member Typedef Documentation

◆ Argument

Definition at line 226 of file ShapeGeometricFunctors.h.

◆ Quantity

Definition at line 227 of file ShapeGeometricFunctors.h.

◆ RealPoint

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

Definition at line 223 of file ShapeGeometricFunctors.h.

◆ RealVector

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

Definition at line 224 of file ShapeGeometricFunctors.h.

◆ Scalar

Definition at line 225 of file ShapeGeometricFunctors.h.

◆ Shape

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

Definition at line 222 of file ShapeGeometricFunctors.h.

◆ Value

Definition at line 228 of file ShapeGeometricFunctors.h.

Constructor & Destructor Documentation

◆ ShapeGaussianCurvatureFunctor()

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 236 of file ShapeGeometricFunctors.h.

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

Member Function Documentation

◆ attach()

template<typename TShape >
void DGtal::functors::ShapeGeometricFunctors::ShapeGaussianCurvatureFunctor< 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 244 of file ShapeGeometricFunctors.h.

245  {
246  myShape = aShape;
247  }
CountedConstPtrOrConstPtr< Shape > myShape
The shape of interest.

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

◆ operator()()

template<typename TShape >
Quantity DGtal::functors::ShapeGeometricFunctors::ShapeGaussianCurvatureFunctor< 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 254 of file ShapeGeometricFunctors.h.

255  {
256  return myShape->gaussianCurvature( p );
257  }
CountedConstPtrOrConstPtr< Shape > myShape
The shape of interest.

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

Field Documentation

◆ myShape


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