DGtal  0.9.3
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

◆ Quantity

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.

◆ SCellEmbedder

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

Embedder type.

Definition at line 62 of file BasicEstimatorFromSurfelsFunctors.h.

◆ Surfel

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

◆ DummyEstimatorFromSurfels() [1/2]

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.

◆ ~DummyEstimatorFromSurfels()

template<typename TSurfel , typename TSCellEmbedder >
DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::~DummyEstimatorFromSurfels ( )
inline

Destructor

Definition at line 85 of file BasicEstimatorFromSurfelsFunctors.h.

85 {}

◆ DummyEstimatorFromSurfels() [2/2]

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

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT()

template<typename TSurfel , typename TSCellEmbedder >
DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::BOOST_CONCEPT_ASSERT ( (concepts::CSCellEmbedder< SCellEmbedder >)  )

◆ eval()

template<typename TSurfel , typename TSCellEmbedder >
Quantity DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::eval ( ) const
inline

◆ pushSurfel()

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  }

◆ reset()

template<typename TSurfel , typename TSCellEmbedder >
void DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::reset ( )
inline

Field Documentation

◆ myCpt

template<typename TSurfel , typename TSCellEmbedder >
Quantity DGtal::functors::DummyEstimatorFromSurfels< TSurfel, TSCellEmbedder >::myCpt
private

◆ myEmbedder

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.

◆ myH

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: