34 #if defined(FunctorOnCells_RECURSES)
35 #error Recursive header files inclusion detected in FunctorOnCells.h
38 #define FunctorOnCells_RECURSES
40 #if !defined FunctorOnCells_h
42 #define FunctorOnCells_h
47 #include "DGtal/base/Common.h"
48 #include "DGtal/base/Alias.h"
49 #include "DGtal/base/ConstAlias.h"
51 #include "DGtal/kernel/CSpace.h"
52 #include "DGtal/kernel/CPointFunctor.h"
69 template <
typename TFunctorOnPo
ints,
typename TKSpace>
193 template <
typename TF,
typename TKS>
202 #include "DGtal/geometry/surfaces/FunctorOnCells.ih"
209 #undef FunctorOnCells_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: Convert a functor on Digital Point to a Functor on Khalimsky Cell.
FunctorOnCells(const FunctorOnCells &other)
BOOST_CONCEPT_ASSERT((concepts::CPointFunctor< FunctorOnPoints >))
void selfDisplay(std::ostream &out) const
const KSpace & space() const
FunctorOnPoints::Value Value
FunctorOnPoints::Point Point
FunctorOnCells(Alias< FunctorOnPoints > functor, ConstAlias< KSpace > kspace)
Quantity operator()(const Cell &aCell) const
FunctorOnPoints * f
Const pointor on Functor on Points. Used on operator() to get the return value.
TFunctorOnPoints FunctorOnPoints
FunctorOnCells< TFunctorOnPoints, TKSpace > Self
const KSpace * myKSpace
Const pointor on Khalimsky Space. Used to convert Cell -> Point.
FunctorOnCells & operator=(const FunctorOnCells &other)
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Aim: The traits class for all models of Cinteger.
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
Aim: Defines a functor on points.