com.jme3.scene.plugins.ogre.matext
Class OgreMaterialKey

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

public class OgreMaterialKey
extends AssetKey<MaterialList>

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


Field Summary
 
Fields inherited from class com.jme3.asset.AssetKey
extension, folder, name
 
Constructor Summary
OgreMaterialKey()
           
OgreMaterialKey(java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 MaterialExtensionSet getMaterialExtensionSet()
          Returns the MaterialExtensionSet previously set using 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, getExtension, getFolder, getFolder, getName, getProcessorType, read, reducePath, toString, write
 
Methods inherited from class java.lang.Object
finalize, 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 AssetKey<MaterialList>

hashCode

public int hashCode()
Overrides:
hashCode in class AssetKey<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 setMaterialExtensionSet(com.jme3.scene.plugins.ogre.matext.MaterialExtensionSet) method.

Returns:
the MaterialExtensionSet