org.primordion.xholon.io.vrml
Class AbstractVrmlWriter

java.lang.Object
  extended byorg.primordion.xholon.io.vrml.AbstractVrmlWriter
All Implemented Interfaces:
IVrmlWriter
Direct Known Subclasses:
VrmlWriterCell, VrmlWriterHelloWorld

public abstract class AbstractVrmlWriter
extends java.lang.Object
implements IVrmlWriter

VRML Writer. Writes a file in VRML 97 (VRML 2) format. Each Xholon in the current application is written out as a VRML node. The file can subsequently be viewed in 3D using a VRML tool, such as Cortona from Parallel Graphics. To view it completely, a number of other VRML (.wrl) and PNG (.png) files are required.

Since:
0.1 (Created on Oct 26, 2005)
Author:
Ken Webb

Constructor Summary
AbstractVrmlWriter()
          Constructor.
 
Method Summary
static boolean getCreateProtoFiles()
           
static boolean getDoClassicStyle()
           
static boolean getUseLOD()
           
static java.lang.String getVrmlWriteDir()
           
static void setCreateProtoFiles(boolean crProtoFiles)
           
static void setDoClassicStyle(boolean doClassikStyle)
           
static void setUseLOD(boolean useLod)
           
static void setVrmlWriteDir(java.lang.String vWriteDir)
           
 void writeAsVrml(IXholon xhNode)
          Write VRML .wrl file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractVrmlWriter

public AbstractVrmlWriter()
Constructor.

Method Detail

setVrmlWriteDir

public static void setVrmlWriteDir(java.lang.String vWriteDir)

getVrmlWriteDir

public static java.lang.String getVrmlWriteDir()

setUseLOD

public static void setUseLOD(boolean useLod)

getUseLOD

public static boolean getUseLOD()

setCreateProtoFiles

public static void setCreateProtoFiles(boolean crProtoFiles)

getCreateProtoFiles

public static boolean getCreateProtoFiles()

setDoClassicStyle

public static void setDoClassicStyle(boolean doClassikStyle)

getDoClassicStyle

public static boolean getDoClassicStyle()

writeAsVrml

public void writeAsVrml(IXholon xhNode)
Description copied from interface: IVrmlWriter
Write VRML .wrl file

Specified by:
writeAsVrml in interface IVrmlWriter
Parameters:
xhNode - Xholon node from which to start outputting the VRML.