org.sunflow.core.parser
Class SCParser

java.lang.Object
  extended by org.sunflow.core.parser.SCParser
All Implemented Interfaces:
SceneParser

public class SCParser
extends java.lang.Object
implements SceneParser

This class provides a static method for loading files in the Sunflow scene file format.


Constructor Summary
SCParser()
           
 
Method Summary
 boolean parse(java.lang.String filename, SunflowAPIInterface api)
          Parse the specified file to create a scene description into the provided SunflowAPI object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCParser

public SCParser()
Method Detail

parse

public boolean parse(java.lang.String filename,
                     SunflowAPIInterface api)
Description copied from interface: SceneParser
Parse the specified file to create a scene description into the provided SunflowAPI object.

Specified by:
parse in interface SceneParser
Parameters:
filename - filename to parse
api - scene to parse the file into
Returns:
true upon sucess, or false if errors have occured.