Class ColladaStorage
java.lang.Object
com.ardor3d.extension.model.collada.jdom.data.ColladaStorage
- All Implemented Interfaces:
Savable
Data storage object meant to hold objects parsed from a Collada file that the user might want to directly access.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractChannelsAsClip
(String name) Extract all animation channels in the Collada file as a single, unified AnimationClip.Class
<?> getScene()
getSkins()
void
read
(InputCapsule capsule) void
setAnimationItemRoot
(AnimationItem animationItemRoot) void
setAssetData
(AssetData assetData) void
setMaterialMap
(Map<String, MaterialInfo> materialMap) void
setMeshMaterialInfo
(Map<Mesh, String> meshMaterialInfo) void
setParsedVertexColors
(Map<MeshData, List<FloatBuffer>> parsedVertexColors) void
void
write
(OutputCapsule capsule)
-
Constructor Details
-
ColladaStorage
public ColladaStorage()
-
-
Method Details
-
setScene
-
getScene
- Returns:
- a Node representing the parsed "visual scene".
-
getSkins
- Returns:
- a list of data objects representing each skin tag parsed during reading of the visual scene.
-
getAssetData
-
setAssetData
-
getAnimationChannels
-
getAnimationItemRoot
- Returns:
- the root of our animation library. We can use this to walk through all animations in the Collada file.
-
setAnimationItemRoot
-
extractChannelsAsClip
Extract all animation channels in the Collada file as a single, unified AnimationClip.- Parameters:
name
- the name to give our new clip.- Returns:
- the new AnimationClip.
-
getParsedVertexColors
- Returns:
- a transient Map of MeshData → List of parsed vertex colors. Only MeshData objects that had multiple vertex colors parsed will show up in this map.
-
setParsedVertexColors
-
getMaterialMap
-
setMaterialMap
-
getMeshMaterialInfo
-
setMeshMaterialInfo
-
getClassTag
- Specified by:
getClassTag
in interfaceSavable
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-