public class Node extends GlTFChildOfRootProperty
| Constructor and Description |
|---|
Node() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildren(java.lang.Integer element)
Add the given children.
|
void |
addWeights(java.lang.Float element)
Add the given weights.
|
float[] |
defaultMatrix()
Returns the default value of the matrix
|
float[] |
defaultRotation()
Returns the default value of the rotation
|
float[] |
defaultScale()
Returns the default value of the scale
|
float[] |
defaultTranslation()
Returns the default value of the translation
|
java.lang.Integer |
getCamera()
The index of the camera referenced by this node.
|
java.util.List<java.lang.Integer> |
getChildren()
The indices of this node's children.
|
float[] |
getMatrix()
A floating-point 4x4 transformation matrix stored in column-major
order.
|
java.lang.Integer |
getMesh()
The index of the mesh in this node.
|
float[] |
getRotation()
The node's unit quaternion rotation in the order (x, y, z, w), where w
is the scalar.
|
float[] |
getScale()
The node's non-uniform scale, given as the scaling factors along the
x, y, and z axes.
|
java.lang.Integer |
getSkin()
The index of the skin referenced by this node.
|
float[] |
getTranslation()
The node's translation along the x, y, and z axes.
|
java.util.List<java.lang.Float> |
getWeights()
The weights of the instantiated morph target.
|
void |
removeChildren(java.lang.Integer element)
Remove the given children.
|
void |
removeWeights(java.lang.Float element)
Remove the given weights.
|
void |
setCamera(java.lang.Integer camera)
The index of the camera referenced by this node.
|
void |
setChildren(java.util.List<java.lang.Integer> children)
The indices of this node's children.
|
void |
setMatrix(float[] matrix)
A floating-point 4x4 transformation matrix stored in column-major
order.
|
void |
setMesh(java.lang.Integer mesh)
The index of the mesh in this node.
|
void |
setRotation(float[] rotation)
The node's unit quaternion rotation in the order (x, y, z, w), where w
is the scalar.
|
void |
setScale(float[] scale)
The node's non-uniform scale, given as the scaling factors along the
x, y, and z axes.
|
void |
setSkin(java.lang.Integer skin)
The index of the skin referenced by this node.
|
void |
setTranslation(float[] translation)
The node's translation along the x, y, and z axes.
|
void |
setWeights(java.util.List<java.lang.Float> weights)
The weights of the instantiated morph target.
|
getName, setNameaddExtensions, getExtensions, getExtras, removeExtensions, setExtensions, setExtraspublic void setCamera(java.lang.Integer camera)
camera - The camera to setpublic java.lang.Integer getCamera()
public void setChildren(java.util.List<java.lang.Integer> children)
children - The children to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<java.lang.Integer> getChildren()
public void addChildren(java.lang.Integer element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeChildren(java.lang.Integer element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setSkin(java.lang.Integer skin)
skin - The skin to setpublic java.lang.Integer getSkin()
public void setMatrix(float[] matrix)
matrix - The matrix to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic float[] getMatrix()
public float[] defaultMatrix()
getMatrix()public void setMesh(java.lang.Integer mesh)
mesh - The mesh to setpublic java.lang.Integer getMesh()
public void setRotation(float[] rotation)
rotation - The rotation to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic float[] getRotation()
public float[] defaultRotation()
getRotation()public void setScale(float[] scale)
scale - The scale to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic float[] getScale()
public float[] defaultScale()
getScale()public void setTranslation(float[] translation)
translation - The translation to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic float[] getTranslation()
public float[] defaultTranslation()
getTranslation()public void setWeights(java.util.List<java.lang.Float> weights)
weights - The weights to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<java.lang.Float> getWeights()
public void addWeights(java.lang.Float element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeWeights(java.lang.Float element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullCopyright © 2024. All Rights Reserved.