de.jreality.writer
Class WriterVRML2

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

public class WriterVRML2
extends java.lang.Object


Constructor Summary
WriterVRML2(java.io.File f)
          this Writer can write vrml2
WriterVRML2(java.io.OutputStream outS)
           
 
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 isEvaluateTextureMatrix()
          indicates if textureMatrix information schould be assigned to the Texturecoordinates
 boolean isFlipTextureUpsideDown()
          indicates if the texture schould be fliped upside down (the correct orientation depends on the software)
 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 isWriteTextureCoordIndices()
          indicates if texturecoordinate indices should be written extra.
 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 setEvaluateTextureMatrix(boolean evaluateTextureMatrix)
          indicates if textureMatrix information schould be assigned to the Texturecoordinates
 void setFileStem(java.lang.String s)
           
 void setFlipTextureUpsideDown(boolean flipTextureUpsideDown)
          indicates if the texture schould be fliped upside down (the correct orientation depends on the software)
 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(java.lang.String path)
           
 void setWriteTextureCoordIndices(boolean writeTextureCoordIndices)
          indicates if texturecoordinate indices should be written extra.
 void setWriteTextureFiles(boolean writeTextureFiles2)
          sets if a texture wil be written into a file, instead of writing the data directly into the vrml-file.
 void write(SceneGraphNode sgn)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriterVRML2

public WriterVRML2(java.io.File f)
this Writer can write vrml2


WriterVRML2

public WriterVRML2(java.io.OutputStream outS)
Method Detail

setFileStem

public void setFileStem(java.lang.String s)

setWritePath

public void setWritePath(java.lang.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.


isEvaluateTextureMatrix

public boolean isEvaluateTextureMatrix()
indicates if textureMatrix information schould be assigned to the Texturecoordinates

Returns:

isFlipTextureUpsideDown

public boolean isFlipTextureUpsideDown()
indicates if the texture schould be fliped upside down (the correct orientation depends on the software)

Returns:

setEvaluateTextureMatrix

public void setEvaluateTextureMatrix(boolean evaluateTextureMatrix)
indicates if textureMatrix information schould be assigned to the Texturecoordinates

Parameters:
evaluateTextureMatrix -

setFlipTextureUpsideDown

public void setFlipTextureUpsideDown(boolean flipTextureUpsideDown)
indicates if the texture schould be fliped upside down (the correct orientation depends on the software)

Parameters:
flipTextureUpsideDown -

setWriteTextureCoordIndices

public void setWriteTextureCoordIndices(boolean writeTextureCoordIndices)
indicates if texturecoordinate indices should be written extra.

Parameters:
writeTextureCoordIndices -

isWriteTextureCoordIndices

public boolean isWriteTextureCoordIndices()
indicates if texturecoordinate indices should be written extra.

Returns: