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...
 
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 clipLine (const Rect2i &area, Point3d &p1, Point3d &p2)
 
bool initLine ()
 
void setToBegin ()
 
void setToEnd ()
 

Friends

class RasterTransformation
 

Constructor & Destructor Documentation

◆ iterator() [1/2]

iterator ( )
inline

Default constructor.

◆ iterator() [2/2]

iterator ( const iterator other)
inline

Copy constructor.

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.

◆ clipLine()

bool clipLine ( const Rect2i area,
Point3d p1,
Point3d p2 
)
inlineprotected

◆ initLine()

bool initLine ( )
inlineprotected

◆ setToBegin()

void setToBegin ( )
inlineprotected

◆ setToEnd()

void setToEnd ( )
protected

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: