DGtal 1.3.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions
DGtal::CanonicEmbedder< TSpace > Struct Template Reference

Aim: A trivial embedder for digital points, which corresponds to the canonic injection of Zn into Rn. More...

#include <DGtal/kernel/CanonicEmbedder.h>

Public Types

typedef CanonicEmbedder< TSpace > Self
 
typedef TSpace Space
 
typedef Space::Integer Integer
 
typedef Space::Point Point
 
typedef Space::Vector Vector
 
typedef Space::RealPoint RealPoint
 
typedef Point Argument
 
typedef RealPoint Value
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CSpace< TSpace >))
 
virtual ~CanonicEmbedder ()
 
Point floor (const RealPoint &p) const
 
Point ceil (const RealPoint &p) const
 
Point round (const RealPoint &p) const
 
virtual RealPoint embed (const Point &dp) const
 
virtual RealPoint operator() (const Point &dp) const
 
void selfDisplay (std::ostream &out) const
 
bool isValid () const
 

Detailed Description

template<typename TSpace>
struct DGtal::CanonicEmbedder< TSpace >

Aim: A trivial embedder for digital points, which corresponds to the canonic injection of Zn into Rn.

Description of class 'CanonicEmbedder'

Model of CPointEmbedder.

Template Parameters
TSpacethe type of digital Space where the embedder works.
Examples
shapes/viewMarchingCubes.cpp, shapes/viewPolygonalMarchingCubes.cpp, and topology/volMarchingCubes.cpp.

Definition at line 64 of file CanonicEmbedder.h.

Member Typedef Documentation

◆ Argument

template<typename TSpace >
typedef Point DGtal::CanonicEmbedder< TSpace >::Argument

Definition at line 75 of file CanonicEmbedder.h.

◆ Integer

template<typename TSpace >
typedef Space::Integer DGtal::CanonicEmbedder< TSpace >::Integer

Definition at line 71 of file CanonicEmbedder.h.

◆ Point

template<typename TSpace >
typedef Space::Point DGtal::CanonicEmbedder< TSpace >::Point

Definition at line 72 of file CanonicEmbedder.h.

◆ RealPoint

template<typename TSpace >
typedef Space::RealPoint DGtal::CanonicEmbedder< TSpace >::RealPoint

Definition at line 74 of file CanonicEmbedder.h.

◆ Self

template<typename TSpace >
typedef CanonicEmbedder<TSpace> DGtal::CanonicEmbedder< TSpace >::Self

Definition at line 67 of file CanonicEmbedder.h.

◆ Space

template<typename TSpace >
typedef TSpace DGtal::CanonicEmbedder< TSpace >::Space

Definition at line 70 of file CanonicEmbedder.h.

◆ Value

template<typename TSpace >
typedef RealPoint DGtal::CanonicEmbedder< TSpace >::Value

Definition at line 76 of file CanonicEmbedder.h.

◆ Vector

template<typename TSpace >
typedef Space::Vector DGtal::CanonicEmbedder< TSpace >::Vector

Definition at line 73 of file CanonicEmbedder.h.

Constructor & Destructor Documentation

◆ ~CanonicEmbedder()

template<typename TSpace >
virtual DGtal::CanonicEmbedder< TSpace >::~CanonicEmbedder ( )
inlinevirtual

Destructor.

Definition at line 84 of file CanonicEmbedder.h.

84{};

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT()

template<typename TSpace >
DGtal::CanonicEmbedder< TSpace >::BOOST_CONCEPT_ASSERT ( (concepts::CSpace< TSpace >)  )

◆ ceil()

template<typename TSpace >
Point DGtal::CanonicEmbedder< TSpace >::ceil ( const RealPoint p) const
Parameters
pany point in the Euclidean space.
Returns
the digital point ceil( p ).

◆ embed()

template<typename TSpace >
virtual RealPoint DGtal::CanonicEmbedder< TSpace >::embed ( const Point dp) const
virtual

Map a digital point to its corresponding point in the Euclidean space.

Parameters
dpany digital point in the digital space.
Returns
its canconical embedding in the Euclidean space.

◆ floor()

template<typename TSpace >
Point DGtal::CanonicEmbedder< TSpace >::floor ( const RealPoint p) const
Parameters
pany point in the Euclidean space.
Returns
the digital point floor( p ).

◆ isValid()

template<typename TSpace >
bool DGtal::CanonicEmbedder< TSpace >::isValid ( ) const

Checks the validity/consistency of the object.

Returns
'true' if the object is valid, 'false' otherwise.

◆ operator()()

template<typename TSpace >
virtual RealPoint DGtal::CanonicEmbedder< TSpace >::operator() ( const Point dp) const
virtual

Map a digital point to its corresponding point in the Euclidean space.

Parameters
dpany digital point in the digital space.
Returns
its canconical embedding in the Euclidean space.

◆ round()

template<typename TSpace >
Point DGtal::CanonicEmbedder< TSpace >::round ( const RealPoint p) const
Parameters
pany point in the Euclidean space.
Returns
the digital point round( p ), i.e. the "closest" digital point.

◆ selfDisplay()

template<typename TSpace >
void DGtal::CanonicEmbedder< TSpace >::selfDisplay ( std::ostream &  out) const

Writes/Displays the object on an output stream.

Parameters
outthe output stream where the object is written.

The documentation for this struct was generated from the following file: