com.sygem.jazz3d3.loader
Class Loader

java.lang.Object
  extended bycom.sygem.jazz3d3.loader.Loader
Direct Known Subclasses:
Loader3DS

public abstract class Loader
extends java.lang.Object

Abstract base class for all object loaders.

Version:
3.0a
See Also:
Model3d, LoadFactory

Constructor Summary
Loader()
          Default constructor.
 
Method Summary
 void closeFile()
          Closes the current input stream.
 Decompressor getDecompressor()
          Returns the current decompressor from this model Loader.
 java.util.StringTokenizer getLine()
          Read a whole line from the current input stream.
 java.lang.String getLineAsString()
          Read a whole line from the current input stream.
 Object3d getParent()
          Returns the object stored using setParent.
abstract  void load(java.lang.String filename, Model3d obj)
          Begins the loading process.
 void setDecompressor(Decompressor newD)
          Assign a decompressor to this model Loader.
 void setParent(Object3d newP)
          Sets the object that the loader is to create vertices & faces on.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Loader

public Loader()
Default constructor.

Method Detail

closeFile

public final void closeFile()
Closes the current input stream.


getDecompressor

public Decompressor getDecompressor()
Returns the current decompressor from this model Loader. By default, no decompressor is present.

See Also:
Decompressor

getLine

public final java.util.StringTokenizer getLine()
Read a whole line from the current input stream. Returns the line as a StringTokenizer.


getLineAsString

public final java.lang.String getLineAsString()
Read a whole line from the current input stream. Returns the line as a complete String.


getParent

public Object3d getParent()
Returns the object stored using setParent.


load

public abstract void load(java.lang.String filename,
                          Model3d obj)
Begins the loading process. All loaders must provide an implementation of this method.


setDecompressor

public void setDecompressor(Decompressor newD)
Assign a decompressor to this model Loader. By default, no decompressor is present.

See Also:
Decompressor

setParent

public void setParent(Object3d newP)
Sets the object that the loader is to create vertices & faces on. All loaders can call this in their load method to store the object passed in.



Copyright © 1999-2006 SyGem Software. All Rights Reserved.