DGtal  0.9.3beta
Public Types | Public Member Functions | Private Attributes
DGtal::ParametricShapeTangentFunctor< TParametricShape > Class Template Reference

#include <DGtal/geometry/curves/estimation/ParametricShapeTangentFunctor.h>

Public Types

typedef TParametricShape ParametricShape
 
typedef TParametricShape::RealPoint RealPoint
 
typedef TParametricShape::RealPoint Quantity
 

Public Member Functions

 ParametricShapeTangentFunctor ()
 
 ParametricShapeTangentFunctor (ParametricShape *aShape)
 
 ~ParametricShapeTangentFunctor ()
 
ParametricShapeTangentFunctoroperator= (const ParametricShapeTangentFunctor &other)
 
Quantity operator() (const RealPoint &aPoint)
 

Private Attributes

ParametricShapemyShape
 

Detailed Description

template<typename TParametricShape>
class DGtal::ParametricShapeTangentFunctor< TParametricShape >

Aim: implements a functor that computes the tangent vector at a given point of a parametric shape.

Description of template class 'ParametricShapeTangentFunctor'

Template Parameters
TParametricShapea model of parametric shape.

Definition at line 63 of file ParametricShapeTangentFunctor.h.

Member Typedef Documentation

template<typename TParametricShape >
typedef TParametricShape DGtal::ParametricShapeTangentFunctor< TParametricShape >::ParametricShape

Type of parametric shape.

Definition at line 70 of file ParametricShapeTangentFunctor.h.

template<typename TParametricShape >
typedef TParametricShape::RealPoint DGtal::ParametricShapeTangentFunctor< TParametricShape >::Quantity

Type of the functor output.

Definition at line 76 of file ParametricShapeTangentFunctor.h.

template<typename TParametricShape >
typedef TParametricShape::RealPoint DGtal::ParametricShapeTangentFunctor< TParametricShape >::RealPoint

Type of points.

Definition at line 73 of file ParametricShapeTangentFunctor.h.

Constructor & Destructor Documentation

template<typename TParametricShape >
DGtal::ParametricShapeTangentFunctor< TParametricShape >::ParametricShapeTangentFunctor ( )
inline

Constructor.

Definition at line 81 of file ParametricShapeTangentFunctor.h.

81 {}
template<typename TParametricShape >
DGtal::ParametricShapeTangentFunctor< TParametricShape >::ParametricShapeTangentFunctor ( ParametricShape aShape)
inline

Constructor..

Parameters
aShapethe input shape.

Definition at line 89 of file ParametricShapeTangentFunctor.h.

89 : myShape(aShape) {};
ParametricShape * myShape
Copy of the implicit shape.
template<typename TParametricShape >
DGtal::ParametricShapeTangentFunctor< TParametricShape >::~ParametricShapeTangentFunctor ( )
inline

Destructor.

Definition at line 95 of file ParametricShapeTangentFunctor.h.

95 {}

Member Function Documentation

template<typename TParametricShape >
Quantity DGtal::ParametricShapeTangentFunctor< TParametricShape >::operator() ( const RealPoint aPoint)
inline

Compute the tangent at [aPoint]

Parameters
aPointthe point at which the tangent is computed.
Returns
the tangent at [aPoint].

Definition at line 119 of file ParametricShapeTangentFunctor.h.

References DGtal::ParametricShapeTangentFunctor< TParametricShape >::myShape.

120  {
121  ASSERT(myShape);
122 
123  double t = myShape->parameter( aPoint );
124  return myShape->tangent( t );
125  }
ParametricShape * myShape
Copy of the implicit shape.
template<typename TParametricShape >
ParametricShapeTangentFunctor& DGtal::ParametricShapeTangentFunctor< TParametricShape >::operator= ( const ParametricShapeTangentFunctor< TParametricShape > &  other)
inline

Assignment.

Parameters
otherthe object to copy.
Returns
a reference on 'this'. Forbidden by default.

Definition at line 106 of file ParametricShapeTangentFunctor.h.

References DGtal::ParametricShapeTangentFunctor< TParametricShape >::myShape.

107  {
108  myShape = other.myShape;
109  return *this;
110  }
ParametricShape * myShape
Copy of the implicit shape.

Field Documentation

template<typename TParametricShape >
ParametricShape* DGtal::ParametricShapeTangentFunctor< TParametricShape >::myShape
private

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