| TWiki . Javadesktop . ProjectWonderlandWFSReference |
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.6.0-dp" class="java.beans.XMLDecoder">
<object class="org.jdesktop.lg3d.wonderland.darkstar.server.setup.BasicCellGLOSetup">
...
</object>
</java>
There is no pre-defined ordering of tags between the two <object></object> tags above.
Each of these files is an XML serialization of a Java Bean. The serialization
follows the JSR 57:Long-Term Persistence for JavaBeansTM Specification. You can
read tutorials and documentation on this mechanism of serialization:
<void property="cellGLOClassName">
<string>org.jdesktop.lg3d.wonderland.darkstar.server.cell.SimpleTerrainCellGLO</string>
</void>
where in this case a "simple terrain" cell is created.
<void property="origin">
<void index="0">
<double>50.0</double>
</void>
<void index="1">
<double>0.0</double>
</void>
<void index="2">
<double>-10.0</double>
</void>
</void>
where index="0" denotes the x-axis, index="1" denotes the y-axis, and index="2" denotes the z-axis. Each cartesian component of the origin is a
double-precision floating point number. In the example above, the origin is set to (50.0, 0.0, -10.0). Any individual cartesian component of the
origin can be omitted, in which case it defaults to a value of zero. For example, the following sets the origin to (50.0, 0.0, 0.0):
<void property="origin">
<void index="0">
<double>50.0</double>
</void>
</void>
<void property="boundsRadius">
<double>100.0</double>
</void>
<void property="boundsType">
<string>BOX</string>
</void>
These two properties can appear in either order. The boundsRadius property is a double-precision floating point number. The boundsType
property is a string and must be either SPHERE or BOX. Either one of these properties may be absent: if so, then their individual values default
to SPHERE (for boundsType) and 4.0 (for boundsRadius). For example, the bounds in the following example would be a box of radius 4.0:
<void property="boundsType">
<string>BOX</string>
</void>
<void property="scale">
<double>3.2</double>
</void>
In this example, the visual size of the cell is scaled by 3.2x.
<void property="rotation">
<void index="0">
<double>1.0</double>
</void>
<void index="1">
<double>0.0</double>
</void>
<void index="2">
<double>1.0</double>
</void>
<void index="3">
<double>1.57</double>
</void>
</void>
where index="0" gives the x-axis component of rotation, index="1" gives the y-axis component of rotation, index="2" gives the
z-axis of rotation, and index="3" gives the angle of rotation in radians. All values are double-precision floating point numbers.
In the example above, the cell is rotated 1.57 radians (or 90 degrees) about the (1.0, 0.0, 1.0) axis. The angle of rotation can
be either positive or negative depending upon the desired direction of rotation.
Any of the individual components may be omitted, however, care must be taken because the default value of the y-axis
component of the rotation axis defaults to 1.0. In the following example, the cell is rotated 3.14 radians (180 degrees) about
the (0.0, 1.0, 0.0) axis:
<void property="rotation">
<void index="3">
<double>3.14</double>
</void>
</void>
And in the following example, the cell is rotated -1.57 radian (-90 degrees) about the (1.0, 1.0, 0.0) axis:
<void property="rotation">
<void index="0">
<double>1.0</double>
</void>
<void index="3">
<double>-1.57</double>
</void>
</void>
If you wish the y-axis component of the rotation to be a value other than 1.0, you must explicitly include
the index="2" value.
<void property="cellSetup">
<object class="classname">
...
<object>
</void>
where "classname" is the fully-qualified class name of the cell type-specific configuration class. A list of these classes for the standard cell types in
Project Wonderland is given below. The additional configuration attributes are placed between the <object></object>
tags, denoted by "...".
| Property | Type | Description | Default | Required? |
|---|---|---|---|---|
| cellGLOClassName | Class | The fully-qualified class name of the cell type to create | N/A | Yes |
| origin | array of 3 doubles | The (x, y, z) origin of the cell with respect to its parent | (0.0, 0.0, 0.0) | No |
| boundsType | String | The geometric object describing the cell bounds, either SPHERE or BOX | SPHERE | No |
| boundsRadius | double | The radius of the cell bounds | 4.0 | No |
| scale | double | The amount to scale the cell | 1.0 | No |
| rotation | array of 4 doubles | Rotate the cell some number of radians about the axis (x, y, z) | (0.0, 1.0, 0.0), 0.0 radians | No |
| cellSetup | Object | The cell-type specific configuration information | N/A | Yes |
| Cell Type | cellGLOClassName cellSetup | Description | Documentation |
|---|---|---|---|
| Simple Terrain | org.jdesktop.lg3d.wonderland.darkstar.server.cell.SimpleTerrainCellGLO org.jdesktop.lg3d.wonderland.darkstar.server.setup.ModelCellSetup | Displays simple 3D geometry | TBD |
| Slide Show | org.jdesktop.lg3d.wonderland.darkstar.server.cell.SlideShowCellGLO org.jdesktop.lg3d.wonderland.darkstar.server.setup.SlideShowCellSetup | Displays a series of files as slides | TBD |
| Audio | org.jdesktop.lg3d.wonderland.darkstar.server.cell.AudioCellGLO org.jdesktop.lg3d.wonderland.darkstar.server.setup.AudioCellSetup | Displays a stationary avatar and plays a recorded audio file | TBD |
| Animated | org.jdesktop.lg3d.wonderland.darkstar.server.cell.AnimatedCellGLO org.jdesktop.lg3d.wonderland.darkstar.server.setup.AnimatedCellSetup | Animates a series of 3D geometric models | TBD |
| Model Viewer | org.jdesktop.lg3d.wonderland.darkstar.server.cell.ModelViewerCellGLO org.jdesktop.lg3d.wonderland.darkstar.server.setup.ModelCellSetup | Displays and rotates a 3D geometric model | TBD |
| Multi-Model | org.jdesktop.lg3d.wonderland.extracells.server.MultiModelCellGLO org.jdesktop.lg3d.wonderland.extracells.common.MultiModelCellSetup | Displays several 3D geometric models within a cell | TBD |
| PDF Viewer | org.jdesktop.lg3d.wonderland.pdfviewer.server.cell.PDFViewerCellGLO org.jdesktop.lg3d.wonderland.pdfviewer.common.PDFViewerCellSetup | Displays a PDF slide set | TBD |
| Video | org.jdesktop.lg3d.wonderland.videomodule.server.cell.VideoCellGLO org.jdesktop.lg3d.wonderland.videomodule.common.VideoCellSetup | Shows a recorded or webcam video | TBD |
| VNC Viewer | org.jdesktop.lg3d.wonderland.tightvncmodule.server.cell.TightVNCModuleCellGLO org.jdesktop.lg3d.wonderland.tightvncmodule.common.TightVNCModuleCellSetup | Displays a remote Windows desktop | TBD |
| Audio Recorder | org.jdesktop.lg3d.wonderland.audiorecorder.server.cell.AudioRecorderGLO org.jdesktop.lg3d.wonderland.audiorecorder.common.AudioRecorderCellSetup | Records audio for later retrieval | TBD |
| Microphone | org.jdesktop.lg3d.wonderland.extracells.server.cell.MicrophoneCellGLO org.jdesktop.lg3d.wonderland.extracells.common.MicrophoneCellSetup | Amplifies an avatar's audio who stands on the microphone platform | TBD |
| Whiteboard | org.jdesktop.lg3d.wonderland.whiteboard.server.cell.WhiteboardCellGLO org.jdesktop.lg3d.wonderland.whiteboard.common.WhiteboardCellSetup | A collaborative whiteboard application | TBD |
| Telephone | com.sun.labs.mpk20.phone.server.cell.PhoneCellGLO com.sun.labs.mpk20.phone.common.PhoneCellSetup | A telephone to place calls to the real world | TBD |
| Cone of Silence | org.jdesktop.lg3d.wonderland.extracells.server.cell.ConeOfSilenceCellGLO org.jdesktop.lg3d.wonderland.extracells.common.ConeOfSilenceCellSetup | Avatars can hold private conversations when standing within the cone | TBD |
----- Revision r3 - 02 Jul 2008 - 19:09:01 - Main.jslott
|