public class GlTF extends GlTFProperty
| Constructor and Description |
|---|
GlTF() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAccessors(Accessor element)
Add the given accessors.
|
void |
addAnimations(Animation element)
Add the given animations.
|
void |
addBuffers(Buffer element)
Add the given buffers.
|
void |
addBufferViews(BufferView element)
Add the given bufferViews.
|
void |
addCameras(Camera element)
Add the given cameras.
|
void |
addExtensionsRequired(java.lang.String element)
Add the given extensionsRequired.
|
void |
addExtensionsUsed(java.lang.String element)
Add the given extensionsUsed.
|
void |
addImages(Image element)
Add the given images.
|
void |
addMaterials(Material element)
Add the given materials.
|
void |
addMeshes(Mesh element)
Add the given meshes.
|
void |
addNodes(Node element)
Add the given nodes.
|
void |
addSamplers(Sampler element)
Add the given samplers.
|
void |
addScenes(Scene element)
Add the given scenes.
|
void |
addSkins(Skin element)
Add the given skins.
|
void |
addTextures(Texture element)
Add the given textures.
|
java.util.List<Accessor> |
getAccessors()
An array of accessors.
|
java.util.List<Animation> |
getAnimations()
An array of keyframe animations.
|
Asset |
getAsset()
Metadata about the glTF asset.
|
java.util.List<Buffer> |
getBuffers()
An array of buffers.
|
java.util.List<BufferView> |
getBufferViews()
An array of bufferViews.
|
java.util.List<Camera> |
getCameras()
An array of cameras.
|
java.util.List<java.lang.String> |
getExtensionsRequired()
Names of glTF extensions required to properly load this asset.
|
java.util.List<java.lang.String> |
getExtensionsUsed()
Names of glTF extensions used in this asset.
|
java.util.List<Image> |
getImages()
An array of images.
|
java.util.List<Material> |
getMaterials()
An array of materials.
|
java.util.List<Mesh> |
getMeshes()
An array of meshes.
|
java.util.List<Node> |
getNodes()
An array of nodes.
|
java.util.List<Sampler> |
getSamplers()
An array of samplers.
|
java.lang.Integer |
getScene()
The index of the default scene.
|
java.util.List<Scene> |
getScenes()
An array of scenes.
|
java.util.List<Skin> |
getSkins()
An array of skins.
|
java.util.List<Texture> |
getTextures()
An array of textures.
|
void |
removeAccessors(Accessor element)
Remove the given accessors.
|
void |
removeAnimations(Animation element)
Remove the given animations.
|
void |
removeBuffers(Buffer element)
Remove the given buffers.
|
void |
removeBufferViews(BufferView element)
Remove the given bufferViews.
|
void |
removeCameras(Camera element)
Remove the given cameras.
|
void |
removeExtensionsRequired(java.lang.String element)
Remove the given extensionsRequired.
|
void |
removeExtensionsUsed(java.lang.String element)
Remove the given extensionsUsed.
|
void |
removeImages(Image element)
Remove the given images.
|
void |
removeMaterials(Material element)
Remove the given materials.
|
void |
removeMeshes(Mesh element)
Remove the given meshes.
|
void |
removeNodes(Node element)
Remove the given nodes.
|
void |
removeSamplers(Sampler element)
Remove the given samplers.
|
void |
removeScenes(Scene element)
Remove the given scenes.
|
void |
removeSkins(Skin element)
Remove the given skins.
|
void |
removeTextures(Texture element)
Remove the given textures.
|
void |
setAccessors(java.util.List<Accessor> accessors)
An array of accessors.
|
void |
setAnimations(java.util.List<Animation> animations)
An array of keyframe animations.
|
void |
setAsset(Asset asset)
Metadata about the glTF asset.
|
void |
setBuffers(java.util.List<Buffer> buffers)
An array of buffers.
|
void |
setBufferViews(java.util.List<BufferView> bufferViews)
An array of bufferViews.
|
void |
setCameras(java.util.List<Camera> cameras)
An array of cameras.
|
void |
setExtensionsRequired(java.util.List<java.lang.String> extensionsRequired)
Names of glTF extensions required to properly load this asset.
|
void |
setExtensionsUsed(java.util.List<java.lang.String> extensionsUsed)
Names of glTF extensions used in this asset.
|
void |
setImages(java.util.List<Image> images)
An array of images.
|
void |
setMaterials(java.util.List<Material> materials)
An array of materials.
|
void |
setMeshes(java.util.List<Mesh> meshes)
An array of meshes.
|
void |
setNodes(java.util.List<Node> nodes)
An array of nodes.
|
void |
setSamplers(java.util.List<Sampler> samplers)
An array of samplers.
|
void |
setScene(java.lang.Integer scene)
The index of the default scene.
|
void |
setScenes(java.util.List<Scene> scenes)
An array of scenes.
|
void |
setSkins(java.util.List<Skin> skins)
An array of skins.
|
void |
setTextures(java.util.List<Texture> textures)
An array of textures.
|
addExtensions, getExtensions, getExtras, removeExtensions, setExtensions, setExtraspublic void setExtensionsUsed(java.util.List<java.lang.String> extensionsUsed)
extensionsUsed - The extensionsUsed to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<java.lang.String> getExtensionsUsed()
public void addExtensionsUsed(java.lang.String element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeExtensionsUsed(java.lang.String element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setExtensionsRequired(java.util.List<java.lang.String> extensionsRequired)
extensionsRequired - The extensionsRequired to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<java.lang.String> getExtensionsRequired()
public void addExtensionsRequired(java.lang.String element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeExtensionsRequired(java.lang.String element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setAccessors(java.util.List<Accessor> accessors)
accessors - The accessors to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<Accessor> getAccessors()
public void addAccessors(Accessor element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeAccessors(Accessor element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setAnimations(java.util.List<Animation> animations)
animations - The animations to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<Animation> getAnimations()
public void addAnimations(Animation element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeAnimations(Animation element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setAsset(Asset asset)
asset - The asset to setjava.lang.NullPointerException - If the given value is nullpublic Asset getAsset()
public void setBuffers(java.util.List<Buffer> buffers)
buffers - The buffers to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<Buffer> getBuffers()
public void addBuffers(Buffer element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeBuffers(Buffer element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setBufferViews(java.util.List<BufferView> bufferViews)
bufferViews - The bufferViews to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<BufferView> getBufferViews()
public void addBufferViews(BufferView element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeBufferViews(BufferView element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setCameras(java.util.List<Camera> cameras)
cameras - The cameras to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<Camera> getCameras()
public void addCameras(Camera element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeCameras(Camera element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setImages(java.util.List<Image> images)
images - The images to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<Image> getImages()
public void addImages(Image element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeImages(Image element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setMaterials(java.util.List<Material> materials)
materials - The materials to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<Material> getMaterials()
public void addMaterials(Material element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeMaterials(Material element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setMeshes(java.util.List<Mesh> meshes)
meshes - The meshes to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<Mesh> getMeshes()
public void addMeshes(Mesh element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeMeshes(Mesh element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setNodes(java.util.List<Node> nodes)
nodes - The nodes to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<Node> getNodes()
public void addNodes(Node element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeNodes(Node element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setSamplers(java.util.List<Sampler> samplers)
samplers - The samplers to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<Sampler> getSamplers()
public void addSamplers(Sampler element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeSamplers(Sampler element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setScene(java.lang.Integer scene)
scene - The scene to setpublic java.lang.Integer getScene()
public void setScenes(java.util.List<Scene> scenes)
scenes - The scenes to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<Scene> getScenes()
public void addScenes(Scene element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeScenes(Scene element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setSkins(java.util.List<Skin> skins)
skins - The skins to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<Skin> getSkins()
public void addSkins(Skin element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeSkins(Skin element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setTextures(java.util.List<Texture> textures)
textures - The textures to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<Texture> getTextures()
public void addTextures(Texture element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeTextures(Texture element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullCopyright © 2024. All Rights Reserved.