XJRT Rendering Toolkit 1.0b06

org.autochthonous.graphics.rt
Class World

java.lang.Object
  extended byorg.autochthonous.graphics.rt.Renderable
      extended byorg.autochthonous.graphics.rt.World
All Implemented Interfaces:
java.lang.Cloneable, ColorCalculator, Illuminated, Traceable

public class World
extends Renderable
implements Illuminated


Field Summary
 
Fields inherited from class org.autochthonous.graphics.rt.Renderable
color, objToRay, rayToObj, selfShadowing, shader
 
Constructor Summary
World()
           
 
Method Summary
 AtmosphereDataList affectingAtmospheres(Hit hit)
          Return the atmospheres that affect the light coming back from the hit.
 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.
 Background getBackground()
           
 Illuminated getObjects()
           
 HitList intersections(Ray r)
           
 boolean isIntersected(Ray r)
           
 boolean isShadowing(Ray r)
           
 void setObjects(Illuminated objs)
           
 LightDataList visibleLights(Hit hit)
           
 
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
 

Constructor Detail

World

public World()
Method Detail

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()

XJRT Rendering Toolkit 1.0b06