org.autochthonous.graphics.rt
Class World
java.lang.Object
org.autochthonous.graphics.rt.Renderable
org.autochthonous.graphics.rt.World
- All Implemented Interfaces:
- java.lang.Cloneable, ColorCalculator, Illuminated, Traceable
- public class World
- extends Renderable
- implements Illuminated
Constructor Summary |
World()
|
Methods inherited from class org.autochthonous.graphics.rt.Renderable |
clone, createObjectSpaceRay, getColor, getColor, getShader, hasShader, isSelfShadowing, processObject, processParameters, readObject, setColor, setColor, setSelfShadowing, setShader, toObjectSpace, toObjectSpace, transform, transformNormal |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.autochthonous.graphics.rt.Traceable |
clone |
World
public World()
setObjects
public void setObjects(Illuminated objs)
calculateScreenSize
public float calculateScreenSize(double distance,
BBox bBox)
- return a rough estimate of how big a given object would be
in screen space, given it's bounding box, and how far away
it is from the eyepoint.
getObjects
public Illuminated getObjects()
isShadowing
public boolean isShadowing(Ray r)
- Specified by:
isShadowing
in interface Traceable
- Specified by:
isShadowing
in class Renderable
isIntersected
public boolean isIntersected(Ray r)
- Specified by:
isIntersected
in interface Traceable
- Specified by:
isIntersected
in class Renderable
intersections
public HitList intersections(Ray r)
- Specified by:
intersections
in interface Traceable
visibleLights
public LightDataList visibleLights(Hit hit)
- Specified by:
visibleLights
in interface Illuminated
affectingAtmospheres
public AtmosphereDataList affectingAtmospheres(Hit hit)
- Description copied from interface:
Illuminated
- Return the atmospheres that affect the light coming back
from the hit.
- Specified by:
affectingAtmospheres
in interface Illuminated
- Parameters:
hit
- the hit of interest.
- Returns:
- a list of atmospheres that affect the light coming in.
getBackground
public Background getBackground()