|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.j3d.loaders.LoaderBase
com.jlindamood.MS3D.MilkLoader
MilkLoader extends LoaderBase for a standard loader class to place Milkshape .ms3d files into Java3d Scene graphs. Loaded objects are returned as a SceneBase which users can pull animation objects from. If loading textures gives you problems, just set the base URL with .setBaseURL() to the texture base directory and try then.
SceneBase| Field Summary |
| Fields inherited from interface com.sun.j3d.loaders.Loader |
LOAD_ALL, LOAD_BACKGROUND_NODES, LOAD_BEHAVIOR_NODES, LOAD_FOG_NODES, LOAD_LIGHT_NODES, LOAD_SOUND_NODES, LOAD_VIEW_GROUPS |
| Constructor Summary | |
MilkLoader()
|
|
| Method Summary | |
com.sun.j3d.loaders.Scene |
load(java.io.Reader reader)
Deprecated. use load(String) load(URL) |
com.sun.j3d.loaders.Scene |
load(java.lang.String s)
Loads a MilkShape file from the path in the string s. |
com.sun.j3d.loaders.Scene |
load(java.net.URL url)
Loads a MilkShape file from the path in the URL. |
com.sun.j3d.loaders.SceneBase |
spawnFile()
Produces a copy of the last file loaded. |
| Methods inherited from class com.sun.j3d.loaders.LoaderBase |
getBasePath, getBaseUrl, getFlags, setBasePath, setBaseUrl, setFlags |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MilkLoader()
| Method Detail |
public com.sun.j3d.loaders.SceneBase spawnFile()
Scene
public com.sun.j3d.loaders.Scene load(java.lang.String s)
throws java.io.FileNotFoundException,
com.sun.j3d.loaders.IncorrectFormatException,
com.sun.j3d.loaders.ParsingErrorException
s - Filename
java.io.FileNotFoundException - Either .ms3d file or texture files don't exist
com.sun.j3d.loaders.IncorrectFormatException - File doesn't check with MS3D header
com.sun.j3d.loaders.ParsingErrorException - Some type of error while reading in file informationScene
public com.sun.j3d.loaders.Scene load(java.net.URL url)
throws java.io.FileNotFoundException,
com.sun.j3d.loaders.IncorrectFormatException,
com.sun.j3d.loaders.ParsingErrorException
url - Location of .ms3d file
java.io.FileNotFoundException - Either .ms3d file or texture files don't exist
com.sun.j3d.loaders.IncorrectFormatException - File doesn't check with MS3D header
com.sun.j3d.loaders.ParsingErrorException - Some type of error while reading in file informationScene
public com.sun.j3d.loaders.Scene load(java.io.Reader reader)
throws java.io.FileNotFoundException,
com.sun.j3d.loaders.IncorrectFormatException,
com.sun.j3d.loaders.ParsingErrorException
reader - Unused
java.io.FileNotFoundException - For compatability w/ interface Loader
com.sun.j3d.loaders.IncorrectFormatException - For compatability w/ interface Loader
com.sun.j3d.loaders.ParsingErrorException - Allways thrown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||