|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.tools.rendering.manager.ModelManager<FB>
FB
- The type of the filebackend.public abstract class ModelManager<FB extends PositionableModel>
The ModelManager
class defines a simple interface for inserting, deleting and updating different kind of
data models into the WPVS.
Field Summary | |
---|---|
protected File |
textureDir
The place to store textures. |
protected double[] |
wpvsTranslationVector
The translation to the origin of the WPVS scene. |
Constructor Summary | |
---|---|
protected |
ModelManager(String textureDir,
ModelBackend<?> modelBackend,
double[] wpvsTranslationVector)
|
Method Summary | |
---|---|
BackendResult |
delete(String uuid,
ModelBackend.Type objectType,
int qualityLevel,
String sqlWhere)
Imports the data from the given file. |
void |
flush()
|
ModelBackend<?> |
getDbBackend()
|
File |
getTextureDir()
|
abstract BackendResult |
importFromFile(File f,
org.apache.commons.cli.CommandLine commandLine)
Imports the data from the given file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final File textureDir
protected final double[] wpvsTranslationVector
Constructor Detail |
---|
protected ModelManager(String textureDir, ModelBackend<?> modelBackend, double[] wpvsTranslationVector)
textureDir
- modelBackend
- wpvsTranslationVector
- 2d vector to the origin of the wpvs sceneMethod Detail |
---|
public BackendResult delete(String uuid, ModelBackend.Type objectType, int qualityLevel, String sqlWhere) throws IOException
uuid
- the file in an expected format.objectType
- to be deletedqualityLevel
- the qualitylevel to be deleted, if -1 the object will be deleted from the backend.sqlWhere
- defining a where clause on elements to be deleted.
IOException
public abstract BackendResult importFromFile(File f, org.apache.commons.cli.CommandLine commandLine) throws FileNotFoundException, IOException
f
- the file in an expected format.commandLine
- program parameters only necessary for a given instance object will be available in the commandline.
FileNotFoundException
IOException
public final ModelBackend<?> getDbBackend()
public final File getTextureDir()
public void flush() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |