|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.animation.CompactArray<Quaternion>
com.jme3.animation.CompactQuaternionArray
public class CompactQuaternionArray
Serialize and compress Quaternion
[] by indexing same values
It is converted to float[]
Field Summary |
---|
Fields inherited from class com.jme3.animation.CompactArray |
---|
array, index |
Constructor Summary | |
---|---|
CompactQuaternionArray()
creates a compact Quaternion array |
|
CompactQuaternionArray(float[] dataArray,
int[] index)
creates a compact Quaternion array |
Method Summary | |
---|---|
protected Quaternion |
deserialize(int i,
Quaternion store)
deserialize object |
protected java.lang.Class<Quaternion> |
getElementClass()
|
protected int |
getTupleSize()
serialized size of one object element |
void |
read(JmeImporter im)
|
protected void |
serialize(int i,
Quaternion 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 CompactQuaternionArray()
public CompactQuaternionArray(float[] dataArray, int[] index)
dataArray
- the data arrayindex
- the indices arrayMethod Detail |
---|
protected final int getTupleSize()
CompactArray
getTupleSize
in class CompactArray<Quaternion>
protected final java.lang.Class<Quaternion> getElementClass()
getElementClass
in class CompactArray<Quaternion>
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, Quaternion store)
CompactArray
serialize
in class CompactArray<Quaternion>
i
- compacted object indexprotected Quaternion deserialize(int i, Quaternion store)
CompactArray
deserialize
in class CompactArray<Quaternion>
i
- compacted object index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |