com.jme3.scene.plugins.blender.animations
Class BoneContext
java.lang.Object
com.jme3.scene.plugins.blender.animations.BoneContext
public class BoneContext
- extends java.lang.Object
This class holds the basic data that describes a bone.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoneContext
public BoneContext(Structure boneStructure,
Matrix4f objectToArmatureMatrix,
java.util.Map<java.lang.Long,Structure> bonesPoseChannels,
BlenderContext blenderContext)
throws BlenderFileException
- Constructor. Creates the basic set of bone's data.
- Parameters:
boneStructure
- the bone's structureobjectToArmatureMatrix
- object-to-armature transformation matrixbonesPoseChannels
- a map of pose channels for each bone OMAblenderContext
- the blender context
- Throws:
BlenderFileException
- an exception is thrown when problem with blender data reading
occurs
buildBone
public Bone buildBone(java.util.List<Bone> bones,
java.util.Map<Bone,java.lang.Long> boneOMAs,
BlenderContext blenderContext)
- This method builds the bone. It recursively builds the bone's children.
- Parameters:
bones
- a list of bones where the newly created bone will be addedboneOMAs
- the map between bone and its old memory addressblenderContext
- the blender context
- Returns:
- newly created bone
getPoseTransform
public Transform getPoseTransform()
- Returns:
- bone's pose transformation
getBone
public Bone getBone()
- Returns:
- built bone (available after calling 'buildBone' method)