Public Member Functions |
| | DtTerrainApplication (int &argc, char **argv) |
| | Constructor.
|
| virtual | ~DtTerrainApplication () |
| | Destructor.
|
| virtual bool | init (DtTMFactory *f, bool bShowSplashScreen=true) |
| | Initializer. MUST BE CALLED.
|
| virtual DtTerrainFeaturesListEx * | featuresList () |
| virtual DtTerrainDrawerColl * | terrainDrawerColl () const |
| | Access terrain drawer collection.
|
| virtual DtBoundingVolumesManager * | boundingVolumesManager () const |
| | Access bounding volumes manager.
|
| virtual bool | openTerrainDatabase (const QString &db) |
| | Higher level API that allows the user to open a terrain database.
|
| virtual void | closeTerrainDatabase () |
| | Closes any database that is currently opened without promping for user feedback.
|
| virtual void | setTerrainUnitFormatter (DtTerrainUnitFormatter *) |
| const DtTerrainUnitFormatter * | unitFormatter () const |
| | DtTMApplication () |
| | Default Constructor.
|
| | DtTMApplication (int &argc, char **argv) |
| | Constructor.
|
| virtual | ~DtTMApplication () |
| | Destructor.
|
| virtual void | initializeQApplicationObject () |
| | If there is no global qApp defined, this routine will create one and install this object as the event filter.
|
| virtual DtBaseWindow * | createWindow (QWidget *parent, int mode=DtMenu_Hide, const Qt::WindowFlags &flags=0) |
| | This routine will create a new window (from the factory) and return a pointer to it.
|
| virtual QVector< DtModelKey > | selectedModelKeys () const |
| | Given the current active window, and active map area within that window, return the current selected model keys.
|
| virtual const DtTMFactory * | factory () const |
| | Returns a pointer to the current factory.
|
| virtual DtTMFactory * | factory () |
| virtual void | setFactory (DtTMFactory *f) |
| | Sets the current factory.
|
| virtual DtTMMiniMap * | globalMiniMap () const |
| | Returns pointer to terrain minimap.
|
| virtual DtModelDataDict & | ModelDataDict () |
| | Returns the list of Symbol Datas.
|
| virtual DtModelDataIter * | ModelDataIter () const |
| | Returns the list of Symbol Datas.
|
| virtual DtBaseWindow * | createNewWindow (QWidget *parent=NULL, int mode=DtWindow_NoAction, const Qt::WindowFlags &f=0) |
| | Creates a new window.
|
| virtual DtBaseWindow * | activeWindow () const |
| | Returns the currently active window.
|
| DtTMAppOptions * | options () const |
| DtTMDisplayOptions * | displayOptions () const |
| virtual DtDrawerColl * | drawerColl () |
| virtual const QString & | filenameInUse () |
| virtual void | setFilenameInUse (const QString &filename) |
| virtual DtBaseSymbolMapper * | baseSymbolMapper () const |
| | Returns the default instance of the symbol mapper.
|
| DtArchiver * | archiver () |
| | Returns archiver that can be used to add in items to save/restore from settings file.
|
| virtual DtBaseWindow * | mainWindowFromObject (QObject *o, DtBaseWindow *defaultWindow) const |
| | Used in reparenting global mini-map.
|
| virtual void | addWindow (const DtBaseWindow *w) |
| | Adds a new window to the window list.
|
| virtual void | addManagedArea (DtTMArea *) |
| | Adds a new area to be managed by this application.
|
| virtual bool | hasWindows () const |
| | Returns true if a window exists.
|
| virtual DtWindowList * | windowList () |
| | Returns the list of windows.
|
| virtual int | fastestFrameRate () |
| | Of all the windows opened, return the fastest frame rate.
|
| virtual bool | exec () |
| | Run the qApp exec.
|
| virtual void | startTickTimer (int mSec, bool allowFutureOverride=true) |
| | Starts the tick timer at the specified msec.
|
| virtual void | setAllowTickTimerOverride (bool b) |
| virtual bool | allowTickTimerOverride () |
| virtual void | adjustTickTimerToMeet (int mSec) |
| | This routine will attempt to meet the minimum frame rate request if the tick timer can be modified.
|
| virtual int | tickTimerRate () |
| | Returns the rate of the current user tick timer.
|
| virtual void | setSuspendTicking (bool b) |
| | Suspend ticking of application.
|
| virtual bool | suspendTicking () |
| virtual void | setInTick (bool b) |
| | Set when the application is in the process of ticking.
|
| virtual DtModelData * | dataWithName (const QString &name, const QVector< int > *except=NULL) |
| | Returns the model data with the specified name.
|
| virtual DtModelData * | findLocalDataFor (const DtModelKey &key) |
| | Find data in local data dictionaries for the specified key.
|
| virtual const DtModelKey * | findLocalModelKey (DtSymbol *s) |
| | Find the model key, searching the view drivers of our known main windows.
|
| virtual DtModelData * | findModelData (DtSymbol *s) |
| | Find the model key, searching the view drivers of our known main windows.
|
| virtual DtViewDriver * | viewDriverFor (DtSymbol *s) |
| | Returns the view driver that holds the specified symbols.
|
| virtual DtViewDriver * | viewDriverFor (const DtModelKey &key) |
| | Returns the view driver that holds the specified model key.
|
| virtual DtPopupMenu * | menuFromAction (QAction *) |
| | Returns a menu that has this QAction.
|
| virtual void | markForUpdate (DtModelDataIter *iter) |
| | Mark this data for update by telling all child windows to mark it for update.
|
| virtual void | modelDataChanged (const DtModelData &data, int iChangedFlags) |
| | Different from markForUpdate in that it will mark the data for update and emit a model changed signal.
|
| virtual DtModelData * | checkForDuplicateName (const DtModelData *checker, QString name, const QVector< int > *except=NULL) |
| | Does a name check for the requesting model data and the new name.
|
| virtual void | setDuplicateNameCheck (bool b) |
| | Set to false if duplicate name checks should not be made (default is true)
|
| virtual bool | duplicateNameCheck () const |
| virtual DtEventSignaller * | eventSignaller () |
| | Returns the event signaller the user can register to handle certain application level events.
|
| virtual DtEventController & | eventController () |
| | Returns the applications event controller.
|
| virtual const DtEventController & | eventController () const |
| 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 bool | fullScreenMode () const |
| | Returns state of full screen mode.
|
| virtual bool | isConcave (QVector< DtPoint > *pointList) |
| | Returns true if the point list supplied creates a concave shape.
|
| virtual void | addSymbol (const DtModelData &, bool force=true) |
| | Adds the specified symbol to all opened windows.
|
| virtual void | addSymbol (const DtModelData &, DtSymbol *) |
| virtual void | removeSymbol (const DtModelData &, bool removeFromDict=false) |
| | Removes the symbol from the windows, and, optionally the dictionary as well.
|
| virtual void | clear () |
| | Removes any model data from the data dictionary that is of type DtLocalControlModelDataType.
|
| virtual void | symbolMapChanged () |
| | Removes all symbols from all map areas and windows.
|
| virtual bool | terrainLoaded () const |
| | Returns true if a terrain database is loaded.
|
virtual
DtCoordinateSystemCollection * | coordinateSystemCollection () const |
| virtual DtUnitDisplayManager * | unitDisplayManager () const |
| virtual DtUnitConverterFactory * | unitConverterFactory () const |
| virtual bool | allowTerrainProfileTracking () const |
| | Return true to allow terrain profile tracking to be enabled for terrain profile dialogs.
|
| virtual void | setUpdateOnTick (bool b, bool updateMini=false) |
| | Tells all children windows (and mini map) to update on next tick.
|
| virtual void | setPrintMode (bool b) |
| | If we are in print mode, so objects (such as routes) can draw differently.
|
| virtual bool | printMode () const |
| virtual QString | dataFolder () |
| | Returns the data folder of this application.
|
| virtual QString | makeRelativeTo (QString filename, QString path) |
| | If the name given contains the directory, adds ../ to that path, removing everything before it.
|
| virtual QString | relativePath () |
| | Returns the folder that paths should be made relative to.
|
| int | settingsVersion () const |
| virtual QString | appName () const |
| virtual QString | appVersion () const |
| virtual QString | pluginVersion () const |
| virtual QString | buildDate () const |
| virtual DtString | pluginName () const |
| | Used for plugins only.
|
| virtual void | setSplashScreenMessage (const QString &) |
| | If there is a splash screen, shows message on it.
|
| virtual bool | startSplashScreenProgress (const QString &title, int iTotalSteps) |
| | Returns true if the progress status can be started on the splash screen.
|
| virtual void | updateSplashScreenProgress (int) |
| virtual void | endSplashScreenProgress () |
| virtual bool | splashScreenIsActive () const |
| | Returns true if splash screen is active.
|
| bool | applicationInitialized () const |
| | Set to true when first window is shown, meaning application has been initialized.
|
| virtual void | attachEventController (DtEventController *) |
| | If you are creating an event controller that can be used with this application, call this method to add it to event controllers that are tickable.
|
| QList< DtEventController * > & | attachedEventControllers () |
| | Does not include the default event controller.
|
| virtual void | tickEventControllers () |
| virtual void | clearCurrentEvents () |
| virtual void | setSplashScreenImage (const QString &) |
| | Must call before init.
|
| virtual DtTMMapArea * | mapContainsData (const DtModelData *data) const |
| | If a map area contains the model data, returns the map area that contains it.
|
| virtual bool | eventFilter (QObject *o, QEvent *e) |
| | This is part of the work-around described in recursiveTimer.h.
|
| virtual bool | event (QEvent *e) |
| virtual QString | resolveFile (const QString &) const |
| | Returns full qualified filename given current directory and relative file to it.
|
| virtual DtTMPluginManager * | pluginManager () const |
| virtual void | mergeFeatureActionManager (const DtFeatureActionManager &) |
| | Because feature action managers are local to windows, passes this down to each window to merge.
|
| virtual void | mergeToolbarManager (const DtToolbarFactoryManager &) |
| | Because toolbar managers are local to windows, passes this down to each window to merge.
|
| virtual void | revertToolbars () |
| | Asks all windows to revert toolbars using stored toolbar factory information.
|
| virtual DtEnvironmentalModelData * | createObject (const QString &object, QVector< DtPoint > &points, const QString &name=QString::null) |
| | These routines will aide in the creating of symbols and model data based on their name.
|
| virtual bool | canPaste () const |
| | Routines that are used to store paste information for copy/paste operation.
|
| virtual void | setPasteData (const QByteArray &) |
| virtual void | clearPasteData () |
| const QByteArray & | pasteData () const |