![]() |
VR-Forces 4.3.1 Class Documentation
|
This class is the central point for looking up information about a particular object in the VRF GUI. More...

Classes | |
| struct | StateViewAddedOrRemovedStruct |
Public Types | |
| typedef boost::signal< void(const makVrv::DtStateView < makVrv::DtVrlinkSimulatedBaseState > *)> | StateViewAddedOrRemovedSignal |
| typedef std::vector < makVrv::DtSimEntryUpdater::UpdateRate > | UpdateRates |
Public Member Functions | |
| DtVrfStateViewCollectionManager (makVrv::DtDe &) | |
| virtual | ~DtVrfStateViewCollectionManager () |
| makVrv::DtStateView < makVrv::DtVrlinkSimulatedBaseState > * | findStateView (const std::string &markingText) |
| Returns state view given the marking text. If does not exist, then, will return NULL. | |
| makVrv::DtStateView < makVrv::DtVrlinkSimulatedBaseState > * | findStealthStateView (const std::string &address, const std::string &markingText) |
| Returns stealth state view given the marking text and address. If does not exist, then, will return NULL. | |
| makVrv::DtStateView < DtSpotReportState > * | findSpotReportStateView (const std::string &markingText) |
| Returns spot report state view given the marking text. If does not exist, then, will return NULL. | |
| makVrv::DtStateView < makVrv::DtVrlinkSimulatedBaseState > * | findStateView (const makVrv::DtUniqueID &id) |
| Finds a state view given the objects element id. | |
| makVrv::DtStateView < DtSpotReportState > * | findSpotReportStateView (const makVrv::DtUniqueID &id) |
| Finds a spot report state view given the objects element id. | |
| makVrv::DtUniqueID | parentId (const makVrv::DtUniqueID &) const |
| If this item has a parent (for example, a vertex) return that, else return the passed in id. | |
| makVrv::DtUniqueID | displayIdFromSimId (const makVrv::DtUniqueID &id, int modelSet=-1) const |
| makVrv::DtElementData::SceneObjectIdList | displayIdsFromSimId (const makVrv::DtUniqueID &id, int modelSet=-1) const |
| makVrv::DtUniqueID | simIdFromDisplayId (const makVrv::DtUniqueID &id) const |
| Returns the name of the object given the specified id. | |
| const std::map < makVrv::DtUniqueID, const makVrv::DtStateView < makVrv::DtVrlinkSimulatedBaseState > * > & | stealthStates () const |
| Returns all the current stealth states. myEntityId is the site/app id of the stealth. | |
| virtual std::string | entityName (const makVrv::DtUniqueID simId) const |
| Returns an entity name based on the simulation id. | |
| virtual std::string | overlayName (const makVrv::DtUniqueID simId) const |
| Returns the name of the overlay this item is on (if it is). Pass in element id. | |
| virtual makVrv::DtElementEntry::ElementType | elementType (const makVrv::DtElementID &) const |
| Returns the type of the element. | |
| virtual makVrv::DtSimEntryUpdater::UpdateRate | updateRateFor (const makVrv::DtBaseStateView *state) const |
| Returns the minimum update rate for the given state view. | |
| virtual makVrv::DtSimEntryUpdater::UpdateRate | minimumRate (const UpdateRates &) const |
| virtual makVrv::DtSimEntryUpdater::UpdateRate | maximumRate (const UpdateRates &) const |
| virtual void | setUpdateRate (makVrv::DtSimEntry *, makVrv::DtSimEntryUpdater::UpdateRate, makVrv::DtBaseStateView *state) |
| Keeps track of update rates made for a state view. | |
| virtual void | forceUpdateForRelevantInformation (makVrv::DtUniqueID id) |
| Forces an update for iff, emitter, active sonar and propulsion noise state view information, if it exists. | |
| virtual StateViewAddedOrRemovedSignal & | signalWhenObjectAdded (const DtVrfSelectionFilter &) |
| If the filter evaluates to true call the supplied function. | |
| virtual void | processObjectAddedCallbacks (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) |
| virtual void | removeAddedSignalReference (const DtVrfSelectionFilter &) |
| virtual void | waiting () |
| virtual StateViewAddedOrRemovedSignal & | signalWhenObjectRemoved (const DtVrfSelectionFilter &) |
| virtual void | removeRemovalSignalReference (const DtVrfSelectionFilter &) |
| virtual void | processObjectRemovedCallbacks (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) |
| virtual void | slot_simStateAdded (makVrv::DtSimObjectEntry &e) |
| virtual void | slot_simStateToBeRemoved (makVrv::DtSimObjectEntry &e, makVrv::DtSimState &) |
| virtual std::string | lookupNameById (makVrv::DtUniqueID id) |
| virtual makVrv::DtUniqueID | lookupIdByName (std::string name) |
| virtual void | signalWhenAllObjectsDiscovered (const std::map< short, int > &) |
| Signal when all the kind/domain objects (of the key) are discovered. | |
Data Interface Lookup Methods | |
These methods return DtObjectDataInterface subclasses specialized to the type of object that is found. The DtObjectDataInterface return values may be cast to their specific types, using DtObjectDataInterface::cast() function.
| |
| virtual DtBoost::shared_ptr < DtObjectDataInterface > | lookupObjectData (const makVrv::DtUniqueID &id) |
| virtual DtBoost::shared_ptr < DtObjectDataInterface > | lookupSpotReportData (const makVrv::DtUniqueID &id) |
| virtual DtBoost::shared_ptr < DtObjectDataInterface > | lookupObjectData (const std::string &name) |
| virtual DtBoost::shared_ptr < DtObjectDataInterface > | lookupSpotReportData (const std::string &name) |
| template<typename T_ObjectDataInterfaceType > | |
| DtBoost::shared_ptr < T_ObjectDataInterfaceType > | lookupAndCastObjectData (const makVrv::DtUniqueID &id) |
| template<typename T_ObjectDataInterfaceType > | |
| DtBoost::shared_ptr < T_ObjectDataInterfaceType > | lookupAndCastSpotReportData (const makVrv::DtUniqueID &id) |
| template<typename T_ObjectDataInterfaceType > | |
| DtBoost::shared_ptr < T_ObjectDataInterfaceType > | lookupAndCastObjectData (const std::string &name) |
| template<typename T_ObjectDataInterfaceType > | |
| DtBoost::shared_ptr < T_ObjectDataInterfaceType > | lookupAndCastSpotReportData (const std::string &name) |
| virtual DtBoost::shared_ptr < DtObjectDataInterface > | lookupObjectData (makVrv::DtStateView< makVrv::DtSimState > *stateView) |
| DtVrfSimulatedEntityStateViewCollection * | simulatedEntityStateViewCollection () |
| DtVrlinkSimulatedBaseStateViewCollection * | simulatedBaseStateViewCollection () |
| DtVrfObjectDataStateViewCollection * | objectDataStateViewCollection () |
| DtEnvironmentStateViewCollection * | environmentStateViewCollection () |
| DtExtendedStateDataViewCollection * | extendedStateDataViewCollection () |
| DtWeatherStateViewCollection * | weatherStateViewCollection () |
| DtIffStateDataViewCollection * | iffStateDataViewCollection () |
| DtPropulsionNoiseStateDataViewCollection * | propulsionNoiseStateDataViewCollection () |
| DtEmitterSystemStateViewCollection * | emitterSystemStateViewCollection () |
| DtActiveSonarStateViewCollection * | activeSonarStateViewCollection () |
| DtSpotReportStateViewCollection * | spotReportStateViewCollection () |
| DtAggregateStateViewCollection * | aggregateStateViewCollection () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtVrfStateViewCollectionManager & | instance (makVrv::DtDe &de) |
Public Attributes | |
| boost::signal< void(const makVrv::DtStateView < makVrv::DtVrlinkSimulatedBaseState > *)> | signal_stateAdded |
| Overall signals when something is added or removed. | |
| boost::signal< void(const makVrv::DtStateView < makVrv::DtVrlinkSimulatedBaseState > *)> | signal_stateRemoved |
| boost::signal< void()> | signal_allObjectsDiscovered |
| If set up for it, a signal sent when the object counts map has had all the objects of all kind/domain pairs discovered. | |
Protected Types | |
| typedef boost::unordered_map < makVrv::DtBaseStateView *, UpdateRates > | UpdateRateMap |
| typedef std::vector < StateViewAddedOrRemovedStruct > | StateViewAddedOrRemovedCallbacks |
| typedef std::map< std::string, makVrv::DtUniqueID > | NameToIdMap |
| typedef std::map < makVrv::DtUniqueID, std::string > | IdToNameMap |
Protected Member Functions | |
| virtual void | slot_onAttributesChanged (const makVrv::DtElementData::EntryAttributesList &signalList) |
This class is the central point for looking up information about a particular object in the VRF GUI.
This class returns both DtStateView and DtObjectDataInterface classes, which contain data about the objects in the system.
DtObjectDataInterface objects provide the higher level interface for interacting with the objects and accessing the data. Use the lookupObjectData() method below, supplying either scene id, element id or marking text. A DtObjectDataInterface class will be returned, and, the type() method will let you know what type of item it is so you can cast to the appropriate class. For more information please see the DtObjectDataInterface header file which contains the interface class or the specific DtNetworkData<type> class that contains specific methods.
| typedef boost::signal<void (const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*)> makVrf::DtVrfStateViewCollectionManager::StateViewAddedOrRemovedSignal |
| typedef std::vector<makVrv::DtSimEntryUpdater::UpdateRate> makVrf::DtVrfStateViewCollectionManager::UpdateRates |
|
protected |
|
protected |
|
protected |
|
protected |
| makVrf::DtVrfStateViewCollectionManager::DtVrfStateViewCollectionManager | ( | makVrv::DtDe & | ) |
|
virtual |
|
static |
|
virtual |
| id | May be a sceneID or an elementID. |
|
virtual |
| id | May be a sceneID or an elementID of the entity or object. |
|
virtual |
| name | The entity or object name (same as Marking Text). |
|
virtual |
| name | The entity or object name (same as Marking Text). |
|
inline |
| id | May be a sceneID or an elementID. This templated method also dynamic-casts the result to the specified DtObjectDataInterface subclass specified. |
|
inline |
| id | May be a sceneID or an elementID of the entity or object. This templated method also dynamic-casts the result to the specified DtObjectDataInterface subclass specified. |
|
inline |
| name | The entity or object name (same as Marking Text). This templated method also dynamic-casts the result to the specified DtObjectDataInterface subclass specified. |
|
inline |
| name | The entity or object name (same as Marking Text). This templated method also dynamic-casts the result to the specified DtObjectDataInterface subclass specified. |
|
virtual |
| stateView | The DtStateView class representing the object. |
| makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* makVrf::DtVrfStateViewCollectionManager::findStateView | ( | const std::string & | markingText | ) |
Returns state view given the marking text. If does not exist, then, will return NULL.
| makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* makVrf::DtVrfStateViewCollectionManager::findStealthStateView | ( | const std::string & | address, |
| const std::string & | markingText | ||
| ) |
Returns stealth state view given the marking text and address. If does not exist, then, will return NULL.
| makVrv::DtStateView<DtSpotReportState>* makVrf::DtVrfStateViewCollectionManager::findSpotReportStateView | ( | const std::string & | markingText | ) |
Returns spot report state view given the marking text. If does not exist, then, will return NULL.
| makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* makVrf::DtVrfStateViewCollectionManager::findStateView | ( | const makVrv::DtUniqueID & | id | ) |
Finds a state view given the objects element id.
If you have a scene id, call simIdFromDisplayId to return the element id from a scene id
|
inline |
Finds a spot report state view given the objects element id.
If you have a scene id, call simIdFromDisplayId to return the element id from a scene id
|
inline |
Return collections that represent what types of state views are contained
|
inline |
Return collections that represent what types of state views are contained
|
inline |
Return collections that represent what types of state views are contained
|
inline |
Return collections that represent what types of state views are contained
|
inline |
Return collections that represent what types of state views are contained
|
inline |
Return collections that represent what types of state views are contained
|
inline |
Return collections that represent what types of state views are contained
|
inline |
Return collections that represent what types of state views are contained
|
inline |
Return collections that represent what types of state views are contained
|
inline |
Return collections that represent what types of state views are contained
|
inline |
Return collections that represent what types of state views are contained
|
inline |
Return collections that represent what types of state views are contained
| makVrv::DtUniqueID makVrf::DtVrfStateViewCollectionManager::parentId | ( | const makVrv::DtUniqueID & | ) | const |
If this item has a parent (for example, a vertex) return that, else return the passed in id.
| makVrv::DtUniqueID makVrf::DtVrfStateViewCollectionManager::displayIdFromSimId | ( | const makVrv::DtUniqueID & | id, |
| int | modelSet = -1 |
||
| ) | const |
| makVrv::DtElementData::SceneObjectIdList makVrf::DtVrfStateViewCollectionManager::displayIdsFromSimId | ( | const makVrv::DtUniqueID & | id, |
| int | modelSet = -1 |
||
| ) | const |
| makVrv::DtUniqueID makVrf::DtVrfStateViewCollectionManager::simIdFromDisplayId | ( | const makVrv::DtUniqueID & | id | ) | const |
Returns the name of the object given the specified id.
|
inline |
Returns all the current stealth states. myEntityId is the site/app id of the stealth.
|
virtual |
Returns an entity name based on the simulation id.
|
virtual |
Returns the name of the overlay this item is on (if it is). Pass in element id.
|
virtual |
Returns the type of the element.
|
virtual |
Returns the minimum update rate for the given state view.
|
virtual |
|
virtual |
|
virtual |
Keeps track of update rates made for a state view.
If the update rate set is NoUpdates, removes the minimum rate, else, will add the requested rate to the list and set the new rate to the maximum rate
|
virtual |
Forces an update for iff, emitter, active sonar and propulsion noise state view information, if it exists.
|
virtual |
If the filter evaluates to true call the supplied function.
The return value is a token that MUST be used in order to remove this call
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Signal when all the kind/domain objects (of the key) are discovered.
Will look at existing objects before waiting for new
|
protectedvirtual |
| boost::signal<void (const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*)> makVrf::DtVrfStateViewCollectionManager::signal_stateAdded |
Overall signals when something is added or removed.
| boost::signal<void (const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*)> makVrf::DtVrfStateViewCollectionManager::signal_stateRemoved |
| boost::signal<void ()> makVrf::DtVrfStateViewCollectionManager::signal_allObjectsDiscovered |
If set up for it, a signal sent when the object counts map has had all the objects of all kind/domain pairs discovered.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |