Class ColladaStorage

java.lang.Object
com.ardor3d.extension.model.collada.jdom.data.ColladaStorage
All Implemented Interfaces:
Savable

public class ColladaStorage extends Object implements Savable
Data storage object meant to hold objects parsed from a Collada file that the user might want to directly access.
  • Constructor Details

    • ColladaStorage

      public ColladaStorage()
  • Method Details

    • setScene

      public void setScene(Node scene)
    • getScene

      public Node getScene()
      Returns:
      a Node representing the parsed "visual scene".
    • getSkins

      public List<SkinData> getSkins()
      Returns:
      a list of data objects representing each skin tag parsed during reading of the visual scene.
    • getAssetData

      public AssetData getAssetData()
    • setAssetData

      public void setAssetData(AssetData assetData)
    • getAnimationChannels

      public List<AbstractAnimationChannel> getAnimationChannels()
    • getAnimationItemRoot

      public AnimationItem getAnimationItemRoot()
      Returns:
      the root of our animation library. We can use this to walk through all animations in the Collada file.
    • setAnimationItemRoot

      public void setAnimationItemRoot(AnimationItem animationItemRoot)
    • extractChannelsAsClip

      public AnimationClip extractChannelsAsClip(String name)
      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

      public Map<MeshData,List<FloatBuffer>> 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

      public void setParsedVertexColors(Map<MeshData,List<FloatBuffer>> parsedVertexColors)
    • getMaterialMap

      public Map<String,MaterialInfo> getMaterialMap()
    • setMaterialMap

      public void setMaterialMap(Map<String,MaterialInfo> materialMap)
    • getMeshMaterialInfo

      public Map<Mesh,String> getMeshMaterialInfo()
    • setMeshMaterialInfo

      public void setMeshMaterialInfo(Map<Mesh,String> meshMaterialInfo)
    • getClassTag

      public Class<?> getClassTag()
      Specified by:
      getClassTag in interface Savable
    • read

      public void read(InputCapsule capsule) throws IOException
      Specified by:
      read in interface Savable
      Throws:
      IOException
    • write

      public void write(OutputCapsule capsule) throws IOException
      Specified by:
      write in interface Savable
      Throws:
      IOException