| eLynx SDK
v3.0.1 C++ image processing API reference |
#include <PixelIterator.h>
Public Types | |
| typedef Pixel | Pixel_t |
Public Member Functions | |
| Pixel & | operator[] (int32 iIndex) |
| uint32 | getWidth () const |
| uint32 | getHorizontal () const |
| uint32 | getVertical () const |
| const Pixel_t * | getData () const |
| const Pixel_t * | getFirst () const |
| const void * | getMap () const |
| void * | getMap () |
Constructors, destructor and assignment | |
| PixelIterator () | |
| Default constructor. | |
| template<class PixelU > | |
| PixelIterator (const PixelIterator< PixelU > &iOther) | |
| PixelIterator (Pixel_t *iprPixel, uint32 iWidth) | |
Core Random access iterator operations | |
| void | increment () |
| Moves iterator to the next pixel. | |
| void | decrement () |
| Moves iterator to the previous pixel. | |
| bool | equal (const PixelIterator &iOther) const |
| Pixel_t & | dereference () const |
| Returns reference to the current pixel. | |
| void | advance (int32 iDist) |
| void | advance (int32 iWidth, int32 iHeight) |
| void | moveto (int32 iWidth, int32 iHeight) |
| uint32 | distance_to (const PixelIterator &iOther) const |
Friends | |
| class | boost::iterator_core_access |
| "back-door" that iterator_facade uses to get access to the core operations. | |
The methods naming convention breaks eLynx one (method name starts in lower case but we can't change method's names because it is how boost::iterator_facade expects them to be.
Definition at line 41 of file PixelIterator.h.
| typedef Pixel eLynx::Image::PixelIterator< Pixel >::Pixel_t |
Definition at line 46 of file PixelIterator.h.
| eLynx::Image::PixelIterator< Pixel >::PixelIterator | ( | ) | [explicit] |
Default constructor.
| eLynx::Image::PixelIterator< Pixel >::PixelIterator | ( | const PixelIterator< PixelU > & | iOther | ) | [inline] |
Copy Constructor. PixelU * must be convertable to Pixel *.
| iOther | the pixel iterator to copy. |
| eLynx::Image::PixelIterator< Pixel >::PixelIterator | ( | Pixel_t * | iprPixel, | |
| uint32 | iWidth | |||
| ) | [explicit] |
Constructor. Iterator is valid.
| iprPixel | reference pointer to the pixel map. | |
| iWidth | image width. |
| void eLynx::Image::PixelIterator< Pixel >::increment | ( | ) |
Moves iterator to the next pixel.
| void eLynx::Image::PixelIterator< Pixel >::decrement | ( | ) |
Moves iterator to the previous pixel.
| bool eLynx::Image::PixelIterator< Pixel >::equal | ( | const PixelIterator< Pixel > & | iOther | ) | const |
Compares two iterators.
| iOther | other PixelIterator. |
| Pixel_t& eLynx::Image::PixelIterator< Pixel >::dereference | ( | ) | const |
Returns reference to the current pixel.
| void eLynx::Image::PixelIterator< Pixel >::advance | ( | int32 | iDist | ) |
Moves iterator forward by iDist pixels.
| iDist | number of pixels to advance. |
| void eLynx::Image::PixelIterator< Pixel >::advance | ( | int32 | iWidth, | |
| int32 | iHeight | |||
| ) |
Advance iterator from current position to the new one by moving it iWidth pixels in horizontal direction and iHeight in vertical in the image.
| iWidth | horizontal shift. | |
| iHeight | vertical shift. |
| void eLynx::Image::PixelIterator< Pixel >::moveto | ( | int32 | iWidth, | |
| int32 | iHeight | |||
| ) |
Move iterator to the specified position (iWidth, iHeight) in the image.
| iWidth | horizontal position. | |
| iHeight | vertical position. |
| uint32 eLynx::Image::PixelIterator< Pixel >::distance_to | ( | const PixelIterator< Pixel > & | iOther | ) | const |
Returns the distance from current position to a specified one.
| iOther | the pixel we want to measure distance to. |
| Pixel& eLynx::Image::PixelIterator< Pixel >::operator[] | ( | int32 | iIndex | ) |
Subscript operator
| iIndex | the pixel's index we want to access. |
| uint32 eLynx::Image::PixelIterator< Pixel >::getWidth | ( | ) | const |
Returns image's width.
| uint32 eLynx::Image::PixelIterator< Pixel >::getHorizontal | ( | ) | const |
Returns current horizontal coordinate.
| uint32 eLynx::Image::PixelIterator< Pixel >::getVertical | ( | ) | const |
Returns current vertical coordinate.
| const Pixel_t* eLynx::Image::PixelIterator< Pixel >::getData | ( | ) | const |
Returns the raw pointer to the current pixel.
| const Pixel_t* eLynx::Image::PixelIterator< Pixel >::getFirst | ( | ) | const |
Returns the raw pointer to the first pixel.
| const void* eLynx::Image::PixelIterator< Pixel >::getMap | ( | ) | const [virtual] |
Returns the raw pointer to the current pixel.
Don't use this method. It's for internal usage.
Implements eLynx::Image::IPixelIterator.
| void* eLynx::Image::PixelIterator< Pixel >::getMap | ( | ) | [virtual] |
Returns the raw pointer to the current pixel.
Don't use this method. It's for internal usage.
Implements eLynx::Image::IPixelIterator.
friend class boost::iterator_core_access [friend] |
"back-door" that iterator_facade uses to get access to the core operations.
Definition at line 49 of file PixelIterator.h.