|
DGtal 2.0.0
|
#include <DGtal/geometry/curves/FreemanChain.h>
Public Types | |
| using | iterator_category = std::bidirectional_iterator_tag |
| using | value_type = Point |
| using | difference_type = int |
| using | pointer = Point* |
| using | reference = Point |
Public Member Functions | |
| ConstIterator () | |
| ConstIterator (ConstAlias< FreemanChain > aChain, Index n=0) | |
| ConstIterator (ConstAlias< FreemanChain > aChain, Index n, const Point &XY) | |
| ConstIterator (const ConstIterator &aOther) | |
| ConstIterator & | operator= (const ConstIterator &other) |
| ~ConstIterator () | |
| const Point & | operator* () const |
| const Point & | get () const |
| ConstIterator & | operator++ () |
| ConstIterator | operator++ (int) |
| void | next () |
| void | nextInLoop () |
| Index | position () const |
| const FreemanChain * | getChain () const |
| char | getCode () const |
| ConstIterator & | operator-- () |
| ConstIterator | operator-- (int) |
| void | previous () |
| void | previousInLoop () |
| bool | operator== (const ConstIterator &aOther) const |
| bool | operator!= (const ConstIterator &aOther) const |
| bool | operator< (const ConstIterator &aOther) const |
Private Attributes | |
| const FreemanChain * | myFc |
| The Freeman chain visited by the iterator. | |
| Index | myPos |
| The current position in the word. | |
| Point | myXY |
| The current coordinates of the iterator. | |
This class represents an iterator on points defined by freeman chain, storing the current coordinate.
Definition at line 143 of file FreemanChain.h.
| using DGtal::FreemanChain< TInteger >::ConstIterator::difference_type = int |
Definition at line 149 of file FreemanChain.h.
| using DGtal::FreemanChain< TInteger >::ConstIterator::iterator_category = std::bidirectional_iterator_tag |
Definition at line 147 of file FreemanChain.h.
| using DGtal::FreemanChain< TInteger >::ConstIterator::pointer = Point* |
Definition at line 150 of file FreemanChain.h.
| using DGtal::FreemanChain< TInteger >::ConstIterator::reference = Point |
Definition at line 151 of file FreemanChain.h.
| using DGtal::FreemanChain< TInteger >::ConstIterator::value_type = Point |
Definition at line 148 of file FreemanChain.h.
|
inline |
Default Constructor. The object is not valid.
Definition at line 173 of file FreemanChain.h.
Referenced by ConstIterator(), operator!=(), operator++(), operator++(), operator--(), operator--(), operator<(), operator=(), and operator==().
| DGtal::FreemanChain< TInteger >::ConstIterator::ConstIterator | ( | ConstAlias< FreemanChain > | aChain, |
| Index | n = 0 ) |
Constructor. Nb: complexity in O(n).
| aChain | a Freeman chain, |
| n | the position in [chain] (within 0 and chain.size()). |
|
inline |
Constructor. It is the user's responsability to make sure that the data's are consistent. No verification is performed.
Nb: complexity in O(1).
| aChain | a Freeman chain, |
| n | the position in [chain] (within 0 and chain.size()). |
| XY | the point corresponding to the 'n'-th position of 'chain'. |
Definition at line 198 of file FreemanChain.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 287 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::FreemanChain(), and myFc.
|
inline |
Definition at line 297 of file FreemanChain.h.
| void DGtal::FreemanChain< TInteger >::ConstIterator::next | ( | ) |
Goes to the next point on the chain.
Referenced by operator++(), and operator++().
| void DGtal::FreemanChain< TInteger >::ConstIterator::nextInLoop | ( | ) |
Goes to the next point on the chain as if on a loop.
|
inline |
Inequality operator.
| aOther | the iterator to compare with (must be defined on the same chain). |
Definition at line 361 of file FreemanChain.h.
References ConstIterator(), myFc, and myPos.
|
inline |
|
inline |
Pre-increment. Goes to the next point on the chain.
Definition at line 247 of file FreemanChain.h.
References ConstIterator(), and next().
|
inline |
Post-increment. Goes to the next point on the chain.
Definition at line 257 of file FreemanChain.h.
References ConstIterator(), and next().
|
inline |
Pre-decrement. Goes to the previous point on the chain.
Definition at line 308 of file FreemanChain.h.
References ConstIterator(), and previous().
|
inline |
Post-decrement. Goes to the previous point on the chain.
Definition at line 318 of file FreemanChain.h.
References ConstIterator(), and previous().
|
inline |
Inferior operator.
| aOther | the iterator to compare with (must be defined on the same chain). |
Definition at line 376 of file FreemanChain.h.
References ConstIterator(), myFc, and myPos.
| ConstIterator & DGtal::FreemanChain< TInteger >::ConstIterator::operator= | ( | const ConstIterator & | other | ) |
Assignment.
| other | the iterator to copy. |
References ConstIterator().
|
inline |
Equality operator.
| aOther | the iterator to compare with (must be defined on the same chain). |
Definition at line 346 of file FreemanChain.h.
References ConstIterator(), myFc, and myPos.
|
inline |
Definition at line 278 of file FreemanChain.h.
References myPos.
| void DGtal::FreemanChain< TInteger >::ConstIterator::previous | ( | ) |
Goes to the previous point on the chain if possible.
Referenced by operator--(), and operator--().
| void DGtal::FreemanChain< TInteger >::ConstIterator::previousInLoop | ( | ) |
Goes to the previous point on the chain as if on a loop.
|
private |
The Freeman chain visited by the iterator.
Definition at line 158 of file FreemanChain.h.
Referenced by ConstIterator(), ConstIterator(), ConstIterator(), getChain(), getCode(), operator!=(), operator<(), and operator==().
|
private |
The current position in the word.
Definition at line 161 of file FreemanChain.h.
Referenced by ConstIterator(), ConstIterator(), ConstIterator(), getCode(), operator!=(), operator<(), operator==(), and position().
|
private |
The current coordinates of the iterator.
Definition at line 164 of file FreemanChain.h.
Referenced by ConstIterator(), ConstIterator(), get(), and operator*().