DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Private Attributes
DGtal::ParametricShapeTangentFunctor< TParametricShape > Class Template Reference

#include <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.

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

Constructor..

Parameters:
aShapethe input shape.

Definition at line 89 of file ParametricShapeTangentFunctor.h.

: myShape(aShape) {};
template<typename TParametricShape >
DGtal::ParametricShapeTangentFunctor< TParametricShape >::~ParametricShapeTangentFunctor ( )
inline

Destructor.

Definition at line 95 of file ParametricShapeTangentFunctor.h.

{}

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.

{
ASSERT(myShape);
double t = myShape->parameter( aPoint );
return myShape->tangent( t );
}
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.

{
myShape = other.myShape;
return *this;
}

Field Documentation

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

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