Bouncy Castle Rendering Toolkit 1.0

org.bouncycastle.graphics.rt.objects
Class SimpleObject

java.lang.Object
  |
  +--org.bouncycastle.graphics.rt.Renderable
        |
        +--org.bouncycastle.graphics.rt.Bounded
              |
              +--org.bouncycastle.graphics.rt.objects.SimpleObject
All Implemented Interfaces:
ColorCalculator, Partitionable, Traceable
Direct Known Subclasses:
Box, Cone, Cylinder, Sphere, SuperQuadric

public abstract class SimpleObject
extends Bounded

foundation class for the basic solids.


Fields inherited from class org.bouncycastle.graphics.rt.Bounded
bBox
 
Fields inherited from class org.bouncycastle.graphics.rt.Renderable
color, objToRay, rayToObj, selfShadowing, shader
 
Constructor Summary
SimpleObject()
           
 
Method Summary
protected  float doClip(float t, Point3f org, Vector3f dir)
           
 HitList intersections(Ray r)
           
 boolean isIntersected(Ray r)
           
protected abstract  boolean isObjectIntersected(Ray r)
           
 boolean isShadowing(Ray r)
           
 
Methods inherited from class org.bouncycastle.graphics.rt.Bounded
bBox, setBBox, setBBox, transform
 
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
 

Constructor Detail

SimpleObject

public SimpleObject()
Method Detail

isShadowing

public boolean isShadowing(Ray r)
Overrides:
isShadowing in class Bounded

intersections

public HitList intersections(Ray r)

isIntersected

public boolean isIntersected(Ray r)
Overrides:
isIntersected in class Bounded

doClip

protected float doClip(float t,
                       Point3f org,
                       Vector3f dir)

isObjectIntersected

protected abstract boolean isObjectIntersected(Ray r)

Bouncy Castle Rendering Toolkit 1.0