DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CDigitalSurfaceLocalEstimator.h
1
16
17
#pragma once
18
30
31
#if defined(CDigitalSurfaceLocalEstimator_RECURSES)
32
#error Recursive header files inclusion detected in CDigitalSurfaceLocalEstimator.h
33
#else
// defined(CDigitalSurfaceLocalEstimator_RECURSES)
35
#define CDigitalSurfaceLocalEstimator_RECURSES
36
37
#if !defined CDigitalSurfaceLocalEstimator_h
39
#define CDigitalSurfaceLocalEstimator_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/topology/CDigitalSurfaceContainer.h"
46
#include "DGtal/geometry/surfaces/estimation/CSurfelLocalEstimator.h"
48
49
// @since 0.8 In DGtal::concepts
50
namespace
DGtal
{
51
namespace
concepts
{
52
54
// class CDigitalSurfaceLocalEstimator
101
template
<
typename
T>
102
struct
CDigitalSurfaceLocalEstimator
103
:
CSurfelLocalEstimator
<T>
104
{
105
106
// ----------------------- Concept checks ------------------------------
107
public
:
108
109
typedef
typename
T::Surface
Surface
;
110
typedef
typename
Surface::DigitalSurfaceContainer
DigitalSurfaceContainer
;
111
BOOST_CONCEPT_ASSERT
((
concepts::CDigitalSurfaceContainer< DigitalSurfaceContainer >
));
112
typedef
typename
T::Surfel
Surfel
;
113
BOOST_STATIC_ASSERT
((
ConceptUtils::SameType< Surfel, typename Surface::Surfel >::value
));
114
BOOST_CONCEPT_USAGE
(
CDigitalSurfaceLocalEstimator
)
115
{
116
myX
.attach(
myS
);
117
}
118
119
// ------------------------- Private Data --------------------------------
120
private
:
121
T
myX
;
122
Surface
myS
;
123
124
// ------------------------- Internals ------------------------------------
125
private
:
126
127
};
// end of concept CDigitalSurfaceLocalEstimator
128
129
}
// namespace concepts
130
}
// namespace DGtal
131
132
// //
134
135
#endif
// !defined CDigitalSurfaceLocalEstimator_h
136
137
#undef CDigitalSurfaceLocalEstimator_RECURSES
138
#endif
// else defined(CDigitalSurfaceLocalEstimator_RECURSES)
DGtal::DigitalSurface< ExplicitSurfaceContainer >::DigitalSurfaceContainer
ExplicitSurfaceContainer DigitalSurfaceContainer
Definition
DigitalSurface.h:142
DGtal::concepts
Aim: Gathers several functions useful for concept checks.
Definition
CPositiveIrreducibleFraction.h:54
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::concepts::CDigitalSurfaceContainer
Aim: The digital surface container concept describes a minimal set of inner types and methods so as t...
Definition
CDigitalSurfaceContainer.h:128
DGtal::concepts::CDigitalSurfaceLocalEstimator
Aim: This concept describes an object that can process a range over some generic digital surface so a...
Definition
CDigitalSurfaceLocalEstimator.h:104
DGtal::concepts::CDigitalSurfaceLocalEstimator::myS
Surface myS
Definition
CDigitalSurfaceLocalEstimator.h:122
DGtal::concepts::CDigitalSurfaceLocalEstimator::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CDigitalSurfaceLocalEstimator)
Definition
CDigitalSurfaceLocalEstimator.h:114
DGtal::concepts::CDigitalSurfaceLocalEstimator::myX
T myX
Definition
CDigitalSurfaceLocalEstimator.h:121
DGtal::concepts::CDigitalSurfaceLocalEstimator::DigitalSurfaceContainer
Surface::DigitalSurfaceContainer DigitalSurfaceContainer
Definition
CDigitalSurfaceLocalEstimator.h:110
DGtal::concepts::CDigitalSurfaceLocalEstimator::Surfel
T::Surfel Surfel
Definition
CDigitalSurfaceLocalEstimator.h:112
DGtal::concepts::CDigitalSurfaceLocalEstimator::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalSurfaceContainer< DigitalSurfaceContainer >))
DGtal::concepts::CDigitalSurfaceLocalEstimator::BOOST_STATIC_ASSERT
BOOST_STATIC_ASSERT((ConceptUtils::SameType< Surfel, typename Surface::Surfel >::value))
DGtal::concepts::CDigitalSurfaceLocalEstimator::Surface
T::Surface Surface
Definition
CDigitalSurfaceLocalEstimator.h:109
DGtal::concepts::CSurfelLocalEstimator
Aim: This concept describes an object that can process a range of surfels (that are supposed to belon...
Definition
CSurfelLocalEstimator.h:108
DGtal::concepts::ConceptUtils::SameType::value
static const bool value
Definition
ConceptUtils.h:107
src
DGtal
geometry
surfaces
estimation
CDigitalSurfaceLocalEstimator.h
Generated on
for DGtal by
1.18.0