com.jmex.model.util
Class ModelLoader

java.lang.Object
  extended by com.jmex.model.util.ModelLoader

public class ModelLoader
extends java.lang.Object

This is a utility that will prompt for a model file and then load it into a scene.

Author:
Matthew D. Hicks, Alexander J. Gilpin

Nested Class Summary
(package private) static class ModelLoader.ModelLoaderCallable
           
 
Constructor Summary
ModelLoader()
           
 
Method Summary
static boolean isValidModelFile(java.io.File file)
           
static boolean isValidModelFile(java.lang.String file)
           
static Node loadModel(java.io.File file)
           
static Node loadModel(java.lang.String file)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelLoader

public ModelLoader()
Method Detail

main

public static void main(java.lang.String[] args)

loadModel

public static Node loadModel(java.io.File file)
                      throws java.lang.Exception
Throws:
java.lang.Exception

loadModel

public static Node loadModel(java.lang.String file)
                      throws java.lang.Exception
Throws:
java.lang.Exception

isValidModelFile

public static boolean isValidModelFile(java.io.File file)

isValidModelFile

public static boolean isValidModelFile(java.lang.String file)