deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.tools.app3d
Class J3DToCityGMLExporter

java.lang.Object
  extended by org.deegree.tools.app3d.J3DToCityGMLExporter
All Implemented Interfaces:
J3DExporter

public class J3DToCityGMLExporter
extends java.lang.Object
implements J3DExporter

The J3DToCityGMLExporter exports a J3D scene to citygml level 1.

Version:
$Revision:$, $Date:$
Author:
Rutger Bezema, last edited by: $Author:$

Constructor Summary
J3DToCityGMLExporter()
          A default constructor allows the instantiation of this exported to supply the getParameterList method.
J3DToCityGMLExporter(java.util.Map<java.lang.String,java.lang.String> params)
           
J3DToCityGMLExporter(java.lang.String citygmlName, java.lang.String crsName, java.lang.String cityGMLFunction, java.lang.String textureOutputDirectory, double translationX, double translationY, double translationZ, javax.vecmath.AxisAngle4d rotAngle, boolean asWFSTransaction, boolean inverseYZ)
           
 
Method Summary
 void export(java.lang.StringBuilder result, javax.media.j3d.Group j3dScene)
          A method which can be called to export to the given format.
 java.lang.String getName()
           
 java.util.Map<java.lang.String,java.lang.String> getParameterMap()
          Should return a list of parameter names (keys) with their description (values) of all parameters this Exporter supports.
 java.lang.String getShortDescription()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J3DToCityGMLExporter

public J3DToCityGMLExporter()
A default constructor allows the instantiation of this exported to supply the getParameterList method.

NOTE this constructor is only convenient, it should not be used carelessly. Instead use one of the other constructors for correct instantiation of this class.


J3DToCityGMLExporter

public J3DToCityGMLExporter(java.util.Map<java.lang.String,java.lang.String> params)
                     throws java.io.IOException
Parameters:
params - a hashmap to extract values from. For a list of supported parameters
Throws:
java.io.IOException - if the key 'texdir' points to a file which is not a directory or is not writable

J3DToCityGMLExporter

public J3DToCityGMLExporter(java.lang.String citygmlName,
                            java.lang.String crsName,
                            java.lang.String cityGMLFunction,
                            java.lang.String textureOutputDirectory,
                            double translationX,
                            double translationY,
                            double translationZ,
                            javax.vecmath.AxisAngle4d rotAngle,
                            boolean asWFSTransaction,
                            boolean inverseYZ)
                     throws java.io.IOException
Parameters:
citygmlName - of the exported branchgroup.
crsName - of the crs to set the srsName of gmlNodes to, if null 'epsg:31466' will be used.
cityGMLFunction - to insert om the gml
textureOutputDirectory - the directory to output the textures to, if any.
translationX - a value to add up to the found x - coordinates. If NaN, 0 will be used.
translationY - a value to add up to the found y - coordinates. If NaN, 0 will be used.
translationZ - a value to add up to the found z - coordinates. If NaN, 0 will be used.
rotAngle - the rotation angle to which the all geometries should be rotated.
asWFSTransaction - true if the scene should be exported as a wfs:Transaction document (the root node is wfs:Transaction) or a cityGML document (the root node is citygml:Building).
inverseYZ -
Throws:
java.io.IOException - if the something went wrong with wile creating, referring or addressing the given filePath.
Method Detail

export

public void export(java.lang.StringBuilder result,
                   javax.media.j3d.Group j3dScene)
Description copied from interface: J3DExporter
A method which can be called to export to the given format.

Specified by:
export in interface J3DExporter
Parameters:
result - a reference to which the implementing class should write.
j3dScene - the scene to be exported.

getName

public java.lang.String getName()
Specified by:
getName in interface J3DExporter
Returns:
A Name which can be presented to a calling client;

getShortDescription

public java.lang.String getShortDescription()
Specified by:
getShortDescription in interface J3DExporter
Returns:
a simple description which describes the function of the implementing class.

main

public static void main(java.lang.String[] args)
Parameters:
args -

getParameterMap

public java.util.Map<java.lang.String,java.lang.String> getParameterMap()
Description copied from interface: J3DExporter
Should return a list of parameter names (keys) with their description (values) of all parameters this Exporter supports. It is up to the requester to use the given parameters and call the required constructor with the map, containing the keys that have values.

Specified by:
getParameterMap in interface J3DExporter
Returns:
a map containing the parameter names (keys) and their description (values)

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org