com.md5importer.loader
Class MeshLoader

java.lang.Object
  extended by com.md5importer.loader.ResourceLoader<IMD5Node>
      extended by com.md5importer.loader.MeshLoader

public class MeshLoader
extends ResourceLoader<IMD5Node>

MeshLoader is responsible for importing MD5Mesh resources and constructing the final IMD5Node instance.

MeshLoader is used by MD5Importer internally only.


Field Summary
 
Fields inherited from class com.md5importer.loader.ResourceLoader
base, reader, version
 
Constructor Summary
MeshLoader()
          Constructor of MeshLoader.
 
Method Summary
 void cleanup()
          Clean up the loader.
 int getAnisotropic()
          Retrieve the anisotropic level.
 com.jme.image.Texture.MagnificationFilter getMagFilter()
          Retrieve the magnification (FM) texture filter.
 com.jme.image.Texture.MinificationFilter getMiniFilter()
          Retrieve the minification (MM) texture filter.
 boolean isOriented()
          Check if oriented bounding should be used.
protected  IMD5Node load(java.lang.String name)
          Load the data with given name.
 void setAnisotropic(int aniso)
          Set the texture anisotropic level.
 void setMagFilter(com.jme.image.Texture.MagnificationFilter filter)
          Set the magnification (FM) Texture filter.
 void setMiniFilter(com.jme.image.Texture.MinificationFilter filter)
          Set the minification (MM) Texture filter.
 void setOrientedBounding(boolean value)
          Set if oriented bounding should be used for the meshes.
 
Methods inherited from class com.md5importer.loader.ResourceLoader
load, readVector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeshLoader

public MeshLoader()
Constructor of MeshLoader.

Method Detail

load

protected IMD5Node load(java.lang.String name)
                 throws java.io.IOException
Description copied from class: ResourceLoader
Load the data with given name.

Specified by:
load in class ResourceLoader<IMD5Node>
Parameters:
name - The String to set the result to.
Returns:
The T loaded data structure.
Throws:
java.io.IOException - If reading is interrupted.

setAnisotropic

public void setAnisotropic(int aniso)
Set the texture anisotropic level.

Parameters:
value - The Integer anisotropic level value.

setMiniFilter

public void setMiniFilter(com.jme.image.Texture.MinificationFilter filter)
Set the minification (MM) Texture filter.

Parameters:
filter - The minification (MM) Texture filter.

setMagFilter

public void setMagFilter(com.jme.image.Texture.MagnificationFilter filter)
Set the magnification (FM) Texture filter.

Parameters:
filter - The magnification (FM) Texture filter.

setOrientedBounding

public void setOrientedBounding(boolean value)
Set if oriented bounding should be used for the meshes.

Parameters:
value - The Boolean oriented bounding flag.

getAnisotropic

public int getAnisotropic()
Retrieve the anisotropic level.

Returns:
The Integer anisotropic level.

getMiniFilter

public com.jme.image.Texture.MinificationFilter getMiniFilter()
Retrieve the minification (MM) texture filter.

Returns:
The MinificationFilter enumeration.

getMagFilter

public com.jme.image.Texture.MagnificationFilter getMagFilter()
Retrieve the magnification (FM) texture filter.

Returns:
The MagnificationFilter enumeration.

isOriented

public boolean isOriented()
Check if oriented bounding should be used.

Returns:
The Boolean oriented bounding flag.

cleanup

public void cleanup()
Description copied from class: ResourceLoader
Clean up the loader.

Specified by:
cleanup in class ResourceLoader<IMD5Node>