com.jme3.asset
Class ModelKey

java.lang.Object
  extended by com.jme3.asset.AssetKey<Spatial>
      extended by com.jme3.asset.ModelKey
All Implemented Interfaces:
Savable, java.lang.Cloneable
Direct Known Subclasses:
BlenderKey, OgreMeshKey

public class ModelKey
extends AssetKey<Spatial>

Used to load model files, such as OBJ or Blender models. This uses cloneable smart asset management, so that when all clones of this model become unreachable, the original asset is purged from the cache, allowing textures, materials, shaders, etc referenced by the model to become collected.


Field Summary
 
Fields inherited from class com.jme3.asset.AssetKey
extension, folder, name
 
Constructor Summary
ModelKey()
           
ModelKey(java.lang.String name)
           
 
Method Summary
 java.lang.Class<? extends AssetCache> getCacheType()
           
 java.lang.Class<? extends AssetProcessor> getProcessorType()
           
 
Methods inherited from class com.jme3.asset.AssetKey
clone, equals, getExtension, getExtension, getFolder, getFolder, getName, hashCode, read, reducePath, toString, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelKey

public ModelKey(java.lang.String name)

ModelKey

public ModelKey()
Method Detail

getCacheType

public java.lang.Class<? extends AssetCache> getCacheType()
Overrides:
getCacheType in class AssetKey<Spatial>
Returns:
The preferred cache class for this asset type. Specify "null" if caching is to be disabled. By default the SimpleAssetCache is returned.

getProcessorType

public java.lang.Class<? extends AssetProcessor> getProcessorType()
Overrides:
getProcessorType in class AssetKey<Spatial>
Returns:
The preferred processor type for this asset type. Specify "null" if no processing is required.