gpuCache/gpuCacheSpatialGridWalker.h
#ifndef __SpatialGridWalker_h
#define __SpatialGridWalker_h
class SpatialGrid;
class SpatialGridWalker {
public:
SpatialGridWalker(
const MPoint& origin,
SpatialGrid *grid );
gridPoint3<int> gridLocation();
float curVoxelStartRayParam();
float curVoxelEndRayParam();
void next();
bool isDone();
private:
SpatialGrid * fVoxelGrid;
gridPoint3<int> fCurVoxelCoords;
gridPoint3<float> fCurDistances;
int fNextAxis;
float fCurVoxelStartRayParam;
float fCurVoxelEndRayParam;
bool fDone;
};
#endif