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

java.lang.Object
  extended by org.jmonkeyengine.scene.plugins.ogre.matext.MaterialExtensionSet

public class MaterialExtensionSet
extends java.lang.Object

MaterialExtensionSet is simply a container for several MaterialExtensions so that it can be set globally for all OgreMaterialKeys used.


Constructor Summary
MaterialExtensionSet()
           
 
Method Summary
 void addMaterialExtension(MaterialExtension extension)
          Adds a new material extension to the set of extensions.
 MaterialExtension getMaterialExtension(java.lang.String baseMatName)
          Returns the MaterialExtension for a given Ogre3D base material name.
 java.util.List<java.lang.String> getNameMappings(java.lang.String name)
           
 void setNameMapping(java.lang.String name, java.lang.String alias)
          Adds an alternative name for a material
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaterialExtensionSet

public MaterialExtensionSet()
Method Detail

addMaterialExtension

public void addMaterialExtension(MaterialExtension extension)
Adds a new material extension to the set of extensions.

Parameters:
extension - The MaterialExtension to add.

getMaterialExtension

public MaterialExtension getMaterialExtension(java.lang.String baseMatName)
Returns the MaterialExtension for a given Ogre3D base material name.

Parameters:
baseMatName - The ogre3D base material name.
Returns:
MaterialExtension that is set, or null if not set.

setNameMapping

public void setNameMapping(java.lang.String name,
                           java.lang.String alias)
Adds an alternative name for a material

Parameters:
name - The material name to be found in a .mesh.xml file
alias - The material name to be found in a .material file

getNameMappings

public java.util.List<java.lang.String> getNameMappings(java.lang.String name)