public final class DefaultSkinModel extends AbstractNamedModelElement implements SkinModel
SkinModel| Constructor and Description |
|---|
DefaultSkinModel()
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
addJoint(NodeModel joint)
Add the given joint
|
float[] |
getBindShapeMatrix(float[] result)
Provides the bind shape matrix of the skin.
|
AccessorModel |
getInverseBindMatrices()
Returns the
AccessorModel that provides the data for the
inverse bind matrices, one for each joint |
float[] |
getInverseBindMatrix(int index,
float[] result)
Convenience function to obtain the inverse bind matrix for the joint
with the given index.
|
java.util.List<NodeModel> |
getJoints()
Returns an unmodifiable list containing the joint nodes of the skeleton
|
NodeModel |
getSkeleton()
Returns the skeleton root node.
|
void |
setBindShapeMatrix(float[] bindShapeMatrix)
Set the bind shape matrix
|
void |
setInverseBindMatrices(AccessorModel inverseBindMatrices)
Set the inverse bind matrices
|
void |
setSkeleton(NodeModel skeleton)
Set the skeleton root node
|
getName, setNameaddExtension, getExtensions, getExtras, removeExtension, setExtensions, setExtrasclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamegetExtensions, getExtraspublic void setBindShapeMatrix(float[] bindShapeMatrix)
bindShapeMatrix - The bind shape matrix. A copy of this array
will be stored. If it is null, a new array will be
created, which represents the identity matrix.public void addJoint(NodeModel joint)
joint - The jointpublic void setSkeleton(NodeModel skeleton)
skeleton - The skeleton root nodepublic void setInverseBindMatrices(AccessorModel inverseBindMatrices)
inverseBindMatrices - The inverse bind matricespublic float[] getBindShapeMatrix(float[] result)
SkinModelnull or does
not have a length of 16, then a new array with length 16 will be
created and returned.getBindShapeMatrix in interface SkinModelresult - The result arraypublic java.util.List<NodeModel> getJoints()
SkinModelpublic NodeModel getSkeleton()
SkinModelnull,
then joint transforms refer to the scene root.getSkeleton in interface SkinModelpublic AccessorModel getInverseBindMatrices()
SkinModelAccessorModel that provides the data for the
inverse bind matrices, one for each jointgetInverseBindMatrices in interface SkinModelpublic float[] getInverseBindMatrix(int index,
float[] result)
SkinModelnull or does
not have a length of 16, then a new array with length 16 will be
created and returned.getInverseBindMatrix in interface SkinModelindex - The index of the jointresult - The result arrayCopyright © 2022. All Rights Reserved.