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
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 |
bBox
protected BBox bBox
Bounded
public Bounded()
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