DGtal
0.6.devel
|
#include <KhalimskySpaceND.h>
Public Types | |
typedef TInteger | Integer |
typedef KhalimskyCell< dim, Integer > | Cell |
typedef SignedKhalimskyCell < dim, Integer > | SCell |
Public Member Functions | |
CellDirectionIterator (Cell cell, bool open=true) | |
CellDirectionIterator (SCell scell, bool open=true) | |
Dimension | operator* () const |
CellDirectionIterator & | operator++ () |
bool | operator!= (const Integer) const |
bool | end () const |
bool | operator!= (const CellDirectionIterator &other) const |
bool | operator== (const CellDirectionIterator &other) const |
Private Member Functions | |
void | find () |
Private Attributes | |
Dimension | myDir |
Cell | myCell |
bool | myOpen |
This class is useful for looping on all "interesting" coordinates of a cell. For instance, surfels in Z3 have two interesting coordinates (the ones spanned by the surfel).
Definition at line 266 of file KhalimskySpaceND.h.
typedef KhalimskyCell< dim, Integer > DGtal::CellDirectionIterator< dim, TInteger >::Cell |
Definition at line 271 of file KhalimskySpaceND.h.
typedef TInteger DGtal::CellDirectionIterator< dim, TInteger >::Integer |
Definition at line 269 of file KhalimskySpaceND.h.
typedef SignedKhalimskyCell< dim, Integer > DGtal::CellDirectionIterator< dim, TInteger >::SCell |
Definition at line 272 of file KhalimskySpaceND.h.
|
inline |
Constructor from cell.
cell | any unsigned cell |
Definition at line 250 of file KhalimskySpaceND.ih.
References DGtal::CellDirectionIterator< dim, TInteger >::find().
|
inline |
Constructor from signed cell.
scell | any signed cell |
Definition at line 259 of file KhalimskySpaceND.ih.
References DGtal::CellDirectionIterator< dim, TInteger >::find().
|
inline |
Definition at line 298 of file KhalimskySpaceND.ih.
Referenced by DGtal::KhalimskySpaceND< dim, TInteger >::sOrthDir(), and DGtal::KhalimskySpaceND< dim, TInteger >::uOrthDir().
|
inlineprivate |
Look for next valid coordinate.
Definition at line 325 of file KhalimskySpaceND.ih.
Referenced by DGtal::CellDirectionIterator< dim, TInteger >::CellDirectionIterator().
|
inline |
Fast comparison with unsigned integer (unused parameter). Comparison is 'false' at the end of the iteration.
Definition at line 289 of file KhalimskySpaceND.ih.
|
inline |
Slow comparison with other iterator. Useful to check for end of loop.
other | any direction iterator. |
Definition at line 307 of file KhalimskySpaceND.ih.
References DGtal::CellDirectionIterator< dim, TInteger >::myDir.
|
inline |
Definition at line 269 of file KhalimskySpaceND.ih.
|
inline |
Pre-increment. Go to next direction.
Definition at line 278 of file KhalimskySpaceND.ih.
|
inline |
Slow comparison with other iterator.
other | any direction iterator. |
Definition at line 316 of file KhalimskySpaceND.ih.
References DGtal::CellDirectionIterator< dim, TInteger >::myDir.
|
private |
the cell.
Definition at line 326 of file KhalimskySpaceND.h.
|
private |
the current direction.
Definition at line 324 of file KhalimskySpaceND.h.
Referenced by DGtal::CellDirectionIterator< dim, TInteger >::operator!=(), and DGtal::CellDirectionIterator< dim, TInteger >::operator==().
|
private |
If 'true', returns open coordinates, otherwise returns closed coordinates.
Definition at line 329 of file KhalimskySpaceND.h.