Bouncy Castle Rendering Toolkit 1.0

org.bouncycastle.graphics.rt.objects
Class Ring

java.lang.Object
  |
  +--org.bouncycastle.graphics.rt.Renderable
        |
        +--org.bouncycastle.graphics.rt.Bounded
              |
              +--org.bouncycastle.graphics.rt.objects.Ring
All Implemented Interfaces:
ColorCalculator, NormalCalculator, Partitionable, Traceable
Direct Known Subclasses:
Disk

public class Ring
extends Bounded
implements NormalCalculator

a ring.


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
Ring(double rRing, double rInner)
           
 
Method Summary
 void getN(Hit hit, Vector3f n)
          set the normal for this hit point (object space) in hd the value is returned in n
 HitList intersections(Ray r)
           
 boolean isIntersected(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

Ring

public Ring(double rRing,
            double rInner)
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

getN

public void getN(Hit hit,
                 Vector3f n)
Description copied from interface: NormalCalculator
set the normal for this hit point (object space) in hd the value is returned in n
Specified by:
getN in interface NormalCalculator

Bouncy Castle Rendering Toolkit 1.0