de.jreality.writer
Class WriterVRML

java.lang.Object
  extended by de.jreality.writer.WriterVRML

public class WriterVRML
extends Object


Constructor Summary
WriterVRML(FileWriter outS)
          this Writer can write vrml1
WriterVRML(OutputStream outS)
          this Writer can write vrml1
WriterVRML(PrintWriter outS)
          this Writer can write vrml1
 
Method Summary
 boolean isDrawSpheres()
          indicates if a vertex will be written as the primitive Sphere, if Spheredraw is enabled
 boolean isDrawTubes()
          indicates if a linesegment will be written as the primitive Tube, if Tubedraw is enabled
 boolean isMoveLightsToSceneRoot()
          indicates if all ligths will be written into the sceneRoot-node instead of their correct place in the scene.
 boolean isUseDefs()
          indicates if Geometrys which have multiple places in the scenegraph will be written only ones and be refferenced multiple times, instead of multiple writings.
 boolean isWriteTextureFiles()
          indicates if a texture wil be written into a file, instead of writing the data directly into the vrml-file.
 void setDrawSpheres(boolean drawSpheres)
          sets if a vertex will be written as the primitive Sphere, if Spheredraw is enabled
 void setDrawTubes(boolean drawTubes)
          sets if a linesegment will be written as the primitive Tube, if Tubedraw is enabled
 void setMoveLightsToSceneRoot(boolean moveLightsToSceneRoot)
          sets if all ligths will be written into the sceneRoot-node instead of their correct place in the scene.
 void setUseDefs(boolean useDefs)
          sets if Geometrys which have multiple places in the scenegraph will be written only ones and be refferenced multiple times, instead of multiple writings.
 void setWritePath(String path)
           
 void setWriteTextureFiles(boolean writeTextureFiles2)
          sets if a texture wil be written into a file, instead of writing the data directly into the vrml-file.
static void write(SceneGraphComponent sceneRoot, FileOutputStream stream)
          writes a vrml1-file of the scene into the stream (use default settings)
 void write(SceneGraphNode sgn)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriterVRML

public WriterVRML(OutputStream outS)
this Writer can write vrml1


WriterVRML

public WriterVRML(FileWriter outS)
this Writer can write vrml1


WriterVRML

public WriterVRML(PrintWriter outS)
this Writer can write vrml1

Method Detail

write

public static void write(SceneGraphComponent sceneRoot,
                         FileOutputStream stream)
writes a vrml1-file of the scene into the stream (use default settings)

Parameters:
sceneRoot -
stream -

setWritePath

public void setWritePath(String path)

write

public void write(SceneGraphNode sgn)

setWriteTextureFiles

public void setWriteTextureFiles(boolean writeTextureFiles2)
sets if a texture wil be written into a file, instead of writing the data directly into the vrml-file.


isWriteTextureFiles

public boolean isWriteTextureFiles()
indicates if a texture wil be written into a file, instead of writing the data directly into the vrml-file.


isDrawSpheres

public boolean isDrawSpheres()
indicates if a vertex will be written as the primitive Sphere, if Spheredraw is enabled


isDrawTubes

public boolean isDrawTubes()
indicates if a linesegment will be written as the primitive Tube, if Tubedraw is enabled


isMoveLightsToSceneRoot

public boolean isMoveLightsToSceneRoot()
indicates if all ligths will be written into the sceneRoot-node instead of their correct place in the scene. Use this if lights in the scene are used as global lights.


isUseDefs

public boolean isUseDefs()
indicates if Geometrys which have multiple places in the scenegraph will be written only ones and be refferenced multiple times, instead of multiple writings.


setDrawSpheres

public void setDrawSpheres(boolean drawSpheres)
sets if a vertex will be written as the primitive Sphere, if Spheredraw is enabled


setDrawTubes

public void setDrawTubes(boolean drawTubes)
sets if a linesegment will be written as the primitive Tube, if Tubedraw is enabled


setUseDefs

public void setUseDefs(boolean useDefs)
sets if Geometrys which have multiple places in the scenegraph will be written only ones and be refferenced multiple times, instead of multiple writings.


setMoveLightsToSceneRoot

public void setMoveLightsToSceneRoot(boolean moveLightsToSceneRoot)
sets if all ligths will be written into the sceneRoot-node instead of their correct place in the scene. Use this if lights in the scene are used as global lights.