Package org.sunflow.core.parser
Class ShaveRibParser
- java.lang.Object
-
- org.sunflow.core.parser.ShaveRibParser
-
- All Implemented Interfaces:
SceneParser
public class ShaveRibParser extends java.lang.Object implements SceneParser
-
-
Constructor Summary
Constructors Constructor Description ShaveRibParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
parse(java.lang.String filename, SunflowAPIInterface api)
Parse the specified file to create a scene description into the providedSunflowAPI
object.private float[]
parseFloatArray(Parser p)
private int[]
parseIntArray(Parser p)
-
-
-
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 providedSunflowAPI
object.- Specified by:
parse
in interfaceSceneParser
- Parameters:
filename
- filename to parseapi
- scene to parse the file into- Returns:
true
upon sucess, orfalse
if errors have occured.
-
parseIntArray
private int[] parseIntArray(Parser p) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFloatArray
private float[] parseFloatArray(Parser p) throws java.io.IOException
- Throws:
java.io.IOException
-
-