public interface NodeModel extends NamedModelElement
| Modifier and Type | Method and Description |
|---|---|
float[] |
computeGlobalTransform(float[] result)
Computes the global transform of this node.
|
float[] |
computeLocalTransform(float[] result)
Computes the local transform of this node.
|
java.util.function.Supplier<float[]> |
createGlobalTransformSupplier()
Creates a supplier for the global transform matrix of this node
model.
|
java.util.function.Supplier<float[]> |
createLocalTransformSupplier()
Creates a supplier for the local transform matrix of this node model.
|
CameraModel |
getCameraModel()
Returns the
CameraModel for this node, or null if
this node is not associated with a camera |
java.util.List<NodeModel> |
getChildren()
Returns an unmodifiable view on the list of children of this node
|
float[] |
getMatrix()
Returns a reference to the array storing the matrix of this node.
|
java.util.List<MeshModel> |
getMeshModels()
Returns an unmodifiable view on the list of
MeshModel instances
that are attached to this node. |
NodeModel |
getParent()
Returns the parent of this node, or
null if this is
a root node |
float[] |
getRotation()
Returns a reference to the array storing the rotation of this
node, or
null if no rotation was set |
float[] |
getScale()
Returns a reference to the array storing the scale of this
node, or
null if no scale was set |
SkinModel |
getSkinModel()
Returns the
SkinModel for this node, or null if
this node is not associated with a skin |
float[] |
getTranslation()
Returns a reference to the array storing the translation of this
node, or
null if no translation was set. |
float[] |
getWeights()
Returns a reference to the morph target weights,
or
null if no morph target weights have been defined |
void |
setMatrix(float[] matrix)
Set the matrix of this node to be a reference to the given
array.
|
void |
setRotation(float[] rotation)
Set the rotation of this node to be a reference to the given
array.
|
void |
setScale(float[] scale)
Set the scale of this node to be a reference to the given
array.
|
void |
setTranslation(float[] translation)
Set the translation of this node to be a reference to the given
array.
|
void |
setWeights(float[] weights)
Set the morph target weights to be a reference to the given
array.
|
getNamegetExtensions, getExtrasNodeModel getParent()
null if this is
a root nodejava.util.List<NodeModel> getChildren()
java.util.List<MeshModel> getMeshModels()
MeshModel instances
that are attached to this node.MeshModel listSkinModel getSkinModel()
SkinModel for this node, or null if
this node is not associated with a skinSkinModelCameraModel getCameraModel()
CameraModel for this node, or null if
this node is not associated with a cameraCameraModelvoid setMatrix(float[] matrix)
null, then
the translation,
rotation, and
scale properties will be used for determining the
local transform.matrix - The matrixjava.lang.IllegalArgumentException - If the given array does not have
a length of 16float[] getMatrix()
null if no matrix was set.void setTranslation(float[] translation)
translation - The translationjava.lang.IllegalArgumentException - If the given array does not have
a length of 3float[] getTranslation()
null if no translation was set.void setRotation(float[] rotation)
rotation - The rotationjava.lang.IllegalArgumentException - If the given array does not have
a length of 4float[] getRotation()
null if no rotation was setvoid setScale(float[] scale)
scale - The scalejava.lang.IllegalArgumentException - If the given array does not have
a length of 3float[] getScale()
null if no scale was setvoid setWeights(float[] weights)
weights - The weightsfloat[] getWeights()
null if no morph target weights have been definedfloat[] computeLocalTransform(float[] result)
null or does
not have a length of 16, then a new array with length 16 will be
created and returned.result - The result arrayfloat[] computeGlobalTransform(float[] result)
null or does
not have a length of 16, then a new array with length 16 will be
created and returned.result - The result arrayjava.util.function.Supplier<float[]> createGlobalTransformSupplier()
java.util.function.Supplier<float[]> createLocalTransformSupplier()
Copyright © 2022. All Rights Reserved.