XJRT Rendering Toolkit 1.0b06

org.autochthonous.graphics.rt.objects
Class Cylinder

java.lang.Object
  extended byorg.autochthonous.graphics.rt.Renderable
      extended byorg.autochthonous.graphics.rt.Bounded
          extended byorg.autochthonous.graphics.rt.objects.SimpleObject
              extended byorg.autochthonous.graphics.rt.objects.Cylinder
All Implemented Interfaces:
java.lang.Cloneable, ColorCalculator, Partitionable, Traceable

public class Cylinder
extends SimpleObject

a cylinder. In canonical form a cylinder of unit radius, one end at the origin the other at (0, 0, 1).

Example:

    <Cylinder top="0, 1, 0" base="0, 0, 0" radius="1"/>
 

Document Type Definition:

     <!ENTITY %Color3f "CDATA">
     <!ENTITY %Float "CDATA">
     <!ENTITY %Point3f "CDATA">

     <!ELEMENT Cylinder EMPTY>
     <!ATTLIST Cylinder
         color      %Color3f; "1, 1, 1"
         top        %Point3f; "0, 1, 0"
         base       %Point3f; "0, 0, 0"
         radius     %Float;   "1">
 


Field Summary
static float TOL
           
 
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
Cylinder(Point3d t, Point3d b, double r)
           
Cylinder(Point3f t, Point3f b, double r)
           
 
Method Summary
static Cylinder getInstance(RMLReader in)
           
protected  boolean isObjectIntersected(Ray r)
           
protected  void processParameters(ParametersMap params)
           
 
Methods inherited from class org.autochthonous.graphics.rt.objects.SimpleObject
doClip, intersections, isIntersected, isShadowing
 
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, 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
 

Field Detail

TOL

public static final float TOL
See Also:
Constant Field Values
Constructor Detail

Cylinder

public Cylinder(Point3d t,
                Point3d b,
                double r)

Cylinder

public Cylinder(Point3f t,
                Point3f b,
                double r)
Method Detail

getInstance

public static Cylinder getInstance(RMLReader in)
                            throws java.io.IOException
Throws:
java.io.IOException

processParameters

protected void processParameters(ParametersMap params)
Overrides:
processParameters in class Renderable

isObjectIntersected

protected boolean isObjectIntersected(Ray r)
Specified by:
isObjectIntersected in class SimpleObject

XJRT Rendering Toolkit 1.0b06