Package com.jme3.animation
Class CompactQuaternionArray
- All Implemented Interfaces:
- Savable,- JmeCloneable,- Cloneable
Serialize and compress 
Quaternion[] by indexing same values
 It is converted to float[]- 
Field SummaryFields inherited from class com.jme3.animation.CompactArrayarray, index, indexPool
- 
Constructor SummaryConstructorsConstructorDescriptioncreates a compact Quaternion arrayCompactQuaternionArray(float[] dataArray, int[] index) creates a compact Quaternion array
- 
Method SummaryModifier and TypeMethodDescriptionprotected Quaterniondeserialize(int i, Quaternion store) deserialize objectprotected final Class<Quaternion> protected final intserialized size of one object elementvoidread(JmeImporter im) protected voidserialize(int i, Quaternion store) serialize objectvoidwrite(JmeExporter ex) Methods inherited from class com.jme3.animation.CompactArrayadd, clone, cloneFields, ensureCapacity, freeze, get, getCompactIndex, getCompactObjectSize, getIndex, getSerializedData, getSerializedSize, getTotalObjectSize, jmeClone, serialize, set, setInvalid, toObjectArray
- 
Constructor Details- 
CompactQuaternionArraypublic CompactQuaternionArray()creates a compact Quaternion array
- 
CompactQuaternionArraypublic CompactQuaternionArray(float[] dataArray, int[] index) creates a compact Quaternion array- Parameters:
- dataArray- the data array
- index- the indices array
 
 
- 
- 
Method Details- 
getTupleSizeprotected final int getTupleSize()Description copied from class:CompactArrayserialized size of one object element- Specified by:
- getTupleSizein class- CompactArray<Quaternion>
- Returns:
- the number of primitive components (floats) per object
 
- 
getElementClass- Specified by:
- getElementClassin class- CompactArray<Quaternion>
 
- 
write- Specified by:
- writein interface- Savable
- Throws:
- IOException
 
- 
read- Specified by:
- readin interface- Savable
- Throws:
- IOException
 
- 
serializeDescription copied from class:CompactArrayserialize object- Specified by:
- serializein class- CompactArray<Quaternion>
- Parameters:
- i- compacted object index
- store- the value to be serialized (not null, unaffected)
 
- 
deserializeDescription copied from class:CompactArraydeserialize object- Specified by:
- deserializein class- CompactArray<Quaternion>
- Parameters:
- i- compacted object index
- store- storage for the result
- Returns:
- the deserialized value
 
 
-