Package com.jme3.scene.debug
Class SkeletonWire
java.lang.Object
com.jme3.scene.Mesh
com.jme3.scene.debug.SkeletonWire
- All Implemented Interfaces:
- Savable,- JmeCloneable,- Cloneable
The class that displays either wires between the bones' heads if no length data is supplied and
 full bones' shapes otherwise.
- 
Nested Class Summary
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedFor serialization only.SkeletonWire(Skeleton skeleton) Creates a wire with no length data.SkeletonWire(Skeleton skeleton, Map<Integer, Float> boneLengths) Creates a wire with bone lengths data.
- 
Method SummaryModifier and TypeMethodDescriptionvoidread(JmeImporter importer) De-serializes from the specified importer, for example when loading from a J3O file.voidThis method updates the geometry according to the positions of the bones.voidwrite(JmeExporter exporter) Serializes to the specified exporter, for example when saving to a J3O file.Methods inherited from class com.jme3.scene.MeshaddMorphTarget, clearBuffer, clearCollisionData, clone, cloneFields, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getInstanceCount, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getMorphIndex, getMorphTarget, getMorphTargetNames, getMorphTargets, getNumLodLevels, getPatchVertexCount, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, hasMorphTargets, isAnimated, isAnimatedByBone, isAnimatedByJoint, jmeClone, prepareForAnim, removeMorphTarget, removeMorphTarget, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPatchVertexCount, setStatic, setStreamed, updateBound, updateCounts
- 
Constructor Details- 
SkeletonWireCreates a wire with no length data. The wires will be a connection between the bones' heads only.- Parameters:
- skeleton- the skeleton that will be shown
 
- 
SkeletonWireCreates a wire with bone lengths data. If the data is supplied then the wires will show each full bone (from head to tail).- Parameters:
- skeleton- the skeleton that will be shown
- boneLengths- a map between the bone's index and the bone's length
 
- 
SkeletonWireprotected SkeletonWire()For serialization only. Do not use.
 
- 
- 
Method Details- 
updateGeometrypublic void updateGeometry()This method updates the geometry according to the positions of the bones.
- 
readDe-serializes from the specified importer, for example when loading from a J3O file.- Specified by:
- readin interface- Savable
- Overrides:
- readin class- Mesh
- Parameters:
- importer- the importer to use (not null)
- Throws:
- IOException- from the importer
 
- 
writeSerializes to the specified exporter, for example when saving to a J3O file. The current instance is unaffected.- Specified by:
- writein interface- Savable
- Overrides:
- writein class- Mesh
- Parameters:
- exporter- the exporter to use (not null)
- Throws:
- IOException- from the exporter
 
 
-