DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
COrientationFunctor.h
1
16
17
#pragma once
18
30
31
#if defined(COrientationFunctor_RECURSES)
32
#error Recursive header files inclusion detected in COrientationFunctor.h
33
#else
// defined(COrientationFunctor_RECURSES)
35
#define COrientationFunctor_RECURSES
36
37
#if !defined COrientationFunctor_h
39
#define COrientationFunctor_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
46
#include "DGtal/kernel/CPointFunctor.h"
47
#include "DGtal/kernel/CSignedNumber.h"
49
50
namespace
DGtal
51
{
52
namespace
concepts
53
{
55
// class COrientationFunctor
112
template
<
typename
T>
113
struct
COrientationFunctor
:
concepts::CPointFunctor
<T>
114
{
115
// ----------------------- Concept checks ------------------------------
116
public
:
117
118
BOOST_CONCEPT_ASSERT
((
concepts::CSignedNumber< typename T::Value >
));
119
120
typedef
typename
T::PointArray
PointArray
;
121
typedef
typename
T::SizeArray
SizeArray
;
122
123
BOOST_CONCEPT_USAGE
(
COrientationFunctor
)
124
{
125
concepts::ConceptUtils::sameType
(
myS
, T::size );
126
myX
.init(
myA
);
127
}
128
// ------------------------- Private Data --------------------------------
129
private
:
130
T
myX
;
131
PointArray
myA
;
132
SizeArray
myS
;
133
134
};
// end of concept COrientationFunctor
135
}
136
}
// namespace DGtal
137
138
// //
140
141
#endif
// !defined COrientationFunctor_h
142
143
#undef COrientationFunctor_RECURSES
144
#endif
// else defined(COrientationFunctor_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::COrientationFunctor
Aim: This concept gathers models implementing an orientation test of points in a space of dimension ...
Definition
COrientationFunctor.h:114
DGtal::concepts::COrientationFunctor::myS
SizeArray myS
Definition
COrientationFunctor.h:132
DGtal::concepts::COrientationFunctor::SizeArray
T::SizeArray SizeArray
Definition
COrientationFunctor.h:121
DGtal::concepts::COrientationFunctor::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CSignedNumber< typename T::Value >))
DGtal::concepts::COrientationFunctor::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(COrientationFunctor)
Definition
COrientationFunctor.h:123
DGtal::concepts::COrientationFunctor::PointArray
T::PointArray PointArray
Definition
COrientationFunctor.h:120
DGtal::concepts::COrientationFunctor::myX
T myX
Definition
COrientationFunctor.h:130
DGtal::concepts::COrientationFunctor::myA
PointArray myA
Definition
COrientationFunctor.h:131
DGtal::concepts::CPointFunctor
Aim: Defines a functor on points.
Definition
CPointFunctor.h:89
DGtal::concepts::CSignedNumber
Aim: Concept checking for Signed Numbers. Models of this concept should be listed in NumberTraits cla...
Definition
CSignedNumber.h:98
src
DGtal
geometry
tools
determinant
COrientationFunctor.h
Generated on
for DGtal by
1.18.0