org.xith3d.render.preprocessing
Class RenderBin.DynamicAtomArray

java.lang.Object
  extended by org.xith3d.render.preprocessing.RenderBin.DynamicAtomArray
Enclosing class:
RenderBin

public static final class RenderBin.DynamicAtomArray
extends java.lang.Object


Constructor Summary
RenderBin.DynamicAtomArray(int initialCapacity)
           
 
Method Summary
 RenderAtom<?> append(RenderAtom<?> atom)
          Appends the specified element to the array and increases the size indicator.
 void cleanUp()
          Ensures that all atoms ever been in the render bin are freed for garbage collection
 void clear()
          Clears the array by resetting the size indicator to "0".
 RenderAtom<?> get(int index)
           
 RenderAtom<?>[] getRawArray()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderBin.DynamicAtomArray

public RenderBin.DynamicAtomArray(int initialCapacity)
Method Detail

getRawArray

public final RenderAtom<?>[] getRawArray()

size

public final int size()
Returns:
the actual current size of the dynamic array

clear

public final void clear()
Clears the array by resetting the size indicator to "0".


cleanUp

public final void cleanUp()
Ensures that all atoms ever been in the render bin are freed for garbage collection


append

public final RenderAtom<?> append(RenderAtom<?> atom)
Appends the specified element to the array and increases the size indicator.

Returns:
the same given element back again (convenience)

get

public final RenderAtom<?> get(int index)
Parameters:
index -
Returns:
the element at the specified index.