![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Slots | |
| virtual bool | processFileOpenDatabase () |
| virtual void | processFileCloseDatabase (bool askConvert=true) |
| virtual void | processFileSaveDatabase () |
| virtual void | processFileSaveAsDatabase () |
| virtual int | processDirtyDatabase () |
| virtual void | processTerrainDatabaseInformation () |
| virtual bool | openDatabase (QString database) |
| Opens the specified database using the openDatabase handler. | |
| virtual void | processToggleViewPolygons (bool toggle) |
| Toggle the display of polygons on/off. | |
| virtual void | processToggleViewFeatures (bool) |
| Toggle the display of vector features on/off. | |
| virtual void | processToggleViewWireframe (bool toggle) |
| Toggle the display of polygons on/off. | |
| virtual void | processToggleViewContourLines (bool toggle) |
| Toggle the display of contour lines on/off. | |
| virtual void | processToggleViewTerrainShading (bool toggle) |
| Toggle the display of terrain shading on/off. | |
| virtual void | processToggleViewPaperMaps (bool toggle) |
| Toggle the display of paper maps on/off. | |
| virtual void | processToggleColorPolygonsUsingSoilType (bool toggle) |
| Toggle the drawing of polygons using the default soil type color. | |
Signals | |
| void | terrainDatabaseSet (const DtTerrainDatabase *t) |
| void | paperMapLoaded (const DtPaperMapDatabase *p) |
| void | terrainDatabaseModified (DtTerrainDatabase *t, const DtExtent &extent) |
| void | databaseDirty (bool) |
| Sent when the database dirty flag has changed. | |
| void | databaseWasSaved (const QString &) |
Public Member Functions | |
| DtTerrainAppEventController () | |
| Constructor. | |
| virtual | ~DtTerrainAppEventController () |
| Destructor. | |
| virtual DtTdbManager * | tdbManager () const |
| Access tdb manager. | |
| virtual const DtTerrainDatabase * | terrainDatabase () const |
| Stub routine to allow users to return a terrain database more easily from application subclasses. | |
| virtual DtTerrainDatabase * | terrainDatabase () |
| virtual const DtPaperMapDatabase * | paperMapDatabase () const |
| virtual DtPaperMapDatabase * | paperMapDatabase () |
| virtual void | setDatabaseDirty (bool b) |
| virtual bool | databaseDirty () const |
| virtual void | closeDatabase () |
| Calls processFileCloseDatabase with ask of false. | |
| virtual void | databaseSaved (const QString &name) |
| Called by the save handler when a database is saved. | |
| virtual void | processTerrainModified (DtTerrainDatabase *terrain, const DtExtent &changedVolume) |
| virtual void | preloadDatabase (DtFilename &name) |
| Called before the database handler opens the database. | |
| virtual void | createDatabaseFromExtent (const DtExtent &extent) |
| Creates a new database from the given extent. | |
| DtTerrainDbFactory * | terrainDatabaseFactory () |
Static Public Member Functions | |
| static void | terrainModified (DtTerrainDatabase *terrain, const DtExtent &changedVolume, void *usrData) |
| Routines called when the terrain database is modified. | |
| static DtEventController * | create () |
| Static creator function. | |
Protected Member Functions | |
| virtual void | initFactories () |
| Inits all member variables. | |
| virtual void | completeDatabaseOpen () |
| Called when a database has sucessfully been opened, this will emit signals about this new database (paperMapLoaded, terrainDatabaseSet) | |
| virtual void | aboutToQuit () |
| This method will be called right before the application quits. | |
| virtual void | checkConvertDatabase () |
| Checks to see if database if of type geocentric, and, if it is, asks the user if they want to convert to geodetic. | |
| virtual bool | shouldAskDatabaseSave () const |
| Return whether or not to ask if a database should be saved, even if dirty or old format. | |
Protected Attributes | |
| DtTerrainDbFactory * | myTerrainDbFactory |
| protected member data | |
| DtTerrainReaderFactory * | myTerrainReaderFactory |
| DtTerrainWriterFactory * | myTerrainWriterFactory |
| DtTdbMetafileFactory * | myMetafileFactory |
| DtPaperMapFactory * | myPaperMapFactory |
| DtVectorDataFactory * | myVectorDataFactory |
| DtTdbManager * | myTdbManager |
| bool | myDatabaseDirty |
| bool | myDBConverted |
| Keeps track of whether or not this is a database converted from geocentric. | |
| bool | myConvertingDatabase |
| Set when saving the database while converting from geocentric. | |
Constructor.
| virtual DtTerrainAppEventController::~DtTerrainAppEventController | ( | ) | [virtual] |
Destructor.
| virtual DtTdbManager* DtTerrainAppEventController::tdbManager | ( | ) | const [virtual] |
Access tdb manager.
| virtual const DtTerrainDatabase* DtTerrainAppEventController::terrainDatabase | ( | ) | const [virtual] |
Stub routine to allow users to return a terrain database more easily from application subclasses.
Reimplemented from DtEventController.
| virtual DtTerrainDatabase* DtTerrainAppEventController::terrainDatabase | ( | ) | [virtual] |
Reimplemented from DtEventController.
| virtual const DtPaperMapDatabase* DtTerrainAppEventController::paperMapDatabase | ( | ) | const [virtual] |
Reimplemented from DtEventController.
| virtual DtPaperMapDatabase* DtTerrainAppEventController::paperMapDatabase | ( | ) | [virtual] |
Reimplemented from DtEventController.
| virtual void DtTerrainAppEventController::setDatabaseDirty | ( | bool | b | ) | [virtual] |
| virtual bool DtTerrainAppEventController::databaseDirty | ( | ) | const [virtual] |
| virtual void DtTerrainAppEventController::closeDatabase | ( | ) | [virtual] |
Calls processFileCloseDatabase with ask of false.
Reimplemented from DtTMAppEventController.
| virtual void DtTerrainAppEventController::databaseSaved | ( | const QString & | name | ) | [virtual] |
Called by the save handler when a database is saved.
| static void DtTerrainAppEventController::terrainModified | ( | DtTerrainDatabase * | terrain, |
| const DtExtent & | changedVolume, | ||
| void * | usrData | ||
| ) | [static] |
Routines called when the terrain database is modified.
Will emit terrainDatabaseModified signal with the extent and database modified
| virtual void DtTerrainAppEventController::processTerrainModified | ( | DtTerrainDatabase * | terrain, |
| const DtExtent & | changedVolume | ||
| ) | [virtual] |
| virtual void DtTerrainAppEventController::preloadDatabase | ( | DtFilename & | name | ) | [virtual] |
Called before the database handler opens the database.
You can even change the filename. Default is no-op
| virtual void DtTerrainAppEventController::createDatabaseFromExtent | ( | const DtExtent & | extent | ) | [virtual] |
Creates a new database from the given extent.
Unloads any database that might be loaded
| void DtTerrainAppEventController::terrainDatabaseSet | ( | const DtTerrainDatabase * | t | ) | [signal] |
| void DtTerrainAppEventController::paperMapLoaded | ( | const DtPaperMapDatabase * | p | ) | [signal] |
| void DtTerrainAppEventController::terrainDatabaseModified | ( | DtTerrainDatabase * | t, |
| const DtExtent & | extent | ||
| ) | [signal] |
| void DtTerrainAppEventController::databaseDirty | ( | bool | ) | [signal] |
Sent when the database dirty flag has changed.
| void DtTerrainAppEventController::databaseWasSaved | ( | const QString & | ) | [signal] |
| virtual bool DtTerrainAppEventController::processFileOpenDatabase | ( | ) | [virtual, slot] |
| virtual void DtTerrainAppEventController::processFileCloseDatabase | ( | bool | askConvert = true | ) | [virtual, slot] |
| virtual void DtTerrainAppEventController::processFileSaveDatabase | ( | ) | [virtual, slot] |
| virtual void DtTerrainAppEventController::processFileSaveAsDatabase | ( | ) | [virtual, slot] |
| virtual int DtTerrainAppEventController::processDirtyDatabase | ( | ) | [virtual, slot] |
| virtual void DtTerrainAppEventController::processTerrainDatabaseInformation | ( | ) | [virtual, slot] |
| virtual bool DtTerrainAppEventController::openDatabase | ( | QString | database | ) | [virtual, slot] |
Opens the specified database using the openDatabase handler.
Reimplemented from DtTMAppEventController.
| virtual void DtTerrainAppEventController::processToggleViewPolygons | ( | bool | toggle | ) | [virtual, slot] |
Toggle the display of polygons on/off.
| virtual void DtTerrainAppEventController::processToggleViewFeatures | ( | bool | ) | [virtual, slot] |
Toggle the display of vector features on/off.
| virtual void DtTerrainAppEventController::processToggleViewWireframe | ( | bool | toggle | ) | [virtual, slot] |
Toggle the display of polygons on/off.
| virtual void DtTerrainAppEventController::processToggleViewContourLines | ( | bool | toggle | ) | [virtual, slot] |
Toggle the display of contour lines on/off.
| virtual void DtTerrainAppEventController::processToggleViewTerrainShading | ( | bool | toggle | ) | [virtual, slot] |
Toggle the display of terrain shading on/off.
| virtual void DtTerrainAppEventController::processToggleViewPaperMaps | ( | bool | toggle | ) | [virtual, slot] |
Toggle the display of paper maps on/off.
| virtual void DtTerrainAppEventController::processToggleColorPolygonsUsingSoilType | ( | bool | toggle | ) | [virtual, slot] |
Toggle the drawing of polygons using the default soil type color.
| static DtEventController* DtTerrainAppEventController::create | ( | ) | [static] |
Static creator function.
Reimplemented from DtTMAppEventController.
| virtual void DtTerrainAppEventController::initFactories | ( | ) | [protected, virtual] |
Inits all member variables.
| virtual void DtTerrainAppEventController::completeDatabaseOpen | ( | ) | [protected, virtual] |
Called when a database has sucessfully been opened, this will emit signals about this new database (paperMapLoaded, terrainDatabaseSet)
| virtual void DtTerrainAppEventController::aboutToQuit | ( | ) | [protected, virtual] |
This method will be called right before the application quits.
Connected to the Qt aboutToQuit() signal
Reimplemented from DtTMAppEventController.
| virtual void DtTerrainAppEventController::checkConvertDatabase | ( | ) | [protected, virtual] |
Checks to see if database if of type geocentric, and, if it is, asks the user if they want to convert to geodetic.
If they do not, then the database is closed (via processFileCloseDatabase), else the database is converted to geodetic. The user will then be asked if they want to save that database to a new file. If they choose not to, then the databas will be marked dirty so the user can save it at a future point
| virtual bool DtTerrainAppEventController::shouldAskDatabaseSave | ( | ) | const [protected, virtual] |
Return whether or not to ask if a database should be saved, even if dirty or old format.
protected member data
DtTdbManager* DtTerrainAppEventController::myTdbManager [protected] |
bool DtTerrainAppEventController::myDatabaseDirty [protected] |
bool DtTerrainAppEventController::myDBConverted [protected] |
Keeps track of whether or not this is a database converted from geocentric.
Set when saving the database while converting from geocentric.