org.jagatoo.loaders.models.ase
Class AseReader

java.lang.Object
  extended by 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
 
Method Summary
 void close()
           
 int getLastLineNumber()
           
static 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)
           
 org.jagatoo.loaders.models.ase.AseFileLine readAseLine()
          Reads in a line and breaks it into peices.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 from
convertMeshCoordinates - true if ASE coordinates should be converted to Xith3D format, false if they should be left unchanged
Method Detail

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