ContRap-Libraries
|
Class RectIterator iterates over a rectangle. More...
#include <image.h>
Public Member Functions | |
RectIterator (Image< T > &image, Rect2D &rect) | |
Creates a new rectangular iterator. | |
virtual | ~RectIterator () |
Virtual destructor. | |
virtual RectIterator & | operator++ (int) |
Takes the next pixel. | |
virtual RectIterator & | 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 | |
Rect2D | rect |
Primitive. |
Class RectIterator iterates over a rectangle.
crp::Image< T >::RectIterator::RectIterator | ( | Image< T > & | image, |
Rect2D & | rect | ||
) | [inline] |
Creates a new rectangular iterator.
image | Associated image |
rect | Rectangular |
virtual crp::Image< T >::RectIterator::~RectIterator | ( | ) | [inline, virtual] |
Virtual destructor.
virtual bool crp::Image< T >::RectIterator::at_begin | ( | ) | [inline, virtual] |
Returns true if the operator is at the beginning.
Implements crp::Image< T >::PrimitiveIterator.
virtual bool crp::Image< T >::RectIterator::at_end | ( | ) | [inline, virtual] |
Returns true if the operator is at the end.
Implements crp::Image< T >::PrimitiveIterator.
virtual RectIterator& crp::Image< T >::RectIterator::operator++ | ( | int | ) | [inline, virtual] |
virtual RectIterator& crp::Image< T >::RectIterator::operator-- | ( | int | ) | [inline, virtual] |
Takes the previous pixel.
Implements crp::Image< T >::PrimitiveIterator.
Rect2D crp::Image< T >::RectIterator::rect [protected] |
Primitive.