DGtal  0.9.4beta
Public Types | Public Member Functions | Private Member Functions | Private Attributes
DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder > Struct Template Reference

#include <DGtal/geometry/surfaces/estimation/estimationFunctors/BasicEstimatorFromSurfelsFunctors.h>

Public Types

typedef TSurfel Surfel
 
typedef TSCellEmbedder SCellEmbedder
 
typedef int Quantity
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CSCellEmbedder< SCellEmbedder >))
 
 DummyEstimatorFromSurfels (ConstAlias< SCellEmbedder > anEmbedder, const double h)
 
 ~DummyEstimatorFromSurfels ()
 
void pushSurfel (const Surfel &aSurfel, const double aDistance)
 
Quantity eval () const
 
void reset ()
 

Private Member Functions

 DummyEstimatorFromSurfels ()
 

Private Attributes

const SCellEmbeddermyEmbedder
 
Quantity myCpt
 
double myH
 

Detailed Description

template<typename TSurfel, typename TSCellEmbedder>
struct DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >

Definition at line 54 of file BasicEstimatorFromSurfelsFunctors.h.

Member Typedef Documentation

template<typename TSurfel , typename TSCellEmbedder >
typedef int DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::Quantity

Type of output values.

Definition at line 67 of file BasicEstimatorFromSurfelsFunctors.h.

template<typename TSurfel , typename TSCellEmbedder >
typedef TSCellEmbedder DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::SCellEmbedder

Embedder type.

Definition at line 62 of file BasicEstimatorFromSurfelsFunctors.h.

template<typename TSurfel , typename TSCellEmbedder >
typedef TSurfel DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::Surfel

Surfel type.

Definition at line 59 of file BasicEstimatorFromSurfelsFunctors.h.

Constructor & Destructor Documentation

template<typename TSurfel , typename TSCellEmbedder >
DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::DummyEstimatorFromSurfels ( ConstAlias< SCellEmbedder anEmbedder,
const double  h 
)
inline

Constructor.

Parameters
[in]anEmbedderany model of CSCellEmbedder.
[in]ha grid step

Definition at line 75 of file BasicEstimatorFromSurfelsFunctors.h.

References DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::myCpt.

76  :
77  myEmbedder(&anEmbedder), myH(h)
78  {
79  myCpt=0;
80  }
const SCellEmbedder * myEmbedder
ConstAlias of the Embedder.
template<typename TSurfel , typename TSCellEmbedder >
DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::~DummyEstimatorFromSurfels ( )
inline

Destructor

Definition at line 85 of file BasicEstimatorFromSurfelsFunctors.h.

85 {}
template<typename TSurfel , typename TSCellEmbedder >
DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::DummyEstimatorFromSurfels ( )
private

Private default constructor.

Member Function Documentation

template<typename TSurfel , typename TSCellEmbedder >
DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::BOOST_CONCEPT_ASSERT ( (concepts::CSCellEmbedder< SCellEmbedder >)  )
template<typename TSurfel , typename TSCellEmbedder >
Quantity DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::eval ( ) const
inline
template<typename TSurfel , typename TSCellEmbedder >
void DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::pushSurfel ( const Surfel aSurfel,
const double  aDistance 
)
inline

Push a surfel to the estimator. For this dummy estimator, we just count the number of surfels.

Definition at line 91 of file BasicEstimatorFromSurfelsFunctors.h.

References DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::myCpt.

93  {
94  BOOST_VERIFY(aDistance == aDistance);
95  BOOST_VERIFY(aSurfel == aSurfel);
96 
97  myCpt++;
98  }
template<typename TSurfel , typename TSCellEmbedder >
void DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::reset ( )
inline

Reset the estimator.

Definition at line 108 of file BasicEstimatorFromSurfelsFunctors.h.

References DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::myCpt.

109  {
110  myCpt = NumberTraits<Quantity>::ZERO;
111  }

Field Documentation

template<typename TSurfel , typename TSCellEmbedder >
Quantity DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::myCpt
private
template<typename TSurfel , typename TSCellEmbedder >
const SCellEmbedder* DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::myEmbedder
private

ConstAlias of the Embedder.

Definition at line 121 of file BasicEstimatorFromSurfelsFunctors.h.

template<typename TSurfel , typename TSCellEmbedder >
double DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::myH
private

Grid step.

Definition at line 127 of file BasicEstimatorFromSurfelsFunctors.h.


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