public class BoneContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Matrix4f |
BONE_ARMATURE_TRANSFORMATION_MATRIX
The bones' matrices have, unlike objects', the coordinate system identical to JME's (Y axis is UP, X to the right and Z toward us).
|
static int |
CONNECTED_TO_PARENT |
static int |
DEFORM |
static int |
NO_INHERIT_ROTATION |
static int |
NO_INHERIT_SCALE |
static int |
NO_LOCAL_LOCATION |
static int |
SELECTED |
Constructor and Description |
---|
BoneContext(java.lang.Long armatureObjectOMA,
Structure boneStructure,
BlenderContext blenderContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Bone |
buildBone(java.util.List<Bone> bones,
java.lang.Long skeletonOwnerOma,
BlenderContext blenderContext)
This method builds the bone.
|
java.lang.Long |
getArmatureObjectOMA() |
Bone |
getBone() |
BoneEnvelope |
getBoneEnvelope() |
Matrix4f |
getBoneMatrixInModelSpace() |
java.lang.Long |
getBoneOma() |
int |
getDistanceFromRoot() |
float |
getIkStretch() |
float |
getLength()
The method returns the length of the bone.
|
Vector3f |
getLimitMax() |
Vector3f |
getLimitMin() |
BoneContext |
getRoot() |
Skeleton |
getSkeleton() |
java.lang.Long |
getSkeletonOwnerOma() |
Vector3f |
getStiffness() |
boolean |
is(int flagMask)
Tells if the bone is of specified property defined by its flag.
|
boolean |
isLimitX() |
boolean |
isLimitY() |
boolean |
isLimitZ() |
boolean |
isLockX() |
boolean |
isLockY() |
boolean |
isLockZ() |
java.lang.String |
toString() |
public static final int SELECTED
public static final int CONNECTED_TO_PARENT
public static final int DEFORM
public static final int NO_LOCAL_LOCATION
public static final int NO_INHERIT_SCALE
public static final int NO_INHERIT_ROTATION
public static final Matrix4f BONE_ARMATURE_TRANSFORMATION_MATRIX
public BoneContext(java.lang.Long armatureObjectOMA, Structure boneStructure, BlenderContext blenderContext) throws BlenderFileException
armatureObjectOMA
- the OMA of the bone's armature objectboneStructure
- the bone's structureblenderContext
- the blender contextBlenderFileException
- an exception is thrown when problem with blender data reading
occurspublic Bone buildBone(java.util.List<Bone> bones, java.lang.Long skeletonOwnerOma, BlenderContext blenderContext)
bones
- a list of bones where the newly created bone will be addedskeletonOwnerOma
- the spatial of the object that will own the skeletonblenderContext
- the blender contextpublic Bone getBone()
public java.lang.Long getBoneOma()
public float getLength()
public java.lang.Long getArmatureObjectOMA()
public java.lang.Long getSkeletonOwnerOma()
public Skeleton getSkeleton()
public Matrix4f getBoneMatrixInModelSpace()
public BoneEnvelope getBoneEnvelope()
public float getIkStretch()
public boolean isLimitX()
public boolean isLimitY()
public boolean isLimitZ()
public boolean isLockX()
public boolean isLockY()
public boolean isLockZ()
public Vector3f getLimitMin()
public Vector3f getLimitMax()
public Vector3f getStiffness()
public boolean is(int flagMask)
flagMask
- the mask of the flag (constants defined in this class)public BoneContext getRoot()
public int getDistanceFromRoot()
public java.lang.String toString()
toString
in class java.lang.Object