org.xith3d.loaders.models.util.meta
Class MetaLoader<D extends ModelMetaData>

java.lang.Object
  extended by org.xith3d.loaders.models.ModelLoader
      extended by org.xith3d.loaders.models.util.meta.MetaLoader<D>

public class MetaLoader<D extends ModelMetaData>
extends ModelLoader

A ModelLoader wrapper. Enables a model meta data file (in xml) to be loaded. This file contains information about scaling and rotating the model. Model Meta Data Format: TODO Create Format Documentation Look at demo/models/meta/galleon.xml for an example


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.loaders.models.ModelLoader
ModelLoader.SourceModelType, ModelLoader.SpecialItemsHandlerImpl
 
Field Summary
 
Fields inherited from class org.xith3d.loaders.models.ModelLoader
ALWAYS_CONVERT_Z_UP_TO_Y_UP, CONVERT_Z_UP_TO_Y_UP_IF_EXPECTED, DEFAULT_FLAGS, LOAD_CAMERAS, LOAD_FOG_NODES, LOAD_LIGHT_NODES, LOAD_SOUND_NODES, LOAD_SUB_MODELS, SCALE
 
Constructor Summary
MetaLoader()
          Constucts MetaLoader.
 
Method Summary
 java.net.URL getMetaBaseURL()
           
 Model loadModel(java.net.URL url, java.lang.String filenameBase, java.net.URL baseURL, java.lang.String skin, float scale, int flags)
          
 void setMetaBaseURL(java.net.URL metaBaseURL)
           
 
Methods inherited from class org.xith3d.loaders.models.ModelLoader
extractModelType, extractModelType, extractModelType, getFlag, getFlags, getInstance, loadModel, loadModel, loadModel, loadModel, loadModel, loadModel, loadModel, loadModel, loadModel, loadModel, loadModel, loadModel, loadModel, setFlag, setFlags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaLoader

public MetaLoader()
Constucts MetaLoader.

Method Detail

setMetaBaseURL

public void setMetaBaseURL(java.net.URL metaBaseURL)

getMetaBaseURL

public java.net.URL getMetaBaseURL()

loadModel

public Model loadModel(java.net.URL url,
                       java.lang.String filenameBase,
                       java.net.URL baseURL,
                       java.lang.String skin,
                       float scale,
                       int flags)
                throws java.io.IOException,
                       org.jagatoo.util.errorhandling.IncorrectFormatException,
                       org.jagatoo.util.errorhandling.ParsingException

Overrides:
loadModel in class ModelLoader
Throws:
java.io.IOException
org.jagatoo.util.errorhandling.IncorrectFormatException
org.jagatoo.util.errorhandling.ParsingException