|
DGtal 1.4.0
|
Aim: transforms a 2d signed cell, basically a linel, into a code (0,1,2 or 3),. More...
#include <DGtal/topology/SCellsFunctors.h>
Public Types | |
| typedef KSpace::Point | Point |
| typedef KSpace::Vector | Vector |
| typedef char | Output |
| typedef KSpace::SCell | Input |
Public Member Functions | |
| SCellToCode () | |
| SCellToCode (ConstAlias< KSpace > aK) | |
| SCellToCode (const SCellToCode &other) | |
| SCellToCode & | operator= (const SCellToCode &other) |
| Output | operator() (const Input &s) const |
Private Member Functions | |
| BOOST_STATIC_ASSERT (KSpace::dimension==2) | |
Private Attributes | |
| const KSpace * | myK |
Aim: transforms a 2d signed cell, basically a linel, into a code (0,1,2 or 3),.
Description of template class 'SCellToCode'
| KSpace | the 2d Khalimsky space |
Definition at line 550 of file SCellsFunctors.h.
| typedef KSpace::SCell DGtal::functors::SCellToCode< KSpace >::Input |
Definition at line 561 of file SCellsFunctors.h.
| typedef char DGtal::functors::SCellToCode< KSpace >::Output |
Definition at line 559 of file SCellsFunctors.h.
| typedef KSpace::Point DGtal::functors::SCellToCode< KSpace >::Point |
Definition at line 557 of file SCellsFunctors.h.
| typedef KSpace::Vector DGtal::functors::SCellToCode< KSpace >::Vector |
Definition at line 558 of file SCellsFunctors.h.
|
inline |
|
inline |
Constructor.
| aK | a Khalimsky space |
Definition at line 579 of file SCellsFunctors.h.
|
inline |
Copy constructor.
| other | any SCellToCode modifier |
Definition at line 585 of file SCellsFunctors.h.
|
private |
|
inline |
Return a code from a linel
| s | a linel |
Definition at line 607 of file SCellsFunctors.h.
References DGtal::functors::SCellToCode< KSpace >::myK, DGtal::KhalimskySpaceND< dim, TInteger >::sCoords(), DGtal::KhalimskySpaceND< dim, TInteger >::sDirs(), DGtal::KhalimskySpaceND< dim, TInteger >::sIndirectIncident(), and DGtal::KhalimskySpaceND< dim, TInteger >::sKCoords().
|
inline |
Assignment.
| other | the object to copy. |
Definition at line 593 of file SCellsFunctors.h.
References DGtal::functors::SCellToCode< KSpace >::myK.
|
private |
Aliasing pointer on the Khalimsky space.
Definition at line 567 of file SCellsFunctors.h.
Referenced by DGtal::functors::SCellToCode< KSpace >::operator()(), and DGtal::functors::SCellToCode< KSpace >::operator=().