Bouncy Castle Rendering Toolkit 1.0

org.bouncycastle.graphics.rt
Class Bounded

java.lang.Object
  |
  +--org.bouncycastle.graphics.rt.Renderable
        |
        +--org.bouncycastle.graphics.rt.Bounded
All Implemented Interfaces:
ColorCalculator, Partitionable, Traceable
Direct Known Subclasses:
Blobby, Csg, IndexedMesh, Patch, Polygon, Ring, SimpleObject, Torus

public abstract class Bounded
extends Renderable
implements Partitionable


Field Summary
protected  BBox bBox
           
 
Fields inherited from class org.bouncycastle.graphics.rt.Renderable
color, objToRay, rayToObj, selfShadowing, shader
 
Constructor Summary
Bounded()
           
 
Method Summary
 BBox bBox()
          return a reference to the current bounding box.
abstract  boolean isIntersected(Ray r)
           
abstract  boolean isShadowing(Ray r)
           
protected  void setBBox(BBox bBox)
           
protected  void setBBox(float x1, float y1, float z1, float x2, float y2, float z2)
           
 void transform(Matrix4f trans)
          apply the given 4x4 transform to the object.
 
Methods inherited from class org.bouncycastle.graphics.rt.Renderable
createObjectSpaceRay, getColor, getColor, getShader, isSelfShadowing, processObject, processParameters, readObject, setColor, setColor, setSelfShadowing, setShader, toObjectSpace, toObjectSpace, transformNormal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bouncycastle.graphics.rt.Traceable
intersections
 

Field Detail

bBox

protected BBox bBox
Constructor Detail

Bounded

public Bounded()
Method Detail

setBBox

protected void setBBox(BBox bBox)

setBBox

protected void setBBox(float x1,
                       float y1,
                       float z1,
                       float x2,
                       float y2,
                       float z2)

bBox

public BBox bBox()
return a reference to the current bounding box.
Specified by:
bBox in interface Partitionable

transform

public void transform(Matrix4f trans)
apply the given 4x4 transform to the object.
Overrides:
transform in class Renderable

isIntersected

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

isShadowing

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

Bouncy Castle Rendering Toolkit 1.0