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
Constructor Summary |
World()
|
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 |
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
- 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