|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.renderer.aviatrix3d.loader.stl.STLLoader
public class STLLoader
Loader for the STL (Stereolithography) file into Aviatrix3D.
In case that the file uses the binary STL format, no check can be done to assure that the file is in STL format. A wrong format will only be recognized if an invalid amount of data is contained in the file.
STL models do not contain layers or any other form of scene graph objects beyond the triangle geometry. All load flags are ignored.
Field Summary |
---|
Fields inherited from interface org.j3d.renderer.aviatrix3d.loader.AVLoader |
---|
BACKGROUNDS, FOGS, GEOMETRY, LAYERS, LIGHTS, LOAD_ALL, RUNTIMES, VIEWPOINTS |
Constructor Summary | |
---|---|
STLLoader()
Creates a STLLoader object. |
Method Summary | |
---|---|
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(java.io.File file)
Load a model from the given file. |
AVModel |
load(java.io.InputStream stream)
Load a model from the given input stream. |
AVModel |
load(java.net.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public STLLoader()
Method Detail |
---|
public AVModel load(java.net.URL url) throws java.io.IOException
load
in interface AVLoader
url
- The url to load the model from
java.io.IOException
- something went wrong while reading the filepublic AVModel load(java.io.InputStream stream) throws java.io.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 AVLoader
stream
- The stream to load the model from
java.io.IOException
- something went wrong while reading the filepublic AVModel load(java.io.File file) throws java.io.IOException
load
in interface AVLoader
file
- The file instance to load the model from
java.io.IOException
- something went wrong while reading the filepublic void setLoadFlags(int flags)
setLoadFlags
in interface AVLoader
flags
- The collection of flags to usepublic int getLoadFlags()
getLoadFlags
in interface AVLoader
public void keepInternalModel(boolean enable)
AVModel.getRawModel()
method and cast to
the appropriate class type.
keepInternalModel
in interface AVLoader
enable
- true to enable keeping the raw model, false otherwisepublic boolean isInternalModelKept()
isInternalModelKept
in interface AVLoader
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |