Package org.sunflow
Class BinaryFileSunflowAPI
- java.lang.Object
-
- org.sunflow.FileSunflowAPI
-
- org.sunflow.BinaryFileSunflowAPI
-
- All Implemented Interfaces:
SunflowAPIInterface
class BinaryFileSunflowAPI extends FileSunflowAPI
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.DataOutputStream
stream
-
Constructor Summary
Constructors Constructor Description BinaryFileSunflowAPI(java.lang.String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
writeBoolean(boolean value)
private void
writeDatatypeKeyword(int type, boolean isArray)
private void
writeExtendedKeyword(int code)
protected void
writeFloat(float value)
protected void
writeInt(int value)
protected void
writeInterpolationType(ParameterList.InterpolationType interp)
protected void
writeKeyword(SCAbstractParser.Keyword keyword)
protected void
writeMatrix(Matrix4 value)
protected void
writeNewline(int indentNext)
protected void
writeString(java.lang.String string)
protected void
writeVerbatimString(java.lang.String string)
-
Methods inherited from class org.sunflow.FileSunflowAPI
camera, currentFrame, geometry, getCurrentFrame, include, instance, light, modifier, options, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, plugin, remove, render, reset, searchpath, shader
-
-
-
-
Method Detail
-
writeBoolean
protected void writeBoolean(boolean value)
- Specified by:
writeBoolean
in classFileSunflowAPI
-
writeFloat
protected void writeFloat(float value)
- Specified by:
writeFloat
in classFileSunflowAPI
-
writeInt
protected void writeInt(int value)
- Specified by:
writeInt
in classFileSunflowAPI
-
writeInterpolationType
protected void writeInterpolationType(ParameterList.InterpolationType interp)
- Specified by:
writeInterpolationType
in classFileSunflowAPI
-
writeKeyword
protected void writeKeyword(SCAbstractParser.Keyword keyword)
- Specified by:
writeKeyword
in classFileSunflowAPI
-
writeExtendedKeyword
private void writeExtendedKeyword(int code) throws java.io.IOException
- Throws:
java.io.IOException
-
writeDatatypeKeyword
private void writeDatatypeKeyword(int type, boolean isArray) throws java.io.IOException
- Throws:
java.io.IOException
-
writeMatrix
protected void writeMatrix(Matrix4 value)
- Specified by:
writeMatrix
in classFileSunflowAPI
-
writeString
protected void writeString(java.lang.String string)
- Specified by:
writeString
in classFileSunflowAPI
-
writeVerbatimString
protected void writeVerbatimString(java.lang.String string)
- Specified by:
writeVerbatimString
in classFileSunflowAPI
-
writeNewline
protected void writeNewline(int indentNext)
- Specified by:
writeNewline
in classFileSunflowAPI
-
close
public void close()
- Specified by:
close
in classFileSunflowAPI
-
-