DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
DecoratorParametricCurveTransformation.h
1
16
17
#pragma once
18
30
31
#if defined(DecoratorParametricCurveTransformation_RECURSES)
32
#error Recursive header files inclusion detected in DecoratorParametricCurveTransformation.h
33
#else
// defined(DecoratorParametricCurveTransformation_RECURSES)
35
#define DecoratorParametricCurveTransformation_RECURSES
36
37
#if !defined DecoratorParametricCurveTransformation_h
39
#define DecoratorParametricCurveTransformation_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/geometry/curves/parametric/C3DParametricCurve.h"
46
#include <functional>
48
49
namespace
DGtal
50
{
51
53
// class DecoratorParametricCurveTransformation
62
template
<
typename
TCurve,
typename
TTransfromation >
63
class
DecoratorParametricCurveTransformation
64
{
65
BOOST_CONCEPT_ASSERT
(( concepts::C3DParametricCurve < TCurve > ));
66
// ----------------------- Standard services ------------------------------
67
public
:
68
69
typedef
TCurve
TypeCurve
;
70
typedef
typename
TCurve::Space
Space
;
71
typedef
typename
Space::RealPoint
RealPoint
;
72
typedef
typename
Space::Point
Point
;
73
74
DecoratorParametricCurveTransformation
(
const
TCurve &,
const
TTransfromation & );
78
~DecoratorParametricCurveTransformation
() =
default
;
79
80
// ----------------------- Interface --------------------------------------
81
public
:
82
83
const
TCurve &
curve
;
84
90
RealPoint
x
(
double
t )
const
;
91
97
RealPoint
xp
(
double
t )
const
;
98
99
104
void
selfDisplay
( std::ostream & out )
const
;
105
110
bool
isValid
()
const
;
111
112
// ------------------------- Protected Data ------------------------------
113
private
:
114
// ------------------------- Private Data --------------------------------
115
private
:
116
117
// ------------------------- Hidden services ------------------------------
118
protected
:
119
124
DecoratorParametricCurveTransformation
();
125
126
private
:
127
133
DecoratorParametricCurveTransformation
(
const
DecoratorParametricCurveTransformation
& other );
134
141
DecoratorParametricCurveTransformation
&
operator=
(
const
DecoratorParametricCurveTransformation
& other );
142
143
// ------------------------- Internals ------------------------------------
144
private
:
145
const
TTransfromation &
trans
;
146
147
148
};
// end of class DecoratorParametricCurveTransformation
149
150
157
template
<
typename
TCurve,
typename
TTransfromation>
158
inline
159
std::ostream&
160
operator<<
( std::ostream & out,
const
DecoratorParametricCurveTransformation< TCurve, TTransfromation >
&
object
);
161
162
163
}
// namespace DGtal
164
165
167
// Includes inline functions.
168
#if !defined(BUILD_INLINE)
169
#include "DGtal/geometry/curves/parametric/DecoratorParametricCurveTransformation.ih"
170
#endif
171
172
173
// //
175
176
#endif
// !defined DecoratorParametricCurveTransformation_h
177
178
#undef DecoratorParametricCurveTransformation_RECURSES
179
#endif
// else defined(DecoratorParametricCurveTransformation_RECURSES)
DGtal::DecoratorParametricCurveTransformation
Aim: Implements a decorator for applying transformations to parametric curves.
Definition
DecoratorParametricCurveTransformation.h:64
DGtal::DecoratorParametricCurveTransformation::Point
Space::Point Point
Definition
DecoratorParametricCurveTransformation.h:72
DGtal::DecoratorParametricCurveTransformation::RealPoint
Space::RealPoint RealPoint
Definition
DecoratorParametricCurveTransformation.h:71
DGtal::DecoratorParametricCurveTransformation::TypeCurve
TCurve TypeCurve
Definition
DecoratorParametricCurveTransformation.h:69
DGtal::DecoratorParametricCurveTransformation::operator=
DecoratorParametricCurveTransformation & operator=(const DecoratorParametricCurveTransformation &other)
DGtal::DecoratorParametricCurveTransformation::~DecoratorParametricCurveTransformation
~DecoratorParametricCurveTransformation()=default
DGtal::DecoratorParametricCurveTransformation::DecoratorParametricCurveTransformation
DecoratorParametricCurveTransformation()
DGtal::DecoratorParametricCurveTransformation::curve
const TCurve & curve
Definition
DecoratorParametricCurveTransformation.h:83
DGtal::DecoratorParametricCurveTransformation::Space
TCurve::Space Space
Definition
DecoratorParametricCurveTransformation.h:70
DGtal::DecoratorParametricCurveTransformation::xp
RealPoint xp(double t) const
DGtal::DecoratorParametricCurveTransformation::selfDisplay
void selfDisplay(std::ostream &out) const
DGtal::DecoratorParametricCurveTransformation::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::C3DParametricCurve< TCurve >))
DGtal::DecoratorParametricCurveTransformation::isValid
bool isValid() const
DGtal::DecoratorParametricCurveTransformation::x
RealPoint x(double t) const
DGtal::DecoratorParametricCurveTransformation::DecoratorParametricCurveTransformation
DecoratorParametricCurveTransformation(const DecoratorParametricCurveTransformation &other)
DGtal::DecoratorParametricCurveTransformation::DecoratorParametricCurveTransformation
DecoratorParametricCurveTransformation(const TCurve &, const TTransfromation &)
DGtal::DecoratorParametricCurveTransformation::trans
const TTransfromation & trans
Definition
DecoratorParametricCurveTransformation.h:145
DGtal::SpaceND< 3, Integer >::Point
PointVector< dim, Integer > Point
Definition
SpaceND.h:110
DGtal::SpaceND< 3, Integer >::RealPoint
PointVector< dim, double > RealPoint
Definition
SpaceND.h:117
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::operator<<
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
src
DGtal
geometry
curves
parametric
DecoratorParametricCurveTransformation.h
Generated on
for DGtal by
1.18.0