DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CSegmentComputerEstimator.h
1
16
17
#pragma once
18
30
31
#if defined(CSegmentComputerEstimator_RECURSES)
32
#error Recursive header files inclusion detected in CSegmentComputerEstimator.h
33
#else
// defined(CSegmentComputerEstimator_RECURSES)
35
#define CSegmentComputerEstimator_RECURSES
36
37
#if !defined CSegmentComputerEstimator_h
39
#define CSegmentComputerEstimator_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/geometry/curves/estimation/CCurveLocalGeometricEstimator.h"
46
#include "DGtal/geometry/curves/CSegment.h"
48
49
namespace
DGtal
50
{
51
namespace
concepts
52
{
53
55
// class CSegmentComputerEstimator
96
template
<
typename
T>
97
struct
CSegmentComputerEstimator
:
98
concepts::CCurveLocalGeometricEstimator
<T>,
boost::CopyConstructible
<T>,
boost::Assignable
<T>
99
{
100
// ----------------------- Concept checks ------------------------------
101
public
:
102
103
typedef
typename
T::SegmentComputer
SegmentComputer
;
104
BOOST_CONCEPT_ASSERT
((
CSegment< SegmentComputer >
));
105
106
BOOST_CONCEPT_USAGE
(
CSegmentComputerEstimator
)
107
{
108
109
myX
.attach(
mySC
);
110
111
}
112
113
// ------------------------- Private Data --------------------------------
114
private
:
115
T
myX
;
116
SegmentComputer
mySC
;
117
118
// ------------------------- Internals ------------------------------------
119
private
:
120
121
};
// end of concept CSegmentComputerEstimator
122
}
123
}
// namespace DGtal
124
125
// //
127
128
#endif
// !defined CSegmentComputerEstimator_h
129
130
#undef CSegmentComputerEstimator_RECURSES
131
#endif
// else defined(CSegmentComputerEstimator_RECURSES)
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::CCurveLocalGeometricEstimator
Aim: This concept describes an object that can process a range so as to return one estimated quantity...
Definition
CCurveLocalGeometricEstimator.h:99
DGtal::concepts::CSegmentComputerEstimator
Aim: This concept is a refinement of CCurveLocalGeometricEstimator devoted to the estimation of a geo...
Definition
CSegmentComputerEstimator.h:99
DGtal::concepts::CSegmentComputerEstimator::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CSegmentComputerEstimator)
Definition
CSegmentComputerEstimator.h:106
DGtal::concepts::CSegmentComputerEstimator::mySC
SegmentComputer mySC
Definition
CSegmentComputerEstimator.h:116
DGtal::concepts::CSegmentComputerEstimator::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((CSegment< SegmentComputer >))
DGtal::concepts::CSegmentComputerEstimator::myX
T myX
Definition
CSegmentComputerEstimator.h:115
DGtal::concepts::CSegmentComputerEstimator::SegmentComputer
T::SegmentComputer SegmentComputer
Definition
CSegmentComputerEstimator.h:103
DGtal::concepts::CSegment
Aim: Defines the concept describing a segment, ie. a valid and not empty range.
Definition
CSegment.h:102
boost::Assignable
Go to http://www.sgi.com/tech/stl/Assignable.html.
Definition
Boost.dox:32
boost::CopyConstructible
Go to http://www.sgi.com/tech/stl/CopyConstructible.html.
Definition
Boost.dox:34
src
DGtal
geometry
curves
estimation
CSegmentComputerEstimator.h
Generated on
for DGtal by
1.18.0