![]() |
VR-Forces 4.0.4 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 |
| virtual DtViewDriver::~DtViewDriver | ( | ) | [virtual] |
| DtViewDriver::DtViewDriver | ( | const DtViewDriver & | orig | ) |
copy constructor
| virtual DtViewDriver& DtViewDriver::operator= | ( | const DtViewDriver & | orig | ) | [virtual] |
assignment operator
| virtual void DtViewDriver::init | ( | const DtTMFactory * | f, |
| DtTMArea * | area | ||
| ) | [virtual] |
| virtual bool DtViewDriver::symbolExists | ( | const DtModelKey & | symbol | ) | const [virtual] |
| virtual DtSymbol* DtViewDriver::getSymbol | ( | const DtModelKey & | symbol | ) | const [virtual] |
| virtual void DtViewDriver::setSymbolUpdater | ( | DtTMSymbolUpdater * | updater | ) | [virtual] |
| virtual DtTMSymbolUpdater* DtViewDriver::getSymbolUpdater | ( | ) | [virtual] |
| virtual void DtViewDriver::setSymbolMapper | ( | DtBaseSymbolMapper * | mapper | ) | [virtual] |
| virtual DtBaseSymbolMapper* DtViewDriver::getSymbolMapper | ( | ) | [virtual] |
| virtual const DtTMViewportExtents* DtViewDriver::getViewportExtents | ( | ) | [virtual] |
| virtual DtSymbolList* DtViewDriver::getSymbolList | ( | ) | [virtual] |
| virtual const DtModelKey* DtViewDriver::getModelKey | ( | DtSymbol * | s | ) | const [virtual] |
Get the key for a specific symbol.
| virtual void DtViewDriver::setViewportExtents | ( | DtTMViewportExtents * | ve | ) | [virtual] |
| virtual void DtViewDriver::setPersistentModelData | ( | const QStringList * | s | ) | [virtual] |
| virtual DtSymbol* DtViewDriver::createSymbol | ( | const DtModelData & | data | ) | [virtual] |
Calls down to symbol mapper to create symbol.
| virtual void DtViewDriver::clear | ( | ) | [virtual] |
Clears out dictionaries and symbol list.
| virtual DtTMArea* DtViewDriver::area | ( | ) | [virtual] |
Returns the area that is this view drivers parent. Passed in via init()
| virtual void DtViewDriver::getVisibleModelData | ( | DtModelDataDict & | iter | ) | [virtual] |
Returns a list of all model datas for symbols that are in the symbol list that are also visible.
| virtual void DtViewDriver::setHideOffScreenSymbols | ( | bool | ) | [virtual] |
By default, offscreen symbols are destroyed.
Set this to true to hide rather than destroy them
| virtual bool DtViewDriver::hideOffScreenSymbols | ( | ) | const [virtual] |
| bool DtViewDriver::hasTerrainLoaded | ( | ) | const [inline] |
References myHasTerrainLoaded.
| void DtViewDriver::setHasTerrainLoaded | ( | bool | b | ) | [inline] |
References myHasTerrainLoaded.
| void DtViewDriver::addAllowedCreationType | ( | DtModelDataType | t | ) | [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.
| void DtViewDriver::removeAllowedCreationType | ( | DtModelDataType | t | ) | [inline] |
References myAllowedCreationTypes.
| bool DtViewDriver::allowCreationOf | ( | DtModelDataType | t | ) | const [inline] |
References myAllowedCreationTypes.
| const QVector< DtModelDataType > & DtViewDriver::allowedCreationTypes | ( | ) | const [inline] |
References myAllowedCreationTypes.
| void DtViewDriver::allowAllCreationTypes | ( | ) | [inline] |
References myAllowedCreationTypes.
| static DtViewDriver* DtViewDriver::create | ( | ) | [static] |
Returns a newly created instance of a DtViewDriver.
| void DtViewDriver::viewModified | ( | ) | [signal] |
| void DtViewDriver::symbolRemoved | ( | const DtModelKey & | key | ) | [signal] |
Emitted when a symbol is removed via the removeSymbol(DtSymbol*) method.
| void DtViewDriver::symbolAboutToBeRemoved | ( | const DtModelKey & | key | ) | [signal] |
Emitted when a symbol is about to be removed.
| void DtViewDriver::symbolAdded | ( | const DtModelKey & | key | ) | [signal] |
Emitted when a symbol is added.
| void DtViewDriver::symbolAdded | ( | DtSymbol * | symbol, |
| const DtModelKey & | key | ||
| ) | [signal] |
| virtual DtSymbol* DtViewDriver::addSymbol | ( | const DtModelData & | data, |
| bool | force = false |
||
| ) | [virtual, slot] |
| virtual DtSymbol* DtViewDriver::addSymbol | ( | const DtModelData & | data, |
| DtSymbol * | symbol | ||
| ) | [virtual, slot] |
| virtual void DtViewDriver::removeSymbol | ( | const DtModelData & | data, |
| bool | force = false, |
||
| bool | keepSymbolSettings = true |
||
| ) | [virtual, slot] |
| virtual void DtViewDriver::removeSymbol | ( | const DtModelKey & | key, |
| bool | force = false, |
||
| bool | keepSymbolSettings = true |
||
| ) | [virtual, slot] |
| virtual void DtViewDriver::removeSymbolFromModelData | ( | const DtModelKey & | key | ) | [virtual, slot] |
| virtual void DtViewDriver::modifySymbol | ( | const DtModelData & | data | ) | [virtual, slot] |
| virtual bool DtViewDriver::updateAllSymbols | ( | DtModelDataIter * | ModelDataIter | ) | [virtual, slot] |
| virtual bool DtViewDriver::updateAllSymbols | ( | ) | [virtual, slot] |
Asks each symbol if it wants to be updated by checking the return status of the forceUpdate() method of symbol.
| virtual void DtViewDriver::setDisplayOptions | ( | const DtTMDisplayOptions * | o | ) | [virtual, slot] |
| virtual void DtViewDriver::updateDisplayOptions | ( | ) | [virtual, slot] |
| virtual void DtViewDriver::removeSymbol | ( | const DtSymbol * | s | ) | [virtual, slot] |
Called to remove a symbol from this display.
| virtual DtSymbol* DtViewDriver::internalAddSymbol | ( | const DtModelData & | data, |
| bool | force = false |
||
| ) | [protected, virtual] |
| virtual DtSymbol* DtViewDriver::internalRemoveSymbol | ( | const DtModelData & | data, |
| bool | force = false, |
||
| bool | keepSymbolSettings = true |
||
| ) | [protected, virtual] |
| virtual DtSymbol* DtViewDriver::internalRemoveSymbol | ( | const DtModelKey & | key, |
| bool | force = false, |
||
| bool | keepSymbolSettings = true |
||
| ) | [protected, virtual] |
| virtual DtSymbol* DtViewDriver::internalModifySymbol | ( | const DtModelData & | data | ) | [protected, virtual] |
| virtual bool DtViewDriver::checkDBOverlap | ( | const DtModelData & | data | ) | const [protected, virtual] |
QHash<DtModelKey, DtSymbol*> DtViewDriver::myKeyToSymbolDict [protected] |
QHash<DtModelKey, DtSymbolDisplayOptions*> DtViewDriver::myKeyToDisplayOptionsDict [protected] |
QHash<DtSymbol*, DtModelKey> DtViewDriver::mySymbolToKeyDict [protected] |
const QStringList* DtViewDriver::myPersistentModelData [protected] |
DtSymbolList* DtViewDriver::mySymbolList [protected] |
DtBaseSymbolMapper* DtViewDriver::mySymbolMapper [protected] |
DtTMSymbolUpdater* DtViewDriver::mySymbolUpdater [protected] |
DtTMViewportExtents* DtViewDriver::myViewportExtents [protected] |
const DtTMDisplayOptions* DtViewDriver::myTMDisplayOptions [protected] |
DtTMArea* DtViewDriver::myArea [protected] |
bool DtViewDriver::myHideOffScreenSymbols [protected] |
bool DtViewDriver::myHasTerrainLoaded [protected] |
Referenced by hasTerrainLoaded(), and setHasTerrainLoaded().
QVector<DtModelDataType> DtViewDriver::myAllowedCreationTypes [protected] |