|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.ray2.radiosity.ZBuffer
public class ZBuffer
This class implements a Z-buffer for one side of the hemicube.
Constructor Summary | |
---|---|
ZBuffer(boolean isTop)
Creates a new z-buffer. |
Method Summary | |
---|---|
void |
fillFormFactors(java.util.Map<SubPatch,FormFactor> formFactors,
int side)
Fills the given form factor map with form factors. |
ZPixel |
getZPixel(int x,
int y)
Returns a pixel from this buffer. |
void |
insert(SubPatch p,
SubPatch originalPatch)
Inserts a new patch into the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZBuffer(boolean isTop)
isTop
- true, if this is the top side of a hemicube.Method Detail |
---|
public void fillFormFactors(java.util.Map<SubPatch,FormFactor> formFactors, int side)
formFactors
- the form factor array (in/out parameter)side
- the side of the cube.public ZPixel getZPixel(int x, int y)
x
- the x-coordinate.y
- the y-coordinate.
public void insert(SubPatch p, SubPatch originalPatch)
p
- a rotated patchoriginalPatch
- the unmodified patch
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |