com.model.md5.importer.resource
Class MeshImporter

java.lang.Object
  extended by com.model.md5.importer.resource.ResourceImporter<IMD5Node>
      extended by com.model.md5.importer.resource.MeshImporter

public class MeshImporter
extends ResourceImporter<IMD5Node>

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

MeshImporter is used by MD5Importer internally only.


Field Summary
 
Fields inherited from class com.model.md5.importer.resource.ResourceImporter
base, reader, version
 
Constructor Summary
MeshImporter()
          Constructor of MeshImporter.
 
Method Summary
 void cleanup()
          Clean up the importer.
 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 orientedBounding)
          Set if oriented bounding should be used for the meshes.
 
Methods inherited from class com.model.md5.importer.resource.ResourceImporter
load, readVector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeshImporter

public MeshImporter()
Constructor of MeshImporter.

Method Detail

load

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

Specified by:
load in class ResourceImporter<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 orientedBounding)
Set if oriented bounding should be used for the meshes.

Parameters:
orientedBounding - True if oriented bounding should be used. False otherwise.

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:
True if oriented bounding should be used. False otherwise.

cleanup

public void cleanup()
Description copied from class: ResourceImporter
Clean up the importer.

Specified by:
cleanup in class ResourceImporter<IMD5Node>