DGtal 1.3.0
|
Aim: a cellular embedder for implicit functions, (default constructible, copy constructible, assignable). Model of CCellEmbedder and CWithGradientMap. More...
#include <DGtal/shapes/implicit/ImplicitFunctionDiff1LinearCellEmbedder.h>
Public Types | |
typedef TKSpace | KSpace |
typedef TImplicitFunctionDiff1 | ImplicitFunctionDiff1 |
typedef TEmbedder | Embedder |
typedef KSpace::Cell | Cell |
typedef KSpace::SCell | SCell |
typedef KSpace::Space | Space |
typedef Space::Point | Point |
typedef Space::RealPoint | RealPoint |
typedef Space::RealVector | RealVector |
typedef ImplicitFunctionDiff1::Value | ImplicitFctValue |
typedef Cell | Argument |
typedef RealPoint | Value |
typedef ImplicitFunctionDiff1LinearCellEmbedderGradientMap< KSpace, ImplicitFunctionDiff1, Embedder > | GradientMap |
Public Member Functions | |
ImplicitFunctionDiff1LinearCellEmbedder () | |
~ImplicitFunctionDiff1LinearCellEmbedder () | |
ImplicitFunctionDiff1LinearCellEmbedder (const ImplicitFunctionDiff1LinearCellEmbedder &other) | |
ImplicitFunctionDiff1LinearCellEmbedder & | operator= (const ImplicitFunctionDiff1LinearCellEmbedder &other) |
void | init (ConstAlias< KSpace > K, ConstAlias< ImplicitFunctionDiff1 > f, ConstAlias< Embedder > e) |
GradientMap | gradientMap () const |
RealPoint | embed (const Point &p) const |
RealPoint | embedCell (const Cell &cell) const |
RealPoint | embedSCell (const SCell &scell) const |
RealPoint | operator() (const Cell &cell) const |
void | embed (const Point &p, RealPoint &x, RealVector &grad) const |
void | embedCell (const Cell &cell, RealPoint &x, RealVector &grad) const |
void | embedSCell (const SCell &scell, RealPoint &x, RealVector &grad) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Protected Attributes | |
const KSpace * | myPtrK |
A pointer on the cellular grid space. More... | |
const ImplicitFunctionDiff1 * | myPtrFct |
A pointer on the implicit function. More... | |
const Embedder * | myPtrEmbedder |
A pointer on the digital embedder. More... | |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CCellularGridSpaceND< TKSpace >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CImplicitFunctionDiff1< TImplicitFunctionDiff1 >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CPointEmbedder< TEmbedder >)) | |
Aim: a cellular embedder for implicit functions, (default constructible, copy constructible, assignable). Model of CCellEmbedder and CWithGradientMap.
Description of template class 'ImplicitFunctionDiff1LinearCellEmbedder'
TKSpace | the cellular grid space definition, a model of CCellularGridSpaceND. |
TImplicitFunctionDiff1 | the type of implicit function, a model of CImplicitFunctionDiff1. |
TEmbedder | the type of digital embedder, a model of CPointEmbedder. |
Definition at line 79 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef Cell DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::Argument |
Definition at line 96 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef KSpace::Cell DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::Cell |
Definition at line 89 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef TEmbedder DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::Embedder |
Definition at line 88 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef ImplicitFunctionDiff1LinearCellEmbedderGradientMap< KSpace, ImplicitFunctionDiff1, Embedder > DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::GradientMap |
Definition at line 99 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef ImplicitFunctionDiff1::Value DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::ImplicitFctValue |
Definition at line 95 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef TImplicitFunctionDiff1 DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::ImplicitFunctionDiff1 |
Definition at line 87 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef TKSpace DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::KSpace |
Definition at line 86 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef Space::Point DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::Point |
Definition at line 92 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef Space::RealPoint DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::RealPoint |
Definition at line 93 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef Space::RealVector DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::RealVector |
Definition at line 94 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef KSpace::SCell DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::SCell |
Definition at line 90 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef KSpace::Space DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::Space |
Definition at line 91 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
typedef RealPoint DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::Value |
Definition at line 97 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::ImplicitFunctionDiff1LinearCellEmbedder | ( | ) |
Constructor. The object is not valid.
DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::~ImplicitFunctionDiff1LinearCellEmbedder | ( | ) |
Destructor.
DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::ImplicitFunctionDiff1LinearCellEmbedder | ( | const ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder > & | other | ) |
Copy constructor.
other | the object to copy. |
|
private |
|
private |
|
private |
RealPoint DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::embed | ( | const Point & | p | ) | const |
Maps a digital point to its corresponding point in the Euclidean space.
p | any digital point in the digital space. |
void DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::embed | ( | const Point & | p, |
RealPoint & | x, | ||
RealVector & | grad | ||
) | const |
Maps a digital point to its corresponding embedding position and gradient vector in the Euclidean space.
p | any digital point in the digital space. |
x | its embedding in the Euclidean space. |
grad | (returns) its gradient vector at the point given by the current embedder in the Euclidean space. |
RealPoint DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::embedCell | ( | const Cell & | cell | ) | const |
Maps a cell to its corresponding point in the Euclidean space, by a linear guess of its position.
cell | any cell in the cellular grid space. |
void DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::embedCell | ( | const Cell & | cell, |
RealPoint & | x, | ||
RealVector & | grad | ||
) | const |
Maps a cell to its corresponding gradient vector in the Euclidean space, by a linear guess of its position.
cell | any cell in the cellular grid space. |
x | its embedding in the Euclidean space. |
grad | (returns) its gradient vector at the point given by the current embedder in the Euclidean space. |
RealPoint DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::embedSCell | ( | const SCell & | scell | ) | const |
Maps a signed cell to its corresponding point in the Euclidean space, by a linear guess of its position. NB: the signed is not used.
scell | any cell in the cellular grid space. |
void DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::embedSCell | ( | const SCell & | scell, |
RealPoint & | x, | ||
RealVector & | grad | ||
) | const |
Maps a signed cell to its corresponding gradient vector in the Euclidean space, by a linear guess of its position. NB: the signed is not used.
scell | any cell in the cellular grid space. |
x | its embedding in the Euclidean space. |
grad | (returns) its gradient vector at the point given by the current embedder in the Euclidean space. |
GradientMap DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::gradientMap | ( | ) | const |
void DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::init | ( | ConstAlias< KSpace > | K, |
ConstAlias< ImplicitFunctionDiff1 > | f, | ||
ConstAlias< Embedder > | e | ||
) |
Initializes the embedder with the space K, the implicit function f, the digital embedder e.
K | any cellular grid space. |
f | an implicit function |
e | a digital embedder (like a GaussDigitizer). |
bool DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
RealPoint DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::operator() | ( | const Cell & | cell | ) | const |
Maps a cell to its corresponding point in the Euclidean space, by a linear guess of its position.
cell | any cell in the cellular grid space. |
Referenced by DGtal::ImplicitFunctionDiff1LinearCellEmbedderGradientMap< TKSpace, TImplicitFunctionDiff1, TEmbedder >::operator()().
ImplicitFunctionDiff1LinearCellEmbedder & DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::operator= | ( | const ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder > & | other | ) |
Assignment.
other | the object to copy. |
Referenced by DGtal::ImplicitFunctionDiff1LinearCellEmbedderGradientMap< TKSpace, TImplicitFunctionDiff1, TEmbedder >::operator=().
void DGtal::ImplicitFunctionDiff1LinearCellEmbedder< TKSpace, TImplicitFunctionDiff1, TEmbedder >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
protected |
A pointer on the digital embedder.
Definition at line 240 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
|
protected |
A pointer on the implicit function.
Definition at line 238 of file ImplicitFunctionDiff1LinearCellEmbedder.h.
|
protected |
A pointer on the cellular grid space.
Definition at line 236 of file ImplicitFunctionDiff1LinearCellEmbedder.h.