com.jme3.asset
Class ModelKey
java.lang.Object
com.jme3.asset.AssetKey<Spatial>
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.
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 |
ModelKey
public ModelKey(java.lang.String name)
ModelKey
public ModelKey()
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.