Bouncy Castle Rendering Toolkit 1.0

org.bouncycastle.graphics.rt.objects
Class Aggregate

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

public class Aggregate
extends Renderable
implements Illuminated

An aggregate object.

Example:

      <Aggregate>
          <Transform>
              <Scale value="0.1, 0.1, 0.1"/>
              <Translate value="-1.5, 1, 0"/>
          </Transform>
          <OffFile geometry="x29.geom" faceColors="x29.ipc"/>
      </Aggregate>
 

Document Type Definition:

     <!ENTITY %Renderable  " Aggregate | Box | Cone | Cylinder | IndexedMesh | Polygon | Sphere | SuperQuadric | Torus | TriangularStrip ">
     <!ENTITY %Light       " DirectionalLight | DistantLight | PointLight ">

     <!ELEMENT Aggregate (Transform | Shader | %Renderable; | %Light;)+ >
 


Fields inherited from class org.bouncycastle.graphics.rt.Renderable
color, objToRay, rayToObj, selfShadowing, shader
 
Constructor Summary
Aggregate()
           
 
Method Summary
 void add(Aggregate list)
           
 void add(Light obj)
           
 void add(Shader obj)
           
 void add(Traceable obj)
           
 BBox bBox()
           
static Aggregate getInstance(RMLReader in)
           
 HitList intersections(Ray r)
           
 boolean isIntersected(Ray r)
           
 boolean isShadowing(Ray r)
           
 LightIterator lights()
           
 int objectCount()
           
 ShaderIterator shaders()
           
 TraceableIterator traceables()
           
 LightDataList visibleLights(Hit hit)
           
 LightDataList visibleLights(Hit hit, Illuminated 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
 

Constructor Detail

Aggregate

public Aggregate()
Method Detail

getInstance

public static Aggregate getInstance(RMLReader in)
                             throws java.io.IOException

add

public void add(Light obj)

add

public void add(Shader obj)

add

public void add(Traceable obj)

add

public void add(Aggregate list)

objectCount

public int objectCount()

bBox

public BBox bBox()

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

visibleLights

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

visibleLights

public LightDataList visibleLights(Hit hit,
                                   Illuminated world)

traceables

public TraceableIterator traceables()

lights

public LightIterator lights()

shaders

public ShaderIterator shaders()

Bouncy Castle Rendering Toolkit 1.0