Bouncy Castle Rendering Toolkit 1.0

org.bouncycastle.graphics.rt.objects
Class Cone

java.lang.Object
  |
  +--org.bouncycastle.graphics.rt.Renderable
        |
        +--org.bouncycastle.graphics.rt.Bounded
              |
              +--org.bouncycastle.graphics.rt.objects.SimpleObject
                    |
                    +--org.bouncycastle.graphics.rt.objects.Cone
All Implemented Interfaces:
ColorCalculator, Partitionable, Traceable

public class Cone
extends SimpleObject

a cone. Canonical form a cone with the tip at the origin, and its base at (0, 0, 1).

Example:

    <Cone color="1, 1, 1" baseRadius="1" top="0, 0, 0" base="0, 1, 0"/>
 

Document Type Definition:

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

     <!ELEMENT Cone EMPTY>
     <!ATTLIST Cone
         color      %Color3f; "1, 1, 1"
         top        %Point3f; "0, 0, 0"
         topRadius  %Float;   "0"
         base       %Point3f; "0, 1, 0"
         baseRadius %Float;   "1">
 


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
Cone(Point3d p1, double r1, Point3d p2, double r2)
           
Cone(Point3f p1, double r1, Point3f p2, double r2)
           
 
Method Summary
static Cone getInstance(RMLReader in)
           
protected  boolean isObjectIntersected(Ray r)
           
protected  void processParameters(ParametersMap params)
           
 
Methods inherited from class org.bouncycastle.graphics.rt.objects.SimpleObject
doClip, intersections, isIntersected, isShadowing
 
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, 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

Cone

public Cone(Point3d p1,
            double r1,
            Point3d p2,
            double r2)

Cone

public Cone(Point3f p1,
            double r1,
            Point3f p2,
            double r2)
Method Detail

getInstance

public static Cone getInstance(RMLReader in)
                        throws java.io.IOException

processParameters

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

isObjectIntersected

protected boolean isObjectIntersected(Ray r)
Overrides:
isObjectIntersected in class SimpleObject

Bouncy Castle Rendering Toolkit 1.0