|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectraytracer.Scene
public class Scene
Constructor Summary | |
---|---|
Scene()
constructor |
Method Summary | |
---|---|
void |
addLight(ILight light)
add a light to the light list |
void |
addObject(IObject object)
adds a object to the object list and if it is an emitter also to the luminaire list |
void |
addShaderOp(IShaderOp shaderop)
add a shaderop to the shader |
void |
assignCamera(Camera camera)
assigns the camera |
void |
assignRaycaster(Raycaster raycaster)
assigns the raycaster |
IntersectionInfo |
calcIntersection(Ray ray)
calculates the intersection of the scene with a ray |
IntersectionInfo |
calcOptimizedIntersection(Ray ray)
calculates the intersection of the scene with the ray of the camera |
IntersectionInfo |
calcOptimizedShadowIntersection(Ray ray)
calculates the intersection of the scene with the ray of the camera without shading |
IntersectionInfo |
calcShadowIntersection(Ray ray)
calculates the intersection of the scene with a ray, without shading |
void |
clear()
clears the list |
void |
computeDirectLighting(IntersectionInfo intersection,
RayState rs,
IBSDF brdf,
RGBColor amount)
compute the lighting condition at a intersection point |
Camera |
getCamera()
|
Scene |
getCopy()
|
ILight |
getLight(int num)
|
int |
getNumLights()
|
int |
getNumObjects()
|
IObject |
getObject(int num)
|
Raycaster |
getRaycaster()
|
void |
resetObjectList()
clear the object list |
void |
resetShadowObjectList()
clear the shadow object list |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scene()
Method Detail |
---|
public void clear()
public void assignCamera(Camera camera)
camera
- public void assignRaycaster(Raycaster raycaster)
raycaster
- public Raycaster getRaycaster()
public void addObject(IObject object)
object
- public void addLight(ILight light)
light
- public void addShaderOp(IShaderOp shaderop)
shaderop
- public Camera getCamera()
public int getNumObjects()
public int getNumLights()
public IObject getObject(int num)
num
- number
public IntersectionInfo calcIntersection(Ray ray)
ray
-
public IntersectionInfo calcShadowIntersection(Ray ray)
ray
-
public void resetObjectList()
public void resetShadowObjectList()
public IntersectionInfo calcOptimizedIntersection(Ray ray)
ray
-
public IntersectionInfo calcOptimizedShadowIntersection(Ray ray)
ray
-
public ILight getLight(int num)
num
-
public void computeDirectLighting(IntersectionInfo intersection, RayState rs, IBSDF brdf, RGBColor amount)
intersection
- the intersection informationrs
- sate of the raytracerbrdf
- amount
- public Scene getCopy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |