DGtal
1.2.0
src
DGtal
shapes
CEuclideanBoundedShape.h
1
17
#pragma once
18
31
#if defined(CEuclideanBoundedShape_RECURSES)
32
#error Recursive header files inclusion detected in CEuclideanBoundedShape.h
33
#else
// defined(CEuclideanBoundedShape_RECURSES)
35
#define CEuclideanBoundedShape_RECURSES
36
37
#if !defined CEuclideanBoundedShape_h
39
#define CEuclideanBoundedShape_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 CEuclideanBoundedShape
95
template
<
typename
TShape>
96
struct
CEuclideanBoundedShape
97
{
98
// ----------------------- Concept checks ------------------------------
99
public
:
100
101
typedef
typename
TShape::RealPoint
RealPoint
;
102
103
BOOST_CONCEPT_USAGE
(
CEuclideanBoundedShape
)
104
{
105
// Shape should have a getUpperBound() returning a Point.
106
ConceptUtils::sameType
(
myP
,
myT
.getUpperBound() );
107
// Shape should have a getLowerBound() returning a Point.
108
ConceptUtils::sameType
(
myP
,
myT
.getLowerBound() );
109
}
110
111
// ------------------------- Private Datas --------------------------------
112
private
:
113
TShape
myT
;
114
RealPoint
myP
;
115
116
};
// end of concept CEuclideanBoundedShape
117
}
118
}
// namespace DGtal
119
120
121
// //
123
124
#endif
// !defined CEuclideanBoundedShape_h
125
126
#undef CEuclideanBoundedShape_RECURSES
127
#endif
// else defined(CEuclideanBoundedShape_RECURSES)
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition:
ConceptUtils.h:117
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition:
ClosedIntegerHalfPlane.h:49
DGtal::concepts::CEuclideanBoundedShape
Definition:
CEuclideanBoundedShape.h:97
DGtal::concepts::CEuclideanBoundedShape::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CEuclideanBoundedShape)
Definition:
CEuclideanBoundedShape.h:103
DGtal::concepts::CEuclideanBoundedShape::myT
TShape myT
Definition:
CEuclideanBoundedShape.h:113
DGtal::concepts::CEuclideanBoundedShape::RealPoint
TShape::RealPoint RealPoint
Definition:
CEuclideanBoundedShape.h:101
DGtal::concepts::CEuclideanBoundedShape::myP
RealPoint myP
Definition:
CEuclideanBoundedShape.h:114
RealPoint
Z2i::RealPoint RealPoint
Definition:
testAstroid2D.cpp:46
Generated on Tue Jun 1 2021 17:04:54 for DGtal by
1.9.1