DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
ParametricShapeTangentFunctor.h
1
16
17
#pragma once
18
33
34
#if defined(ParametricShapeTangentFunctor_RECURSES)
35
#error Recursive header files inclusion detected in ParametricShapeTangentFunctor.h
36
#else
// defined(ParametricShapeTangentFunctor_RECURSES)
38
#define ParametricShapeTangentFunctor_RECURSES
39
40
#if !defined ParametricShapeTangentFunctor_h
42
#define ParametricShapeTangentFunctor_h
43
45
// Inclusions
46
#include <iostream>
47
#include "DGtal/base/Common.h"
49
50
namespace
DGtal
51
{
52
54
// template class ParametricShapeTangentFunctor
62
template
<
typename
TParametricShape>
63
class
ParametricShapeTangentFunctor
64
{
65
66
// ----------------------- Standard services ------------------------------
67
public
:
68
70
typedef
TParametricShape
ParametricShape
;
71
73
typedef
typename
TParametricShape::RealPoint
RealPoint
;
74
76
typedef
typename
TParametricShape::RealPoint
Quantity
;
77
81
ParametricShapeTangentFunctor
() =
delete
;
82
83
89
ParametricShapeTangentFunctor
(
const
ParametricShape
&aShape):
myShape
(aShape) {}
90
91
95
~ParametricShapeTangentFunctor
() =
default
;
96
97
// ----------------------- Interface --------------------------------------
98
public
:
99
106
ParametricShapeTangentFunctor
&
operator=
(
const
ParametricShapeTangentFunctor
& other ) =
delete
;
107
108
115
Quantity
operator()
(
const
RealPoint
&
aPoint
)
const
116
{
117
double
t =
myShape
.parameter(
aPoint
);
118
return
myShape
.tangent( t );
119
}
120
121
122
// ------------------------- Private Data --------------------------------
123
private
:
124
126
const
ParametricShape
&
myShape
;
127
128
// ------------------------- Internals ------------------------------------
129
private
:
130
131
};
// end of class ParametricShapeTangentFunctor
132
133
}
// namespace DGtal
134
135
//
137
138
#endif
// !defined ParametricShapeTangentFunctor_h
139
140
#undef ParametricShapeTangentFunctor_RECURSES
141
#endif
// else defined(ParametricShapeTangentFunctor_RECURSES)
DGtal::ParametricShapeTangentFunctor::ParametricShapeTangentFunctor
ParametricShapeTangentFunctor()=delete
DGtal::ParametricShapeTangentFunctor::operator()
Quantity operator()(const RealPoint &aPoint) const
Definition
ParametricShapeTangentFunctor.h:115
DGtal::ParametricShapeTangentFunctor::Quantity
TParametricShape::RealPoint Quantity
Type of the functor output.
Definition
ParametricShapeTangentFunctor.h:76
DGtal::ParametricShapeTangentFunctor::operator=
ParametricShapeTangentFunctor & operator=(const ParametricShapeTangentFunctor &other)=delete
DGtal::ParametricShapeTangentFunctor::ParametricShapeTangentFunctor
ParametricShapeTangentFunctor(const ParametricShape &aShape)
Definition
ParametricShapeTangentFunctor.h:89
DGtal::ParametricShapeTangentFunctor::~ParametricShapeTangentFunctor
~ParametricShapeTangentFunctor()=default
DGtal::ParametricShapeTangentFunctor::myShape
const ParametricShape & myShape
Reference of the implicit shape.
Definition
ParametricShapeTangentFunctor.h:126
DGtal::ParametricShapeTangentFunctor::RealPoint
TParametricShape::RealPoint RealPoint
Type of points.
Definition
ParametricShapeTangentFunctor.h:73
DGtal::ParametricShapeTangentFunctor::ParametricShape
TParametricShape ParametricShape
Type of parametric shape.
Definition
ParametricShapeTangentFunctor.h:70
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
aPoint
const Point aPoint(3, 4)
src
DGtal
geometry
curves
estimation
ParametricShapeTangentFunctor.h
Generated on
for DGtal by
1.18.0