org.jagatoo.loaders.models.ase
Class AseReader
java.lang.Object
org.jagatoo.loaders.models.ase.AseReader
public class AseReader
- extends java.lang.Object
Extends LineNumberReader to read and parse a single line into pieces for easy
reference by the parsing code.
|
Constructor Summary |
AseReader(java.io.Reader in)
|
AseReader(java.io.Reader in,
boolean convertMeshCoordinates)
Construct new ASE reader that will read ASE data from specified reader to
specified ASE file with optional converion of coordinate system from MAX
to Xith3D |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AseReader
public AseReader(java.io.Reader in)
AseReader
public AseReader(java.io.Reader in,
boolean convertMeshCoordinates)
- Construct new ASE reader that will read ASE data from specified reader to
specified ASE file with optional converion of coordinate system from MAX
to Xith3D
- Parameters:
in - Reader to read ASE data fromconvertMeshCoordinates - true if ASE coordinates should be converted
to Xith3D format, false if they should be left unchanged
getLastLineNumber
public int getLastLineNumber()
readAseLine
public org.jagatoo.loaders.models.ase.AseFileLine readAseLine()
- Reads in a line and breaks it into peices. If the line starts with a
star, then get the keyword out and then read the params.
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
load
public static final void load(java.io.InputStream in,
java.net.URL baseURL,
AppearanceFactory appFactory,
GeometryFactory geomFactory,
boolean convertZup2Yup,
float scale,
NodeFactory nodeFactory,
AnimationFactory animFactory,
SpecialItemsHandler siHandler,
NamedObject rootGroup)
throws java.io.IOException,
IncorrectFormatException,
ParsingException
- Parameters:
in - baseURL - appFactory - geomFactory - convertZup2Yup - scale - nodeFactory - animFactory - siHandler - rootGroup -
- Throws:
java.io.IOException
IncorrectFormatException
ParsingException