DGtal
1.3.beta
src
DGtal
geometry
surfaces
estimation
estimationFunctors
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>
105
struct
CLocalEstimatorFromSurfelFunctor
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
114
BOOST_CONCEPT_ASSERT
((
CQuantity< Quantity >
));
115
BOOST_CONCEPT_ASSERT
((
concepts::CSCellEmbedder< SCellEmbedder >
));
116
117
// 2. then check the presence of data members, operators and methods with
118
BOOST_CONCEPT_USAGE
(
CLocalEstimatorFromSurfelFunctor
)
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.
128
Surfel
myA
;
129
const
Surfel
myCA
;
130
Quantity
myQ
;
131
SCellEmbedder
myEmb
;
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::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
Surfel
KSpace::SCell Surfel
Definition:
testArithmeticalDSSComputerOnSurfels.cpp:50
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
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:92
DGtal::concepts::CLocalEstimatorFromSurfelFunctor
Aim: this concept describes functors on digtal surface surfel which can be used to define local estim...
Definition:
CLocalEstimatorFromSurfelFunctor.h:105
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:97
Generated on Mon Jun 20 2022 18:23:25 for DGtal by
1.8.17