DGtal 1.3.0
|
Aim: An iterator on the points of a Digital Straight Segment. Template parameters are the integer type and the connectivity of the DSS (8-connectivity as default value). More...
#include <DGtal/geometry/curves/ArithDSSIterator.h>
Public Types | |
typedef ArithDSSIterator | Self |
typedef TInteger | Integer |
typedef PointVector< 2, Integer > | Point |
typedef std::forward_iterator_tag | iterator_category |
typedef Point | value_type |
typedef std::ptrdiff_t | difference_type |
typedef const Point * | pointer |
typedef const Point & | reference |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CInteger< Integer >)) | |
TInteger | remainder (const Point &Q) |
reference | operator* () const |
Self & | operator++ () |
Self | operator++ (int a) |
bool | operator== (const Self &other) const |
bool | operator!= (const Self &other) const |
ArithDSSIterator (const Integer a, const Integer b, const Integer mu, const Point &p) | |
ArithDSSIterator () | |
~ArithDSSIterator () | |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
ArithDSSIterator (const ArithDSSIterator &other) | |
Self & | operator= (const Self &other) |
Private Attributes | |
Integer | myA |
Integer | myB |
Integer | myMu |
Point | myP |
Aim: An iterator on the points of a Digital Straight Segment. Template parameters are the integer type and the connectivity of the DSS (8-connectivity as default value).
Description of class 'ArithDSSIterator'
Definition at line 63 of file ArithDSSIterator.h.
typedef std::ptrdiff_t DGtal::ArithDSSIterator< TInteger, connectivity >::difference_type |
Definition at line 90 of file ArithDSSIterator.h.
typedef TInteger DGtal::ArithDSSIterator< TInteger, connectivity >::Integer |
Integer type.
Definition at line 76 of file ArithDSSIterator.h.
typedef std::forward_iterator_tag DGtal::ArithDSSIterator< TInteger, connectivity >::iterator_category |
stl iterator types.
Definition at line 88 of file ArithDSSIterator.h.
typedef PointVector<2,Integer> DGtal::ArithDSSIterator< TInteger, connectivity >::Point |
2D integer point type.
Definition at line 83 of file ArithDSSIterator.h.
typedef const Point* DGtal::ArithDSSIterator< TInteger, connectivity >::pointer |
Definition at line 91 of file ArithDSSIterator.h.
typedef const Point& DGtal::ArithDSSIterator< TInteger, connectivity >::reference |
Definition at line 92 of file ArithDSSIterator.h.
typedef ArithDSSIterator DGtal::ArithDSSIterator< TInteger, connectivity >::Self |
Self type.
Definition at line 71 of file ArithDSSIterator.h.
typedef Point DGtal::ArithDSSIterator< TInteger, connectivity >::value_type |
Definition at line 89 of file ArithDSSIterator.h.
DGtal::ArithDSSIterator< TInteger, connectivity >::ArithDSSIterator | ( | const Integer | a, |
const Integer | b, | ||
const Integer | mu, | ||
const Point & | p | ||
) |
Constructor with initialisation of the DSS parameters and begin point.
a | DSS a parameter. |
b | DSS b parameter. |
mu | DSS mu parameter. |
p | begin point of the DSS. |
|
inline |
Constructor. Forbidden by default (protected to avoid g++ warnings).
Definition at line 150 of file ArithDSSIterator.h.
|
inline |
DGtal::ArithDSSIterator< TInteger, connectivity >::ArithDSSIterator | ( | const ArithDSSIterator< TInteger, connectivity > & | other | ) |
Copy constructor.
other | the object to clone. Forbidden by default. |
DGtal::ArithDSSIterator< TInteger, connectivity >::BOOST_CONCEPT_ASSERT | ( | (concepts::CInteger< Integer >) | ) |
bool DGtal::ArithDSSIterator< TInteger, connectivity >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
bool DGtal::ArithDSSIterator< TInteger, connectivity >::operator!= | ( | const Self & | other | ) | const |
Difference operator.
other | the object to compare with. |
reference DGtal::ArithDSSIterator< TInteger, connectivity >::operator* | ( | ) | const |
Dereference operator.
Self & DGtal::ArithDSSIterator< TInteger, connectivity >::operator++ | ( | ) |
Prefix increment operator.
Self DGtal::ArithDSSIterator< TInteger, connectivity >::operator++ | ( | int | a | ) |
Postfix increment operator.
a | number of unit increments |
Self & DGtal::ArithDSSIterator< TInteger, connectivity >::operator= | ( | const Self & | other | ) |
Assignment.
other | the object to copy. |
bool DGtal::ArithDSSIterator< TInteger, connectivity >::operator== | ( | const Self & | other | ) | const |
Equality operator.
other | the object to compare with. |
TInteger DGtal::ArithDSSIterator< TInteger, connectivity >::remainder | ( | const Point & | Q | ) |
Compute the remainder of a point wrt the DSS characteristics
Q | a point |
void DGtal::ArithDSSIterator< TInteger, connectivity >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
private |
y-component of the direction vector
Definition at line 183 of file ArithDSSIterator.h.
|
private |
x-component of the direction vector
Definition at line 188 of file ArithDSSIterator.h.
|
private |
Intercept
Definition at line 193 of file ArithDSSIterator.h.
|
private |
Current point of the DSS visited by the iterator
Definition at line 198 of file ArithDSSIterator.h.