DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
ImplicitFunctionLinearCellEmbedder.h
1
16
17
#pragma once
18
30
31
#if defined(ImplicitFunctionLinearCellEmbedder_RECURSES)
32
#error Recursive header files inclusion detected in ImplicitFunctionLinearCellEmbedder.h
33
#else
// defined(ImplicitFunctionLinearCellEmbedder_RECURSES)
35
#define ImplicitFunctionLinearCellEmbedder_RECURSES
36
37
#if !defined ImplicitFunctionLinearCellEmbedder_h
39
#define ImplicitFunctionLinearCellEmbedder_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/base/ConstAlias.h"
46
#include "DGtal/kernel/NumberTraits.h"
47
#include "DGtal/shapes/implicit/CImplicitFunction.h"
49
50
namespace
DGtal
51
{
52
54
66
67
template
<
typename
TKSpace,
68
typename
TImplicitFunction,
69
typename
TEmbedder >
70
class
ImplicitFunctionLinearCellEmbedder
71
{
72
BOOST_CONCEPT_ASSERT
((
concepts::CImplicitFunction< TImplicitFunction >
));
73
74
public
:
75
typedef
TKSpace
KSpace
;
76
typedef
TImplicitFunction
ImplicitFunction
;
77
typedef
TEmbedder
Embedder
;
78
typedef
typename
KSpace::Cell
Cell
;
79
typedef
typename
KSpace::SCell
SCell
;
80
typedef
typename
KSpace::Space
Space
;
81
typedef
typename
Space::Point
Point
;
82
typedef
typename
Space::RealPoint
RealPoint
;
83
typedef
typename
ImplicitFunction::Value
ImplicitFctValue
;
84
typedef
Cell
Argument
;
85
typedef
RealPoint
Value
;
86
90
ImplicitFunctionLinearCellEmbedder
();
91
95
~ImplicitFunctionLinearCellEmbedder
();
96
101
ImplicitFunctionLinearCellEmbedder
(
const
ImplicitFunctionLinearCellEmbedder
& other );
102
108
ImplicitFunctionLinearCellEmbedder
&
109
operator=
(
const
ImplicitFunctionLinearCellEmbedder
& other );
110
119
void
init
(
ConstAlias<KSpace>
K
,
ConstAlias<ImplicitFunction>
f,
120
ConstAlias<Embedder>
e );
121
122
// ----------------------- Interface --------------------------------------
123
public
:
124
132
RealPoint
embed
(
const
Point
& p )
const
;
133
141
RealPoint
embedCell
(
const
Cell
& cell )
const
;
142
151
RealPoint
embedSCell
(
const
SCell
& scell )
const
;
152
160
RealPoint
operator()
(
const
Cell
& cell )
const
;
161
162
// ----------------------- Interface --------------------------------------
163
public
:
164
169
void
selfDisplay
( std::ostream & out )
const
;
170
175
bool
isValid
()
const
;
176
177
// ------------------------- Protected Data ------------------------------
178
private
:
179
// ------------------------- Private Data --------------------------------
180
private
:
181
183
const
KSpace
*
myPtrK
;
185
const
ImplicitFunction
*
myPtrFct
;
187
const
Embedder
*
myPtrEmbedder
;
188
189
// ------------------------- Hidden services ------------------------------
190
protected
:
191
192
private
:
193
194
};
// end of class ImplicitFunctionLinearCellEmbedder
195
196
203
template
<
typename
TKSpace,
typename
TImplicitFunction,
typename
TEmbedder >
204
std::ostream&
205
operator<<
( std::ostream & out,
206
const
ImplicitFunctionLinearCellEmbedder<TKSpace, TImplicitFunction, TEmbedder>
&
object
);
207
208
}
// namespace DGtal
209
210
212
// Includes inline functions.
213
#include "DGtal/shapes/implicit/ImplicitFunctionLinearCellEmbedder.ih"
214
215
// //
217
218
#endif
// !defined ImplicitFunctionLinearCellEmbedder_h
219
220
#undef ImplicitFunctionLinearCellEmbedder_RECURSES
221
#endif
// else defined(ImplicitFunctionLinearCellEmbedder_RECURSES)
DGtal::ConstAlias
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Definition
ConstAlias.h:187
DGtal::ImplicitFunctionLinearCellEmbedder
Aim: a cellular embedder for implicit functions, (default constructible, copy constructible,...
Definition
ImplicitFunctionLinearCellEmbedder.h:71
DGtal::ImplicitFunctionLinearCellEmbedder::init
void init(ConstAlias< KSpace > K, ConstAlias< ImplicitFunction > f, ConstAlias< Embedder > e)
DGtal::ImplicitFunctionLinearCellEmbedder::selfDisplay
void selfDisplay(std::ostream &out) const
DGtal::ImplicitFunctionLinearCellEmbedder::ImplicitFunctionLinearCellEmbedder
ImplicitFunctionLinearCellEmbedder(const ImplicitFunctionLinearCellEmbedder &other)
DGtal::ImplicitFunctionLinearCellEmbedder::embedSCell
RealPoint embedSCell(const SCell &scell) const
DGtal::ImplicitFunctionLinearCellEmbedder::KSpace
TKSpace KSpace
Definition
ImplicitFunctionLinearCellEmbedder.h:75
DGtal::ImplicitFunctionLinearCellEmbedder::embed
RealPoint embed(const Point &p) const
DGtal::ImplicitFunctionLinearCellEmbedder::SCell
KSpace::SCell SCell
Definition
ImplicitFunctionLinearCellEmbedder.h:79
DGtal::ImplicitFunctionLinearCellEmbedder::ImplicitFunctionLinearCellEmbedder
ImplicitFunctionLinearCellEmbedder()
DGtal::ImplicitFunctionLinearCellEmbedder::Embedder
TEmbedder Embedder
Definition
ImplicitFunctionLinearCellEmbedder.h:77
DGtal::ImplicitFunctionLinearCellEmbedder::Cell
KSpace::Cell Cell
Definition
ImplicitFunctionLinearCellEmbedder.h:78
DGtal::ImplicitFunctionLinearCellEmbedder::myPtrFct
const ImplicitFunction * myPtrFct
A pointer on the implicit function.
Definition
ImplicitFunctionLinearCellEmbedder.h:185
DGtal::ImplicitFunctionLinearCellEmbedder::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CImplicitFunction< TImplicitFunction >))
DGtal::ImplicitFunctionLinearCellEmbedder::RealPoint
Space::RealPoint RealPoint
Definition
ImplicitFunctionLinearCellEmbedder.h:82
DGtal::ImplicitFunctionLinearCellEmbedder::operator=
ImplicitFunctionLinearCellEmbedder & operator=(const ImplicitFunctionLinearCellEmbedder &other)
DGtal::ImplicitFunctionLinearCellEmbedder::Value
RealPoint Value
Definition
ImplicitFunctionLinearCellEmbedder.h:85
DGtal::ImplicitFunctionLinearCellEmbedder::myPtrEmbedder
const Embedder * myPtrEmbedder
A pointer on the digital embedder.
Definition
ImplicitFunctionLinearCellEmbedder.h:187
DGtal::ImplicitFunctionLinearCellEmbedder::operator()
RealPoint operator()(const Cell &cell) const
DGtal::ImplicitFunctionLinearCellEmbedder::Argument
Cell Argument
Definition
ImplicitFunctionLinearCellEmbedder.h:84
DGtal::ImplicitFunctionLinearCellEmbedder::isValid
bool isValid() const
DGtal::ImplicitFunctionLinearCellEmbedder::~ImplicitFunctionLinearCellEmbedder
~ImplicitFunctionLinearCellEmbedder()
DGtal::ImplicitFunctionLinearCellEmbedder::ImplicitFctValue
ImplicitFunction::Value ImplicitFctValue
Definition
ImplicitFunctionLinearCellEmbedder.h:83
DGtal::ImplicitFunctionLinearCellEmbedder::embedCell
RealPoint embedCell(const Cell &cell) const
DGtal::ImplicitFunctionLinearCellEmbedder::ImplicitFunction
TImplicitFunction ImplicitFunction
Definition
ImplicitFunctionLinearCellEmbedder.h:76
DGtal::ImplicitFunctionLinearCellEmbedder::myPtrK
const KSpace * myPtrK
A pointer on the cellular grid space.
Definition
ImplicitFunctionLinearCellEmbedder.h:183
DGtal::ImplicitFunctionLinearCellEmbedder::Space
KSpace::Space Space
Definition
ImplicitFunctionLinearCellEmbedder.h:80
DGtal::ImplicitFunctionLinearCellEmbedder::Point
Space::Point Point
Definition
ImplicitFunctionLinearCellEmbedder.h:81
DGtal::KhalimskySpaceND< 3, Integer >::SCell
SignedKhalimskyCell< dim, Integer > SCell
Definition
KhalimskySpaceND.h:417
DGtal::KhalimskySpaceND< 3, Integer >::Space
SpaceND< dim, Integer > Space
Definition
KhalimskySpaceND.h:410
DGtal::KhalimskySpaceND< 3, Integer >::Cell
KhalimskyCell< dim, Integer > Cell
Definition
KhalimskySpaceND.h:415
DGtal::SpaceND< dim, Integer >::Point
PointVector< dim, Integer > Point
Definition
SpaceND.h:110
DGtal::SpaceND< dim, 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)
DGtal::concepts::CImplicitFunction
Aim: Describes any function of the form f(x), where x is some real point in the given space,...
Definition
CImplicitFunction.h:90
K
KSpace K
Definition
testCubicalComplex.cpp:62
src
DGtal
shapes
implicit
ImplicitFunctionLinearCellEmbedder.h
Generated on
for DGtal by
1.18.0