Public Slots |
| virtual void | updateUnits (const QString &u, const QString &, const QString &) |
| virtual void | setTerrainDatabase (const DtTerrainDatabase *t) |
| | Sets the current database and updates.
|
| virtual void | setPaperMapDatabase (const DtPaperMapDatabase *db) |
| virtual void | setDrawerOptions (const DtTdbDrawerOptions &o) |
| | Sets the current tdb drawer options and updates.
|
| virtual void | featuresChanged (DtList *list) |
| | Called when a feature list has changed, if the DtList is not NULL, then the drawing order has also changed.
|
| virtual void | terrainDatabaseModified (DtTerrainDatabase *db, const DtExtent &extent) |
| | Call when the terrain database has been modified and the background needs to be redrawn.
|
| virtual void | zoomIn () |
| | Zooms in tdb view, emits tdbViewChanged, and updates.
|
| virtual void | zoomOut () |
| | Zooms out tdb view, emits tdbViewChanged, and updates.
|
| virtual void | drawRubberBands (QPainter *p) |
| virtual void | clearSelection (bool signal=true) |
| virtual void | changeSelection (const QVector< DtModelKey > &d) |
| virtual bool | addSelection (const QVector< DtModelKey > &d) |
| | Adds these keys to the selection list if they are not there already.
|
| virtual bool | removeSelection (const QVector< DtModelKey > &d) |
| | Removes these keys from the selection list if they are in it.
|
| virtual void | setRightClickMaintainSelection (bool b) |
| virtual bool | rightClickMaintainSelection () |
| virtual void | forcePersistentSymbol (DtSymbol *s) |
| virtual void | stopForcePersistentSymbol (DtSymbol *s) |
| virtual void | catchViewportChange (const DtTMViewportExtents *v) |
| virtual bool | dragStart () |
| | Called when a drag/drop operation is about to start.
|
| virtual void | dragComplete () |
| | Called when a drag/drop operation is complete, regardless of the success of the operation.
|
| virtual void | setFreezeSelection (bool) |
| | Sets whether or not to freeze current selection regardless of any type of change made.
|
| bool | freezeSelection () const |
| virtual void | loadDatabaseFile (const QString &) |
| virtual bool | updateAllSymbols () |
| | Go through the list of symbols that we have marked for update and update them.
|
| virtual void | updateBackground () |
| virtual void | resizeMapArea () |
| virtual DtSymbol * | addSymbol (const DtModelData &data, bool force=false) |
| virtual void | removeSymbol (const DtModelKey &data, bool force=false) |
| virtual void | setDrawOrderSymbols (bool b) |
| | Set to true to draw order symbols on the next tick.
|
| virtual void | signalDrawOrderSymbols () |
| | Signals to draw order the symbols on the next tick.
|
| virtual void | drawOrderSymbols () |
| | Draw order symbols if at least one first/last draw by having lens area draw order symbols.
|
Public Member Functions |
| | DtTerrainMapArea (QWidget *parent=NULL, const Qt::WindowFlags &flags=0) |
| | Constructor.
|
| virtual | ~DtTerrainMapArea () |
| | Destructor.
|
| virtual const DtTdbDrawerOptions & | drawerOptions () const |
| | Get tdb drawer options.
|
| virtual double | getDatabaseHeight (double x, double y) const |
| virtual void | setTerrainSelectionMode (DtTerrainSelector::DtTerrainSelectionMode mode) |
| | Selection modes.
|
| virtual bool | terrainSelectionMode () const |
| virtual DtPoint | databasePoint (int x, int y) const |
| | Given the windows coordinate, return the database point (local)
|
| virtual bool | terrainLoaded () const |
| virtual DtTacticalGdbDrawer * | tdbDrawer () const |
| | Returns the background's tacticalGdbDrawer.
|
| virtual void | markForUpdate (const DtModelData &d, bool emitSignal=true) |
| | DtTMMapArea (QWidget *parent=0, const Qt::WindowFlags &flags=0) |
| virtual | ~DtTMMapArea () |
| virtual void | setSelectorType (DtSymbolSelector::DtSelectorType type) |
| virtual DtSymbolSelector & | symbolSelector () |
| virtual DtSymbolList & | selectedSymbols () |
virtual const QVector
< DtModelKey > & | selectedModelKeys () const |
| | Returns mySelectedModelKeys.
|
| virtual QVector< DtModelKey > & | selectedModelKeys () |
| virtual bool | leftButtonClicked () |
| virtual bool | tick () |
| | Check to see if need to draw order.
|
| virtual void | setActivateMap () |
| | Activate the map.
|
| virtual void | updateSelectedModelData () |
| virtual void | setResetLabelPositions (bool b) |
| | Signal to tell the symbol updater to reset label positions (or not) on next tick.
|
| virtual void | clear () |
| | Clears out selected symbols and drawn symbols.
|
| virtual void | removeFromPersistentData (const QString &key) |
| virtual void | applyOptions (DtSymbol *s) |
| | This routine will ask the symbol updater to apply the options for the supplied symbol.
|
| DtObjectSelector * | objectSelector () |
| virtual bool | startNullSelectionMode (bool showHandCursor=false) |
| | Routines that will allow certain valid selections on the map area Start null selection mode.
|
| virtual bool | startNormalSelectionMode () |
| | Start normal selection mode.
|
| virtual bool | startSymbolPointSelectionMode (int selectionMode, bool showHandCursor=false, bool reset=false, bool backup=true, bool force=false) |
| virtual bool | startSymbolRectangleSelectionMode (int selectionMode, bool showHandCursor=false, bool reset=false, bool backup=true, bool force=false) |
| virtual bool | startSelectionMode (int selectionMode, DtSymbolSelector::DtSelectorType type, bool showHandCursor=false, bool reset=false, bool backup=true, bool force=false) |
| | General selection function.
|
| virtual void | swapModelKeys (QVector< DtModelKey > &orig, QVector< DtModelKey > &save, QVector< DtModelKey > &display) |
| virtual int | symbolSelectionMode () const |
| const DtPoint & | lastSelectedPoint () const |
| virtual void | removeSymbol (const DtModelData &data, bool force) |
| | Removes the symbol from the map area and from any internal selected lists.
|
| virtual DtSymbolSelector * | setCurrentSelector (DtSymbolSelector *s) |
| | Returns the current symbol selector after setting to new selector.
|
| virtual DtSymbolSelector * | currentSelector () |
| virtual void | setObjectSelectionMode (const DtFilter *f=NULL, bool swapKeys=false) |
| | Selection modes.
|
| virtual bool | inObjectSelectionMode () const |
| | Returns true if this area is in object selection mode.
|
| virtual DtSymbol * | symbolAtLocation (const DtPoint &pnt) const |
| | Asks the object selector (if it exists) to return the symbol at the specified database location.
|
| virtual bool | event (QEvent *) |
| | Only exposed for public access.
|
| | DtTMArea (QWidget *parent=0, const Qt::WindowFlags &flags=0) |
| virtual | ~DtTMArea () |
| virtual void | setSymbolMapper (DtBaseSymbolMapper *mapper) |
| virtual DtBaseSymbolMapper * | getSymbolMapper () |
| virtual DtTMSymbolUpdater * | symbolUpdater () |
| virtual DtTMViewportExtents * | viewportExtents () const |
| | Gets the current viewport extents.
|
| virtual DtViewDriver * | viewDriver () const |
| | Gets the current view driver.
|
| virtual void | setViewDriver (DtViewDriver *v) |
| | Sets the current view driver.
|
| virtual DtTMBackground * | background () const |
| | Gets the current background.
|
| virtual void | setBackground (DtTMBackground *v) |
| | Sets the current background.
|
| virtual void | setSymbolLensArea (DtSymbolLensArea *area) |
| virtual DtSymbolLensArea * | symbolLensArea () |
| virtual bool | isInitialized () |
| virtual DtModelDataDict & | ModelDataDict () |
| | Returns the local list of Symbol Datas.
|
| virtual DtModelDataIter * | ModelDataIter () const |
| | Returns the local list of Symbol Datas.
|
| virtual DtModelDataIter * | CombinedModelDataIter () const |
| | Returns the combined list of global application and local model data.
|
| virtual void | setUpdateOnTick (bool b) |
| | Set the fact that this area will also refresh its display on a tick.
|
| virtual void | markForUpdate (const QVector< DtModelKey > &, bool emitSignal=true) |
| | Copy the model data from the supplied list to our internal update list that will be updated on the next call to updateAllSymbols.
|
| virtual void | markForUpdate (DtModelDataIter *iter, bool emitSignal=true) |
| virtual void | removeFromUpdate (DtModelDataIter *iter) |
| | Call these to remove model datas for update.
|
| virtual void | removeFromUpdate (const DtModelData &data) |
| virtual void | removeDictionaryEntry (const DtModelKey &key) |
| | Removes this entry from the local dictionary.
|
| virtual void | setUpdateBackgroundOnTick (bool b) |
| | Set to true to call updateBackground on next tick.
|
| void | setNextTickIsRepaint (bool b) |
| | Set to have the next update (if the area is updated in a tick) to be a repaint rather than an update.
|
| bool | nextTickIsRepaint () const |
| virtual bool | needsTick () const |
| | Return true if this area needs to be ticked.
|
| virtual bool | needsUpdate () const |
| | Return true if this area needs update because myUpdateData.count() is not zero.
|
| virtual DtSymbol * | addSymbol (const DtModelData &data, DtSymbol *symbol) |
| | Adds a new symbol with the associated model data to the map area.
|
| virtual void | read (QTextStream &ts) |
| | Archival operators.
|
| virtual void | write (QTextStream &ts) |
| virtual void | clearSymbols () |
| virtual void | setForceTickOnViewportChange (bool b) |
| | Set this to true to force a tick when the viewport has changed (to speed drawing on map areas).
|
| virtual bool | forceTickOnViewportChange () const |
| virtual void | paint (QPainter *painter, bool paintBackground=true) |
| | Draw to the supplied device. Draws the background (if specified) and the lens area.
|
| virtual void | redrawBackground () |
| virtual DtSymbol * | getSymbol (const DtModelKey &) const |
| | Returns a symbol from the view driver for the given model key (if exists)
|
| void | setAlwaysResizeToGlobalView (bool) |
| | If true, when map area is resized, always go back to global view.
|
| bool | alwaysResizeToGlobalView () const |
| void | setWindow (DtBaseWindow *) |
| DtBaseWindow * | window () const |
| virtual bool | needsDrawOrder () const |
| | Return true/false depending on whether or not the area cares about draw ordering symbols.
|
| virtual void | insertIntoDrawOrder (DtSymbol *) |
| | Insert symbol into lens area draw order.
|
DtTerrainMapArea is a class used for drawing and navigation of terrain.
Slots are provided for navigation calls, and all of them currently result in a redraw of the terrain. This class must be initialized with the proper drawers. DtPixmapTerrain provides the drawing functionality, while DtTdbView provides the navigation.