public class Node extends GlTFChildOfRootProperty
| Constructor and Description |
|---|
Node() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildren(java.lang.String element)
Add the given children.
|
void |
addMeshes(java.lang.String element)
Add the given meshes.
|
void |
addSkeletons(java.lang.String element)
Add the given skeletons.
|
java.util.List<java.lang.String> |
defaultChildren()
Returns the default value of the children
|
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.String |
getCamera()
The ID of the camera referenced by this node.
|
java.util.List<java.lang.String> |
getChildren()
The IDs of this node's children.
|
java.lang.String |
getJointName()
Name used when this node is a joint in a skin.
|
float[] |
getMatrix()
A floating-point 4x4 transformation matrix stored in column-major
order.
|
java.util.List<java.lang.String> |
getMeshes()
The IDs of the meshes 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.
|
java.util.List<java.lang.String> |
getSkeletons()
The ID of skeleton nodes.
|
java.lang.String |
getSkin()
The ID of the skin referenced by this node.
|
float[] |
getTranslation()
The node's translation.
|
void |
removeChildren(java.lang.String element)
Remove the given children.
|
void |
removeMeshes(java.lang.String element)
Remove the given meshes.
|
void |
removeSkeletons(java.lang.String element)
Remove the given skeletons.
|
void |
setCamera(java.lang.String camera)
The ID of the camera referenced by this node.
|
void |
setChildren(java.util.List<java.lang.String> children)
The IDs of this node's children.
|
void |
setJointName(java.lang.String jointName)
Name used when this node is a joint in a skin.
|
void |
setMatrix(float[] matrix)
A floating-point 4x4 transformation matrix stored in column-major
order.
|
void |
setMeshes(java.util.List<java.lang.String> meshes)
The IDs of the meshes 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.
|
void |
setSkeletons(java.util.List<java.lang.String> skeletons)
The ID of skeleton nodes.
|
void |
setSkin(java.lang.String skin)
The ID of the skin referenced by this node.
|
void |
setTranslation(float[] translation)
The node's translation.
|
getName, setNameaddExtensions, getExtensions, getExtras, removeExtensions, setExtensions, setExtraspublic void setCamera(java.lang.String camera)
camera - The camera to setpublic java.lang.String getCamera()
public void setChildren(java.util.List<java.lang.String> children)
children - The children to setpublic java.util.List<java.lang.String> getChildren()
public void addChildren(java.lang.String element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeChildren(java.lang.String element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic java.util.List<java.lang.String> defaultChildren()
getChildren()public void setSkeletons(java.util.List<java.lang.String> skeletons)
skeletons - The skeletons to setpublic java.util.List<java.lang.String> getSkeletons()
public void addSkeletons(java.lang.String element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeSkeletons(java.lang.String element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setSkin(java.lang.String skin)
skin - The skin to setpublic java.lang.String getSkin()
public void setJointName(java.lang.String jointName)
jointName - The jointName to setpublic java.lang.String getJointName()
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 setMeshes(java.util.List<java.lang.String> meshes)
meshes - The meshes to setpublic java.util.List<java.lang.String> getMeshes()
public void addMeshes(java.lang.String element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeMeshes(java.lang.String element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic 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()Copyright © 2024. All Rights Reserved.