Class SCAbstractParser

    • Constructor Detail

      • SCAbstractParser

        public SCAbstractParser()
    • 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.
      • parseFloatArray

        protected float[] parseFloatArray​(int size)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseInterpolationType

        protected abstract ParameterList.InterpolationType parseInterpolationType()
                                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • openParser

        protected abstract void openParser​(java.lang.String filename)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • closeParser

        protected abstract void closeParser()
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • parseKeyword

        protected abstract SCAbstractParser.Keyword parseKeyword()
                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseBoolean

        protected abstract boolean parseBoolean()
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseInt

        protected abstract int parseInt()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFloat

        protected abstract float parseFloat()
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • parseString

        protected abstract java.lang.String parseString()
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • parseVerbatimString

        protected abstract java.lang.String parseVerbatimString()
                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseMatrix

        protected abstract Matrix4 parseMatrix()
                                        throws java.io.IOException
        Throws:
        java.io.IOException