XJRT Rendering Toolkit 1.0b06

org.autochthonous.graphics.rt.objects
Class SimpleObject

java.lang.Object
  extended byorg.autochthonous.graphics.rt.Renderable
      extended byorg.autochthonous.graphics.rt.Bounded
          extended byorg.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.


Field Summary
 
Fields inherited from class org.autochthonous.graphics.rt.Bounded
bBox
 
Fields inherited from class org.autochthonous.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.autochthonous.graphics.rt.Bounded
bBox, setBBox, setBBox, transform
 
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
 

Constructor Detail

SimpleObject

public SimpleObject()
Method Detail

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)

XJRT Rendering Toolkit 1.0b06