public class SCParser extends Object implements SceneParser
| Constructor and Description |
|---|
SCParser() |
protected Parser p
public boolean parse(String filename, SunflowAPIInterface api)
SceneParserSunflowAPI object.parse in interface SceneParserfilename - 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
IOExceptionParser.ParserExceptionprotected void parseBackgroundBlock(SunflowAPIInterface api) throws IOException, Parser.ParserException, ColorFactory.ColorSpecificationException
protected void parseFilter(SunflowAPIInterface api) throws IOException, Parser.ParserException
IOExceptionParser.ParserExceptionprotected void parsePhotonBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserExceptionIOExceptionprotected void parseGIBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException, ColorFactory.ColorSpecificationException
protected void parseLightserverBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserExceptionIOExceptionprotected void parseTraceBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserExceptionIOExceptionprotected void parseCamera(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserExceptionIOExceptionprotected void parseCameraTransform(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserExceptionIOExceptionprotected void parseCameraMatrix(int index,
SunflowAPIInterface api)
throws IOException,
Parser.ParserException
IOExceptionParser.ParserExceptionprotected boolean parseShader(SunflowAPIInterface api) throws Parser.ParserException, IOException, ColorFactory.ColorSpecificationException
protected boolean parseModifier(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserExceptionIOExceptionprotected void parseObjectBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserExceptionIOExceptionprotected void parseInstanceBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserExceptionIOExceptionprotected void parseLightBlock(SunflowAPIInterface api) throws Parser.ParserException, IOException, ColorFactory.ColorSpecificationException
protected boolean parseNode(SunflowAPIInterface api) throws Parser.ParserException, IOException
Parser.ParserExceptionIOExceptionprotected Color parseColor() throws IOException, Parser.ParserException, ColorFactory.ColorSpecificationException
protected Point3 parsePoint() throws IOException
IOExceptionprotected Vector3 parseVector() throws IOException
IOExceptionprotected int[] parseIntArray(int size)
throws IOException
IOExceptionprotected float[] parseFloatArray(int size)
throws IOException
IOExceptionprotected Matrix4 parseMatrix() throws IOException, Parser.ParserException
IOExceptionParser.ParserExceptionCopyright © 2017. All rights reserved.