Bouncy Castle Rendering Toolkit 1.0

org.bouncycastle.graphics.rt.objects
Class BvTree

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

public class BvTree
extends Renderable
implements Illuminated

A BvTree.

We use this as it guarantees that an object will only be tested once per ray, without the need for mail boxes and the like. It's other advantage is, because it does a 3 way split at each level, it doesn't result in duplicated objects.


Fields inherited from class org.bouncycastle.graphics.rt.Renderable
color, objToRay, rayToObj, selfShadowing, shader
 
Constructor Summary
BvTree()
           
BvTree(Aggregate objs)
           
BvTree(Partitionable[] objs)
           
 
Method Summary
 HitList intersections(Ray r)
           
 boolean isIntersected(Ray r)
           
 boolean isShadowing(Ray r)
           
 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

BvTree

public BvTree()

BvTree

public BvTree(Aggregate objs)

BvTree

public BvTree(Partitionable[] objs)
Method Detail

visibleLights

public LightDataList visibleLights(Hit hit)
Specified by:
visibleLights in interface Illuminated

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

isShadowing

public boolean isShadowing(Ray r)
Specified by:
isShadowing in interface Traceable
Overrides:
isShadowing in class Renderable

Bouncy Castle Rendering Toolkit 1.0