com.PostHorizon.renderMan.rib
Class RIBIn
java.lang.Object
|
+--com.PostHorizon.renderMan.rib.RIBIn
- public class RIBIn
- extends java.lang.Object
RIB Parser (ASCII & binary)
RIBIn can be given an arbitrary input stream (ie standard input, file input,
realtime-decompressed file input, et cetera) and an implementation of
com.PostHorizon.renderMan.RenderMan, and will parse the stream (keeping minimal
state) and call the corresponding RenderMan API methods on the given
renderer. It detects and throws a variety of syntax errors, and includes
a recovery mechanism designed to jump to the next valid request token
after an error in parsing parameters for the previous request.
Note that the setCurrColorSamples() call should be used to set the current
number of color samples in the case of an imbedded RIB being parsed (such
as via a ReadArchive() call).
The begin() and end() methods must be explicitely invoked on the renderer
before and after parsing the RIB stream, respectively.
- Since:
- 0.92
- Version:
- 0.92.5
- Author:
- Sean Cier (scier@PostHorizon.com)
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
RIBIn
public RIBIn(java.io.PushbackInputStream _in,
RenderMan _renderer)
RIBIn
public RIBIn(java.io.InputStream _in,
RenderMan _renderer)
setColorSamples
public void setColorSamples(int n)
getCurrLineNumber
public int getCurrLineNumber()
parse
public void parse()
throws RIBParseException,
RMException