de.jreality.writer.u3d
Class WriterU3D

java.lang.Object
  extended by de.jreality.writer.u3d.WriterU3D
All Implemented Interfaces:
SceneWriter

public class WriterU3D
extends java.lang.Object
implements SceneWriter

Exports a JrScene into u3d compliant binary data. The exported data is written as specified in the 4th edition of ECMA standard 363.
Here is a list of open tasks, any volunteer?

Author:
(c)Stefan Sechelmann
See Also:
Standard ECMA-363 Universal 3D File Format

Constructor Summary
WriterU3D()
           
 
Method Summary
static void write(JrScene scene, java.io.OutputStream out)
          Exports a given JrScene into U3D binary data.
 void write(SceneGraphNode c, java.io.OutputStream out)
          Exports a given SceneGraphNode into U3D binary data.
 void writeScene(JrScene scene, java.io.OutputStream out)
          Exports a given JrScene into U3D binary data.
 void writeScene(JrScene scene, java.io.Writer out)
          Deprecated. 
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriterU3D

public WriterU3D()
Method Detail

writeScene

public void writeScene(JrScene scene,
                       java.io.OutputStream out)
                throws java.io.IOException
Exports a given JrScene into U3D binary data.

Specified by:
writeScene in interface SceneWriter
Parameters:
scene - the jReality scene to export
out - the output stream to export the data to
Throws:
java.io.IOException

writeScene

@Deprecated
public void writeScene(JrScene scene,
                                  java.io.Writer out)
                throws java.io.IOException
Deprecated. 

This method cannot be used for U3D exporting. It always throws an UnsupportedOperationException.

Specified by:
writeScene in interface SceneWriter
Parameters:
scene - unused
out - unused
Throws:
java.io.IOException

write

public void write(SceneGraphNode c,
                  java.io.OutputStream out)
           throws java.io.IOException
Exports a given SceneGraphNode into U3D binary data.

Specified by:
write in interface SceneWriter
Parameters:
c - the scene graph node to export
out - the output stream to export the data to
Throws:
java.io.IOException

write

public static void write(JrScene scene,
                         java.io.OutputStream out)
                  throws java.io.IOException
Exports a given JrScene into U3D binary data.

Parameters:
c - the root of the exported scene graph
out - the output stream to export the data to
Throws:
java.io.IOException