Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Math - Sequences - SquareIterC
 

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

   SquareIterC   
 
Clockwise iterate through a square.
 
include "Ravl/SquareIter.hh"
Created:29/08/2000 
Source file:Ravl/Math/Sequence/SquareIter.hh
User Level:Normal
Library:RavlMath
Example:testSquareIterFill.cc
In Scope:RavlN

Comments:
starting at the centre working outward.

Variables:
IntT state;
State we're in.

IntT end;
End of current side.

Index2dC at;
Current pixel.

Index2dC centre;
Centre of square.

UIntT size;
Current size.

UIntT maxSize;
Maximum size.

Methods:
SquareIterC(UIntT thesize,Index2dC thecentre = Index2dC (0))
Constructor.

void First()
Goto first point on square.

bool IsElm() const
At valid position ?

operator bool() const
Test if we're at a valid point.

const Index2dC & Data() const
Get point.

const Index2dC & operator *() const
Get location of current point.

bool Next()
Goto next point.

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


Maintainer:Charles Galambos, Created: 29/08/2000, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002