|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.recognition.SceneWriter
public class SceneWriter
SceneWriter writes a single interpretation of a scene to an output stream. This interpretation can then be read in by a SceneParser for testing purposes. It currently has the limitation that it can only write interpretations that have "SimpleData" interpretations of the scene, because it doesn't know how to handle complex data.
SceneParser
Constructor Summary | |
---|---|
SceneWriter()
Build a scene writer using the system-specified composite builder for |
|
SceneWriter(CompositeBuilder builder)
Build a scene writer using the given composite builder for mapping types to builders. |
Method Summary | |
---|---|
void |
write(Scene db,
SceneElement root,
Writer out)
Write the single interpretation of the scene given rooted by the given root to the character-output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SceneWriter() throws Exception
Exception
public SceneWriter(CompositeBuilder builder)
Method Detail |
---|
public void write(Scene db, SceneElement root, Writer out) throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |