Public Member Functions |
| | DtTdbManager () |
| | Default constructor.
|
| | DtTdbManager (DtTerrainDbFactory *fac) |
| | Constructor receiving the terrainDbFactory to be used to load terrains/papermaps.
|
| virtual | ~DtTdbManager () |
| | Destructor.
|
| virtual bool | load (const DtFilename &filename, const DtList &searchPaths, DtString *errorString=0) |
| | Loads a database by filename.
|
| virtual bool | load (const DtFilename &filename, const DtFilename &path=DtFilename::nullFilename(), DtString *errorString=0) |
| | Specify a path not derived from mtpFile.
|
| virtual bool | load (DtTdbMetafile &tdbMeta, const DtFilename &path=DtFilename::nullFilename(), DtString *errorString=0) |
| | Loads a database by metafile.
|
| virtual Coordinate_System * | coordinateSystemFrom (const DtFilename &, const DtFilename &path=DtFilename::nullFilename(), DtString *errorString=0) |
| virtual bool | hasOptionalFlags (int flags, const DtFilename &, const DtFilename &path=DtFilename::nullFilename(), DtString *errorString=0) |
| virtual bool | loadPapermaps (DtTdbMetafile &tdbMeta, DtTerrainDatabase *db, const DtFilename &path=DtFilename::nullFilename()) |
| | Loads the only the papermaps using the coordinate system of the terrain database given If no database is given, it interally creates a temporary, empty db and uses its coordinate system.
|
| virtual bool | save (const DtFilename &filename) |
| | Saves a database by filename.
|
| virtual bool | exportPoly (const DtFilename &filename) |
| | Exports database polygons to a shapefile.
|
| virtual bool | createDatabaseFromExtent (const DtExtent &, Coordinate_System *coordSys=0) |
| | Creates a simple terrain database from the supplied extent.
|
| virtual bool | unload () |
| | Unloads the current database without saving it.
|
| virtual bool | selectTerrain (const DtVector &localLocation, DtTerrainSelection &terrainSelection) |
| virtual bool | selectTerrain (double lat, double lon, DtTerrainSelection &terrainSelection) |
| virtual bool | selectTerrain (const DtExtent &extent, DtTerrainSelection &terrainSelection, bool selectInclusive=true) |
| virtual bool | selectTerrain (const DtNetworkElement &networkElement, DtTerrainSelection &terrainSelection, bool selectInclusive=true) |
| virtual bool | processDatabase (DtTerrainDatabase &terrainDatabase, const DtGdbProcessingMetafileRecord &postProcessingRecord) const |
| | Processes the specified terrain database, as configured in the postProcessing record.
|
| virtual void | setTerrainFactory (DtTerrainDbFactory *fac) |
| | Get/Set the terrainDbFactory.
|
| virtual DtTerrainDbFactory * | terrainDbFactory () |
| virtual const DtTerrainDatabase * | terrainDatabase () const |
| | Get/Set the terrain database.
|
| virtual DtTerrainDatabase * | terrainDatabase () |
| virtual void | setTerrainDatabase (DtTerrainDatabase *t) |
| virtual const DtPaperMapDatabase * | paperMapDatabase () const |
| | Get/Set the paper map database.
|
| virtual DtPaperMapDatabase * | paperMapDatabase () |
| virtual void | setPaperMapDatabase (DtPaperMapDatabase *p) |
| virtual DtTerrainDatabase * | createTerrainDatabase () |
| | Returns a newly allocated terrain database. Override this method to return your special subclass of the terrain database.
|
| void | setCheckImageForValidityCallback (DtCheckImageForValidityCallbackFcn, void *) |
| | Sets callbacks that will be used to see if image can be loaded. Return true to load image and false to not.
|
| DtCheckImageForValidityCallbackFcn | checkImageForValidityCallback (void *&userPtr) const |
| virtual bool | loadFor3DVisualization (const DtFilename &filename, Coordinate_System *targetCoordinateSystem=0, DtString *errorString=0) |
| | Loads a database by filename, specifically for visualization in a 3D viewer.
|
| virtual bool | loadFeatureDataIntoTerrain (const DtFilename &featureDataFilename, DtTerrainDatabase &terrainDb, bool crop=false, bool planarize=true) |
| virtual DtString | loadedTerrainFilename () const |
| virtual void | setFullyLoad (bool) |
| virtual bool | fullyLoad () const |
The DtTdbManager class is intended to be used as a single point of interface to a terrain database, and to provide an "administrative" interface to that terrain database.
The "administrative" interface includes all operations that affect the terrain database directly as opposed to those that model interactions with a terrain database. For instance, loading, post-processing, and saving a terrain database are all administrative operations. However, performing an intersection to determine altitude at a point and other properties specific to that area of the terrain in question is really modeling an interaction with the terrain.