fi.hut.tml.xsmiles.mlfc.x3d
Class X3DMLFC

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.MLFC
      extended byfi.hut.tml.xsmiles.mlfc.x3d.X3DMLFC
All Implemented Interfaces:
ResourceFetcher

public class X3DMLFC
extends MLFC

X3D MLFC - renders X3D (VRML like) documents. !! NOTE: This class requires Java3D to compile. If you don't have Java3D installed,
!! just remove this package and try recompiling. The impact of removing this package is
!! that you cannot display X3D documents.

!! NOTE: This class also requires Java 1.2 (HashMap etc.)


Field Summary
protected  X3DRenderer renderer
           
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.MLFC
contentHandler, controlsShown, title
 
Constructor Summary
X3DMLFC()
          Empty constructor, but checks that Java3D exists.
 
Method Summary
 org.w3c.dom.Element createElementNS(org.apache.xerces.dom.DocumentImpl doc, java.lang.String ns, java.lang.String tagname)
          Create a DOM element.
 java.lang.String getVersion()
          Get the version of the MLFC.
 void start()
          Convert X3D DOM doc into VRML graph and render it.
 void stop()
          Stop rendering X3D document.
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.MLFC
commitUpdateTransaction, createAttributeNS, get, getContainer, getContentHandler, getLocalname, getMLFCController, getMLFCListener, getMLFCParameters, getResourceReferencer, getTitle, getXMLDocument, init, initMLFC, isHost, isPrimary, pause, rollbackUpdateTransaction, setContainer, setContentHandler, setHost, setMLFCListener, setMLFCParameters, setTitle, setXMLDocument, setZoom, startMLFC, startUpdateTransaction, stopMLFC
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderer

protected X3DRenderer renderer
Constructor Detail

X3DMLFC

public X3DMLFC()
Empty constructor, but checks that Java3D exists.

Method Detail

getVersion

public final java.lang.String getVersion()
Get the version of the MLFC. This version number is updated with the browser version number at compilation time. This version number indicates the browser version this MLFC was compiled with and should be run with.

Overrides:
getVersion in class MLFC
Returns:
MLFC version number.

createElementNS

public org.w3c.dom.Element createElementNS(org.apache.xerces.dom.DocumentImpl doc,
                                           java.lang.String ns,
                                           java.lang.String tagname)
Create a DOM element. We need a custom X3D element for X3D parasite language.

Overrides:
createElementNS in class MLFC

start

public void start()
Convert X3D DOM doc into VRML graph and render it.

Specified by:
start in class MLFC

stop

public void stop()
Stop rendering X3D document.

Specified by:
stop in class MLFC


X-Smiles 1.2