Package com.jme3.animation
Class CompactVector3Array
- All Implemented Interfaces:
- Savable,- JmeCloneable,- Cloneable
Serialize and compress Vector3f[] by indexing same values
- 
Field SummaryFields inherited from class com.jme3.animation.CompactArrayarray, index, indexPool
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a compact vector arrayCompactVector3Array(float[] dataArray, int[] index) creates a compact vector array
- 
Method SummaryModifier and TypeMethodDescriptionprotected Vector3fdeserialize(int i, Vector3f store) deserialize objectprotected final intserialized size of one object elementvoidread(JmeImporter im) protected voidserialize 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- 
CompactVector3Arraypublic CompactVector3Array()Creates a compact vector array
- 
CompactVector3Arraypublic CompactVector3Array(float[] dataArray, int[] index) creates a compact vector array- Parameters:
- dataArray- the data array
- index- the indices
 
 
- 
- 
Method Details- 
getTupleSizeprotected final int getTupleSize()Description copied from class:CompactArrayserialized size of one object element- Specified by:
- getTupleSizein class- CompactArray<Vector3f>
- Returns:
- the number of primitive components (floats) per object
 
- 
getElementClass- Specified by:
- getElementClassin class- CompactArray<Vector3f>
 
- 
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<Vector3f>
- 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<Vector3f>
- Parameters:
- i- compacted object index
- store- storage for the result
- Returns:
- the deserialized value
 
 
-