DGtal
0.6.devel
|
#include <MaximalSegments.h>
Public Member Functions | |
SegmentIterator (MaximalSegments< Segment > *aCov, const Iterator &aBack, const Segment &aSegment) | |
SegmentIterator (const SegmentIterator &aOther) | |
SegmentIterator & | operator= (const SegmentIterator &aOther) |
~SegmentIterator () | |
Segment | operator* () const |
Segment | get () const |
SegmentIterator & | operator++ () |
bool | intersectNext () const |
bool | intersectPrevious () const |
const Iterator | getFront () const |
const Iterator | getBack () const |
bool | operator== (const SegmentIterator &aOther) const |
bool | operator!= (const SegmentIterator &aOther) const |
Private Member Functions | |
template<typename TypeSegment , typename TypeIterator > | |
void | extension (TypeSegment &aSeg, TypeIterator &it, const TypeIterator &end) |
template<typename TypeSegment , typename TypeIterator > | |
void | extension (TypeSegment &aSeg, TypeIterator &it) |
template<typename TypeSegment , typename TypeIterator > | |
void | extensionInLoop (TypeSegment &aSeg, TypeIterator &it, const TypeIterator &begin, const TypeIterator &end) |
void | firstMaximalSegment () |
void | nextMaximalSegment () |
bool | doesIntersectNext (const Iterator &it) |
Private Attributes | |
MaximalSegments< Segment > * | myCov |
Iterator | myFront |
Iterator | myBack |
Segment | mySegment |
bool | myFlagIntersectNext |
bool | myFlagIntersectPrevious |
bool | myFlag |
Friends | |
class | MaximalSegments< Segment > |
This class is an iterator on a sequence storing the current segment.
Definition at line 129 of file MaximalSegments.h.
|
inline |
Constructor. Nb: complexity in O(n).
aCov | the set of maximal segments |
aBack | an iterator at the back of the first segment |
Constructor. Nb: complexity in O(n).
anIterator | an iterator on the digital curve to decompose |
Definition at line 266 of file MaximalSegments.ih.
References DGtal::deprecated::MaximalSegments< TSegment >::SegmentIterator::firstMaximalSegment(), DGtal::deprecated::MaximalSegments< TSegment >::SegmentIterator::myBack, DGtal::deprecated::MaximalSegments< TSegment >::SegmentIterator::myCov, and DGtal::deprecated::MaximalSegments< TSegment >::myEnd.
|
inline |
Copy constructor.
other | the iterator to clone. |
Definition at line 290 of file MaximalSegments.ih.
|
inline |
Destructor. Does nothing.
Destructor. Does nothing
Definition at line 330 of file MaximalSegments.ih.
|
inlineprivate |
Checks if the current segment intersects the next one (if exists).
it | a given iterator |
Checks if the current segment intersects the next one (if exists).
Definition at line 49 of file MaximalSegments.ih.
|
inlineprivate |
Extension of the segment along the sequence while it is possible.
aSeg | a segment computer |
it | an iterator on a sequence |
end | an iterator after the end of the sequence Nb: complexity in O(n). |
Extension of the segment along the sequence while it is possible. Nb: complexity in O(n).
Definition at line 205 of file MaximalSegments.ih.
|
inlineprivate |
Extension of the segment along the sequence while it is possible.
aSeg | a segment computer |
it | an iterator on a sequence Nb: complexity in O(n). |
Extension of the segment along the sequence while it is possible. Nb: complexity in O(n).
Definition at line 222 of file MaximalSegments.ih.
|
inlineprivate |
Extension of the segment along the (circular) sequence while it is possible.
aSeg | a segment computer |
it | an iterator on a sequence |
begin | an iterator at the beginning of the sequence |
end | an iterator after the end of the sequence Nb: complexity in O(n). |
Extension of the segment along the (circular) sequence while it is possible. Nb: complexity in O(n).
Definition at line 239 of file MaximalSegments.ih.
References DGtal::deprecated::MaximalSegments< TSegment >::begin().
|
inlineprivate |
Retrieves the first maximal segment found on the sequence. Nb: complexity in O(n).
Retrieves the first maximal segment of the sequence.
Definition at line 63 of file MaximalSegments.ih.
References DGtal::deprecated::MaximalSegments< TSegment >::mySegment, and DGtal::nextMaximalSegment().
Referenced by DGtal::deprecated::MaximalSegments< TSegment >::SegmentIterator::SegmentIterator().
|
inline |
Definition at line 355 of file MaximalSegments.ih.
References DGtal::deprecated::MaximalSegments< TSegment >::mySegment.
|
inline |
Definition at line 395 of file MaximalSegments.ih.
|
inline |
Definition at line 383 of file MaximalSegments.ih.
|
inline |
Definition at line 408 of file MaximalSegments.ih.
|
inline |
Definition at line 420 of file MaximalSegments.ih.
|
inlineprivate |
Goes to the next maximal segment on the sequence (if possible). Nb: complexity in O(n).
Goes to the next maximal segment on the sequence.
Definition at line 93 of file MaximalSegments.ih.
References DGtal::deprecated::MaximalSegments< TSegment >::mySegment.
|
inline |
Inequality operator.
aOther | the iterator to compare with |
Inequality operator.
aOther | the iterator to compare with |
Definition at line 452 of file MaximalSegments.ih.
|
inline |
Definition at line 344 of file MaximalSegments.ih.
References DGtal::deprecated::MaximalSegments< TSegment >::mySegment.
|
inline |
Pre-increment. Goes to the next maximal segment on the sequence (if possible). Nb: complexity in O(n).
Pre-increment. Goes to the next segment on a digital curve.
Definition at line 368 of file MaximalSegments.ih.
References DGtal::nextMaximalSegment().
|
inline |
Assignment.
aOther | the iterator to copy. |
Assignment.
other | the iterator to copy. |
Definition at line 309 of file MaximalSegments.ih.
References DGtal::deprecated::MaximalSegments< TSegment >::mySegment.
|
inline |
Equality operator.
aOther | the iterator to compare with |
Equality operator.
aOther | the iterator to compare with |
Definition at line 436 of file MaximalSegments.ih.
|
friend |
Definition at line 184 of file MaximalSegments.h.
|
private |
An iterator of the sequence at the back of the current segment
Definition at line 151 of file MaximalSegments.h.
Referenced by DGtal::deprecated::MaximalSegments< TSegment >::SegmentIterator::SegmentIterator().
|
private |
Pointer to the cover of maximal segments
Definition at line 139 of file MaximalSegments.h.
Referenced by DGtal::deprecated::MaximalSegments< TSegment >::SegmentIterator::SegmentIterator().
|
private |
A flag equal to FALSE if the current segment lies between the begin and the end iterator of the sequence, TRUE otherwise. Nb: always FALSE if the sequence is processed as open.
Definition at line 180 of file MaximalSegments.h.
|
private |
A flag equal to TRUE if the current segment intersects the next one, FALSE otherwise (and FALSE if the current segment is the last one)
Definition at line 164 of file MaximalSegments.h.
|
private |
A flag equal to TRUE if the current segment intersects the previous one, FALSE otherwise (and FALSE if the current segment is the first one)
Definition at line 171 of file MaximalSegments.h.
|
private |
An iterator of the sequence at the front of the current segment
Definition at line 145 of file MaximalSegments.h.
|
private |
The current segment
Definition at line 156 of file MaximalSegments.h.