|
ContRap-Libraries
|
Class LineIterator iterates over a line. More...
#include <image.h>
Public Member Functions | |
| LineIterator (Image< T > &image, Line2D &line) | |
| Creates a new rectangular iterator. | |
| virtual | ~LineIterator () |
| Virtual destructor. | |
| virtual LineIterator & | operator++ (int) |
| Takes the next pixel. | |
| virtual LineIterator & | operator-- (int) |
| Takes the previous pixel. | |
| virtual bool | at_end () |
| Returns true if the operator is at the end. | |
| virtual bool | at_begin () |
| Returns true if the operator is at the beginning. | |
Protected Attributes | |
| Line2D | line |
| Primitive. | |
| double | px |
| Double precision position. | |
| double | py |
| double | dx |
| Step size. | |
| double | dy |
Class LineIterator iterates over a line.
| crp::Image< T >::LineIterator::LineIterator | ( | Image< T > & | image, |
| Line2D & | line | ||
| ) | [inline] |
Creates a new rectangular iterator.
| image | Associated image |
| line | Line |
| virtual crp::Image< T >::LineIterator::~LineIterator | ( | ) | [inline, virtual] |
Virtual destructor.
| virtual bool crp::Image< T >::LineIterator::at_begin | ( | ) | [inline, virtual] |
Returns true if the operator is at the beginning.
Implements crp::Image< T >::PrimitiveIterator.
| virtual bool crp::Image< T >::LineIterator::at_end | ( | ) | [inline, virtual] |
Returns true if the operator is at the end.
Implements crp::Image< T >::PrimitiveIterator.
| virtual LineIterator& crp::Image< T >::LineIterator::operator++ | ( | int | ) | [inline, virtual] |
| virtual LineIterator& crp::Image< T >::LineIterator::operator-- | ( | int | ) | [inline, virtual] |
Takes the previous pixel.
Implements crp::Image< T >::PrimitiveIterator.
double crp::Image< T >::LineIterator::dx [protected] |
Step size.
double crp::Image< T >::LineIterator::dy [protected] |
Line2D crp::Image< T >::LineIterator::line [protected] |
Primitive.
double crp::Image< T >::LineIterator::px [protected] |
Double precision position.
double crp::Image< T >::LineIterator::py [protected] |
1.7.3