| Constructor and Description |
|---|
GltfModelV1(GltfAssetV1 gltfAsset)
Creates a new model for the given glTF
|
| Modifier and Type | Method and Description |
|---|---|
AccessorModel |
getAccessorModelById(java.lang.String accessorId)
Returns the
AccessorModel for the Accessor with the
given ID. |
java.util.List<AccessorModel> |
getAccessorModels()
Returns an unmodifiable view on the list of
AccessorModel
instances that have been created for the glTF. |
java.util.List<AnimationModel> |
getAnimationModels()
Returns an unmodifiable view on the list of
AnimationModel
instances that have been created for the glTF. |
BufferModel |
getBufferModelById(java.lang.String bufferId)
Returns the
BufferModel for the Buffer with the given ID. |
java.util.List<BufferModel> |
getBufferModels()
Returns an unmodifiable view on the list of
BufferModel
instances that have been created for the glTF. |
java.util.List<BufferViewModel> |
getBufferViewModels()
Returns an unmodifiable view on the list of
BufferViewModel
instances that have been created for the glTF. |
java.util.List<CameraModel> |
getCameraModels()
Returns an unmodifiable view on the list of
CameraModel
instances that have been created for the glTF. |
GlTF |
getGltf()
Returns the raw glTF object, which is a
version 1.0 glTF. |
ImageModel |
getImageModelById(java.lang.String imageId)
Returns the
ImageModel for the Image with the given ID. |
java.util.List<ImageModel> |
getImageModels()
Returns an unmodifiable view on the list of
ImageModel
instances that have been created for the glTF. |
java.util.List<MaterialModel> |
getMaterialModels()
Returns an unmodifiable view on the list of
MaterialModel
instances that have been created for the glTF. |
java.util.List<NodeModel> |
getNodeModels()
Returns an unmodifiable view on the list of
NodeModel
instances that have been created for the glTF. |
java.util.List<SceneModel> |
getSceneModels()
Returns an unmodifiable view on the list of
SceneModel
instances that have been created for the glTF. |
ShaderModel |
getShaderModelById(java.lang.String shaderId)
Returns the
ShaderModel for the Shader with the given ID. |
java.util.List<ShaderModel> |
getShaderModels()
Returns an unmodifiable view on the list of
ShaderModel
instances that have been created for the glTF. |
TextureModel |
getTextureModelById(java.lang.String textureId)
Returns the
TextureModel for the Texture with the given
ID. |
java.util.List<TextureModel> |
getTextureModels()
Returns an unmodifiable view on the list of
TextureModel
instances that have been created for the glTF. |
public GltfModelV1(GltfAssetV1 gltfAsset)
gltfAsset - The GltfAssetV1public BufferModel getBufferModelById(java.lang.String bufferId)
BufferModel for the Buffer with the given ID.
If the given ID is not valid, then a warning will be printed and
null will be returned.bufferId - The Buffer IDBufferModelpublic ShaderModel getShaderModelById(java.lang.String shaderId)
ShaderModel for the Shader with the given ID.
If the given ID is not valid, then a warning will be printed and
null will be returned.shaderId - The Shader IDShaderModelpublic ImageModel getImageModelById(java.lang.String imageId)
ImageModel for the Image with the given ID.
If the given ID is not valid, then a warning will be printed and
null will be returned.imageId - The Image IDImageModelpublic TextureModel getTextureModelById(java.lang.String textureId)
TextureModel for the Texture with the given
ID. If the given ID is not valid, then a warning will be printed and
null will be returned.textureId - The Texture IDTextureModelpublic AccessorModel getAccessorModelById(java.lang.String accessorId)
AccessorModel for the Accessor with the
given ID.
If the given ID is not valid, then a warning will be printed and
null will be returned.accessorId - The Accessor IDAccessorModelpublic java.util.List<AccessorModel> getAccessorModels()
GltfModelAccessorModel
instances that have been created for the glTF.getAccessorModels in interface GltfModelAccessorModel instancespublic java.util.List<AnimationModel> getAnimationModels()
GltfModelAnimationModel
instances that have been created for the glTF.getAnimationModels in interface GltfModelAnimationModel instancespublic java.util.List<BufferModel> getBufferModels()
GltfModelBufferModel
instances that have been created for the glTF.getBufferModels in interface GltfModelBufferModel instancespublic java.util.List<BufferViewModel> getBufferViewModels()
GltfModelBufferViewModel
instances that have been created for the glTF.getBufferViewModels in interface GltfModelBufferViewModel instancespublic java.util.List<CameraModel> getCameraModels()
GltfModelCameraModel
instances that have been created for the glTF.getCameraModels in interface GltfModelCameraModel instancespublic java.util.List<ImageModel> getImageModels()
GltfModelImageModel
instances that have been created for the glTF.getImageModels in interface GltfModelImageModel instancespublic java.util.List<MaterialModel> getMaterialModels()
GltfModelMaterialModel
instances that have been created for the glTF.getMaterialModels in interface GltfModelMaterialModel instancespublic java.util.List<NodeModel> getNodeModels()
GltfModelNodeModel
instances that have been created for the glTF.getNodeModels in interface GltfModelNodeModel instancespublic java.util.List<SceneModel> getSceneModels()
GltfModelSceneModel
instances that have been created for the glTF.getSceneModels in interface GltfModelSceneModel instancespublic java.util.List<TextureModel> getTextureModels()
GltfModelTextureModel
instances that have been created for the glTF.getTextureModels in interface GltfModelTextureModel instancespublic java.util.List<ShaderModel> getShaderModels()
ShaderModel
instances that have been created for the glTF.ShaderModel instancespublic GlTF getGltf()
version 1.0 glTF.Copyright © 2022. All Rights Reserved.