|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectapps.lightrays.raytracer.RayTracerEngine
public class RayTracerEngine
The Class RayTracerEngine.
| Field Summary | |
|---|---|
Camera |
camera
The camera. |
| Constructor Summary | |
|---|---|
RayTracerEngine(java.awt.Dimension image_size)
Instantiates a new ray tracer engine. |
|
RayTracerEngine(java.awt.Dimension image_size,
Scene scene,
Camera camera)
Instantiates a new ray tracer engine. |
|
| Method Summary | |
|---|---|
void |
addConsumer(java.awt.image.ImageConsumer ic)
|
int |
getHeight()
Gets the height. |
double |
getPercentComplete()
Gets the percent complete. |
Pixels |
getPixels()
Gets the pixels. |
int |
getWidth()
Gets the width. |
boolean |
isConsumer(java.awt.image.ImageConsumer ic)
|
boolean |
isFinished()
Checks if is finished. |
void |
removeConsumer(java.awt.image.ImageConsumer ic)
|
void |
requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
|
void |
run()
|
void |
setCamera(Camera camera)
Sets the camera. |
void |
setRayTracerListener(RayTracerListener l)
Sets the ray tracer listener. |
void |
setScene(Scene s)
Sets the scene. |
void |
setSuperSampling(boolean flag)
Sets the super sampling. |
void |
start()
Start. |
void |
startProduction(java.awt.image.ImageConsumer ic)
|
void |
traceLine(int y)
Trace line. |
void |
traceLineSupersampling(int y)
Trace line supersampling. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Camera camera
| Constructor Detail |
|---|
public RayTracerEngine(java.awt.Dimension image_size)
image_size - the image_size
public RayTracerEngine(java.awt.Dimension image_size,
Scene scene,
Camera camera)
image_size - the image_sizescene - the scenecamera - the camera| Method Detail |
|---|
public void addConsumer(java.awt.image.ImageConsumer ic)
addConsumer in interface java.awt.image.ImageProducerpublic int getHeight()
public double getPercentComplete()
public Pixels getPixels()
public int getWidth()
public boolean isConsumer(java.awt.image.ImageConsumer ic)
isConsumer in interface java.awt.image.ImageProducerpublic boolean isFinished()
public void removeConsumer(java.awt.image.ImageConsumer ic)
removeConsumer in interface java.awt.image.ImageProducerpublic void requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
requestTopDownLeftRightResend in interface java.awt.image.ImageProducerpublic void run()
run in interface java.lang.Runnablepublic void setCamera(Camera camera)
camera - the new camerapublic void setRayTracerListener(RayTracerListener l)
l - the new ray tracer listenerpublic void setScene(Scene s)
s - the new scenepublic void setSuperSampling(boolean flag)
flag - the new super samplingpublic void start()
public void startProduction(java.awt.image.ImageConsumer ic)
startProduction in interface java.awt.image.ImageProducerpublic void traceLine(int y)
y - the ypublic void traceLineSupersampling(int y)
y - the y
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||