|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.ray2.photonmap.PhotonMap
public class PhotonMap
This class provides a photon map. The photon map uses a kd-tree data structure for fast access.
| Constructor Summary | |
|---|---|
PhotonMap(double photonArea)
Creates a new Photon Map. |
|
| Method Summary | |
|---|---|
int |
getEntryCount()
Returns the number of photon map entries. |
void |
insertPhoton(Color3f col,
Point3d pos,
Vector3f dir)
Inserts a new Photon into this map. |
void |
sumPhotons(Point3d point,
Vector3f normal,
Tuple3d color)
Calculates the color for the given point. |
float |
traceRay(Intersection desc,
Tuple3d color)
This is only a debug function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PhotonMap(double photonArea)
photonArea - the scanning area.| Method Detail |
|---|
public int getEntryCount()
public void insertPhoton(Color3f col,
Point3d pos,
Vector3f dir)
col - The Photon color.pos - The Photon position.dir - The Photon impact direction.
public void sumPhotons(Point3d point,
Vector3f normal,
Tuple3d color)
point - the impact point.normal - the impact normal vector.color - output - the calculated color
public float traceRay(Intersection desc,
Tuple3d color)
desc - the intersection descriptioncolor - output - the calculated color
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||