|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.animation.CompactArray<Vector3f>
com.jme3.animation.CompactVector3Array
public class CompactVector3Array
Serialize and compress Vector3f[] by indexing same values
Field Summary |
---|
Fields inherited from class com.jme3.animation.CompactArray |
---|
array, index |
Constructor Summary | |
---|---|
CompactVector3Array()
Creates a compact vector array |
|
CompactVector3Array(float[] dataArray,
int[] index)
creates a compact vector array |
Method Summary | |
---|---|
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)
|
Methods inherited from class com.jme3.animation.CompactArray |
---|
add, ensureCapacity, freeze, get, getCompactIndex, getCompactObjectSize, getIndex, getSerializedData, getSerializedSize, getTotalObjectSize, serialize, set, toObjectArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompactVector3Array()
public CompactVector3Array(float[] dataArray, int[] index)
dataArray
- the data arrayindex
- the indicesMethod Detail |
---|
protected 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
write
in interface Savable
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
java.io.IOException
protected void serialize(int i, Vector3f store)
CompactArray
serialize
in class CompactArray<Vector3f>
i
- compacted object indexprotected Vector3f deserialize(int i, Vector3f store)
CompactArray
deserialize
in class CompactArray<Vector3f>
i
- compacted object index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |