org.deegree.tools.rendering.manager.buildings
Class BuildingManager
java.lang.Object
org.deegree.tools.rendering.manager.ModelManager<org.deegree.rendering.r3d.opengl.rendering.model.geometry.WorldRenderableObject>
org.deegree.tools.rendering.manager.buildings.BuildingManager
- Direct Known Subclasses:
- PrototypeManager
public class BuildingManager
- extends ModelManager<org.deegree.rendering.r3d.opengl.rendering.model.geometry.WorldRenderableObject>
The BuildingManager imports buildings from vrml or citygml files.
- Version:
- $Revision: 22091 $, $Date: 2010-01-21 13:55:12 +0100 (Do, 21 Jan 2010) $
- Author:
- Rutger Bezema, last edited by: $Author: rbezema $
|
Constructor Summary |
BuildingManager(org.deegree.services.wpvs.io.ModelBackend<?> modelBackend,
String textureDir,
int numberOfQualityLevels,
int qualityLevel,
String buildingID,
boolean createLowestLevels,
double[] wpvsTranslationVector)
|
|
Method Summary |
org.deegree.services.wpvs.io.BackendResult |
importFromFile(File f,
org.apache.commons.cli.CommandLine commandLine)
Imports the data from the given file. |
protected List<org.deegree.rendering.r3d.opengl.rendering.model.geometry.WorldRenderableObject> |
readBuildingsFromFile(File f,
org.apache.commons.cli.CommandLine commandLine)
Read the buildings from the given file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildingManager
public BuildingManager(org.deegree.services.wpvs.io.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
importFromFile
public org.deegree.services.wpvs.io.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<org.deegree.rendering.r3d.opengl.rendering.model.geometry.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<org.deegree.rendering.r3d.opengl.rendering.model.geometry.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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>