MIRA
Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
RasterTransformation::iterator Class Reference

#include <geometry/RasterTransformation.h>

Public Member Functions

 iterator ()
 Default constructor. More...
 
 iterator (const iterator &other)
 Copy constructor. More...
 
 iterator (RasterTransformation *rt)
 Init to begin of rt. More...
 
iteratoroperator= (const iterator &other)
 Assignment operator. More...
 
bool operator== (const iterator &other) const
 Comparison. More...
 
bool operator!= (const iterator &other) const
 Comparison. More...
 
const iteratoroperator++ ()
 Advances to the next coordinate pair. More...
 
bool isValid () const
 Valid iterator? More...
 
int srcX () const
 Return current x coordinate in source raster. More...
 
int srcY () const
 Return current y coordinate in source raster. More...
 
int tgtX () const
 Return current x coordinate in target raster. More...
 
int tgtY () const
 Return current y coordinate in target raster. More...
 

Public Attributes

RasterTransformationmT
 
GeneralBresenhamLineIterator< 4, double, 3, 10000 > mBresenham
 
double mCurrentLine
 
int mTY
 
bool mLineValid
 

Protected Member Functions

bool initLine ()
 
void setToBegin ()
 

Friends

class RasterTransformation
 

Constructor & Destructor Documentation

◆ iterator() [1/3]

iterator ( )
inline

Default constructor.

◆ iterator() [2/3]

iterator ( const iterator other)
inline

Copy constructor.

◆ iterator() [3/3]

iterator ( RasterTransformation rt)
inline

Init to begin of rt.

Member Function Documentation

◆ operator=()

RasterTransformation::iterator & operator= ( const iterator other)
inline

Assignment operator.

◆ operator==()

bool operator== ( const iterator other) const

Comparison.

◆ operator!=()

bool operator!= ( const iterator other) const

Comparison.

◆ operator++()

const RasterTransformation::iterator & operator++ ( )
inline

Advances to the next coordinate pair.

◆ isValid()

bool isValid ( ) const
inline

Valid iterator?

◆ srcX()

int srcX ( ) const
inline

Return current x coordinate in source raster.

◆ srcY()

int srcY ( ) const
inline

Return current y coordinate in source raster.

◆ tgtX()

int tgtX ( ) const
inline

Return current x coordinate in target raster.

◆ tgtY()

int tgtY ( ) const
inline

Return current y coordinate in target raster.

◆ initLine()

bool initLine ( )
inlineprotected

◆ setToBegin()

void setToBegin ( )
inlineprotected

Friends And Related Function Documentation

◆ RasterTransformation

friend class RasterTransformation
friend

Member Data Documentation

◆ mT

◆ mBresenham

GeneralBresenhamLineIterator<4, double, 3, 10000> mBresenham

◆ mCurrentLine

double mCurrentLine

◆ mTY

int mTY

◆ mLineValid

bool mLineValid

The documentation for this class was generated from the following file: