public class Lw3dLoader extends Object implements Loader
Modifier and Type | Field and Description |
---|---|
protected org.scijava.java3d.loaders.lw3d.DebugOutput |
debugPrinter |
LOAD_ALL, LOAD_BACKGROUND_NODES, LOAD_BEHAVIOR_NODES, LOAD_FOG_NODES, LOAD_LIGHT_NODES, LOAD_SOUND_NODES, LOAD_VIEW_GROUPS
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
debugOutput(int outputType,
String theOutput) |
protected void |
debugOutputLn(int outputType,
String theOutput) |
String |
getBasePath()
Returns the current base path setting.
|
URL |
getBaseUrl()
Returns the current base URL setting.
|
int |
getFlags()
Returns the current loading flags setting.
|
TransformGroup |
getObject(String name)
getObject() iterates through the objectList checking the given
name against the fileName and objectName of each object in turn.
|
Scene |
load(Reader reader)
This method loads the Reader and returns the Scene
containing the scene.
|
Scene |
load(String fileName)
This method loads the named file and returns the Scene
containing the scene.
|
Scene |
load(URL url)
This method loads the named file and returns the Scene
containing the scene.
|
void |
setBasePath(String pathName)
This method sets the base path to be used when searching for all
data files within a Lightwave scene.
|
void |
setBaseUrl(URL url)
This method sets the base URL name for data files
associated with the file passed into the load(URL) method.
|
void |
setFlags(int flags)
This method sets the load flags for the file.
|
protected org.scijava.java3d.loaders.lw3d.DebugOutput debugPrinter
public Lw3dLoader()
public Lw3dLoader(int flags)
public Scene load(URL url) throws FileNotFoundException, IncorrectFormatException, ParsingErrorException
load
in interface Loader
FileNotFoundException
IncorrectFormatException
ParsingErrorException
public Scene load(String fileName) throws FileNotFoundException, IncorrectFormatException, ParsingErrorException
load
in interface Loader
FileNotFoundException
IncorrectFormatException
ParsingErrorException
public Scene load(Reader reader) throws FileNotFoundException, IncorrectFormatException, ParsingErrorException
load
in interface Loader
FileNotFoundException
IncorrectFormatException
ParsingErrorException
public void setBaseUrl(URL url)
setBaseUrl
in interface Loader
public void setBasePath(String pathName)
setBasePath
in interface Loader
public URL getBaseUrl()
getBaseUrl
in interface Loader
public String getBasePath()
getBasePath
in interface Loader
public void setFlags(int flags)
public int getFlags()
public TransformGroup getObject(String name)
protected void debugOutputLn(int outputType, String theOutput)
protected void debugOutput(int outputType, String theOutput)
Copyright © 2016–2022 SciJava. All rights reserved.