Bouncy Castle Rendering Toolkit 1.0

org.bouncycastle.graphics.rt
Class HitList

java.lang.Object
  |
  +--org.bouncycastle.graphics.rt.HitList

public class HitList
extends java.lang.Object


Method Summary
 void add(Hit newData)
           
 void add(Ray r, Renderable obj, float t, ColorCalculator colorCalc, NormalCalculator normCalc, TextureMapper stMapper, Shader shader)
           
 void dispose()
           
static HitList getInstance()
           
 Hit head()
          return the first hit in the hit list
 HitList intersect(HitList list)
          change this list of hits so that it represents the INTERSECTION of the surfaces represented by this list and the argument list returning the list if there is a result, null otherwise.
 HitIterator iterator()
           
 void merge(HitList list)
          merge the passed in list with the current one.
 int size()
           
 HitList subtract(HitList list)
          change this list of hits so that it represents the SUBTRACTION of the surfaces represented by this list and the argument list returning the list if there is a result, null otherwise.
 HitList union(HitList list)
          change this list of hits so that it represents the UNION of the surfaces represented by this list and the argument list returning the list if there is a result, null otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static HitList getInstance()

dispose

public void dispose()

add

public void add(Hit newData)

add

public void add(Ray r,
                Renderable obj,
                float t,
                ColorCalculator colorCalc,
                NormalCalculator normCalc,
                TextureMapper stMapper,
                Shader shader)

size

public int size()

merge

public void merge(HitList list)
merge the passed in list with the current one.

The passed in list is disposed of at the end of the operation


union

public HitList union(HitList list)
change this list of hits so that it represents the UNION of the surfaces represented by this list and the argument list returning the list if there is a result, null otherwise.

The argument list is disposed of at the end of the operation, as the current list if the union operation results in a null set.


intersect

public HitList intersect(HitList list)
change this list of hits so that it represents the INTERSECTION of the surfaces represented by this list and the argument list returning the list if there is a result, null otherwise.

The argument list is disposed of at the end of the operation, as the current list if the union operation results in a null set.


subtract

public HitList subtract(HitList list)
change this list of hits so that it represents the SUBTRACTION of the surfaces represented by this list and the argument list returning the list if there is a result, null otherwise.

The argument list is disposed of at the end of the operation, as the current list if the union operation results in a null set.


head

public Hit head()
return the first hit in the hit list

iterator

public HitIterator iterator()

Bouncy Castle Rendering Toolkit 1.0