Package com.jme3.scene.debug
Class SkeletonInterBoneWire
java.lang.Object
com.jme3.scene.Mesh
com.jme3.scene.debug.SkeletonInterBoneWire
- All Implemented Interfaces:
Savable
,JmeCloneable
,Cloneable
A class that displays a dotted line between a bone tail and its children's heads.
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
For serialization only.SkeletonInterBoneWire
(Skeleton skeleton, Map<Integer, Float> boneLengths) Creates buffers for points. -
Method Summary
Modifier and TypeMethodDescriptionvoid
read
(JmeImporter importer) De-serializes from the specified importer, for example when loading from a J3O file.void
This method updates the geometry according to the positions of the bones.void
write
(JmeExporter exporter) Serializes to the specified exporter, for example when saving to a J3O file.Methods inherited from class com.jme3.scene.Mesh
addMorphTarget, 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
-
SkeletonInterBoneWire
Creates buffers for points. Each line has POINT_AMOUNT of points.- Parameters:
skeleton
- the skeleton that will be showedboneLengths
- the lengths of the bones
-
SkeletonInterBoneWire
protected SkeletonInterBoneWire()For serialization only. Do not use.
-
-
Method Details
-
updateGeometry
public void updateGeometry()This method updates the geometry according to the positions of the bones. -
read
De-serializes from the specified importer, for example when loading from a J3O file.- Specified by:
read
in interfaceSavable
- Overrides:
read
in classMesh
- Parameters:
importer
- the importer to use (not null)- Throws:
IOException
- from the importer
-
write
Serializes to the specified exporter, for example when saving to a J3O file. The current instance is unaffected.- Specified by:
write
in interfaceSavable
- Overrides:
write
in classMesh
- Parameters:
exporter
- the exporter to use (not null)- Throws:
IOException
- from the exporter
-