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.

Author:
David Yazel

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
 int getLastLineNumber()
           
 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.