org.deegree.tools.rendering.manager.buildings
Class BuildingManager

java.lang.Object
  extended by org.deegree.tools.rendering.manager.ModelManager<WorldRenderableObject>
      extended by org.deegree.tools.rendering.manager.buildings.BuildingManager
Direct Known Subclasses:
PrototypeManager

public class BuildingManager
extends ModelManager<WorldRenderableObject>

The BuildingManager imports buildings from vrml or citygml files.

Version:
$Revision: 24355 $, $Date: 2010-05-12 15:26:57 +0200 (Wed, 12 May 2010) $
Author:
Rutger Bezema, last edited by: $Author: rbezema $

Field Summary
 
Fields inherited from class org.deegree.tools.rendering.manager.ModelManager
textureDir, wpvsTranslationVector
 
Constructor Summary
BuildingManager(ModelBackend<?> modelBackend, String textureDir, int numberOfQualityLevels, int qualityLevel, String buildingID, boolean createLowestLevels, double[] wpvsTranslationVector)
           
 
Method Summary
 BackendResult importFromFile(File f, org.apache.commons.cli.CommandLine commandLine)
          Imports the data from the given file.
protected  List<WorldRenderableObject> readBuildingsFromFile(File f, org.apache.commons.cli.CommandLine commandLine)
          Read the buildings from the given file.
 
Methods inherited from class org.deegree.tools.rendering.manager.ModelManager
delete, flush, getDbBackend, getTextureDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildingManager

public BuildingManager(ModelBackend<?> modelBackend,
                       String textureDir,
                       int numberOfQualityLevels,
                       int qualityLevel,
                       String buildingID,
                       boolean createLowestLevels,
                       double[] wpvsTranslationVector)
Parameters:
modelBackend - the backend.
textureDir - where the referenced textures may be found.
numberOfQualityLevels - to be used for the creation of a new building.
qualityLevel - of the building(s) to be imported.
buildingID - of the vrml-building.
createLowestLevels - true if the lowest two levels should be created.
wpvsTranslationVector - 2d vector to the origin of the wpvs scene
Method Detail

importFromFile

public BackendResult importFromFile(File f,
                                    org.apache.commons.cli.CommandLine commandLine)
                             throws FileNotFoundException,
                                    IOException
Description copied from class: ModelManager
Imports the data from the given file.

Specified by:
importFromFile in class ModelManager<WorldRenderableObject>
Parameters:
f - the file in an expected format.
commandLine - program parameters only necessary for a given instance object will be available in the commandline.
Returns:
the number of imported objects
Throws:
FileNotFoundException
IOException

readBuildingsFromFile

protected List<WorldRenderableObject> readBuildingsFromFile(File f,
                                                            org.apache.commons.cli.CommandLine commandLine)
                                                     throws IOException
Read the buildings from the given file.

Parameters:
f -
commandLine -
Returns:
the created d3 object representations.
Throws:
IOException


Copyright © 2011. All Rights Reserved.