DGtal
0.6.devel
|
#include <SCellsFunctors.h>
Public Types | |
typedef KSpace::Space::RealPoint | Output |
typedef KSpace::SCell | Input |
Public Member Functions | |
SCellToMidPoint () | |
SCellToMidPoint (const KSpace &aK) | |
SCellToMidPoint (const SCellToMidPoint &other) | |
SCellToMidPoint & | operator= (const SCellToMidPoint &other) |
Output | operator() (const Input &s) const |
Private Attributes | |
const KSpace * | myK |
Aim: transforms a scell into a real point (the coordinates are divided by 2)
Description of template class 'SCellToMidPoint'
KSpace | the Khalimsky space KSpace aKSpace;
typename KSpace::SCell aSCell;
typename KSpace::Space::RealPoint aPoint;
SCellToMidPoint<KSpace> f(aKSpace);
...
aPoint = f(aSCell);
|
Definition at line 156 of file SCellsFunctors.h.
typedef KSpace::SCell DGtal::SCellToMidPoint< KSpace >::Input |
Definition at line 162 of file SCellsFunctors.h.
typedef KSpace::Space::RealPoint DGtal::SCellToMidPoint< KSpace >::Output |
Definition at line 161 of file SCellsFunctors.h.
|
inline |
|
inline |
Constructor.
aK | a Khalimsky space |
Definition at line 180 of file SCellsFunctors.h.
|
inline |
Copy constructor.
other | any SCellToMidPoint functor |
Definition at line 186 of file SCellsFunctors.h.
|
inline |
Return a real point (double coordinates) from a scell (khalimsky coordinates)
s | a scell |
Definition at line 208 of file SCellsFunctors.h.
References DGtal::SCellToMidPoint< KSpace >::myK.
|
inline |
Assignment.
other | the object to copy. |
Definition at line 194 of file SCellsFunctors.h.
References DGtal::SCellToMidPoint< KSpace >::myK.
|
private |
Aliasing pointer on the Khalimsky space.
Definition at line 168 of file SCellsFunctors.h.
Referenced by DGtal::SCellToMidPoint< KSpace >::operator()(), and DGtal::SCellToMidPoint< KSpace >::operator=().