org.deegree.tools.rendering.manager.stage
Class StageManager

java.lang.Object
  extended by org.deegree.tools.rendering.manager.ModelManager<WorldRenderableObject>
      extended by org.deegree.tools.rendering.manager.stage.StageManager

public class StageManager
extends ModelManager<WorldRenderableObject>

The StageManager imports stage definitions from a csv file.

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
StageManager(ModelBackend<?> modelBackend, int numberOfLevels, int qualityLevel, double[] wpvsTranslationVector)
           
 
Method Summary
 BackendResult importFromFile(File f, org.apache.commons.cli.CommandLine commandLine)
          Imports the data 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

StageManager

public StageManager(ModelBackend<?> modelBackend,
                    int numberOfLevels,
                    int qualityLevel,
                    double[] wpvsTranslationVector)
Parameters:
modelBackend - containing parameters for the database
numberOfLevels - of this stage model
qualityLevel - to add the stages.
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 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


Copyright © 2011. All Rights Reserved.