public class GlTF extends GlTFProperty
| Constructor and Description |
|---|
GlTF() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAccessors(java.lang.String key,
Accessor value)
Add the given accessors.
|
void |
addAnimations(java.lang.String key,
Animation value)
Add the given animations.
|
void |
addBuffers(java.lang.String key,
Buffer value)
Add the given buffers.
|
void |
addBufferViews(java.lang.String key,
BufferView value)
Add the given bufferViews.
|
void |
addCameras(java.lang.String key,
Camera value)
Add the given cameras.
|
void |
addExtensionsUsed(java.lang.String element)
Add the given extensionsUsed.
|
void |
addImages(java.lang.String key,
Image value)
Add the given images.
|
void |
addMaterials(java.lang.String key,
Material value)
Add the given materials.
|
void |
addMeshes(java.lang.String key,
Mesh value)
Add the given meshes.
|
void |
addNodes(java.lang.String key,
Node value)
Add the given nodes.
|
void |
addPrograms(java.lang.String key,
Program value)
Add the given programs.
|
void |
addSamplers(java.lang.String key,
Sampler value)
Add the given samplers.
|
void |
addScenes(java.lang.String key,
Scene value)
Add the given scenes.
|
void |
addShaders(java.lang.String key,
Shader value)
Add the given shaders.
|
void |
addSkins(java.lang.String key,
Skin value)
Add the given skins.
|
void |
addTechniques(java.lang.String key,
Technique value)
Add the given techniques.
|
void |
addTextures(java.lang.String key,
Texture value)
Add the given textures.
|
java.util.Map<java.lang.String,Accessor> |
defaultAccessors()
Returns the default value of the accessors
|
java.util.Map<java.lang.String,Animation> |
defaultAnimations()
Returns the default value of the animations
|
Asset |
defaultAsset()
Returns the default value of the asset
|
java.util.Map<java.lang.String,Buffer> |
defaultBuffers()
Returns the default value of the buffers
|
java.util.Map<java.lang.String,BufferView> |
defaultBufferViews()
Returns the default value of the bufferViews
|
java.util.Map<java.lang.String,Camera> |
defaultCameras()
Returns the default value of the cameras
|
java.util.List<java.lang.String> |
defaultExtensionsUsed()
Returns the default value of the extensionsUsed
|
java.util.Map<java.lang.String,Image> |
defaultImages()
Returns the default value of the images
|
java.util.Map<java.lang.String,Material> |
defaultMaterials()
Returns the default value of the materials
|
java.util.Map<java.lang.String,Mesh> |
defaultMeshes()
Returns the default value of the meshes
|
java.util.Map<java.lang.String,Node> |
defaultNodes()
Returns the default value of the nodes
|
java.util.Map<java.lang.String,Program> |
defaultPrograms()
Returns the default value of the programs
|
java.util.Map<java.lang.String,Sampler> |
defaultSamplers()
Returns the default value of the samplers
|
java.util.Map<java.lang.String,Scene> |
defaultScenes()
Returns the default value of the scenes
|
java.util.Map<java.lang.String,Shader> |
defaultShaders()
Returns the default value of the shaders
|
java.util.Map<java.lang.String,Skin> |
defaultSkins()
Returns the default value of the skins
|
java.util.Map<java.lang.String,Technique> |
defaultTechniques()
Returns the default value of the techniques
|
java.util.Map<java.lang.String,Texture> |
defaultTextures()
Returns the default value of the textures
|
java.util.Map<java.lang.String,Accessor> |
getAccessors()
A dictionary object of accessors.
|
java.util.Map<java.lang.String,Animation> |
getAnimations()
A dictionary object of keyframe animations.
|
Asset |
getAsset()
Metadata about the glTF asset.
|
java.util.Map<java.lang.String,Buffer> |
getBuffers()
A dictionary object of buffers.
|
java.util.Map<java.lang.String,BufferView> |
getBufferViews()
A dictionary object of bufferViews.
|
java.util.Map<java.lang.String,Camera> |
getCameras()
A dictionary object of cameras.
|
java.util.List<java.lang.String> |
getExtensionsUsed()
Names of extensions used somewhere in this asset.
|
java.util.Map<java.lang.String,Image> |
getImages()
A dictionary object of images.
|
java.util.Map<java.lang.String,Material> |
getMaterials()
A dictionary object of materials.
|
java.util.Map<java.lang.String,Mesh> |
getMeshes()
A dictionary object of meshes.
|
java.util.Map<java.lang.String,Node> |
getNodes()
A dictionary object of nodes.
|
java.util.Map<java.lang.String,Program> |
getPrograms()
A dictionary object of programs.
|
java.util.Map<java.lang.String,Sampler> |
getSamplers()
A dictionary object of samplers.
|
java.lang.String |
getScene()
The ID of the default scene.
|
java.util.Map<java.lang.String,Scene> |
getScenes()
A dictionary object of scenes.
|
java.util.Map<java.lang.String,Shader> |
getShaders()
A dictionary object of shaders.
|
java.util.Map<java.lang.String,Skin> |
getSkins()
A dictionary object of skins.
|
java.util.Map<java.lang.String,Technique> |
getTechniques()
A dictionary object of techniques.
|
java.util.Map<java.lang.String,Texture> |
getTextures()
A dictionary object of textures.
|
void |
removeAccessors(java.lang.String key)
Remove the given accessors.
|
void |
removeAnimations(java.lang.String key)
Remove the given animations.
|
void |
removeBuffers(java.lang.String key)
Remove the given buffers.
|
void |
removeBufferViews(java.lang.String key)
Remove the given bufferViews.
|
void |
removeCameras(java.lang.String key)
Remove the given cameras.
|
void |
removeExtensionsUsed(java.lang.String element)
Remove the given extensionsUsed.
|
void |
removeImages(java.lang.String key)
Remove the given images.
|
void |
removeMaterials(java.lang.String key)
Remove the given materials.
|
void |
removeMeshes(java.lang.String key)
Remove the given meshes.
|
void |
removeNodes(java.lang.String key)
Remove the given nodes.
|
void |
removePrograms(java.lang.String key)
Remove the given programs.
|
void |
removeSamplers(java.lang.String key)
Remove the given samplers.
|
void |
removeScenes(java.lang.String key)
Remove the given scenes.
|
void |
removeShaders(java.lang.String key)
Remove the given shaders.
|
void |
removeSkins(java.lang.String key)
Remove the given skins.
|
void |
removeTechniques(java.lang.String key)
Remove the given techniques.
|
void |
removeTextures(java.lang.String key)
Remove the given textures.
|
void |
setAccessors(java.util.Map<java.lang.String,Accessor> accessors)
A dictionary object of accessors.
|
void |
setAnimations(java.util.Map<java.lang.String,Animation> animations)
A dictionary object of keyframe animations.
|
void |
setAsset(Asset asset)
Metadata about the glTF asset.
|
void |
setBuffers(java.util.Map<java.lang.String,Buffer> buffers)
A dictionary object of buffers.
|
void |
setBufferViews(java.util.Map<java.lang.String,BufferView> bufferViews)
A dictionary object of bufferViews.
|
void |
setCameras(java.util.Map<java.lang.String,Camera> cameras)
A dictionary object of cameras.
|
void |
setExtensionsUsed(java.util.List<java.lang.String> extensionsUsed)
Names of extensions used somewhere in this asset.
|
void |
setImages(java.util.Map<java.lang.String,Image> images)
A dictionary object of images.
|
void |
setMaterials(java.util.Map<java.lang.String,Material> materials)
A dictionary object of materials.
|
void |
setMeshes(java.util.Map<java.lang.String,Mesh> meshes)
A dictionary object of meshes.
|
void |
setNodes(java.util.Map<java.lang.String,Node> nodes)
A dictionary object of nodes.
|
void |
setPrograms(java.util.Map<java.lang.String,Program> programs)
A dictionary object of programs.
|
void |
setSamplers(java.util.Map<java.lang.String,Sampler> samplers)
A dictionary object of samplers.
|
void |
setScene(java.lang.String scene)
The ID of the default scene.
|
void |
setScenes(java.util.Map<java.lang.String,Scene> scenes)
A dictionary object of scenes.
|
void |
setShaders(java.util.Map<java.lang.String,Shader> shaders)
A dictionary object of shaders.
|
void |
setSkins(java.util.Map<java.lang.String,Skin> skins)
A dictionary object of skins.
|
void |
setTechniques(java.util.Map<java.lang.String,Technique> techniques)
A dictionary object of techniques.
|
void |
setTextures(java.util.Map<java.lang.String,Texture> textures)
A dictionary object of textures.
|
addExtensions, getExtensions, getExtras, removeExtensions, setExtensions, setExtraspublic void setExtensionsUsed(java.util.List<java.lang.String> extensionsUsed)
extensionsUsed - The extensionsUsed to setpublic 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 java.util.List<java.lang.String> defaultExtensionsUsed()
getExtensionsUsed()public void setAccessors(java.util.Map<java.lang.String,Accessor> accessors)
accessors - The accessors to setpublic java.util.Map<java.lang.String,Accessor> getAccessors()
public void addAccessors(java.lang.String key,
Accessor value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeAccessors(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Accessor> defaultAccessors()
getAccessors()public void setAnimations(java.util.Map<java.lang.String,Animation> animations)
animations - The animations to setpublic java.util.Map<java.lang.String,Animation> getAnimations()
public void addAnimations(java.lang.String key,
Animation value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeAnimations(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Animation> defaultAnimations()
getAnimations()public void setAsset(Asset asset)
asset - The asset to setpublic Asset getAsset()
public Asset defaultAsset()
getAsset()public void setBuffers(java.util.Map<java.lang.String,Buffer> buffers)
buffers - The buffers to setpublic java.util.Map<java.lang.String,Buffer> getBuffers()
public void addBuffers(java.lang.String key,
Buffer value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeBuffers(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Buffer> defaultBuffers()
getBuffers()public void setBufferViews(java.util.Map<java.lang.String,BufferView> bufferViews)
bufferViews - The bufferViews to setpublic java.util.Map<java.lang.String,BufferView> getBufferViews()
public void addBufferViews(java.lang.String key,
BufferView value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeBufferViews(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,BufferView> defaultBufferViews()
getBufferViews()public void setCameras(java.util.Map<java.lang.String,Camera> cameras)
cameras - The cameras to setpublic java.util.Map<java.lang.String,Camera> getCameras()
public void addCameras(java.lang.String key,
Camera value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeCameras(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Camera> defaultCameras()
getCameras()public void setImages(java.util.Map<java.lang.String,Image> images)
images - The images to setpublic java.util.Map<java.lang.String,Image> getImages()
public void addImages(java.lang.String key,
Image value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeImages(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Image> defaultImages()
getImages()public void setMaterials(java.util.Map<java.lang.String,Material> materials)
materials - The materials to setpublic java.util.Map<java.lang.String,Material> getMaterials()
public void addMaterials(java.lang.String key,
Material value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeMaterials(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Material> defaultMaterials()
getMaterials()public void setMeshes(java.util.Map<java.lang.String,Mesh> meshes)
meshes - The meshes to setpublic java.util.Map<java.lang.String,Mesh> getMeshes()
public void addMeshes(java.lang.String key,
Mesh value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeMeshes(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Mesh> defaultMeshes()
getMeshes()public void setNodes(java.util.Map<java.lang.String,Node> nodes)
nodes - The nodes to setpublic java.util.Map<java.lang.String,Node> getNodes()
public void addNodes(java.lang.String key,
Node value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeNodes(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Node> defaultNodes()
getNodes()public void setPrograms(java.util.Map<java.lang.String,Program> programs)
programs - The programs to setpublic java.util.Map<java.lang.String,Program> getPrograms()
public void addPrograms(java.lang.String key,
Program value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removePrograms(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Program> defaultPrograms()
getPrograms()public void setSamplers(java.util.Map<java.lang.String,Sampler> samplers)
samplers - The samplers to setpublic java.util.Map<java.lang.String,Sampler> getSamplers()
public void addSamplers(java.lang.String key,
Sampler value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeSamplers(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Sampler> defaultSamplers()
getSamplers()public void setScene(java.lang.String scene)
scene - The scene to setpublic java.lang.String getScene()
public void setScenes(java.util.Map<java.lang.String,Scene> scenes)
scenes - The scenes to setpublic java.util.Map<java.lang.String,Scene> getScenes()
public void addScenes(java.lang.String key,
Scene value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeScenes(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Scene> defaultScenes()
getScenes()public void setShaders(java.util.Map<java.lang.String,Shader> shaders)
shaders - The shaders to setpublic java.util.Map<java.lang.String,Shader> getShaders()
public void addShaders(java.lang.String key,
Shader value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeShaders(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Shader> defaultShaders()
getShaders()public void setSkins(java.util.Map<java.lang.String,Skin> skins)
skins - The skins to setpublic java.util.Map<java.lang.String,Skin> getSkins()
public void addSkins(java.lang.String key,
Skin value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeSkins(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Skin> defaultSkins()
getSkins()public void setTechniques(java.util.Map<java.lang.String,Technique> techniques)
techniques - The techniques to setpublic java.util.Map<java.lang.String,Technique> getTechniques()
public void addTechniques(java.lang.String key,
Technique value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeTechniques(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Technique> defaultTechniques()
getTechniques()public void setTextures(java.util.Map<java.lang.String,Texture> textures)
textures - The textures to setpublic java.util.Map<java.lang.String,Texture> getTextures()
public void addTextures(java.lang.String key,
Texture value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeTextures(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,Texture> defaultTextures()
getTextures()Copyright © 2024. All Rights Reserved.