|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.j3d.loaders.lw3d.TextfileParser | +--com.sun.j3d.loaders.lw3d.Lw3dLoader
This class implements the Loader API and allows users to load Lightwave 3D scene files. In order to load properly, the object files referred to in the scene files and the image files referred to by the object files must all be specified with path and filenames that are valid with respect to the directory in which the application is being executed.
Fields inherited from class com.sun.j3d.loaders.lw3d.TextfileParser |
debugPrinter |
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 | |
Lw3dLoader()
Default constructor. |
|
Lw3dLoader(int flags)
This constructor takes a flags word that specifies which types of scenefile items should be loaded into the scene. |
Method Summary | |
java.lang.String |
getBasePath()
Returns the current base path setting. |
java.net.URL |
getBaseUrl()
Returns the current base URL setting. |
int |
getFlags()
Returns the current loading flags setting. |
TransformGroup |
getObject(java.lang.String name)
getObject() iterates through the objectList checking the given name against the fileName and objectName of each object in turn. |
Scene |
load(java.io.Reader reader)
This method loads the Reader and returns the Scene containing the scene. |
Scene |
load(java.lang.String fileName)
This method loads the named file and returns the Scene containing the scene. |
Scene |
load(java.net.URL url)
This method loads the named file and returns the Scene containing the scene. |
void |
setBasePath(java.lang.String pathName)
This method sets the base path to be used when searching for all data files within a Lightwave scene. |
void |
setBaseUrl(java.net.URL url)
This method is not currently implemented. |
void |
setFlags(int flags)
This method sets the load flags for the file. |
Methods inherited from class com.sun.j3d.loaders.lw3d.TextfileParser |
debugOutput,
debugOutputLn |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Lw3dLoader()
public Lw3dLoader(int flags)
Method Detail |
public Scene load(java.net.URL url) throws java.io.FileNotFoundException, IncorrectFormatException, ParsingErrorException
public Scene load(java.lang.String fileName) throws java.io.FileNotFoundException, IncorrectFormatException, ParsingErrorException
public Scene load(java.io.Reader reader) throws java.io.FileNotFoundException, IncorrectFormatException, ParsingErrorException
public void setBaseUrl(java.net.URL url)
public void setBasePath(java.lang.String pathName)
public java.net.URL getBaseUrl()
public java.lang.String getBasePath()
public void setFlags(int flags)
public int getFlags()
public TransformGroup getObject(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |