public class CompactVector3Array extends CompactArray<Vector3f> implements Savable
array, index, indexPool
Constructor and Description |
---|
CompactVector3Array()
Creates a compact vector array
|
CompactVector3Array(float[] dataArray,
int[] index)
creates a compact vector array
|
Modifier and Type | Method and Description |
---|---|
protected Vector3f |
deserialize(int i,
Vector3f store)
deserialize object
|
protected java.lang.Class<Vector3f> |
getElementClass() |
protected int |
getTupleSize()
serialized size of one object element
|
void |
read(JmeImporter im) |
protected void |
serialize(int i,
Vector3f store)
serialize object
|
void |
write(JmeExporter ex) |
add, clone, cloneFields, ensureCapacity, freeze, get, getCompactIndex, getCompactObjectSize, getIndex, getSerializedData, getSerializedSize, getTotalObjectSize, jmeClone, serialize, set, setInvalid, toObjectArray
public CompactVector3Array()
public CompactVector3Array(float[] dataArray, int[] index)
dataArray
- the data arrayindex
- the indicesprotected final int getTupleSize()
CompactArray
getTupleSize
in class CompactArray<Vector3f>
protected final java.lang.Class<Vector3f> getElementClass()
getElementClass
in class CompactArray<Vector3f>
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
protected void serialize(int i, Vector3f store)
CompactArray
serialize
in class CompactArray<Vector3f>
i
- compacted object indexstore
- the value to be serialized (not null, unaffected)protected Vector3f deserialize(int i, Vector3f store)
CompactArray
deserialize
in class CompactArray<Vector3f>
i
- compacted object indexstore
- storage for the result