DGtal
0.6.devel
Main Page
Related Pages
Modules
Namespaces
Data Structures
Examples
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
src
DGtal
geometry
curves
estimation
CSegmentComputerEstimator.h
1
17
#pragma once
18
31
#if defined(CSegmentComputerEstimator_RECURSES)
32
#error Recursive header files inclusion detected in CSegmentComputerEstimator.h
33
#else // defined(CSegmentComputerEstimator_RECURSES)
34
35
#define CSegmentComputerEstimator_RECURSES
36
37
#if !defined CSegmentComputerEstimator_h
38
39
#define CSegmentComputerEstimator_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/geometry/curves/estimation/CLocalCurveGeometricEstimator.h"
46
#include "DGtal/geometry/curves/CSegment.h"
48
49
namespace
DGtal
50
{
51
53
// class CSegmentComputerEstimator
94
template
<
typename
T>
95
struct
CSegmentComputerEstimator
:
96
CLocalGeometricEstimator
<T>, boost::CopyConstructible<T>, boost::Assignable<T>
97
{
98
// ----------------------- Concept checks ------------------------------
99
public
:
100
101
typedef
typename
T::SegmentComputer
SegmentComputer
;
102
BOOST_CONCEPT_ASSERT
((
CSegment< SegmentComputer >
));
103
104
BOOST_CONCEPT_USAGE
(
CSegmentComputerEstimator
)
105
{
106
107
myX
.attach(
mySC
);
108
109
}
110
111
// ------------------------- Private Datas --------------------------------
112
private
:
113
T
myX
;
114
SegmentComputer
mySC
;
115
116
// ------------------------- Internals ------------------------------------
117
private
:
118
119
};
// end of concept CSegmentComputerEstimator
120
121
}
// namespace DGtal
122
123
// //
125
126
#endif // !defined CSegmentComputerEstimator_h
127
128
#undef CSegmentComputerEstimator_RECURSES
129
#endif // else defined(CSegmentComputerEstimator_RECURSES)
Generated on Wed Dec 19 2012 19:10:21 for DGtal by
1.8.1.1