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

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

public class PrototypeManager
extends BuildingManager

The PrototypeManager class TODO add class documentation here.

Version:
$Revision: 22091 $, $Date: 2010-01-21 13:55:12 +0100 (Thu, 21 Jan 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
PrototypeManager(ModelBackend<?> modelBackend, String textureDir, String buildingID, double[] wpvsTranslationVector)
           
 
Method Summary
 BackendResult importFromFile(File f, org.apache.commons.cli.CommandLine commandLine)
          Imports the data from the given file.
protected  BackendResult insertIntoBackend(List<WorldRenderableObject> buildings)
           
 
Methods inherited from class org.deegree.tools.rendering.manager.buildings.BuildingManager
readBuildingsFromFile
 
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

PrototypeManager

public PrototypeManager(ModelBackend<?> modelBackend,
                        String textureDir,
                        String buildingID,
                        double[] wpvsTranslationVector)
Parameters:
modelBackend -
textureDir -
buildingID -
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.

Overrides:
importFromFile in class BuildingManager
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

insertIntoBackend

protected BackendResult insertIntoBackend(List<WorldRenderableObject> buildings)
                                   throws IOException
Parameters:
buildings -
Returns:
the result of the insertion.
Throws:
IOException


Copyright © 2011. All Rights Reserved.