com.jme3.scene.plugins.ogre
Class OgreMeshKey

java.lang.Object
  extended by com.jme3.asset.AssetKey<Spatial>
      extended by com.jme3.asset.ModelKey
          extended by com.jme3.scene.plugins.ogre.OgreMeshKey
All Implemented Interfaces:
Savable, java.lang.Cloneable

public class OgreMeshKey
extends ModelKey

OgreMeshKey is used to load Ogre3D mesh.xml models with a specific material file or list. This allows customizing from where the materials are retrieved, instead of loading the material file as the same name as the model (the default).


Field Summary
 
Fields inherited from class com.jme3.asset.AssetKey
extension, folder, name
 
Constructor Summary
OgreMeshKey()
           
OgreMeshKey(java.lang.String name)
           
OgreMeshKey(java.lang.String name, MaterialList materialList)
           
OgreMeshKey(java.lang.String name, java.lang.String materialName)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 MaterialList getMaterialList()
           
 java.lang.String getMaterialName()
           
 int hashCode()
           
 void setMaterialList(MaterialList materialList)
           
 void setMaterialName(java.lang.String name)
           
 
Methods inherited from class com.jme3.asset.ModelKey
getCacheType, getProcessorType
 
Methods inherited from class com.jme3.asset.AssetKey
clone, getExtension, getExtension, getFolder, getFolder, getName, read, reducePath, toString, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OgreMeshKey

public OgreMeshKey()

OgreMeshKey

public OgreMeshKey(java.lang.String name)

OgreMeshKey

public OgreMeshKey(java.lang.String name,
                   MaterialList materialList)

OgreMeshKey

public OgreMeshKey(java.lang.String name,
                   java.lang.String materialName)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AssetKey<Spatial>

hashCode

public int hashCode()
Overrides:
hashCode in class AssetKey<Spatial>

getMaterialList

public MaterialList getMaterialList()

setMaterialList

public void setMaterialList(MaterialList materialList)

getMaterialName

public java.lang.String getMaterialName()

setMaterialName

public void setMaterialName(java.lang.String name)