org.autochthonous.graphics.rt.objects
Class SimpleObject
java.lang.Object
org.autochthonous.graphics.rt.Renderable
org.autochthonous.graphics.rt.Bounded
org.autochthonous.graphics.rt.objects.SimpleObject
- All Implemented Interfaces:
- java.lang.Cloneable, 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.autochthonous.graphics.rt.Bounded |
bBox |
Methods inherited from class org.autochthonous.graphics.rt.Renderable |
clone, createObjectSpaceRay, getColor, getColor, getShader, hasShader, isSelfShadowing, processObject, processParameters, readObject, setColor, setColor, setSelfShadowing, setShader, toObjectSpace, toObjectSpace, transformNormal |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.autochthonous.graphics.rt.Traceable |
clone |
SimpleObject
public SimpleObject()
isShadowing
public boolean isShadowing(Ray r)
- Specified by:
isShadowing
in interface Traceable
- Specified by:
isShadowing
in class Bounded
intersections
public HitList intersections(Ray r)
isIntersected
public boolean isIntersected(Ray r)
- Specified by:
isIntersected
in interface Traceable
- Specified by:
isIntersected
in class Bounded
doClip
protected float doClip(float t,
Point3f org,
Vector3f dir)
isObjectIntersected
protected abstract boolean isObjectIntersected(Ray r)