DGtal  1.1.0
CLocalEstimatorFromSurfelFunctor.h
1 
17 #pragma once
18 
31 #if defined(CLocalEstimatorFromSurfelFunctor_RECURSES)
32 #error Recursive header files inclusion detected in CLocalEstimatorFromSurfelFunctor.h
33 #else // defined(CLocalEstimatorFromSurfelFunctor_RECURSES)
34 
35 #define CLocalEstimatorFromSurfelFunctor_RECURSES
36 
37 #if !defined CLocalEstimatorFromSurfelFunctor_h
38 
39 #define CLocalEstimatorFromSurfelFunctor_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/topology/CSCellEmbedder.h"
46 #include "DGtal/base/CQuantity.h"
48 
49 namespace DGtal
50 {
51  namespace concepts
52  {
54 // class CLocalEstimatorFromSurfelFunctor
104 template <typename T>
106 {
107  // ----------------------- Concept checks ------------------------------
108 public:
109 
110  typedef typename T::Quantity Quantity;
111  typedef typename T::SCellEmbedder SCellEmbedder;
112  typedef typename T::Surfel Surfel;
113 
116 
117  // 2. then check the presence of data members, operators and methods with
119  {
120  ConceptUtils::sameType( myQ, myX.eval( ) );
121  myX.reset( );
122  myX.pushSurfel( myCA, myDist );
123  }
124 
125  // ------------------------- Private Datas --------------------------------
126 private:
127  T myX; // do not require T to be default constructible.
129  const Surfel myCA;
132  double myH;
133  double myDist;
134 
135  // ------------------------- Internals ------------------------------------
136 private:
137 
138 }; // end of concept CLocalEstimatorFromSurfelFunctor
139  }
140 } // namespace DGtal
141 
142 // //
144 
145 #endif // !defined CLocalEstimatorFromSurfelFunctor_h
146 
147 #undef CLocalEstimatorFromSurfelFunctor_RECURSES
148 #endif // else defined(CLocalEstimatorFromSurfelFunctor_RECURSES)
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::myDist
double myDist
Definition: CLocalEstimatorFromSurfelFunctor.h:133
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CLocalEstimatorFromSurfelFunctor)
Definition: CLocalEstimatorFromSurfelFunctor.h:118
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::Quantity
T::Quantity Quantity
Definition: CLocalEstimatorFromSurfelFunctor.h:110
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::myCA
const Surfel myCA
Definition: CLocalEstimatorFromSurfelFunctor.h:129
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::myA
Surfel myA
Definition: CLocalEstimatorFromSurfelFunctor.h:128
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CSCellEmbedder< SCellEmbedder >))
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::myQ
Quantity myQ
Definition: CLocalEstimatorFromSurfelFunctor.h:130
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::Surfel
T::Surfel Surfel
Definition: CLocalEstimatorFromSurfelFunctor.h:112
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::myEmb
SCellEmbedder myEmb
Definition: CLocalEstimatorFromSurfelFunctor.h:131
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::myX
T myX
Definition: CLocalEstimatorFromSurfelFunctor.h:127
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::myH
double myH
Definition: CLocalEstimatorFromSurfelFunctor.h:132
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition: ClosedIntegerHalfPlane.h:49
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((CQuantity< Quantity >))
DGtal::concepts::CQuantity
Aim: defines the concept of quantity in DGtal.
Definition: CQuantity.h:93
DGtal::concepts::CLocalEstimatorFromSurfelFunctor
Aim: this concept describes functors on digtal surface surfel which can be used to define local estim...
Definition: CLocalEstimatorFromSurfelFunctor.h:106
DGtal::concepts::CLocalEstimatorFromSurfelFunctor::SCellEmbedder
T::SCellEmbedder SCellEmbedder
Definition: CLocalEstimatorFromSurfelFunctor.h:111
DGtal::concepts::CSCellEmbedder
Aim: A cell embedder is a mapping from signed cells to Euclidean points. It adds inner types to funct...
Definition: CSCellEmbedder.h:98