|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.services.wpvs.io.ModelBackend<org.deegree.geometry.Envelope> org.deegree.services.wpvs.io.file.FileBackend
public class FileBackend
The FileBackend
is the access to the model in files on the local file system.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.deegree.services.wpvs.io.ModelBackend |
---|
ModelBackend.Type |
Constructor Summary | |
---|---|
FileBackend(java.io.File billboardFile)
|
|
FileBackend(java.io.File entityFile,
java.io.File prototypeFile)
|
Method Summary | ||
---|---|---|
org.deegree.geometry.Envelope |
createBackendEnvelope(org.deegree.geometry.Envelope geometry,
int dimension)
|
|
org.deegree.geometry.Envelope |
createEnvelope(org.deegree.geometry.Envelope someGeometry)
Create an envelope from the given Geometry type. |
|
BackendResult |
delete(java.lang.String uuid,
ModelBackend.Type objectType,
int qualityLevel,
java.lang.String sqlWhere)
Delete some data from the backend. |
|
void |
flush()
flush any cached data to the backend and close the connections. |
|
ModelBackendInfo |
getBackendInfo(ModelBackend.Type type)
Retrieve some information on the number of vertices and texture coordinates used in the backend. |
|
java.lang.Object |
getDeSerializedObjectForUUID(ModelBackend.Type objectType,
java.lang.String uuid)
Retrieves and deserializes an object from the given type. |
|
java.util.List<java.lang.Object> |
getDeSerializedObjectsForSQL(ModelBackend.Type objectType,
java.lang.String sqlWhere)
Retrieves and deserializes objects from the given type. |
|
protected java.lang.String |
getDriverPrefix()
|
|
static void |
initFiles(java.io.File entityFile)
|
|
|
insert(java.util.List<DataObjectInfo<P>> objects,
ModelBackend.Type objectType)
Insert given data into the backend. |
|
boolean |
isBillboard()
|
|
void |
loadBuildings(org.deegree.rendering.r3d.opengl.rendering.model.manager.BuildingRenderer bm,
org.deegree.cs.CRS baseCRS)
Retrieves the WorldRenderable objects from the backend. |
|
void |
loadEntities(org.deegree.rendering.r3d.opengl.rendering.model.manager.RenderableManager<?> renderer,
org.deegree.cs.CRS baseCRS)
|
|
java.util.List<org.deegree.rendering.r3d.opengl.rendering.model.prototype.RenderablePrototype> |
loadProtoTypes(org.deegree.rendering.r3d.opengl.rendering.model.geometry.DirectGeometryBuffer geometryBuffer,
org.deegree.cs.CRS baseCRS)
Retrieves the WorldRenderable objects from the prototypes table in the database. |
|
void |
loadTrees(org.deegree.rendering.r3d.opengl.rendering.model.manager.TreeRenderer tm,
org.deegree.cs.CRS baseCRS)
Retrieves the Billboard objects from the backend. |
Methods inherited from class org.deegree.services.wpvs.io.ModelBackend |
---|
getBaseCRS, getBuildingSerializer, getInstance, getPrototypeSerializer, getSerializerForType, getTreeSerializer, getWPVSTranslationVector, setWPVSBaseCRS, setWPVSTranslationVector |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileBackend(java.io.File billboardFile) throws java.io.IOException
billboardFile
-
java.io.IOException
public FileBackend(java.io.File entityFile, java.io.File prototypeFile) throws java.io.IOException
entityFile
- prototypeFile
-
java.io.IOException
Method Detail |
---|
public org.deegree.geometry.Envelope createBackendEnvelope(org.deegree.geometry.Envelope geometry, int dimension)
createBackendEnvelope
in class ModelBackend<org.deegree.geometry.Envelope>
dimension
- of the result geometry
public org.deegree.geometry.Envelope createEnvelope(org.deegree.geometry.Envelope someGeometry)
ModelBackend
createEnvelope
in class ModelBackend<org.deegree.geometry.Envelope>
public java.lang.Object getDeSerializedObjectForUUID(ModelBackend.Type objectType, java.lang.String uuid) throws java.io.IOException
ModelBackend
getDeSerializedObjectForUUID
in class ModelBackend<org.deegree.geometry.Envelope>
uuid
- of the object
null
if given uuid did not match.
java.io.IOException
protected java.lang.String getDriverPrefix()
getDriverPrefix
in class ModelBackend<org.deegree.geometry.Envelope>
public void loadBuildings(org.deegree.rendering.r3d.opengl.rendering.model.manager.BuildingRenderer bm, org.deegree.cs.CRS baseCRS)
ModelBackend
loadBuildings
in class ModelBackend<org.deegree.geometry.Envelope>
bm
- to add the building tobaseCRS
- the crs of the WPVS scenepublic java.util.List<org.deegree.rendering.r3d.opengl.rendering.model.prototype.RenderablePrototype> loadProtoTypes(org.deegree.rendering.r3d.opengl.rendering.model.geometry.DirectGeometryBuffer geometryBuffer, org.deegree.cs.CRS baseCRS)
ModelBackend
loadProtoTypes
in interface org.deegree.rendering.r3d.persistence.RenderableStore
loadProtoTypes
in class ModelBackend<org.deegree.geometry.Envelope>
baseCRS
- the crs of the WPVS scene
null
.public void loadTrees(org.deegree.rendering.r3d.opengl.rendering.model.manager.TreeRenderer tm, org.deegree.cs.CRS baseCRS)
ModelBackend
loadTrees
in class ModelBackend<org.deegree.geometry.Envelope>
tm
- to add the trees to.baseCRS
- the crs of the WPVS scenepublic BackendResult delete(java.lang.String uuid, ModelBackend.Type objectType, int qualityLevel, java.lang.String sqlWhere) throws java.io.IOException
ModelBackend
delete
in class ModelBackend<org.deegree.geometry.Envelope>
uuid
- the id of the object to delete.objectType
- defining the type of object.
java.io.IOException
public <P extends org.deegree.commons.index.PositionableModel> BackendResult insert(java.util.List<DataObjectInfo<P>> objects, ModelBackend.Type objectType) throws java.io.IOException
ModelBackend
insert
in class ModelBackend<org.deegree.geometry.Envelope>
P
- type of the positionableobjectType
- defining the type of the dataModel
java.io.IOException
public void flush() throws java.io.IOException
ModelBackend
flush
in class ModelBackend<org.deegree.geometry.Envelope>
java.io.IOException
- if flushing was not successfulpublic ModelBackendInfo getBackendInfo(ModelBackend.Type type)
ModelBackend
getBackendInfo
in class ModelBackend<org.deegree.geometry.Envelope>
public java.util.List<java.lang.Object> getDeSerializedObjectsForSQL(ModelBackend.Type objectType, java.lang.String sqlWhere)
ModelBackend
getDeSerializedObjectsForSQL
in class ModelBackend<org.deegree.geometry.Envelope>
sqlWhere
- to select the objects to retrieve
public void loadEntities(org.deegree.rendering.r3d.opengl.rendering.model.manager.RenderableManager<?> renderer, org.deegree.cs.CRS baseCRS)
public boolean isBillboard()
public static void initFiles(java.io.File entityFile) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |