DGtal
0.6.devel
|
#include <FreemanChain.h>
Public Member Functions | |
ConstIterator () | |
ConstIterator (const FreemanChain &aChain, Index n=0) | |
ConstIterator (const 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 | getPosition () 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 |
Index | myPos |
Point | myXY |
This class represents an iterator on points defined by freeman chain, storing the current coordinate.
Definition at line 138 of file FreemanChain.h.
|
inline |
Default Constructor. The object is not valid.
Definition at line 162 of file FreemanChain.h.
|
inline |
Constructor. Nb: complexity in O(n).
chain | a Freeman chain, |
n | the position in chain). |
Definition at line 50 of file FreemanChain.ih.
References DGtal::PointVector< dim, TEuclideanRing >::at(), DGtal::FreemanChain< TInteger >::chain, DGtal::FreemanChain< TInteger >::ConstIterator::myFc, DGtal::FreemanChain< TInteger >::ConstIterator::myPos, DGtal::FreemanChain< TInteger >::ConstIterator::myXY, DGtal::FreemanChain< TInteger >::ConstIterator::next(), DGtal::FreemanChain< TInteger >::x0, DGtal::FreemanChain< TInteger >::xn, DGtal::FreemanChain< TInteger >::y0, and DGtal::FreemanChain< TInteger >::yn.
|
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).
chain | a Freeman chain, |
n | the position in chain). |
XY | the point corresponding to the 'n'-th position of 'chain'. |
Definition at line 187 of file FreemanChain.h.
|
inline |
Copy constructor.
other | the iterator to clone. |
Definition at line 195 of file FreemanChain.h.
|
inline |
|
inline |
Definition at line 227 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::ConstIterator::myXY.
|
inline |
Definition at line 276 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::ConstIterator::myFc.
Referenced by DGtal::CombinatorialDSS< TConstIterator, TInteger >::init().
|
inline |
Definition at line 286 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::code(), DGtal::FreemanChain< TInteger >::ConstIterator::myFc, and DGtal::FreemanChain< TInteger >::ConstIterator::myPos.
Referenced by DGtal::FreemanChain< TInteger >::ccwLoops(), DGtal::FreemanChain< TInteger >::cleanOuterSpikes(), DGtal::FreemanChain< TInteger >::findQuadrantChange(), and DGtal::FreemanChain< TInteger >::findQuadrantChange4().
|
inline |
Definition at line 267 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::ConstIterator::myPos.
Referenced by DGtal::FreemanChain< TInteger >::cleanOuterSpikes(), DGtal::FreemanChain< TInteger >::findQuadrantChange(), DGtal::FreemanChain< TInteger >::findQuadrantChange4(), and DGtal::CombinatorialDSS< TConstIterator, TInteger >::init().
|
inline |
Goes to the next point on the chain.
Definition at line 90 of file FreemanChain.ih.
References DGtal::FreemanChain< TInteger >::chain.
Referenced by DGtal::FreemanChain< TInteger >::ConstIterator::ConstIterator(), DGtal::FreemanChain< TInteger >::findQuadrantChange(), DGtal::FreemanChain< TInteger >::findQuadrantChange4(), DGtal::FreemanChain< TInteger >::innerContour(), and DGtal::FreemanChain< TInteger >::ConstIterator::operator++().
|
inline |
Goes to the next point on the chain as if on a loop.
Definition at line 110 of file FreemanChain.ih.
References DGtal::FreemanChain< TInteger >::chain.
Referenced by DGtal::FreemanChain< TInteger >::ccwLoops(), and DGtal::FreemanChain< TInteger >::cleanOuterSpikes().
|
inline |
Inequality operator.
aOther | the iterator to compare with (must be defined on the same chain). |
Definition at line 350 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::ConstIterator::myFc, and DGtal::FreemanChain< TInteger >::ConstIterator::myPos.
|
inline |
Definition at line 219 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::ConstIterator::myXY.
|
inline |
Pre-increment. Goes to the next point on the chain.
Definition at line 236 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::ConstIterator::next().
|
inline |
Post-increment. Goes to the next point on the chain.
Definition at line 246 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::ConstIterator::next().
|
inline |
Pre-decrement. Goes to the previous point on the chain.
Definition at line 297 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::ConstIterator::previous().
|
inline |
Post-decrement. Goes to the previous point on the chain.
Definition at line 307 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::ConstIterator::previous().
|
inline |
Inferior operator.
aOther | the iterator to compare with (must be defined on the same chain). |
Definition at line 365 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::ConstIterator::myFc, and DGtal::FreemanChain< TInteger >::ConstIterator::myPos.
|
inline |
Assignment.
other | the iterator to copy. |
Definition at line 76 of file FreemanChain.ih.
References DGtal::FreemanChain< TInteger >::ConstIterator::myFc, DGtal::FreemanChain< TInteger >::ConstIterator::myPos, and DGtal::FreemanChain< TInteger >::ConstIterator::myXY.
|
inline |
Equality operator.
aOther | the iterator to compare with (must be defined on the same chain). |
Definition at line 335 of file FreemanChain.h.
References DGtal::FreemanChain< TInteger >::ConstIterator::myFc, and DGtal::FreemanChain< TInteger >::ConstIterator::myPos.
|
inline |
Goes to the previous point on the chain if possible.
Definition at line 128 of file FreemanChain.ih.
References DGtal::FreemanChain< TInteger >::chain.
Referenced by DGtal::FreemanChain< TInteger >::findQuadrantChange(), DGtal::FreemanChain< TInteger >::findQuadrantChange4(), and DGtal::FreemanChain< TInteger >::ConstIterator::operator--().
|
inline |
Goes to the previous point on the chain as if on a loop.
Definition at line 155 of file FreemanChain.ih.
Referenced by DGtal::FreemanChain< TInteger >::cleanOuterSpikes().
|
private |
The Freeman chain visited by the iterator.
Definition at line 147 of file FreemanChain.h.
Referenced by DGtal::FreemanChain< TInteger >::ConstIterator::ConstIterator(), DGtal::FreemanChain< TInteger >::ConstIterator::getChain(), DGtal::FreemanChain< TInteger >::ConstIterator::getCode(), DGtal::FreemanChain< TInteger >::ConstIterator::operator!=(), DGtal::FreemanChain< TInteger >::ConstIterator::operator<(), DGtal::FreemanChain< TInteger >::ConstIterator::operator=(), and DGtal::FreemanChain< TInteger >::ConstIterator::operator==().
|
private |
The current position in the word.
Definition at line 150 of file FreemanChain.h.
Referenced by DGtal::FreemanChain< TInteger >::ConstIterator::ConstIterator(), DGtal::FreemanChain< TInteger >::ConstIterator::getCode(), DGtal::FreemanChain< TInteger >::ConstIterator::getPosition(), DGtal::FreemanChain< TInteger >::ConstIterator::operator!=(), DGtal::FreemanChain< TInteger >::ConstIterator::operator<(), DGtal::FreemanChain< TInteger >::ConstIterator::operator=(), and DGtal::FreemanChain< TInteger >::ConstIterator::operator==().
|
private |
The current coordinates of the iterator.
Definition at line 153 of file FreemanChain.h.
Referenced by DGtal::FreemanChain< TInteger >::ConstIterator::ConstIterator(), DGtal::FreemanChain< TInteger >::ConstIterator::get(), DGtal::FreemanChain< TInteger >::ConstIterator::operator*(), and DGtal::FreemanChain< TInteger >::ConstIterator::operator=().