Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

UG Class Reference

A UniformGrid. More...

#include <accels/UG.h>

Inheritance diagram for UG:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 UG (Surface **sarray, int count)
bool hit (Ray &r, HitRecord &rec, Context &context) const
bool shadowHit (Ray &r, Context &context) const
BBox boundingBox (double time0, double time1) const
bool overlapsBox (const BBox &box) const

Detailed Description

A UniformGrid.

The UniformGrid can be setup to use either bricked memory or "flat" memory through the UG_FLAT_SPACE define at the top of UG.cc. Different resolution heuristics can be chosen through the CLEARY_HEURISTIC define at the top of UG.cc as well.


Member Function Documentation

bool UG::hit Ray r,
HitRecord rec,
Context context
const [virtual]
 

Intersect given ray with the surface.

Parameters:
[in,out] r Ray to be intersected.
[in,out] rec Struct for passed back shading geometry.
[in,out] context Rendering context.
Returns:
Returns true if a new closest intersection has been found.

Implements Surface.

bool UG::shadowHit Ray r,
Context context
const [virtual]
 

Intersect without visibility ordering or shading geometry.

Parameters:
[in,out] r Ray to be intersected.
[in,out] context Rendering context.
Returns:
Returns true if a valid intersection is found.

Reimplemented from Surface.

BBox UG::boundingBox double  time0,
double  time1
const [inline, virtual]
 

Calculate the bounding box of the surface.

Parameters:
[in] time0 Minimum of time interval being sampled.
[in] time1 Maximum of time interval being sampled.
Returns:
The bounding box of the object in the interval [time0, time1).

Implements Surface.

bool UG::overlapsBox const BBox box  )  const [virtual]
 

Determine if this surface overlaps the input axis aligned box.

Parameters:
[in] box Bounding box to test against.
Returns:
False if the surface definitely does not overlap the box.

Implements Surface.


The documentation for this class was generated from the following files:
Generated on Wed Jul 20 16:15:30 2005 for galileo by  doxygen 1.4.3