org.deegree.tools.rendering.manager.buildings.importers
Class VRMLImporter

java.lang.Object
  extended by org.deegree.tools.rendering.manager.buildings.importers.VRMLImporter
All Implemented Interfaces:
ModelImporter

public class VRMLImporter
extends Object
implements ModelImporter

The J3DToCityGMLExporter exports a J3D scene to citygml level 1.

Version:
$Revision: 26724 $, $Date: 2010-09-14 08:44:18 +0200 (Tue, 14 Sep 2010) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Field Summary
static String INV_YZ
          Key to flip the y(second) and z (third) axis
static String MAX_TEX_DIM
          Key for the max texture size
static String ROT_ANGLE
          Key for the rotation angle key, 4 comma separated values, x,y,z,a
static String TEX_DIR
          Key for the texture directory
static String XTRANS
          Key for the translation of the x (first) axis
static String YTRANS
          Key for the translation of the y (second) axis
static String ZTRANS
          Key for the translation of the z (third) axis
 
Constructor Summary
VRMLImporter()
          A default constructor allows the instantiation of this exported to supply the getParameterList method.
VRMLImporter(Map<String,String> params)
           
 
Method Summary
 List<WorldRenderableObject> importFromFile(String fileName, int numberOfQualityLevels, int qualityLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROT_ANGLE

public static final String ROT_ANGLE
Key for the rotation angle key, 4 comma separated values, x,y,z,a

See Also:
Constant Field Values

XTRANS

public static final String XTRANS
Key for the translation of the x (first) axis

See Also:
Constant Field Values

YTRANS

public static final String YTRANS
Key for the translation of the y (second) axis

See Also:
Constant Field Values

ZTRANS

public static final String ZTRANS
Key for the translation of the z (third) axis

See Also:
Constant Field Values

INV_YZ

public static final String INV_YZ
Key to flip the y(second) and z (third) axis

See Also:
Constant Field Values

TEX_DIR

public static final String TEX_DIR
Key for the texture directory

See Also:
Constant Field Values

MAX_TEX_DIM

public static final String MAX_TEX_DIM
Key for the max texture size

See Also:
Constant Field Values
Constructor Detail

VRMLImporter

public VRMLImporter()
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.


VRMLImporter

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

importFromFile

public List<WorldRenderableObject> importFromFile(String fileName,
                                                  int numberOfQualityLevels,
                                                  int qualityLevel)
                                           throws IOException
Specified by:
importFromFile in interface ModelImporter
Parameters:
fileName - pointing to a location to load an exportable file from.
numberOfQualityLevels - each resulting WorldRenderableObject should have.
qualityLevel - of the models in the given file.
Returns:
the list of qualitymodels loaded from the given filename.
Throws:
IOException


Copyright © 2011. All Rights Reserved.