public class SceneWriter extends Object
SceneModel.| Modifier and Type | Field and Description |
|---|---|
static String |
OUTER_ELEMENT
The outer element used to enclose our scene definition.
|
| Constructor and Description |
|---|
SceneWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
registerAuxWriter(Class<?> aclass,
com.threerings.tools.xml.NestableWriter writer)
Registers a writer for writing auxiliary scene models of the
supplied class.
|
void |
writeScene(File out,
SceneModel model)
Writes the supplied scene out to the specified file.
|
void |
writeSceneModel(SceneModel model,
com.megginson.sax.DataWriter writer)
Writes the data for the supplied
SceneModel to the XML data
writer supplied. |
public static final String OUTER_ELEMENT
public void registerAuxWriter(Class<?> aclass, com.threerings.tools.xml.NestableWriter writer)
public void writeScene(File out, SceneModel model) throws IOException, SAXException
IOExceptionSAXExceptionpublic void writeSceneModel(SceneModel model, com.megginson.sax.DataWriter writer) throws SAXException
SceneModel to the XML data
writer supplied. The writer should already be configured with the
appropriate indentation level so that this writer can simply output
its elements and allow the calling code to determine where in the
greater scene description file the scene data should live.SAXExceptionCopyright © 2015. All rights reserved.