org.jmol.util

Class TempArray

public class TempArray extends Object

Field Summary
byte[][]freeBytes
static intfreeBytesSize
Point3f[][]freePoints
static intfreePointsSize
Point3i[][]freeScreens
static intfreeScreensSize
int[]lengthsFreeBytes
int[]lengthsFreePoints
int[]lengthsFreeScreens
Constructor Summary
TempArray()
Method Summary
byte[]allocTempBytes(int size)
Point3f[]allocTempPoints(int size)
Point3i[]allocTempScreens(int size)
voidclear()
voidclearTempPoints()
voidclearTempScreens()
static intfindBestFit(int size, int[] lengths)
static intfindShorter(int size, int[] lengths)
voidfreeTempBytes(byte[] tempBytes)
voidfreeTempPoints(Point3f[] tempPoints)
voidfreeTempScreens(Point3i[] tempScreens)

Field Detail

freeBytes

private final byte[][] freeBytes

freeBytesSize

private static final int freeBytesSize

freePoints

private final Point3f[][] freePoints

freePointsSize

private static final int freePointsSize

freeScreens

private final Point3i[][] freeScreens

freeScreensSize

private static final int freeScreensSize

lengthsFreeBytes

private final int[] lengthsFreeBytes

lengthsFreePoints

private final int[] lengthsFreePoints

lengthsFreeScreens

private final int[] lengthsFreeScreens

Constructor Detail

TempArray

public TempArray()

Method Detail

allocTempBytes

public byte[] allocTempBytes(int size)

allocTempPoints

public Point3f[] allocTempPoints(int size)

allocTempScreens

public Point3i[] allocTempScreens(int size)

clear

public void clear()

clearTempPoints

private void clearTempPoints()

clearTempScreens

private void clearTempScreens()

findBestFit

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

findShorter

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

freeTempBytes

public void freeTempBytes(byte[] tempBytes)

freeTempPoints

public void freeTempPoints(Point3f[] tempPoints)

freeTempScreens

public void freeTempScreens(Point3i[] tempScreens)