Package com.jme3.scene.plugins.gltf
Class UserDataLoader
java.lang.Object
com.jme3.scene.plugins.gltf.UserDataLoader
- All Implemented Interfaces:
 ExtrasLoader
Import user data from glTF extras.
 
      Derived from Simsilica JmeConvert
      (https://github.com/Simsilica/JmeConvert/blob/master/src/main/java/com/simsilica/jmec/gltf/GltfExtrasLoader.java)
      by Paul Speed (Copyright (c) 2019, Simsilica, LLC)
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidapplyToArray(Object array, com.google.gson.JsonObject extras) protected voidapplyToSpatial(Spatial spatial, com.google.gson.JsonObject extras) handleExtras(GltfLoader loader, String parentName, com.google.gson.JsonElement parent, com.google.gson.JsonElement extras, Object input) Handles a glTF extra.protected ObjecttoAttribute(com.google.gson.JsonArray ja, boolean nested) protected ObjecttoAttribute(com.google.gson.JsonElement el, boolean nested) protected ObjecttoAttribute(com.google.gson.JsonObject jo, boolean nested) protected ObjecttoAttribute(com.google.gson.JsonPrimitive jp, boolean nested)  
- 
Constructor Details
- 
UserDataLoader
public UserDataLoader() 
 - 
 - 
Method Details
- 
handleExtras
public Object handleExtras(GltfLoader loader, String parentName, com.google.gson.JsonElement parent, com.google.gson.JsonElement extras, Object input) Description copied from interface:ExtrasLoaderHandles a glTF extra. This method will be invoked every time an "extras" element is found in the glTF file. The parentName indicates where the "extras" element was found.- Specified by:
 handleExtrasin interfaceExtrasLoader- Parameters:
 loader- the GltfLoader with all the data structuresparentName- the name of the element being readparent- the element being readextras- the content of the extras found in the element being readinput- an object containing already loaded data from the element, this is most probably a JME object- Returns:
 - An object of the same type as input, containing the data from the input object and the eventual additional data read from the extras
 
 - 
apply
 - 
applyToArray
 - 
applyToSpatial
 - 
toAttribute
 - 
toAttribute
 - 
toAttribute
 - 
toAttribute
 
 -