public class SCParser extends Object implements SceneParser
Constructor and Description |
---|
SCParser() |
protected Parser p
public boolean parse(String filename, SunflowAPIInterface api)
SceneParser
SunflowAPI
object.parse
in interface SceneParser
filename
- filename to parseapi
- scene to parse the file intotrue
upon sucess, or false
if
errors have occured.protected void parseImageBlock(SunflowAPIInterface api) throws IOException, Parser.ParserException
IOException
Parser.ParserException
protected void parseBackgroundBlock(SunflowAPIInterface api) throws IOException, Parser.ParserException, ColorFactory.ColorSpecificationException
protected void parseFilter(SunflowAPIInterface api) throws IOException, Parser.ParserException
IOException
Parser.ParserException
protected void parsePhotonBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserException
IOException
protected void parseGIBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException, ColorFactory.ColorSpecificationException
protected void parseLightserverBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserException
IOException
protected void parseTraceBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserException
IOException
protected void parseCamera(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserException
IOException
protected void parseCameraTransform(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserException
IOException
protected void parseCameraMatrix(int index, SunflowAPIInterface api) throws IOException, Parser.ParserException
IOException
Parser.ParserException
protected boolean parseShader(SunflowAPIInterface api) throws Parser.ParserException, IOException, ColorFactory.ColorSpecificationException
protected boolean parseModifier(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserException
IOException
protected void parseObjectBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserException
IOException
protected void parseInstanceBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserException
IOException
protected void parseLightBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException, ColorFactory.ColorSpecificationException
protected boolean parseNode(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserException
IOException
protected Color parseColor() throws IOException, Parser.ParserException, ColorFactory.ColorSpecificationException
protected Point3 parsePoint() throws IOException
IOException
protected Vector3 parseVector() throws IOException
IOException
protected int[] parseIntArray(int size) throws IOException
IOException
protected float[] parseFloatArray(int size) throws IOException
IOException
protected Matrix4 parseMatrix() throws IOException, Parser.ParserException
IOException
Parser.ParserException
Copyright © 2020. All rights reserved.