User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Math - Geometry - 2D - Line2dIterC
 

  PUBLIC
Line2dIterC::Line2dIterC(const Index2dC &,const Index2dC &)
Line2dIterC::First(const Index2dC &,const Index2dC &)
Line2dIterC::IsElm(void) const
Line2dIterC::operator bool(void) const
Line2dIterC::Next(void)
Line2dIterC::operator ++(int)
Line2dIterC::Data(void) const
Line2dIterC::operator *(void) const

   Line2dIterC   
 
Iterate throught interger grid points along a 2d line.
 
include "Ravl/Line2dIter.hh"
User Level:Default
Library:RavlMath
In Scope:RavlN

Comments:
Uses a version of the midpoint algorithm to iterate all grid points on a line between two positions.

Variables:
Methods:
Line2dIterC(const Index2dC & start,const Index2dC & end)
Constructor.

void First(const Index2dC & start,const Index2dC & end)
Start line again.

bool IsElm() const
Still in line.

operator bool() const
At a pixel in line ?

bool Next()
Goto next point on line.

void operator ++(int)
Goto next point on line.

Index2dC Data() const
Access position.

Index2dC operator *() const
Access position.


Maintainer:Charles Galambos, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002