public class MaxLoader extends Object implements AVLoader
This loader is designed for reusing multiple times to read multiple files. Several internal objects are reused wherever possible to aid in efficient state sorting by the pipeline.
Capabilities
BACKGROUNDS, FOGS, GEOMETRY, LAYERS, LIGHTS, LOAD_ALL, RUNTIMES, VIEWPOINTS| Constructor and Description |
|---|
MaxLoader()
Create a new instance of the loader.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLoadFlags()
Get the current set collection of load flags.
|
boolean |
isInternalModelKept()
Check to see whether the loader should be currently keeping the internal
model.
|
void |
keepInternalModel(boolean enable)
Define whether this loader should also keep around it's internal
representation of the file format, if it has one.
|
AVModel |
load(File file)
Load a model from the given file.
|
AVModel |
load(InputStream stream)
Load a model from the given input stream.
|
AVModel |
load(URL url)
Load a model from the given URL.
|
void |
setLoadFlags(int flags)
Set the flags for which parts of the file that should be loaded.
|
public AVModel load(URL url) throws IOException
load in interface AVLoaderurl - The url to load the model fromIOException - something went wrong while reading the filepublic AVModel load(InputStream stream) throws IOException
Reader interface, then use the
InputStreamReader to convert this stream to the desired
type. The caller will be responsible for closing down the stream at the
end of this process.load in interface AVLoaderstream - The stream to load the model fromIOException - something went wrong while reading the filepublic AVModel load(File file) throws IOException
load in interface AVLoaderfile - The file instance to load the model fromIOException - something went wrong while reading the filepublic void setLoadFlags(int flags)
setLoadFlags in interface AVLoaderflags - The collection of flags to usepublic int getLoadFlags()
getLoadFlags in interface AVLoaderpublic void keepInternalModel(boolean enable)
AVModel.getRawModel() method and cast to
the appropriate class type.keepInternalModel in interface AVLoaderenable - true to enable keeping the raw model, false otherwisepublic boolean isInternalModelKept()
isInternalModelKept in interface AVLoader
Copyright © 2001 - 2015 j3d.org