RayIterator.H

Classes

RayIterator -- This class is used to iterate thru all rays in a SweepFile (full description)

class RayIterator

Interface

Public Members
inline ~RayIterator()
void First()
void Next()
int IsDone()
RayC & CurrentItem()
Protected Members
RayIterator(SweepFile *theSweep, int numRays)

Description

This class is used to iterate thru all rays in a SweepFile

Synopsis

 rayI->First();
 while (!rayI->IsDone()) {
 	ray = rayI->CurrentItem();
	rayI->Next():
 }

Used by:
Uses:

Member Description

inline ~RayIterator()

Destructor, callable by anyone

void First()

set position to first ray

void Next()

set position to next ray

int IsDone()

return TRUE if done

RayC & CurrentItem()

return the current RayC

RayIterator(SweepFile *theSweep, int numRays)

Only SweepFile is allowed to use this constructor