![]() |
VR-Forces 4.1 Class Documentation
|
This class controls the symbols inside a view. More...

Public Types | |
| typedef QHash< QString, QVector< DtSymbol * > > | DtViewDriverMappedSymbol |
Public Slots | |
| virtual DtSymbol * | addSymbol (const DtModelData &data, bool force=false) |
| virtual DtSymbol * | addSymbol (const DtModelData &data, DtSymbol *symbol) |
| virtual void | removeSymbol (const DtModelData &data, bool force=false, bool keepSymbolSettings=true) |
| virtual void | removeSymbol (const DtModelKey &key, bool force=false, bool keepSymbolSettings=true) |
| virtual void | removeSymbolFromModelData (const DtModelKey &key) |
| virtual void | modifySymbol (const DtModelData &data) |
| virtual bool | updateAllSymbols (DtModelDataIter *ModelDataIter) |
| virtual bool | updateAllSymbols () |
| Asks each symbol if it wants to be updated by checking the return status of the forceUpdate() method of symbol. | |
| virtual void | setDisplayOptions (const DtTMDisplayOptions *o) |
| virtual void | updateDisplayOptions () |
| virtual void | removeSymbol (const DtSymbol *s) |
| Called to remove a symbol from this display. | |
Signals | |
| void | viewModified () |
| void | symbolRemoved (const DtModelKey &key) |
| Emitted when a symbol is removed via the removeSymbol(DtSymbol*) method. | |
| void | symbolAboutToBeRemoved (const DtModelKey &key) |
| Emitted when a symbol is about to be removed. | |
| void | symbolAdded (const DtModelKey &key) |
| Emitted when a symbol is added. | |
| void | symbolAdded (DtSymbol *symbol, const DtModelKey &key) |
Public Member Functions | |
| DtViewDriver () | |
| virtual | ~DtViewDriver () |
| DtViewDriver (const DtViewDriver &orig) | |
| copy constructor | |
| virtual DtViewDriver & | operator= (const DtViewDriver &orig) |
| assignment operator | |
| virtual void | init (const DtTMFactory *f, DtTMArea *area) |
| virtual bool | symbolExists (const DtModelKey &symbol) const |
| virtual DtSymbol * | getSymbol (const DtModelKey &symbol) const |
| virtual void | setSymbolUpdater (DtTMSymbolUpdater *updater) |
| virtual DtTMSymbolUpdater * | getSymbolUpdater () |
| virtual void | setSymbolMapper (DtBaseSymbolMapper *mapper) |
| virtual DtBaseSymbolMapper * | getSymbolMapper () |
| virtual const DtTMViewportExtents * | getViewportExtents () |
| virtual DtSymbolList * | getSymbolList () |
| virtual const DtModelKey * | getModelKey (DtSymbol *s) const |
| Get the key for a specific symbol. | |
| virtual void | setViewportExtents (DtTMViewportExtents *ve) |
| virtual void | setPersistentModelData (const QStringList *s) |
| virtual DtSymbol * | createSymbol (const DtModelData &data) |
| Calls down to symbol mapper to create symbol. | |
| virtual void | clear () |
| Clears out dictionaries and symbol list. | |
| virtual DtTMArea * | area () |
| Returns the area that is this view drivers parent. Passed in via init() | |
| virtual void | getVisibleModelData (DtModelDataDict &iter) |
| Returns a list of all model datas for symbols that are in the symbol list that are also visible. | |
| virtual void | setHideOffScreenSymbols (bool) |
| By default, offscreen symbols are destroyed. | |
| virtual bool | hideOffScreenSymbols () const |
| bool | hasTerrainLoaded () const |
| void | setHasTerrainLoaded (bool) |
| void | addAllowedCreationType (DtModelDataType) |
| Adds model data types that will only be allowed for creation by this view driver. | |
| void | removeAllowedCreationType (DtModelDataType) |
| bool | allowCreationOf (DtModelDataType) const |
| const QVector< DtModelDataType > & | allowedCreationTypes () const |
| void | allowAllCreationTypes () |
Static Public Member Functions | |
| static DtViewDriver * | create () |
| Returns a newly created instance of a DtViewDriver. | |
Protected Member Functions | |
| virtual DtSymbol * | internalAddSymbol (const DtModelData &data, bool force=false) |
| virtual DtSymbol * | internalRemoveSymbol (const DtModelData &data, bool force=false, bool keepSymbolSettings=true) |
| virtual DtSymbol * | internalRemoveSymbol (const DtModelKey &key, bool force=false, bool keepSymbolSettings=true) |
| virtual DtSymbol * | internalModifySymbol (const DtModelData &data) |
| virtual bool | checkDBOverlap (const DtModelData &data) const |
Protected Attributes | |
| QHash< DtModelKey, DtSymbol * > | myKeyToSymbolDict |
| QHash< DtModelKey, DtSymbolDisplayOptions * > | myKeyToDisplayOptionsDict |
| QHash< DtSymbol *, DtModelKey > | mySymbolToKeyDict |
| const QStringList * | myPersistentModelData |
| DtSymbolList * | mySymbolList |
| DtBaseSymbolMapper * | mySymbolMapper |
| DtTMSymbolUpdater * | mySymbolUpdater |
| DtTMViewportExtents * | myViewportExtents |
| const DtTMDisplayOptions * | myTMDisplayOptions |
| DtTMArea * | myArea |
| bool | myHideOffScreenSymbols |
| bool | myHasTerrainLoaded |
| QVector< DtModelDataType > | myAllowedCreationTypes |
This class controls the symbols inside a view.
It contains mappers and translators so that entities are correctly displayed. In order to use this with a different coordinate system you should inherit from this class and override the coordinate functions.
| typedef QHash<QString, QVector<DtSymbol*> > DtViewDriver::DtViewDriverMappedSymbol |
| DtViewDriver::DtViewDriver | ( | ) |
|
virtual |
| DtViewDriver::DtViewDriver | ( | const DtViewDriver & | orig | ) |
copy constructor
|
virtual |
assignment operator
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Get the key for a specific symbol.
|
virtual |
|
virtual |
|
virtual |
Calls down to symbol mapper to create symbol.
|
virtual |
Clears out dictionaries and symbol list.
|
virtual |
Returns the area that is this view drivers parent. Passed in via init()
|
virtual |
Returns a list of all model datas for symbols that are in the symbol list that are also visible.
|
virtual |
By default, offscreen symbols are destroyed.
Set this to true to hide rather than destroy them
|
virtual |
|
inline |
References myHasTerrainLoaded.
|
inline |
References myHasTerrainLoaded.
|
inline |
Adds model data types that will only be allowed for creation by this view driver.
If list is empty, will allow creation of all types
References myAllowedCreationTypes.
|
inline |
References myAllowedCreationTypes.
|
inline |
References myAllowedCreationTypes.
|
inline |
References myAllowedCreationTypes.
|
inline |
References myAllowedCreationTypes.
|
static |
Returns a newly created instance of a DtViewDriver.
|
signal |
|
signal |
Emitted when a symbol is removed via the removeSymbol(DtSymbol*) method.
|
signal |
Emitted when a symbol is about to be removed.
|
signal |
Emitted when a symbol is added.
|
signal |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
Asks each symbol if it wants to be updated by checking the return status of the forceUpdate() method of symbol.
|
virtualslot |
|
virtualslot |
|
virtualslot |
Called to remove a symbol from this display.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by hasTerrainLoaded(), and setHasTerrainLoaded().
|
protected |