Bouncy Castle Rendering Toolkit 1.0

org.bouncycastle.graphics.rt
Class World

java.lang.Object
  |
  +--org.bouncycastle.graphics.rt.Renderable
        |
        +--org.bouncycastle.graphics.rt.World
All Implemented Interfaces:
ColorCalculator, Illuminated, Traceable

public class World
extends Renderable
implements Illuminated


Fields inherited from class org.bouncycastle.graphics.rt.Renderable
color, objToRay, rayToObj, selfShadowing, shader
 
Constructor Summary
World()
           
 
Method Summary
 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.
 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.bouncycastle.graphics.rt.Renderable
createObjectSpaceRay, getColor, getColor, getShader, isSelfShadowing, processObject, processParameters, readObject, setColor, setColor, setSelfShadowing, setShader, toObjectSpace, toObjectSpace, transform, transformNormal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Overrides:
isShadowing in class Renderable

isIntersected

public boolean isIntersected(Ray r)
Specified by:
isIntersected in interface Traceable
Overrides:
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

Bouncy Castle Rendering Toolkit 1.0