31 #if defined(CanonicEmbedder_RECURSES) 32 #error Recursive header files inclusion detected in CanonicEmbedder.h 33 #else // defined(CanonicEmbedder_RECURSES) 35 #define CanonicEmbedder_RECURSES 37 #if !defined CanonicEmbedder_h 39 #define CanonicEmbedder_h 44 #include "DGtal/base/Common.h" 45 #include "DGtal/kernel/CSpace.h" 63 template <
typename TSpace>
91 Point
floor(
const RealPoint & p )
const;
97 Point
ceil(
const RealPoint & p )
const;
105 Point
round(
const RealPoint & p )
const;
114 virtual RealPoint
embed(
const Point & dp )
const;
123 virtual RealPoint
operator()(
const Point & dp )
const;
163 template <
typename TSpace>
165 operator<< ( std::ostream & out, const CanonicEmbedder<TSpace> & object );
173 #include "DGtal/kernel/CanonicEmbedder.ih" 179 #endif // !defined CanonicEmbedder_h 181 #undef CanonicEmbedder_RECURSES 182 #endif // else defined(CanonicEmbedder_RECURSES)
CanonicEmbedder< TSpace > Self
Point round(const RealPoint &p) const
Space::RealPoint RealPoint
virtual ~CanonicEmbedder()
Point floor(const RealPoint &p) const
Point ceil(const RealPoint &p) const
virtual RealPoint embed(const Point &dp) const
Aim: Defines the concept describing a digital space, ie a cartesian product of integer lines...
void selfDisplay(std::ostream &out) const
BOOST_CONCEPT_ASSERT((concepts::CSpace< TSpace >))
TInteger Integer
Arithmetic ring induced by (+,-,*) and Integer numbers.
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: A trivial embedder for digital points, which corresponds to the canonic injection of Zn into Rn...
virtual RealPoint operator()(const Point &dp) const