org.jmol.util
Class TempArray

java.lang.Object
  extended by org.jmol.util.TempArray

public class TempArray
extends java.lang.Object


Field Summary
private  byte[][] freeBytes
           
private static int freeBytesSize
           
private  javax.vecmath.Point3f[][] freePoints
           
private static int freePointsSize
           
private  javax.vecmath.Point3i[][] freeScreens
           
private static int freeScreensSize
           
private  int[] lengthsFreeBytes
           
private  int[] lengthsFreePoints
           
private  int[] lengthsFreeScreens
           
 
Constructor Summary
TempArray()
           
 
Method Summary
 byte[] allocTempBytes(int size)
           
 javax.vecmath.Point3f[] allocTempPoints(int size)
           
 javax.vecmath.Point3i[] allocTempScreens(int size)
           
 void clear()
           
private  void clearTempPoints()
           
private  void clearTempScreens()
           
private static int findBestFit(int size, int[] lengths)
           
private static int findShorter(int size, int[] lengths)
           
 void freeTempBytes(byte[] tempBytes)
           
 void freeTempPoints(javax.vecmath.Point3f[] tempPoints)
           
 void freeTempScreens(javax.vecmath.Point3i[] tempScreens)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

freePointsSize

private static final int freePointsSize
See Also:
Constant Field Values

lengthsFreePoints

private final int[] lengthsFreePoints

freePoints

private final javax.vecmath.Point3f[][] freePoints

freeScreensSize

private static final int freeScreensSize
See Also:
Constant Field Values

lengthsFreeScreens

private final int[] lengthsFreeScreens

freeScreens

private final javax.vecmath.Point3i[][] freeScreens

freeBytesSize

private static final int freeBytesSize
See Also:
Constant Field Values

lengthsFreeBytes

private final int[] lengthsFreeBytes

freeBytes

private final byte[][] freeBytes
Constructor Detail

TempArray

public TempArray()
Method Detail

clear

public void clear()

findBestFit

private static int findBestFit(int size,
                               int[] lengths)

findShorter

private static int findShorter(int size,
                               int[] lengths)

clearTempPoints

private void clearTempPoints()

allocTempPoints

public javax.vecmath.Point3f[] allocTempPoints(int size)

freeTempPoints

public void freeTempPoints(javax.vecmath.Point3f[] tempPoints)

clearTempScreens

private void clearTempScreens()

allocTempScreens

public javax.vecmath.Point3i[] allocTempScreens(int size)

freeTempScreens

public void freeTempScreens(javax.vecmath.Point3i[] tempScreens)

allocTempBytes

public byte[] allocTempBytes(int size)

freeTempBytes

public void freeTempBytes(byte[] tempBytes)