|
DGtal 1.4.2
|
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. | |
| PreCellDirectionIterator (SCell scell, bool open=true) | |
| Constructor from a signed pre-cell. | |
| Dimension | operator* () const |
| Return the current direction. | |
| PreCellDirectionIterator & | operator++ () |
| Pre-increment. Go to next direction. | |
| bool | operator!= (const Integer) const |
| Fast comparison with unsigned integer (unused parameter). | |
| bool | end () const |
| Return 'true' if the iteration is ended. | |
| bool | operator!= (const PreCellDirectionIterator &other) const |
| Slow comparison with other iterator. Useful to check for end of loop. | |
| bool | operator== (const PreCellDirectionIterator &other) const |
| Slow comparison with other iterator. | |
Private Member Functions | |
| void | find () |
| Look for next valid coordinate. | |
Private Attributes | |
| Dimension | myDir |
| the current direction. | |
| Cell | myCell |
| the cell. | |
| bool | myOpen |
| If 'true', returns open coordinates, otherwise returns closed coordinates. | |
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 280 of file KhalimskyPreSpaceND.h.
| KhalimskyPreCell< dim, Integer > DGtal::PreCellDirectionIterator< dim, TInteger >::Cell |
Definition at line 285 of file KhalimskyPreSpaceND.h.
| TInteger DGtal::PreCellDirectionIterator< dim, TInteger >::Integer |
Definition at line 283 of file KhalimskyPreSpaceND.h.
| SignedKhalimskyPreCell< dim, Integer > DGtal::PreCellDirectionIterator< dim, TInteger >::SCell |
Definition at line 286 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 343 of file KhalimskyPreSpaceND.h.
|
private |
the current direction.
Definition at line 341 of file KhalimskyPreSpaceND.h.
|
private |
If 'true', returns open coordinates, otherwise returns closed coordinates.
Definition at line 347 of file KhalimskyPreSpaceND.h.