org.jmonkeyengine.scene.plugins.ogre.matext
Class OgreMaterialKey

java.lang.Object
  extended by com.jme3.asset.AssetKey<com.jme3.material.MaterialList>
      extended by org.jmonkeyengine.scene.plugins.ogre.matext.OgreMaterialKey
All Implemented Interfaces:
com.jme3.export.Savable, java.lang.Cloneable

public class OgreMaterialKey
extends com.jme3.asset.AssetKey<com.jme3.material.MaterialList>

OgreMaterialKey allows specifying material extensions, which map from Ogre3D base materials to jME3 materials


Constructor Summary
OgreMaterialKey()
           
OgreMaterialKey(java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 MaterialExtensionSet getMaterialExtensionSet()
          Returns the MaterialExtensionSet previously set using OgreMaterialKey#setMaterialExtensionSet(com.jme3.scene.plugins.ogre.matext.MaterialExtensionSet) method.
 int hashCode()
           
 void setMaterialExtensionSet(MaterialExtensionSet matExts)
          Set the MaterialExtensionSet to use for mapping base materials to jME3 matdefs when loading.
 
Methods inherited from class com.jme3.asset.AssetKey
clone, getCacheType, getExtension, getFolder, getName, getProcessorType, read, reducePath, toString, write
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OgreMaterialKey

public OgreMaterialKey(java.lang.String name)

OgreMaterialKey

public OgreMaterialKey()
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class com.jme3.asset.AssetKey<com.jme3.material.MaterialList>

hashCode

public int hashCode()
Overrides:
hashCode in class com.jme3.asset.AssetKey<com.jme3.material.MaterialList>

setMaterialExtensionSet

public void setMaterialExtensionSet(MaterialExtensionSet matExts)
Set the MaterialExtensionSet to use for mapping base materials to jME3 matdefs when loading. Set to null to disable this functionality.

Parameters:
matExts - The MaterialExtensionSet to use

getMaterialExtensionSet

public MaterialExtensionSet getMaterialExtensionSet()
Returns the MaterialExtensionSet previously set using OgreMaterialKey#setMaterialExtensionSet(com.jme3.scene.plugins.ogre.matext.MaterialExtensionSet) method.

Returns:
the MaterialExtensionSet