|
DGtal 2.0.0
|
Aim: Convert a functor on Digital Point to a Functor on Khalimsky Cell. More...
#include <DGtal/geometry/surfaces/FunctorOnCells.h>
Public Types | |
| typedef FunctorOnCells< TFunctorOnPoints, TKSpace > | Self |
| typedef TFunctorOnPoints | FunctorOnPoints |
| typedef TKSpace | KSpace |
| typedef int | Quantity |
| typedef FunctorOnPoints::Point | Point |
| typedef FunctorOnPoints::Value | Value |
| typedef KSpace::SCell | Cell |
Public Member Functions | |
| BOOST_CONCEPT_ASSERT ((concepts::CPointFunctor< FunctorOnPoints >)) | |
| FunctorOnCells (Alias< FunctorOnPoints > functor, ConstAlias< KSpace > kspace) | |
| FunctorOnCells (const FunctorOnCells &other) | |
| ~FunctorOnCells () | |
| Quantity | operator() (const Cell &aCell) const |
| void | selfDisplay (std::ostream &out) const |
| bool | isValid () const |
| FunctorOnCells & | operator= (const FunctorOnCells &other) |
| const KSpace & | space () const |
Protected Member Functions | |
| FunctorOnCells () | |
Private Attributes | |
| FunctorOnPoints * | f |
| Const pointor on Functor on Points. Used on operator() to get the return value. | |
| const KSpace * | myKSpace |
| Const pointor on Khalimsky Space. Used to convert Cell -> Point. | |
Aim: Convert a functor on Digital Point to a Functor on Khalimsky Cell.
Description of template class 'FunctorOnCells'
| TFunctorOnPoints | a model of functor on Digital Points. |
| TKSpace | Khalimsky space in which the shape is defined. |
Definition at line 70 of file FunctorOnCells.h.
| typedef KSpace::SCell DGtal::FunctorOnCells< TFunctorOnPoints, TKSpace >::Cell |
Definition at line 81 of file FunctorOnCells.h.
| typedef TFunctorOnPoints DGtal::FunctorOnCells< TFunctorOnPoints, TKSpace >::FunctorOnPoints |
Definition at line 76 of file FunctorOnCells.h.
| typedef TKSpace DGtal::FunctorOnCells< TFunctorOnPoints, TKSpace >::KSpace |
Definition at line 77 of file FunctorOnCells.h.
| typedef FunctorOnPoints::Point DGtal::FunctorOnCells< TFunctorOnPoints, TKSpace >::Point |
Definition at line 79 of file FunctorOnCells.h.
| typedef int DGtal::FunctorOnCells< TFunctorOnPoints, TKSpace >::Quantity |
Definition at line 78 of file FunctorOnCells.h.
| typedef FunctorOnCells<TFunctorOnPoints, TKSpace> DGtal::FunctorOnCells< TFunctorOnPoints, TKSpace >::Self |
Definition at line 75 of file FunctorOnCells.h.
| typedef FunctorOnPoints::Value DGtal::FunctorOnCells< TFunctorOnPoints, TKSpace >::Value |
Definition at line 80 of file FunctorOnCells.h.
|
inline |
Constructor.
| [in] | functor | a functor on digital points. |
| [in] | kspace | Khalimsky space in which the shape is defined. |
Definition at line 92 of file FunctorOnCells.h.
|
inline |
| DGtal::FunctorOnCells< TFunctorOnPoints, TKSpace >::~FunctorOnCells | ( | ) |
Destructor.
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
| DGtal::FunctorOnCells< TFunctorOnPoints, TKSpace >::BOOST_CONCEPT_ASSERT | ( | (concepts::CPointFunctor< FunctorOnPoints >) | ) |
| bool DGtal::FunctorOnCells< TFunctorOnPoints, TKSpace >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
inline |
Call the functor on Point by converting the Cell to a Point.
| [in] | aCell | any cell in the Khalimsky space. |
Definition at line 120 of file FunctorOnCells.h.
|
inline |
| void DGtal::FunctorOnCells< TFunctorOnPoints, TKSpace >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |
|
inline |
Definition at line 155 of file FunctorOnCells.h.
|
private |
Const pointor on Functor on Points. Used on operator() to get the return value.
Definition at line 165 of file FunctorOnCells.h.
Referenced by DGtal::FunctorOnCells< ShapePointFunctor, KSpace >::operator=().
|
private |
Const pointor on Khalimsky Space. Used to convert Cell -> Point.
Definition at line 168 of file FunctorOnCells.h.
Referenced by DGtal::FunctorOnCells< ShapePointFunctor, KSpace >::operator=().