|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRayTracer
public abstract class RayTracer
A class for ray tracing a scene.
Constructor Summary | |
---|---|
RayTracer(Scene scene)
|
Method Summary | |
---|---|
java.awt.image.BufferedImage |
getBufferedImage()
Get the image that is rendered to. |
int |
getPixelsShaded()
Returns the number of pixels shaded. |
float |
getProgress()
Returns the percentage of pixels shaded. |
Scene |
getScene()
Returns the scene data. |
void |
render(IProgressable progressUpdater)
Render the scene, updating after every row of pixels. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RayTracer(Scene scene)
Method Detail |
---|
public void render(IProgressable progressUpdater)
progressUpdater
- The object that will process progress updates.public java.awt.image.BufferedImage getBufferedImage()
public Scene getScene()
public int getPixelsShaded()
public float getProgress()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |