VR-Forces 4.0.4 Class Documentation
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtTerrainAppEventController Class Reference
Inheritance diagram for DtTerrainAppEventController:
Inheritance graph
[legend]

List of all members.

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 DtTdbManagertdbManager () const
 Access tdb manager.
virtual const DtTerrainDatabaseterrainDatabase () const
 Stub routine to allow users to return a terrain database more easily from application subclasses.
virtual DtTerrainDatabaseterrainDatabase ()
virtual const DtPaperMapDatabasepaperMapDatabase () const
virtual DtPaperMapDatabasepaperMapDatabase ()
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.
DtTerrainDbFactoryterrainDatabaseFactory ()

Static Public Member Functions

static void terrainModified (DtTerrainDatabase *terrain, const DtExtent &changedVolume, void *usrData)
 Routines called when the terrain database is modified.
static DtEventControllercreate ()
 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

DtTerrainDbFactorymyTerrainDbFactory
 protected member data
DtTerrainReaderFactorymyTerrainReaderFactory
DtTerrainWriterFactorymyTerrainWriterFactory
DtTdbMetafileFactorymyMetafileFactory
DtPaperMapFactorymyPaperMapFactory
DtVectorDataFactorymyVectorDataFactory
DtTdbManagermyTdbManager
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 & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

Access tdb manager.

Stub routine to allow users to return a terrain database more easily from application subclasses.

Reimplemented from DtEventController.

Reimplemented from DtEventController.

Reimplemented from DtEventController.

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

Returns:
Pointer to the DtTerrainDbFactory instance created by this class.

Sent when the database dirty flag has changed.

void DtTerrainAppEventController::databaseWasSaved ( const QString &  ) [signal]
Returns:
True if the user selected a database, and it was able to be loaded. False if the user cancels out of operation, or database fails to load.
virtual void DtTerrainAppEventController::processFileCloseDatabase ( bool  askConvert = true) [virtual, slot]
virtual void DtTerrainAppEventController::processFileSaveDatabase ( ) [virtual, slot]
virtual int DtTerrainAppEventController::processDirtyDatabase ( ) [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.

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.

Toggle the drawing of polygons using the default soil type color.

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.


Member Data Documentation

protected member data

Keeps track of whether or not this is a database converted from geocentric.

Set when saving the database while converting from geocentric.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)