DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CDigitalBoundedShape.h
1
16
17
#pragma once
18
30
31
#if defined(CDigitalBoundedShape_RECURSES)
32
#error Recursive header files inclusion detected in CDigitalBoundedShape.h
33
#else
// defined(CDigitalBoundedShape_RECURSES)
35
#define CDigitalBoundedShape_RECURSES
36
37
#if !defined CDigitalBoundedShape_h
39
#define CDigitalBoundedShape_h
40
42
// Inclusions
43
#include <iostream>
44
#include "boost/concept_check.hpp"
45
#include "DGtal/base/Common.h"
46
47
#include "DGtal/kernel/domains/CDomain.h"
48
#include "DGtal/kernel/CSpace.h"
50
51
namespace
DGtal
52
{
53
namespace
concepts
54
{
56
// class CDigitalBoundedShape
89
template
<
typename
TShape>
90
struct
CDigitalBoundedShape
91
{
92
// ----------------------- Concept checks ------------------------------
93
public
:
94
95
typedef
typename
TShape::Point
Point
;
96
97
BOOST_CONCEPT_USAGE
(
CDigitalBoundedShape
)
98
{
99
// Shape should have a getUpperBound() returning a Point.
100
ConceptUtils::sameType
(
myP
,
myT
.getUpperBound() );
101
// Shape should have a getLowerBound() returning a Point.
102
ConceptUtils::sameType
(
myP
,
myT
.getLowerBound() );
103
}
104
105
// ------------------------- Private Data --------------------------------
106
private
:
107
TShape
myT
;
108
Point
myP
;
109
110
};
// end of concept CDigitalBoundedShape
111
}
112
}
// namespace DGtal
113
114
115
// //
117
118
#endif
// !defined CDigitalBoundedShape_h
119
120
#undef CDigitalBoundedShape_RECURSES
121
#endif
// else defined(CDigitalBoundedShape_RECURSES)
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition
ConceptUtils.h:117
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::CDigitalBoundedShape
Aim: designs the concept of bounded shapes in DGtal (shape for which upper and lower bounding bounds ...
Definition
CDigitalBoundedShape.h:91
DGtal::concepts::CDigitalBoundedShape::myT
TShape myT
Definition
CDigitalBoundedShape.h:107
DGtal::concepts::CDigitalBoundedShape::myP
Point myP
Definition
CDigitalBoundedShape.h:108
DGtal::concepts::CDigitalBoundedShape::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CDigitalBoundedShape)
Definition
CDigitalBoundedShape.h:97
DGtal::concepts::CDigitalBoundedShape::Point
TShape::Point Point
Definition
CDigitalBoundedShape.h:95
src
DGtal
shapes
CDigitalBoundedShape.h
Generated on
for DGtal by
1.18.0