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

Public Slots | |
| virtual void | loadDatabaseFile (const QString &) |
| virtual void | setViewportExtents (const DtTMViewportExtents *v) |
| 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 DtModelData &data, bool force=false) |
| virtual void | modifySymbol (const DtModelData &data) |
| 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. | |
Signals | |
| void | viewportExtentsSet (const DtTMViewportExtents *v) |
| Called after setTdbView. | |
| void | viewportExtentsChanged (const DtTMViewportExtents *v) |
| Called after internally changing tdb view. | |
| void | newDatabaseFile (const QString &) |
| void | removingSymbol (const DtModelKey &data) |
| Called when removing, adding or modifying a symbol. | |
| void | addingSymbol (const DtModelKey &data) |
| void | modifyingSymbol (const DtModelKey &data) |
| void | resized () |
| Sent when this area has resized. | |
| void | modelDataMarkedForUpdated (const DtModelData &d) |
| void | modelDataRemovedFromUpdate (const DtModelData &) |
Public Member Functions | |
| DtTMArea (QWidget *parent=0, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtTMArea () |
| virtual bool | init (const DtTMFactory *f) |
| Initializer. MUST BE CALLED. | |
| 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 | tick () |
| area was modified because of the tick | |
| 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 | markForUpdate (const DtModelData &data, 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 | clear () |
| Tells view driver to clear out any symbols and then clears out local data dictionary of any data. | |
| 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 |
| virtual bool | terrainLoaded () 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. | |
Protected Slots | |
| virtual void | catchViewportChange (const DtTMViewportExtents *v) |
| virtual void | symbolAdded (const DtModelKey &data) |
| Called when the view driver adds or removes a symbol. | |
| virtual void | symbolAdded (const DtSymbol *) |
| virtual void | symbolRemoved (const DtModelKey &data) |
| virtual void | symbolRemoved (const DtSymbol *) |
Protected Member Functions | |
| DtTMArea (const DtTMArea &orig) | |
| Not implemented. | |
| DtTMArea & | operator= (const DtTMArea &rhs) |
| Not implemented. | |
| virtual bool | initViewportExtents (const DtTMFactory *f) |
| virtual bool | initViewDriver (const DtTMFactory *f) |
| virtual bool | initLensArea (const DtTMFactory *f, bool useGL=false) |
| virtual bool | initBackground (const DtTMFactory *f) |
| virtual void | resizeEvent (QResizeEvent *e) |
| Resize event. | |
| virtual void | showEvent (QShowEvent *e) |
Protected Attributes | |
| DtViewDriver * | myViewDriver |
| DtTMViewportExtents * | myViewportExtents |
| bool | myDelayGlobalResize |
| DtSymbolLensArea * | myLensArea |
| bool | myDeleteLensArea |
| QPixmap * | myBackground |
| QTimer | myResizeTimer |
| DtTMBackground * | myTMBackground |
| bool | myDeleteBackground |
| DtModelDataDict | myModelDataDict |
| DtModelDataIter * | myModelDataIter |
| DtModelDataIter * | myCombinedModelDataIter |
| bool | myFirstTick |
| bool | myUpdateOnTick |
| QHash< DtModelKey, DtModelData * > | myUpdateData |
| bool | myUpdateOnlyModified |
| bool | myIsInitialized |
| bool | myUpdateBackgroundOnTick |
| bool | myForceTickOnViewportChange |
| bool | myNextTickIsRepaint |
| DtArchiver | myArchiver |
| Used to write out any variables that want to be saved. | |
| bool | myAlwaysResizeToGlobalView |
| DtBaseWindow * | myWindow |
| bool | myNeedsDrawOrder |
| bool | myInTick |
| DtTMArea::DtTMArea | ( | QWidget * | parent = 0, |
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
|
virtual |
|
protected |
Not implemented.
|
virtual |
Initializer. MUST BE CALLED.
Reimplemented in DtTerrainMapArea, DtTMMapArea, DtTMMiniMap, and DtTerrainMiniMap.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Gets the current viewport extents.
|
virtual |
Gets the current view driver.
|
virtual |
Sets the current view driver.
|
virtual |
Gets the current background.
|
virtual |
Sets the current background.
|
virtual |
|
virtual |
|
virtual |
area was modified because of the tick
Reimplemented in DtTMMapArea.
|
virtual |
|
virtual |
Returns the local list of Symbol Datas.
|
virtual |
Returns the local list of Symbol Datas.
|
virtual |
Returns the combined list of global application and local model data.
|
virtual |
Set the fact that this area will also refresh its display on a tick.
This needs to be set in instances where something changes the area that the area does not know about
|
virtual |
Copy the model data from the supplied list to our internal update list that will be updated on the next call to updateAllSymbols.
|
virtual |
|
virtual |
Reimplemented in DtTerrainMapArea.
|
virtual |
Call these to remove model datas for update.
|
virtual |
|
virtual |
Removes this entry from the local dictionary.
|
virtual |
Set to true to call updateBackground on next tick.
|
inline |
Set to have the next update (if the area is updated in a tick) to be a repaint rather than an update.
This will cause an immediate paint rather than a paint to be put into the next Qt event. Note this could cause multiple paints to happen during a single event pass
References myNextTickIsRepaint.
|
inline |
References myNextTickIsRepaint.
|
virtual |
Return true if this area needs to be ticked.
|
virtual |
Return true if this area needs update because myUpdateData.count() is not zero.
|
virtual |
Adds a new symbol with the associated model data to the map area.
It will also add it to the myModelDataDict dictionary, effectively making it a local symbol. Do not use this call if you want your symbol to be added to each new window, but rather add it to the main application model data dictionary and create it using the symbol mapper class
|
virtual |
Archival operators.
|
virtual |
|
virtual |
Tells view driver to clear out any symbols and then clears out local data dictionary of any data.
Reimplemented in DtTMMapArea.
|
virtual |
|
virtual |
Set this to true to force a tick when the viewport has changed (to speed drawing on map areas).
By default false
|
virtual |
|
virtual |
Draw to the supplied device. Draws the background (if specified) and the lens area.
|
virtual |
|
virtual |
Returns a symbol from the view driver for the given model key (if exists)
|
inline |
If true, when map area is resized, always go back to global view.
References myAlwaysResizeToGlobalView.
|
inline |
References myAlwaysResizeToGlobalView.
|
virtual |
Reimplemented in DtFormationEditor, DtTerrainMiniMap, and DtTerrainMapArea.
|
inline |
References myWindow.
|
inline |
References myWindow.
|
virtual |
Return true/false depending on whether or not the area cares about draw ordering symbols.
By default returns true. Currently only used by the overlay filter lens
Reimplemented in DtTMMiniMap.
|
virtual |
Insert symbol into lens area draw order.
|
signal |
Called after setTdbView.
|
signal |
Called after internally changing tdb view.
|
signal |
|
signal |
Called when removing, adding or modifying a symbol.
|
signal |
|
signal |
|
signal |
Sent when this area has resized.
|
signal |
|
signal |
|
virtualslot |
|
virtualslot |
Reimplemented in DtTMMapArea.
|
virtualslot |
Go through the list of symbols that we have marked for update and update them.
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
Reimplemented in DtTMMapArea.
|
virtualslot |
Reimplemented in DtTMMapArea.
|
virtualslot |
|
virtualslot |
Set to true to draw order symbols on the next tick.
Symbols will be draw ordered if there is at least one symbol that wants to be draw first or last
|
virtualslot |
Signals to draw order the symbols on the next tick.
|
virtualslot |
Draw order symbols if at least one first/last draw by having lens area draw order symbols.
|
protectedvirtualslot |
|
protectedvirtualslot |
Called when the view driver adds or removes a symbol.
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtual |
Reimplemented in DtTerrainMapArea.
|
protectedvirtual |
Reimplemented in DtTMMapArea.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Resize event.
Reimplemented in DtFormationEditor, and DtTMMiniMap.
|
protectedvirtual |
Reimplemented in DtFormationEditor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by nextTickIsRepaint(), and setNextTickIsRepaint().
|
protected |
Used to write out any variables that want to be saved.
|
protected |
Referenced by alwaysResizeToGlobalView(), and setAlwaysResizeToGlobalView().
|
protected |
Referenced by setWindow(), and window().
|
protected |
|
protected |