VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtVrfStateViewCollectionManager Class Reference

This class is the central point for looking up information about a particular object in the VRF GUI. More...

Inheritance diagram for makVrf::DtVrfStateViewCollectionManager:
Inheritance graph
[legend]

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 ()
virtual makVrv::DtStateView
< makVrv::DtVrlinkSimulatedBaseState > * 
addMappingBasedOnMarkingTextAndUUID (const std::string &markingText, const DtUUID &uuid)
 Look up the state view by the marking text, and, given the UUID, force a mapping for that.
virtual makVrv::DtStateView
< makVrv::DtVrlinkSimulatedBaseState > * 
findStateView (const DtUUID &, bool fullSearchIfMissing=false)
 Returns state view given the UUID.
virtual 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.
virtual makVrv::DtStateView
< makVrv::DtVrlinkSimulatedBaseState > * 
findStateViewByMarkingText (const std::string &markingText)
 Finds the state view given the marking text.
virtual 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.
virtual makVrv::DtStateView
< DtVrfTDLMessageDataState > * 
findVrfTDLDataStateView (const std::string &id)
 Returns TDL data given the unique identifier of the TDL data.
virtual makVrv::DtStateView
< DtOrbatState > * 
findOrbatStateView (const std::string &markingText)
 Returns orbat state view given the marking text. If does not exist, then, will return NULL.
virtual 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::DtStateView
< DtVrfTDLMessageDataState > * 
findVrfTDLDataStateView (const makVrv::DtUniqueID &id)
 Finds a TDL state view given the objects element id.
makVrv::DtStateView
< DtExternalDataState > * 
findExternalDataStateView (const makVrv::DtUniqueID &id)
 Finds an external state view given the objects element id.
makVrv::DtStateView
< DtOrbatState > * 
findOrbatStateView (const makVrv::DtUniqueID &id)
 Finds an orbat state view given the objects element id.
virtual void clearUUIDInformation ()
 Clears out current UUID information. Called when scenario is closed.
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 DtUUID objectUUID (makVrv::DtUniqueID simId) const
 Returns an entity UUID 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 lookupIdByUUID (const DtUUID &)
virtual bool getSupportsWeightVariations (makVrv::DtUniqueID id)
 Whether or not the di guy character can support weight changing.
virtual const std::set
< makVrv::DtUniqueID > & 
dIGuyIds ()
 IDs of main elements (parent ids, not scene ids) whose 3D model set contains a DIGuy visualizer.
virtual void signalWhenAllObjectsDiscovered (const std::map< short, int > &)
 Signal when all the kind/domain objects (of the key) are discovered.
virtual DtUUID uuidFromState (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) const
 Returns the UUID that is contained in this state (extended data) if exists, else returns entity identifier to name mapping (if exists) else returns marking text to name mapping.
virtual DtUUID uuidFromState (const makVrv::DtVrlinkSimulatedBaseState *) const
const std::set
< makVrv::DtUniqueID > & 
tacticalGraphicElements () const
virtual int maxMarkingTextLengthFor (const DtEntityType &) const
 Returns the max marking text length for the entity type given the assigned max marking text length boost function.
virtual void setMaxMarkingTextLengthFunction (DtMaxMarkingTextLengthFunction)
virtual
DtMaxMarkingTextLengthFunction 
maxMarkingTextLengthFunction () const
virtual int defaultMaxMarkingTextLengthFunction (const DtEntityType &)
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.

Note
The returned DtObjectDataInterface will remain valid even if the object it refers to is deleted, however, calls to retrieve information about that object will return default values, and DtObjectDataInterface::hasBeenRemoved() will return true.
DtObjectDataInterface instances are created when returned from these methods, so shared pointers are used to return them. Shared pointer casting must be used to cast them to a subclass.
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
lookupVrfTDLData (const makVrv::DtUniqueID &id)
virtual DtBoost::shared_ptr
< DtObjectDataInterface
lookupSpotReportData (const std::string &name)
virtual DtBoost::shared_ptr
< DtObjectDataInterface
lookupVrfTDLData (const std::string &uniqueIdentifier)
virtual DtBoost::shared_ptr
< DtObjectDataInterface
lookupOrbatData (const makVrv::DtUniqueID &id)
virtual DtBoost::shared_ptr
< DtObjectDataInterface
lookupOrbatData (const std::string &name)
virtual DtBoost::shared_ptr
< DtObjectDataInterface
lookupObjectData (const DtUUID &)
virtual DtVector centerOfMass (const boost::unordered_set< DtUUID > &uuids, bool ignoreEmbarked=true)
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 > 
lookupAndCastVrfTDLData (const makVrv::DtUniqueID &id)
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr
< T_ObjectDataInterfaceType > 
lookupAndCastOrvatData (const makVrv::DtUniqueID &id)
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr
< T_ObjectDataInterfaceType > 
lookupAndCastObjectData (const DtUUID &uuid)
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr
< T_ObjectDataInterfaceType > 
lookupAndCastSpotReportData (const std::string &name)
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr
< T_ObjectDataInterfaceType > 
lookupAndCastVrfTDLData (const std::string &id)
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr
< T_ObjectDataInterfaceType > 
lookupAndCastOrbatData (const std::string &name)
virtual DtBoost::shared_ptr
< DtObjectDataInterface
lookupObjectData (makVrv::DtStateView< makVrv::DtSimState > *stateView)
DtVrfSimulatedEntityStateViewCollectionsimulatedEntityStateViewCollection ()
DtVrlinkSimulatedBaseStateViewCollectionsimulatedBaseStateViewCollection ()
DtVrfObjectDataStateViewCollectionobjectDataStateViewCollection ()
DtEnvironmentStateViewCollectionenvironmentStateViewCollection ()
DtExtendedStateDataViewCollectionextendedStateDataViewCollection ()
DtWeatherStateViewCollectionweatherStateViewCollection ()
DtCloudLayerStateViewCollectioncloudLayerStateViewCollection ()
DtIffStateDataViewCollectioniffStateDataViewCollection ()
DtPropulsionNoiseStateDataViewCollectionpropulsionNoiseStateDataViewCollection ()
DtEmitterSystemStateViewCollectionemitterSystemStateViewCollection ()
DtActiveSonarStateViewCollectionactiveSonarStateViewCollection ()
DtLaserDesignatorStateViewCollectionlaserDesignatorStateViewCollection ()
DtSpotReportStateViewCollectionspotReportStateViewCollection ()
DtExternalDataStateViewCollectionexternalDataStateViewCollection ()
DtVrfTDLMessageDataStateViewCollectionvrfTDLDataStateViewCollection ()
DtOrbatStateViewCollectionorbatStateViewCollection ()
DtAggregateStateViewCollectionaggregateStateViewCollection ()
makVrv::DtVrlinkSensorFieldsOfViewStateViewCollectionsensorFieldOfViewStateViewCollection ()
- 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(makVrv::DtUniqueID,
const DtUUID &oldUUID, const
DtUUID &newUUID)> 
signal_uuidChanged
 Signal sent when a UUID has changed for the particular element ID.
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.
boost::signal< void(const
makVrv::DtStateView
< makVrv::DtVrlinkSimulatedBaseState >
*, const std::string &newName)> 
signal_nameChanged
 Signal sent when a name has changed in the system.

Protected Types

typedef boost::unordered_map
< makVrv::DtBaseStateView
*, UpdateRates
UpdateRateMap
typedef std::vector
< StateViewAddedOrRemovedStruct
StateViewAddedOrRemovedCallbacks
typedef boost::unordered_map
< DtUUID, makVrv::DtUniqueID
UUIDToIdMap
typedef boost::unordered_map
< makVrv::DtUniqueID, DtUUID
IdToUUIDMap

Protected Member Functions

virtual void slot_onAttributesChanged (const makVrv::DtElementData::EntryAttributesList &signalList)
DtVrfGuiOrbatManagervrfGuiOrbatManager () const
virtual bool shouldProcessState (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) const
 Whether or not this state should be processed.
virtual void slot_attributesChanged (const makVrv::DtElementData::EntryAttributesList &l)
 Called when attributes changed – see if this is a new object UUID.

Protected Attributes

DtVrfSimulatedEntityStateViewCollectionmySimulatedEntityStateView
DtVrlinkSimulatedBaseStateViewCollectionmySimulatedBaseStateViewCollection
DtVrfObjectDataStateViewCollectionmyObjectDataStateViewCollection
DtEnvironmentStateViewCollectionmyEnvironmentStateViewCollection
DtSpotReportStateViewCollectionmySpotReportStateViewCollection
DtExternalDataStateViewCollectionmyExternalDataStateViewCollection
DtVrfTDLMessageDataStateViewCollectionmyVrfTDLDataStateViewCollection
DtOrbatStateViewCollectionmyOrbatStateViewCollection
DtAggregateStateViewCollectionmyAggregateStateViewCollection
DtExtendedStateDataViewCollectionmyExtendedStateDataViewCollection
DtIffStateDataViewCollectionmyIffStateDataViewCollection
DtWeatherStateViewCollectionmyWeatherStateViewCollection
DtCloudLayerStateViewCollectionmyCloudLayerStateViewCollection
DtPropulsionNoiseStateDataViewCollectionmyPropulsionNoiseStateDataViewCollection
DtEmitterSystemStateViewCollectionmyEmitterSystemStateViewCollection
DtActiveSonarStateViewCollectionmyActiveSonarStateViewCollection
DtLaserDesignatorStateViewCollectionmyLaserDesignatorStateViewCollection
makVrv::DtVrlinkSensorFieldsOfViewStateViewCollectionmySensorFieldOfViewStateViewCollection
makVrv::DtDemyDe
std::map< short, intmyWaitingForDiscovery
UpdateRateMap myUpdateRateMap
int myNextToken
StateViewAddedOrRemovedCallbacks myStateViewAddedOrRemovedCallbacks
makVrv::DtSignalConnectionManager myConnectionManager
std::map< makVrv::DtElementID,
bool
myWaiting
UUIDToIdMap myUUIDToIdMap
IdToUUIDMap myIdToUUIDMap
DtVrfGuiOrbatManagermyVrfGuiOrbatManager
std::map< makVrv::DtUniqueID,
const makVrv::DtStateView
< makVrv::DtVrlinkSimulatedBaseState > * > 
myStealthStates
std::string myStealthType
std::set< makVrv::DtUniqueIDmyTacticalGraphicElements
std::set< makVrv::DtUniqueIDmyDIGuyIds
boost::unordered_set
< makVrv::DtUniqueID
myIdsToCheckForDIGuy
boost::unordered_set< DtUUIDmyDidNotFindStateViewFor
DtMaxMarkingTextLengthFunction myMaxMarkingTextLengthFunction

Detailed Description

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.

Related examples
Other uses in examples include

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::DtVrfStateViewCollectionManager::DtVrfStateViewCollectionManager ( makVrv::DtDe )
virtual makVrf::DtVrfStateViewCollectionManager::~DtVrfStateViewCollectionManager ( )
virtual

Member Function Documentation

static DtVrfStateViewCollectionManager& makVrf::DtVrfStateViewCollectionManager::instance ( makVrv::DtDe de)
static
virtual DtBoost::shared_ptr<DtObjectDataInterface> makVrf::DtVrfStateViewCollectionManager::lookupObjectData ( const makVrv::DtUniqueID id)
virtual
Returns
A DtObjectDataInterface subclass for a particular object in the system.
Parameters
idMay be a sceneID or an elementID.
virtual DtBoost::shared_ptr<DtObjectDataInterface> makVrf::DtVrfStateViewCollectionManager::lookupSpotReportData ( const makVrv::DtUniqueID id)
virtual
Returns
A DtObjectDataInterface subclass for the spot report data on a particular object in the system.
Parameters
idMay be a sceneID or an elementID of the entity or object.
virtual DtBoost::shared_ptr<DtObjectDataInterface> makVrf::DtVrfStateViewCollectionManager::lookupVrfTDLData ( const makVrv::DtUniqueID id)
virtual
Returns
A DtObjectDataInterface subclass for the TDL data on a particular object in the system.
Parameters
idMay be a sceneID or an elementID of the entity or object.
virtual DtBoost::shared_ptr<DtObjectDataInterface> makVrf::DtVrfStateViewCollectionManager::lookupSpotReportData ( const std::string &  name)
virtual
Returns
A DtObjectDataInterface subclass for the spot report data on a particular object in the system.
Parameters
nameThe entity or object name (same as Marking Text).
virtual DtBoost::shared_ptr<DtObjectDataInterface> makVrf::DtVrfStateViewCollectionManager::lookupVrfTDLData ( const std::string &  uniqueIdentifier)
virtual
Returns
A DtObjectDataInterface subclass for the TDL data on a particular object in the system.
Parameters
nameThe unique identifier of the TDL data
virtual DtBoost::shared_ptr<DtObjectDataInterface> makVrf::DtVrfStateViewCollectionManager::lookupOrbatData ( const makVrv::DtUniqueID id)
virtual
Returns
A DtObjectDataInterface subclass for the orbat data on a particular object in the system.
Parameters
idMay be a sceneID or an elementID of the entity or object.
virtual DtBoost::shared_ptr<DtObjectDataInterface> makVrf::DtVrfStateViewCollectionManager::lookupOrbatData ( const std::string &  name)
virtual
Returns
A DtObjectDataInterface subclass for the orbat data on a particular object in the system.
Parameters
nameThe entity or object name (same as Marking Text).
virtual DtBoost::shared_ptr<DtObjectDataInterface> makVrf::DtVrfStateViewCollectionManager::lookupObjectData ( const DtUUID )
virtual
Returns
A DtObjectDataInterface subclass for a particular object in the system.
Parameters
nameThe entity or object name (same as Marking Text).
virtual DtVector makVrf::DtVrfStateViewCollectionManager::centerOfMass ( const boost::unordered_set< DtUUID > &  uuids,
bool  ignoreEmbarked = true 
)
virtual
Returns
A DtVector containing the geocentric center of mass of the objects given by the UUIDs
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr<T_ObjectDataInterfaceType> makVrf::DtVrfStateViewCollectionManager::lookupAndCastObjectData ( const makVrv::DtUniqueID id)
inline
Returns
A DtObjectDataInterface subclass for a particular object in the system.
Parameters
idMay be a sceneID or an elementID. This templated method also dynamic-casts the result to the specified DtObjectDataInterface subclass specified.
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr<T_ObjectDataInterfaceType> makVrf::DtVrfStateViewCollectionManager::lookupAndCastSpotReportData ( const makVrv::DtUniqueID id)
inline
Returns
A DtObjectDataInterface subclass for the spot report data on a particular object in the system.
Parameters
idMay 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.
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr<T_ObjectDataInterfaceType> makVrf::DtVrfStateViewCollectionManager::lookupAndCastVrfTDLData ( const makVrv::DtUniqueID id)
inline
Returns
A DtObjectDataInterface subclass for the TDL data on a particular object in the system.
Parameters
idMay 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.
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr<T_ObjectDataInterfaceType> makVrf::DtVrfStateViewCollectionManager::lookupAndCastOrvatData ( const makVrv::DtUniqueID id)
inline
Returns
A DtObjectDataInterface subclass for the orbat data on a particular object in the system.
Parameters
idMay 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.
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr<T_ObjectDataInterfaceType> makVrf::DtVrfStateViewCollectionManager::lookupAndCastObjectData ( const DtUUID uuid)
inline
Returns
A DtObjectDataInterface subclass for a particular object in the system.
Parameters
nameThe entity or object name (same as Marking Text). This templated method also dynamic-casts the result to the specified DtObjectDataInterface subclass specified.
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr<T_ObjectDataInterfaceType> makVrf::DtVrfStateViewCollectionManager::lookupAndCastSpotReportData ( const std::string &  name)
inline
Returns
A DtObjectDataInterface subclass for the spot report data on a particular object in the system.
Parameters
nameThe entity or object name (same as Marking Text). This templated method also dynamic-casts the result to the specified DtObjectDataInterface subclass specified.
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr<T_ObjectDataInterfaceType> makVrf::DtVrfStateViewCollectionManager::lookupAndCastVrfTDLData ( const std::string &  id)
inline
Returns
A DtObjectDataInterface subclass for the TDL data on a particular object in the system.
Parameters
nameThe unique identifier of the TDL data This templated method also dynamic-casts the result to the specified DtObjectDataInterface subclass specified.
template<typename T_ObjectDataInterfaceType >
DtBoost::shared_ptr<T_ObjectDataInterfaceType> makVrf::DtVrfStateViewCollectionManager::lookupAndCastOrbatData ( const std::string &  name)
inline
Returns
A DtObjectDataInterface subclass for the orbat data on a particular object in the system.
Parameters
nameThe entity or object name (same as Marking Text). This templated method also dynamic-casts the result to the specified DtObjectDataInterface subclass specified.
virtual DtBoost::shared_ptr<DtObjectDataInterface> makVrf::DtVrfStateViewCollectionManager::lookupObjectData ( makVrv::DtStateView< makVrv::DtSimState > *  stateView)
virtual
Returns
A DtObjectDataInterface subclass for a particular object in the system.
Parameters
stateViewThe DtStateView class representing the object.
virtual makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* makVrf::DtVrfStateViewCollectionManager::addMappingBasedOnMarkingTextAndUUID ( const std::string &  markingText,
const DtUUID uuid 
)
virtual

Look up the state view by the marking text, and, given the UUID, force a mapping for that.

This is done for the cases in logger tapes where a spot report is received and the information is not yet known

virtual makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* makVrf::DtVrfStateViewCollectionManager::findStateView ( const DtUUID ,
bool  fullSearchIfMissing = false 
)
virtual

Returns state view given the UUID.

If does not exist, then, will return NULL. If fullSearchIfMissing is true, regardless of whether or not a full text search has been done, do it again

virtual makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* makVrf::DtVrfStateViewCollectionManager::findStealthStateView ( const std::string &  address,
const std::string &  markingText 
)
virtual

Returns stealth state view given the marking text and address. If does not exist, then, will return NULL.

virtual makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* makVrf::DtVrfStateViewCollectionManager::findStateViewByMarkingText ( const std::string &  markingText)
virtual

Finds the state view given the marking text.

This is a slow search that iterates over all the state views, so, once you find the view on that name, stash the uniuque id of that view and then look up the state view in the future based on that UUID

virtual makVrv::DtStateView<DtSpotReportState>* makVrf::DtVrfStateViewCollectionManager::findSpotReportStateView ( const std::string &  markingText)
virtual

Returns spot report state view given the marking text. If does not exist, then, will return NULL.

virtual makVrv::DtStateView<DtVrfTDLMessageDataState>* makVrf::DtVrfStateViewCollectionManager::findVrfTDLDataStateView ( const std::string &  id)
virtual

Returns TDL data given the unique identifier of the TDL data.

virtual makVrv::DtStateView<DtOrbatState>* makVrf::DtVrfStateViewCollectionManager::findOrbatStateView ( const std::string &  markingText)
virtual

Returns orbat state view given the marking text. If does not exist, then, will return NULL.

virtual makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* makVrf::DtVrfStateViewCollectionManager::findStateView ( const makVrv::DtUniqueID id)
virtual

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

makVrv::DtStateView<DtSpotReportState>* makVrf::DtVrfStateViewCollectionManager::findSpotReportStateView ( const makVrv::DtUniqueID 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

makVrv::DtStateView<DtVrfTDLMessageDataState>* makVrf::DtVrfStateViewCollectionManager::findVrfTDLDataStateView ( const makVrv::DtUniqueID id)
inline

Finds a TDL state view given the objects element id.

If you have a scene id, call simIdFromDisplayId to return the element id from a scene id

makVrv::DtStateView<DtExternalDataState>* makVrf::DtVrfStateViewCollectionManager::findExternalDataStateView ( const makVrv::DtUniqueID id)
inline

Finds an external state view given the objects element id.

If you have a scene id, call simIdFromDisplayId to return the element id from a scene id

makVrv::DtStateView<DtOrbatState>* makVrf::DtVrfStateViewCollectionManager::findOrbatStateView ( const makVrv::DtUniqueID id)
inline

Finds an orbat state view given the objects element id.

If you have a scene id, call simIdFromDisplayId to return the element id from a scene id

virtual void makVrf::DtVrfStateViewCollectionManager::clearUUIDInformation ( )
virtual

Clears out current UUID information. Called when scenario is closed.

DtVrfSimulatedEntityStateViewCollection* makVrf::DtVrfStateViewCollectionManager::simulatedEntityStateViewCollection ( )
inline

Return collections that represent what types of state views are contained

DtVrlinkSimulatedBaseStateViewCollection* makVrf::DtVrfStateViewCollectionManager::simulatedBaseStateViewCollection ( )
inline
DtVrfObjectDataStateViewCollection* makVrf::DtVrfStateViewCollectionManager::objectDataStateViewCollection ( )
inline
DtEnvironmentStateViewCollection* makVrf::DtVrfStateViewCollectionManager::environmentStateViewCollection ( )
inline
DtExtendedStateDataViewCollection* makVrf::DtVrfStateViewCollectionManager::extendedStateDataViewCollection ( )
inline
DtWeatherStateViewCollection* makVrf::DtVrfStateViewCollectionManager::weatherStateViewCollection ( )
inline
DtCloudLayerStateViewCollection* makVrf::DtVrfStateViewCollectionManager::cloudLayerStateViewCollection ( )
inline
DtIffStateDataViewCollection* makVrf::DtVrfStateViewCollectionManager::iffStateDataViewCollection ( )
inline
DtPropulsionNoiseStateDataViewCollection* makVrf::DtVrfStateViewCollectionManager::propulsionNoiseStateDataViewCollection ( )
inline
DtEmitterSystemStateViewCollection* makVrf::DtVrfStateViewCollectionManager::emitterSystemStateViewCollection ( )
inline
DtActiveSonarStateViewCollection* makVrf::DtVrfStateViewCollectionManager::activeSonarStateViewCollection ( )
inline
DtLaserDesignatorStateViewCollection* makVrf::DtVrfStateViewCollectionManager::laserDesignatorStateViewCollection ( )
inline
DtSpotReportStateViewCollection* makVrf::DtVrfStateViewCollectionManager::spotReportStateViewCollection ( )
inline
DtExternalDataStateViewCollection* makVrf::DtVrfStateViewCollectionManager::externalDataStateViewCollection ( )
inline
DtVrfTDLMessageDataStateViewCollection* makVrf::DtVrfStateViewCollectionManager::vrfTDLDataStateViewCollection ( )
inline
DtOrbatStateViewCollection* makVrf::DtVrfStateViewCollectionManager::orbatStateViewCollection ( )
inline
DtAggregateStateViewCollection* makVrf::DtVrfStateViewCollectionManager::aggregateStateViewCollection ( )
inline
makVrv::DtVrlinkSensorFieldsOfViewStateViewCollection* makVrf::DtVrfStateViewCollectionManager::sensorFieldOfViewStateViewCollection ( )
inline
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.

const std::map<makVrv::DtUniqueID, const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*>& makVrf::DtVrfStateViewCollectionManager::stealthStates ( ) const
inline

Returns all the current stealth states. myEntityId is the site/app id of the stealth.

virtual std::string makVrf::DtVrfStateViewCollectionManager::entityName ( const makVrv::DtUniqueID  simId) const
virtual

Returns an entity name based on the simulation id.

virtual DtUUID makVrf::DtVrfStateViewCollectionManager::objectUUID ( makVrv::DtUniqueID  simId) const
virtual

Returns an entity UUID based on the simulation id.

virtual std::string makVrf::DtVrfStateViewCollectionManager::overlayName ( const makVrv::DtUniqueID  simId) const
virtual

Returns the name of the overlay this item is on (if it is). Pass in element id.

virtual makVrv::DtElementEntry::ElementType makVrf::DtVrfStateViewCollectionManager::elementType ( const makVrv::DtElementID ) const
virtual

Returns the type of the element.

virtual makVrv::DtSimEntryUpdater::UpdateRate makVrf::DtVrfStateViewCollectionManager::updateRateFor ( const makVrv::DtBaseStateView state) const
virtual

Returns the minimum update rate for the given state view.

virtual makVrv::DtSimEntryUpdater::UpdateRate makVrf::DtVrfStateViewCollectionManager::minimumRate ( const UpdateRates ) const
virtual
virtual makVrv::DtSimEntryUpdater::UpdateRate makVrf::DtVrfStateViewCollectionManager::maximumRate ( const UpdateRates ) const
virtual
virtual void makVrf::DtVrfStateViewCollectionManager::setUpdateRate ( makVrv::DtSimEntry ,
makVrv::DtSimEntryUpdater::UpdateRate  ,
makVrv::DtBaseStateView state 
)
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 void makVrf::DtVrfStateViewCollectionManager::forceUpdateForRelevantInformation ( makVrv::DtUniqueID  id)
virtual

Forces an update for iff, emitter, active sonar and propulsion noise state view information, if it exists.

virtual StateViewAddedOrRemovedSignal& makVrf::DtVrfStateViewCollectionManager::signalWhenObjectAdded ( const DtVrfSelectionFilter )
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 void makVrf::DtVrfStateViewCollectionManager::processObjectAddedCallbacks ( const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *  )
virtual
virtual void makVrf::DtVrfStateViewCollectionManager::removeAddedSignalReference ( const DtVrfSelectionFilter )
virtual
virtual void makVrf::DtVrfStateViewCollectionManager::waiting ( )
virtual
virtual StateViewAddedOrRemovedSignal& makVrf::DtVrfStateViewCollectionManager::signalWhenObjectRemoved ( const DtVrfSelectionFilter )
virtual
virtual void makVrf::DtVrfStateViewCollectionManager::removeRemovalSignalReference ( const DtVrfSelectionFilter )
virtual
virtual void makVrf::DtVrfStateViewCollectionManager::processObjectRemovedCallbacks ( const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *  )
virtual
virtual void makVrf::DtVrfStateViewCollectionManager::slot_simStateAdded ( makVrv::DtSimObjectEntry e)
virtual
virtual void makVrf::DtVrfStateViewCollectionManager::slot_simStateToBeRemoved ( makVrv::DtSimObjectEntry e,
makVrv::DtSimState  
)
virtual
virtual std::string makVrf::DtVrfStateViewCollectionManager::lookupNameById ( makVrv::DtUniqueID  id)
virtual
virtual makVrv::DtUniqueID makVrf::DtVrfStateViewCollectionManager::lookupIdByUUID ( const DtUUID )
virtual
virtual bool makVrf::DtVrfStateViewCollectionManager::getSupportsWeightVariations ( makVrv::DtUniqueID  id)
virtual

Whether or not the di guy character can support weight changing.

virtual const std::set<makVrv::DtUniqueID>& makVrf::DtVrfStateViewCollectionManager::dIGuyIds ( )
virtual

IDs of main elements (parent ids, not scene ids) whose 3D model set contains a DIGuy visualizer.

Note that any new objects created since this list was requested will be inspected, so, calls to this (depending on how long it was since the last call) could take a few moments to return

virtual void makVrf::DtVrfStateViewCollectionManager::signalWhenAllObjectsDiscovered ( const std::map< short, int > &  )
virtual

Signal when all the kind/domain objects (of the key) are discovered.

Will look at existing objects before waiting for new

virtual DtUUID makVrf::DtVrfStateViewCollectionManager::uuidFromState ( const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *  ) const
virtual

Returns the UUID that is contained in this state (extended data) if exists, else returns entity identifier to name mapping (if exists) else returns marking text to name mapping.

virtual DtUUID makVrf::DtVrfStateViewCollectionManager::uuidFromState ( const makVrv::DtVrlinkSimulatedBaseState ) const
virtual
const std::set<makVrv::DtUniqueID>& makVrf::DtVrfStateViewCollectionManager::tacticalGraphicElements ( ) const
virtual int makVrf::DtVrfStateViewCollectionManager::maxMarkingTextLengthFor ( const DtEntityType &  ) const
virtual

Returns the max marking text length for the entity type given the assigned max marking text length boost function.

Reassign the function only if you know that changes you have made to the standard will support larger name lengths. Entities are capped at 11 (one byte for NULL bit), aggregates at 31 and tactical graphics at 255. by default

virtual void makVrf::DtVrfStateViewCollectionManager::setMaxMarkingTextLengthFunction ( DtMaxMarkingTextLengthFunction  )
virtual
virtual DtMaxMarkingTextLengthFunction makVrf::DtVrfStateViewCollectionManager::maxMarkingTextLengthFunction ( ) const
virtual
virtual int makVrf::DtVrfStateViewCollectionManager::defaultMaxMarkingTextLengthFunction ( const DtEntityType &  )
virtual
virtual void makVrf::DtVrfStateViewCollectionManager::slot_onAttributesChanged ( const makVrv::DtElementData::EntryAttributesList signalList)
protectedvirtual
DtVrfGuiOrbatManager* makVrf::DtVrfStateViewCollectionManager::vrfGuiOrbatManager ( ) const
protected
virtual bool makVrf::DtVrfStateViewCollectionManager::shouldProcessState ( const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *  ) const
protectedvirtual

Whether or not this state should be processed.

virtual void makVrf::DtVrfStateViewCollectionManager::slot_attributesChanged ( const makVrv::DtElementData::EntryAttributesList l)
protectedvirtual

Called when attributes changed – see if this is a new object UUID.

Member Data Documentation

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 (makVrv::DtUniqueID, const DtUUID& oldUUID, const DtUUID& newUUID)> makVrf::DtVrfStateViewCollectionManager::signal_uuidChanged

Signal sent when a UUID has changed for the particular element ID.

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.

boost::signal<void (const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*, const std::string& newName)> makVrf::DtVrfStateViewCollectionManager::signal_nameChanged

Signal sent when a name has changed in the system.

DtVrfSimulatedEntityStateViewCollection* makVrf::DtVrfStateViewCollectionManager::mySimulatedEntityStateView
protected
DtVrlinkSimulatedBaseStateViewCollection* makVrf::DtVrfStateViewCollectionManager::mySimulatedBaseStateViewCollection
protected
DtVrfObjectDataStateViewCollection* makVrf::DtVrfStateViewCollectionManager::myObjectDataStateViewCollection
protected
DtEnvironmentStateViewCollection* makVrf::DtVrfStateViewCollectionManager::myEnvironmentStateViewCollection
protected
DtSpotReportStateViewCollection* makVrf::DtVrfStateViewCollectionManager::mySpotReportStateViewCollection
protected
DtExternalDataStateViewCollection* makVrf::DtVrfStateViewCollectionManager::myExternalDataStateViewCollection
protected
DtVrfTDLMessageDataStateViewCollection* makVrf::DtVrfStateViewCollectionManager::myVrfTDLDataStateViewCollection
protected
DtOrbatStateViewCollection* makVrf::DtVrfStateViewCollectionManager::myOrbatStateViewCollection
protected
DtAggregateStateViewCollection* makVrf::DtVrfStateViewCollectionManager::myAggregateStateViewCollection
protected
DtExtendedStateDataViewCollection* makVrf::DtVrfStateViewCollectionManager::myExtendedStateDataViewCollection
protected
DtIffStateDataViewCollection* makVrf::DtVrfStateViewCollectionManager::myIffStateDataViewCollection
protected
DtWeatherStateViewCollection* makVrf::DtVrfStateViewCollectionManager::myWeatherStateViewCollection
protected
DtCloudLayerStateViewCollection* makVrf::DtVrfStateViewCollectionManager::myCloudLayerStateViewCollection
protected
DtPropulsionNoiseStateDataViewCollection* makVrf::DtVrfStateViewCollectionManager::myPropulsionNoiseStateDataViewCollection
protected
DtEmitterSystemStateViewCollection* makVrf::DtVrfStateViewCollectionManager::myEmitterSystemStateViewCollection
protected
DtActiveSonarStateViewCollection* makVrf::DtVrfStateViewCollectionManager::myActiveSonarStateViewCollection
protected
DtLaserDesignatorStateViewCollection* makVrf::DtVrfStateViewCollectionManager::myLaserDesignatorStateViewCollection
protected
makVrv::DtVrlinkSensorFieldsOfViewStateViewCollection* makVrf::DtVrfStateViewCollectionManager::mySensorFieldOfViewStateViewCollection
protected
makVrv::DtDe& makVrf::DtVrfStateViewCollectionManager::myDe
protected
std::map<short, int> makVrf::DtVrfStateViewCollectionManager::myWaitingForDiscovery
protected
UpdateRateMap makVrf::DtVrfStateViewCollectionManager::myUpdateRateMap
protected
int makVrf::DtVrfStateViewCollectionManager::myNextToken
protected
StateViewAddedOrRemovedCallbacks makVrf::DtVrfStateViewCollectionManager::myStateViewAddedOrRemovedCallbacks
protected
makVrv::DtSignalConnectionManager makVrf::DtVrfStateViewCollectionManager::myConnectionManager
protected
std::map<makVrv::DtElementID, bool> makVrf::DtVrfStateViewCollectionManager::myWaiting
protected
UUIDToIdMap makVrf::DtVrfStateViewCollectionManager::myUUIDToIdMap
mutableprotected
IdToUUIDMap makVrf::DtVrfStateViewCollectionManager::myIdToUUIDMap
mutableprotected
DtVrfGuiOrbatManager* makVrf::DtVrfStateViewCollectionManager::myVrfGuiOrbatManager
mutableprotected
std::map<makVrv::DtUniqueID, const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*> makVrf::DtVrfStateViewCollectionManager::myStealthStates
protected
std::string makVrf::DtVrfStateViewCollectionManager::myStealthType
protected
std::set<makVrv::DtUniqueID> makVrf::DtVrfStateViewCollectionManager::myTacticalGraphicElements
protected
std::set<makVrv::DtUniqueID> makVrf::DtVrfStateViewCollectionManager::myDIGuyIds
protected
boost::unordered_set<makVrv::DtUniqueID> makVrf::DtVrfStateViewCollectionManager::myIdsToCheckForDIGuy
protected
boost::unordered_set<DtUUID> makVrf::DtVrfStateViewCollectionManager::myDidNotFindStateViewFor
protected
DtMaxMarkingTextLengthFunction makVrf::DtVrfStateViewCollectionManager::myMaxMarkingTextLengthFunction
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)