DGtal 1.3.0
|
This class is useful for looping on all "interesting" coordinates of a pre-cell. More...
#include <DGtal/topology/KhalimskyPreSpaceND.h>
Public Types | |
typedef TInteger | Integer |
typedef KhalimskyPreCell< dim, Integer > | Cell |
typedef SignedKhalimskyPreCell< dim, Integer > | SCell |
Public Member Functions | |
PreCellDirectionIterator (Cell cell, bool open=true) | |
Constructor from a pre-cell. More... | |
PreCellDirectionIterator (SCell scell, bool open=true) | |
Constructor from a signed pre-cell. More... | |
Dimension | operator* () const |
Return the current direction. More... | |
PreCellDirectionIterator & | operator++ () |
Pre-increment. Go to next direction. More... | |
bool | operator!= (const Integer) const |
Fast comparison with unsigned integer (unused parameter). More... | |
bool | end () const |
Return 'true' if the iteration is ended. More... | |
bool | operator!= (const PreCellDirectionIterator &other) const |
Slow comparison with other iterator. Useful to check for end of loop. More... | |
bool | operator== (const PreCellDirectionIterator &other) const |
Slow comparison with other iterator. More... | |
Private Member Functions | |
void | find () |
Look for next valid coordinate. More... | |
Private Attributes | |
Dimension | myDir |
the current direction. More... | |
Cell | myCell |
the cell. More... | |
bool | myOpen |
If 'true', returns open coordinates, otherwise returns closed coordinates. More... | |
This class is useful for looping on all "interesting" coordinates of a pre-cell.
For instance, surfels in Z3 have two interesting coordinates (the ones spanned by the surfel).
Definition at line 281 of file KhalimskyPreSpaceND.h.
typedef KhalimskyPreCell< dim, Integer > DGtal::PreCellDirectionIterator< dim, TInteger >::Cell |
Definition at line 286 of file KhalimskyPreSpaceND.h.
typedef TInteger DGtal::PreCellDirectionIterator< dim, TInteger >::Integer |
Definition at line 284 of file KhalimskyPreSpaceND.h.
typedef SignedKhalimskyPreCell< dim, Integer > DGtal::PreCellDirectionIterator< dim, TInteger >::SCell |
Definition at line 287 of file KhalimskyPreSpaceND.h.
|
explicit |
Constructor from a pre-cell.
cell | any unsigned pre-cell |
open | 'true' if the cell if open. |
|
explicit |
Constructor from a signed pre-cell.
scell | any signed pre-cell |
open | 'true' if the cell if open. |
bool DGtal::PreCellDirectionIterator< dim, TInteger >::end | ( | ) | const |
Return 'true' if the iteration is ended.
|
private |
Look for next valid coordinate.
bool DGtal::PreCellDirectionIterator< dim, TInteger >::operator!= | ( | const | Integer | ) | const |
Fast comparison with unsigned integer (unused parameter).
Comparison is 'false' at the end of the iteration.
bool DGtal::PreCellDirectionIterator< dim, TInteger >::operator!= | ( | const PreCellDirectionIterator< dim, TInteger > & | other | ) | const |
Slow comparison with other iterator. Useful to check for end of loop.
other | any direction iterator. |
Dimension DGtal::PreCellDirectionIterator< dim, TInteger >::operator* | ( | ) | const |
Return the current direction.
PreCellDirectionIterator & DGtal::PreCellDirectionIterator< dim, TInteger >::operator++ | ( | ) |
Pre-increment. Go to next direction.
bool DGtal::PreCellDirectionIterator< dim, TInteger >::operator== | ( | const PreCellDirectionIterator< dim, TInteger > & | other | ) | const |
Slow comparison with other iterator.
other | any direction iterator. |
|
private |
the cell.
Definition at line 344 of file KhalimskyPreSpaceND.h.
|
private |
the current direction.
Definition at line 342 of file KhalimskyPreSpaceND.h.
|
private |
If 'true', returns open coordinates, otherwise returns closed coordinates.
Definition at line 348 of file KhalimskyPreSpaceND.h.