camera3d
Class XMLConverter

java.lang.Object
  extended bycamera3d.XMLConverter

public class XMLConverter
extends java.lang.Object

A class for saving/retrieving information about the working environment. Currently, only information about objects native to the Virtual Camera (e.g. lights, cameras, distance measurers, etc) and graphical components is supported. All information about content imported into the the application is lost.

Author:
Fábio Roberto de Miranda e Carlos da Silva dos Santos

Constructor Summary
XMLConverter()
           
XMLConverter(J3DBase base)
          Creates new converter, setting the J3DBase object which will provide/receive scene graph information.
 
Method Summary
 J3DBase getBase()
          Returns the J3DBase which provides/receives scene graph information.
 void load(java.lang.String filename, GUIControl guiControl)
          Loads the content of a file into the scene graph and configures graphical components.
 void setBase(J3DBase base)
          Sets the J3DBase which will provide/receive scene graph information.
 void write(java.lang.String filename, GUIControl guiControl)
          Creates a new Document based on scene graph information and outputs it to a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLConverter

public XMLConverter()

XMLConverter

public XMLConverter(J3DBase base)
Creates new converter, setting the J3DBase object which will provide/receive scene graph information.

Method Detail

setBase

public void setBase(J3DBase base)
Sets the J3DBase which will provide/receive scene graph information.


getBase

public J3DBase getBase()
Returns the J3DBase which provides/receives scene graph information.


write

public void write(java.lang.String filename,
                  GUIControl guiControl)
Creates a new Document based on scene graph information and outputs it to a file.


load

public void load(java.lang.String filename,
                 GUIControl guiControl)
Loads the content of a file into the scene graph and configures graphical components.

Parameters:
filename - complete path to configuration file.
guiControl - serves as access point to scene graph and graphical components.


Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.