![]() |
VR-Forces Developer's Guide
|
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buffered component data stores (subclasses of DtStateComponent). The double buffered data stores have accessors to the currentFrameState (read only) and the nextFrameState (read/write). The DtStateData class has wrapper class accessors to this nextFrameState (DtExternalNextFrameState) and the currentFrameState (DtExternalCurrentFrameState).
When a new component is added to the state data, the data store for that state component is created and the nextFrameState made available to the DtExternalNextFrameState (as well as being returned by the addStateComponent method). The DtExternalCurrentFrameState will not have access to the current state until the next advanceFrame on the DtStateData is called. Until that point, if called, the DtExternalCurrentFrameState will return a const pointer to the nextFrameState.
The DtStateData class contains all the data for a particular object.
Public Types | |
| enum | PublishFlag { DoNotPublish, PublishAll, PublishComponentsOnly } |
| using | SimStateID = unsigned long long |
Static Public Member Functions | |
| static void | addPublicDataFor (const std::string &type, const std::string &componentCreator) |
| static void | removePublicDataFor (const std::string &type, const std::string &componentCreator) |
| static std::set< std::string > | additionalPublicDataFor (DtEntityType defaultEntityType, const std::string &dislpayName, const std::string ¶meterType) |
| static void | addDefaultPublicDataFor (const std::string &type, const std::string &componentCreator) |
| static void | removeDefaultPublicDataFor (const std::string &type, const std::string &componentCreator) |
| static std::set< std::string > | defaultPublicDataFor (DtEntityType defaultEntityType, const std::string &dislpayName, const std::string ¶meterType) |
| static void | setDefaultMainComponentFor (const std::string &type, const std::string &defaultPublicData) |
| static std::string | defaultMainComponentFor (DtEntityType defaultEntityType, const std::string &dislpayName, const std::string &type) |
Public Attributes | |
| boost::signals2::signal< void(const DtStateData *)> | signal_firstFrameAdvance |
| boost::signals2::signal< void(const DtUUID &, const DtUUID &, SimStateID)> | signal_uuidChanged |
| boost::signals2::signal< void(const DtString &, const DtString &, const DtUUID &, SimStateID)> | signal_markingTextChanged |
| boost::signals2::signal< void(const DtStateData *, const DtUUID &oldUUID, const DtUUID &newUUID)> | signal_hostChanged |
| boost::signals2::signal< void(const DtStateData *)> | signal_stateDataToBeDestroyed |
| boost::signals2::signal< void(SimStateID)> | signal_preFrameAdvanced |
| boost::signals2::signal< void(const DtStateData *)> | signal_frameAdvanced |
| boost::signals2::signal< void(const DtStateData *)> | signal_modified |
| boost::signals2::signal< void(DtStateData *)> | signal_convertingToRemote |
| boost::signals2::signal< void(DtStateData *)> | signal_convertedToRemote |
| boost::signals2::signal< void(DtStateData *)> | signal_convertingToLocal |
| boost::signals2::signal< void(DtStateData *)> | signal_convertedToLocal |
| boost::signals2::signal< void(DtStateComponent *)> | signal_stateComponentAdded |
| boost::signals2::signal< void(DtStateComponent *)> | signal_stateComponentRemoved |
| boost::signals2::signal< void(const DtStateData *, const std::vector< DtUUID > &added, const std::vector< DtUUID > &removed)> | signal_subordinatesChanged |
Protected Types | |
| typedef std::map< std::string, std::set< std::string > > | PublicData |
| typedef std::map< std::string, std::string > | DefaultMainComponentMap |
Protected Member Functions | |
| virtual DtSimulatedObjectStateComponent * | nextFrameSimulatedObjectStateComponent () |
| virtual DtStateData * | currentFrameHostStateData () const |
| virtual bool | createMainData (const DtVrfObjectParameters *params, const DtEntityType &et) |
| virtual void | hostChanged (const DtUUID &oldUUID, const DtUUID &newUUID) |
| virtual void | setupStateComponent (DtStateComponent *comp, const DtVrfObjectParameters *params=nullptr) |
| virtual void | subordinatesChanged (const std::vector< DtUUID > &oldSubordinates, const std::vector< DtUUID > &newSubordinates) |
| void | setPublishFlag (PublishFlag b) |
| virtual std::string | defaultParameterTypeForEntityType (const DtEntityType &et) const |
| virtual void | completeRemoteConversion () |
| virtual void | hostWasDeleted () |
| virtual void | removeStateComponent (DtStateComponent::StateComponentType t) |
| virtual void | uuidChanged (const DtUUID &oldUUID, const DtUUID &newUUID) |
| virtual void | markingTextChanged (const DtString &oldText, const DtString &newText) |
Static Protected Attributes | |
| static PublicData | theDefaultPublicData |
| static PublicData | theAdditionalPublicData |
| static DefaultMainComponentMap | theDefaultMainComponentMap |
| static tbb::mutex | theCreateInstanceMutex |
Friends | |
| class | DtStateDataManager |
| class | DtExternalNextFrameState |
Opaque integer type used to identify and index state data objects.
|
protected |
This is added for systems that might not have updated the ope files to the new format to get public data for a parameter type. The system will add the basic public data needed by parameter type from the DtStateDataManager to use as a default.
|
protected |
Maps parameter / entity type strings to the name of their default main component creator.
Controls whether and how this object's state is published on the Legion network.
| Enumerator | |
|---|---|
| DoNotPublish |
State is not published. |
| PublishAll |
All state is published. |
| PublishComponentsOnly |
Only individual components are published, not the main instance. |
| makVrf::DtStateData::DtStateData | ( | ) |
CTOR.
The basic DtStateData constructor will only allow the setting of a few basic items of data – components cannot be added nor will this be double buffered or added to the sim object manager. Use if you only want to quickly create state data and set some very basic information to be used in a DtSimObjectReference
| makVrf::DtStateData::DtStateData | ( | SimStateID | id, |
| Legion::SimulationDatabase * | db, | ||
| DtStateDataManager * | mgr | ||
| ) |
Constructs a managed DtStateData with a simulation database and state data manager.
| id | The unique simulation state ID for this object. |
| db | The Legion simulation database. |
| mgr | The state data manager that owns this object. |
| makVrf::DtStateData::DtStateData | ( | SimStateID | id, |
| makVrf::UInt64 | legionHandle, | ||
| Legion::SimulationDatabase * | db, | ||
| DtStateDataManager * | mgr | ||
| ) |
Constructs a managed DtStateData initialized from an existing Legion global ID.
|
virtual |
Destroys this state data object; fires the signal_stateDataToBeDestroyed signal and cleans up all registered state components.
|
virtual |
Sets the fact that the user cannot use any of the components as they might cause a crash when referenced.
|
virtual |
Checks whether this state data is still in a usable state. Do not call this method directly if wrapped in a DtSimObjectReference. Always use the DtSimObjectReference isValid call (ref.isValid())
|
virtual |
|
virtual |
Clears the pointer to the owning state data manager without notifying it (used during shutdown).
|
virtual |
Sets whether this state data should be registered with the sim object manager when created.
| b | True to register with the sim object manager (default), false to skip registration. |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the total count of Legion extension components of the given type across next and current frames. Prefers the write instance if valid, then the read instance.
| T_Component | The Legion component type. |
Referenced by makVrf::DtRemoteObjectManager::StateComponentAdder< T_VRFStateComponent, T_LegionComponent >::addStateComponent().
|
inline |
Finds and returns a writable Legion extension component of the given type for the next frame. Falls back to the current frame if no writable instance exists.
| T_Component | The Legion component type. |
| index | Zero-based index of the extension component. |
Referenced by makVrf::DtRemoteObjectManager::StateComponentAdder< T_VRFStateComponent, T_LegionComponent >::hasStateComponent().
|
inline |
|
virtual |
Marks this state data as modified so it will be processed during the next frame advance.
|
virtual |
Clears the modified flag on this state data.
|
virtual |
Queues the removal of the given next-frame state component to take effect on the next frame advance.
| f | The frame state interface to remove. |
|
virtual |
Immediately removes a current-frame state component.
| f | The frame state interface to remove. |
| bool makVrf::DtStateData::isModified | ( | ) | const |
|
inline |
advanceFrame() has been called at least once for this state data.
|
inline |
advanceFrame() is currently executing.
|
inline |
|
inline |
|
virtual |
Creates a new state component of the given type and registers it with this state data.
| t | The state component type to create. |
|
inline |
Using the global state component factory, creates and adds a new state of the given type.
Referenced by makVrf::DtRemoteObjectManager::StateComponentAdder< T_VRFStateComponent, T_LegionComponent >::addStateComponent().
|
inline |
| T_Component | The state component type to check. |
|
inline |
Destroys the main Legion write instance and frees the associated read instance.
|
inline |
Destroys a Legion instance and removes it from the simulation database.
| wsi | The write-state instance to destroy. |
|
virtual |
If not valid, creates and initializes a new write state instance.
|
inline |
|
inline |
Creates a new Legion instance of the given type without attaching it as an extension to the main instance. Throws DtUnknownStateComponent if no writable main instance exists.
| T_Component | The Legion component type to create. |
|
inline |
Creates a new Legion extension component of the given type and attaches it to the main write instance. Throws DtUnknownStateComponent if no writable main instance exists.
| T_Component | The Legion component type to create. |
DtUnknownStateComponent if no writable main instance exists. | T_Component | The Legion component type to create. |
|
inline |
Returns a writable pointer to the internal DtStateComponent of the given type at the specified index.
| T_Component | The state component type. |
| index | Zero-based index. |
Referenced by DtLocalObject::addStateComponent().
|
inline |
Returns a const pointer to the internal DtStateComponent of the given type at the specified index.
| T_Component | The state component type. |
| index | Zero-based index. |
|
inline |
| T_Component | The state component type to retrieve. |
|
inline |
| T_Component | The state component type to retrieve. |
|
inline |
Returns true if a state component of the given type exists on this object. First checks the next frame, then falls back to the current frame.
| T_Component | The state component type to check for. |
| checkWritable | If true, also verifies that the next-frame component is writable. |
checkWritable is set). Referenced by makVrf::DtRemoteObjectManager::StateComponentAdder< T_VRFStateComponent, T_LegionComponent >::addStateComponent().
|
inline |
Returns true if the current-frame contains a state component of the given type that can be cast to it.
| T_Component | The state component type to check for. |
|
inline |
Returns a writable pointer to the next-frame state component of the given type. Throws DtUnknownStateComponent if the component is not writable.
| T_Component | The state component type to retrieve. |
|
inline |
Returns a const pointer to the current-frame state component of the given type.
| T_Component | The state component type to retrieve. |
|
virtual |
If this is double buffered, return the current frame state component for this inteface. If this is already the current frame will return itself.
| void makVrf::DtStateData::removeComponent | ( | Legion::WriteStateInstance & | set | ) |
Removes a Legion extension component from the main write instance and destroys it.
| set | The write-state instance representing the component to remove. |
|
inline |
aboutToBeDeleted() has been called and this object's state has been cleared. | bool makVrf::DtStateData::frozen | ( | ) | const |
Retuns true if the location component is frozen.
Sets a 64-bit user-defined data value on the simulated object state component.
| value | The value to store. |
| const DtUUID& makVrf::DtStateData::uuid | ( | ) | const |
Referenced by makVrf::DtSimObjectManagerTemplate< T_BaseClass >::DeletedObjects::track().
| void makVrf::DtStateData::setUUID | ( | const DtUUID & | u | ) |
Sets the UUID of this state data object.
| u | The new UUID. |
| void makVrf::DtStateData::setCheckForNameReservation | ( | bool | ) |
VR-Link specific set used for HLA and name reservation. If this flag is set to false (default true) before the publisher is created then the name reservation code will not be checked.
| bool makVrf::DtStateData::checkForNameReservation | ( | ) | const |
| void makVrf::DtStateData::setGlobalId | ( | const DtString & | s | ) |
Sets the global ID (marking text key) of this entity.
| s | The new global ID string. |
| const DtString& makVrf::DtStateData::globalId | ( | ) | const |
| void makVrf::DtStateData::setMarkingText | ( | const DtString & | name | ) |
Sets the marking text (human-readable name) for this entity.
| name | The new marking text. |
| const DtString& makVrf::DtStateData::markingText | ( | ) | const |
| void makVrf::DtStateData::setSidc | ( | const DtString & | ) |
Sets the Sidc (SymbolId) for this object.
| const DtString& makVrf::DtStateData::sidc | ( | ) | const |
| void makVrf::DtStateData::setAppearance | ( | const DtAppearance & | a | ) |
Sets the visual appearance bits of this entity.
| a | The appearance to apply. |
| DtAppearance makVrf::DtStateData::appearance | ( | ) | const |
| void makVrf::DtStateData::setForceType | ( | DtForceType | force | ) |
Sets the force affiliation of this entity.
| force | The force type (e.g. friendly, hostile). |
| DtForceType makVrf::DtStateData::forceType | ( | ) | const |
| const DtString makVrf::DtStateData::parentGlobalId | ( | ) | const |
| DtString makVrf::DtStateData::parentGlobalId | ( | ) |
| key | The name of the extended data field. |
| key | The name of the extended data field. |
Sets the value of the named extended data field on the next frame.
| key | The name of the extended data field. |
| value | The value to set. |
| const DtUUID& makVrf::DtStateData::nextFrameHostId | ( | ) | const |
| const DtUUID& makVrf::DtStateData::currentFrameHostId | ( | ) | const |
| bool makVrf::DtStateData::isClutterEntity | ( | ) | const |
| void makVrf::DtStateData::setEntityType | ( | const DtEntityType & | type | ) |
Sets both the cached entity type and the entity type on the next-frame simulated object state.
| type | The new entity type. |
|
inline |
| DtEntityType makVrf::DtStateData::entityType | ( | ) | const |
|
inline |
| void makVrf::DtStateData::setEntityId | ( | const DtEntityIdentifier & | s | ) |
Sets the entity identifier on the next-frame simulated object state.
| s | The new entity identifier. |
| const DtEntityIdentifier& makVrf::DtStateData::entityId | ( | ) | const |
|
virtual |
This will be set if the object is awaiting transfer from another simulation engine.
|
inline |
|
virtual |
Initialize all state components (next frame) with parameter data.
| params | The object parameters to apply to all registered state components. |
|
virtual |
Given the list of state data creators, if there does not appear a state data component by this type then create one.
| params | The object parameters defining which components to create. |
| isReflectedObject | True if this is a remotely reflected object. |
| et | The entity type used to select the appropriate component creators. |
|
inline |
Referenced by makVrf::DtSimObjectManagerTemplate< T_BaseClass >::DeletedObjects::track().
| void makVrf::DtStateData::removeInstanceUpdatedCallback | ( | Legion::InstanceHandle | instanceHandle, |
| unsigned int | callbackHandle | ||
| ) |
Removes a previously registered Legion instance-updated callback.
| instanceHandle | The handle of the Legion instance. |
| callbackHandle | The handle returned by addInstanceUpdatedCallback(). |
| unsigned int makVrf::DtStateData::addInstanceUpdatedCallback | ( | DtInstanceUpdatedCallback | callback, |
| Legion::InstanceHandle | instanceHandle, | ||
| const std::vector< Legion::AttributeIndex > & | attributeIndexFilter = std::vector< Legion::AttributeIndex >() |
||
| ) |
Registers a callback that fires when the given Legion instance is updated.
| callback | The callback function to invoke. |
| instanceHandle | The Legion instance handle to monitor. |
| attributeIndexFilter | Optional list of attribute indices to filter on. |
removeInstanceUpdatedCallback() to deregister.
|
virtual |
Advances the frame: processes pending component removals, calls advanceFrame on each registered state component, promotes newly created components to the current frame, and fires the signal_frameAdvanced signal.
|
virtual |
Takes ownership of the supplied component.
|
virtual |
Sets the coordinate system in this state data and all components.
| cs | The new coordinate system to use. |
| void makVrf::DtStateData::setIsLocal | ( | bool | b | ) |
Sets whether this entity is simulated locally or is a remote reflection. Propagates the flag to all registered state components.
| b | True if this entity is simulated locally. |
| bool makVrf::DtStateData::isLocal | ( | ) | const |
|
inline |
|
inline |
PublishAll or PublishComponentsOnly).
|
inline |
|
inline |
| double makVrf::DtStateData::absRealTime | ( | ) | const |
|
inline |
|
inline |
|
inline |
Referenced by makVrf::DtRemoteObjectManager::StateComponentAdder< T_VRFStateComponent, T_LegionComponent >::addStateComponent().
|
inline |
| UInt64 makVrf::DtStateData::legionGlobalId | ( | ) | const |
ID that is common to all objects that represent this data.
Referenced by makVrf::DtSimObjectManagerTemplate< T_BaseClass >::DeletedObjects::track().
|
virtual |
Simply clears the state components vector, leaving the components dangling.
|
virtual |
Convenience routines for adding/removing components Creates and registers a new laser designator state component.
| isRemote | True if this component represents a remote entity's laser. |
|
virtual |
Removes and destroys the given laser designator state component.
| comp | The component to remove. |
|
virtual |
Creates or returns a line task visualization component for the given name and owning component.
| visualName | The name of the visualization. |
| component | The name of the owning sim component. |
|
virtual |
Creates or returns a point task visualization component for the given name and owning component.
| visualName | The name of the visualization. |
| component | The name of the owning sim component. |
|
virtual |
Creates or returns an area task visualization component for the given name and owning component.
| visualName | The name of the visualization. |
| component | The name of the owning sim component. |
|
virtual |
Creates or returns a text task visualization component for the given name and owning component.
| visualName | The name of the visualization. |
| component | The name of the owning sim component. |
|
virtual |
Removes and destroys the given task visualization state component.
| comp | The component to remove. |
|
virtual |
Creates and registers a new emitter system state component.
| isRemote | True if this component represents a remote entity's emitter. |
|
virtual |
Removes and destroys the given emitter system state component.
|
virtual |
Creates and registers a new active sonar system state component.
| isRemote | True if this component represents a remote entity's sonar. |
|
virtual |
Removes and destroys the given active sonar system state component.
|
virtual |
Creates and registers a new radio transmitter state component.
| isRemote | True if this component represents a remote entity's transmitter. |
|
virtual |
Removes and destroys the given radio transmitter state component.
|
virtual |
Creates and registers a new navigation-aid radio transmitter state component.
| isRemote | True if this component represents a remote entity's nav-aid transmitter. |
|
virtual |
Removes and destroys the given nav-aid radio transmitter state component.
|
virtual |
Creates and registers a new radio receiver state component.
| isRemote | True if this component represents a remote entity's receiver. |
|
virtual |
Removes and destroys the given radio receiver state component.
|
virtual |
Only one IFF available, so create or return the existing.
|
virtual |
Removes and destroys the IFF system state component.
|
virtual |
Only one Underwater Acoustics available, so, create or return the existing.
|
virtual |
Removes and destroys the underwater acoustics state component.
|
virtual |
Queues the given frame state interface for removal on the next frame advance.
| comp | The frame state interface to remove. |
|
inline |
|
virtual |
Convert this entity to a remote entity. If onAdvanceFrame is true will be done in an advance frame such that we know this is being done in a thread safe way for the entity – it will happen after the frame for the state data has been advanced.
|
virtual |
Convert this entity to a local entity. This is done immediately.
|
virtual |
Given the id of the component, get the type from the upper 32 bits and see where in the list this component is.
|
virtual |
If there is a write legion component associated with this frame state interface, return the instance handle.
|
virtual |
Called when state data manager is exiting, prevents deletion of items from a now deleted state data manager.
|
virtual |
Called when a component is getting deleted from the state data manager. Will remove from any internal structures to prevent double deletion.
|
inline |
|
static |
This is added for systems that might not have updated the ope files to the new format to get public data for a parameter type. The system will add the basic public data needed by parameter type from the DtStateDataManager to use as a default. The type can either be a parameter type, a specific entity type as defaulty defined by the parameter, or the display name Registers a default public-data component creator for the given parameter/entity type string.
| type | The parameter type, entity type, or display name string to match. |
| componentCreator | The name of the state component creator to associate as default public data. |
|
static |
Unregisters a previously added default public-data component creator for the given type string.
| type | The parameter type, entity type, or display name string. |
| componentCreator | The component creator name to remove. |
|
static |
Returns the set of default public-data component creator names applicable to the given entity.
| defaultEntityType | The entity type used to match registered defaults. |
| dislpayName | The display name used as an additional match key. |
| parameterType | The parameter type string used as an additional match key. |
|
static |
Same rules as addDefaultPublicDataFor, except this is public data that will be created in addition to the default public data Registers a supplemental public-data component creator for the given parameter/entity type string.
| type | The parameter type, entity type, or display name string to match. |
| componentCreator | The name of the state component creator to add as supplemental public data. |
|
static |
Unregisters a previously added supplemental public-data component creator.
| type | The parameter type, entity type, or display name string. |
| componentCreator | The component creator name to remove. |
|
static |
Returns the set of supplemental public-data component creator names applicable to the given entity.
| defaultEntityType | The entity type used to match registered entries. |
| dislpayName | The display name used as an additional match key. |
| parameterType | The parameter type string used as an additional match key. |
|
static |
Accessor for setting main component data. Same scheme as public data, except only a single main component Registers the default main component creator name for the given parameter/entity type string.
| type | The parameter type, entity type, or display name string to associate. |
| defaultPublicData | The component creator name to use as the default main component. |
|
static |
Returns the default main component creator name for the given entity.
| defaultEntityType | The entity type used to match registered entries. |
| dislpayName | The display name used as an additional match key. |
| type | The parameter type string used as an additional match key. |
|
virtual |
Goes through all the signals that this item is going to be deleted without actually deleting the memory such that it can be deleted in a future tick. Only call this when the state data wants to be removed at a later time.
|
virtual |
|
inline |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
Returns the current-frame state data of the host entity, traversing the host chain if needed. This method is intended for next-frame callers that need to read current-frame host data.
|
protectedvirtual |
Part of creating the public data is creating the main data. This call will create the main data state component based on object parameters.
|
protectedvirtual |
Called when the host entity's UUID has changed.
| oldUUID | The previous host UUID. |
| newUUID | The new host UUID. |
|
protectedvirtual |
Configures the given state component with the provided object parameters.
| comp | The state component to set up. |
| params | Object parameters to apply; may be nullptr. |
|
protectedvirtual |
Called when the subordinate entity list has changed.
| oldSubordinates | The previous list of subordinate UUIDs. |
| newSubordinates | The updated list of subordinate UUIDs. |
|
inlineprotected |
Only called during construction.
|
protectedvirtual |
Given entity kind, return hard coded string for parameter type Returns the default parameter type string for the given entity type.
| et | The entity type to look up. |
|
protectedvirtual |
Completes the conversion to a remote object (meaning the next frame will no longer be writable) and will signal that the object has been converted. Each component will get a convertToRemote call.
|
protectedvirtual |
Called when the host entity is destroyed; disconnects from the host and clears the cached pointer.
|
protectedvirtual |
Removes all state components matching the given type from the next-frame and current-frame stores.
| t | The state component type to remove. |
|
protectedvirtual |
Called internally when this state data's UUID changes; fires signal_uuidChanged.
| oldUUID | The previous UUID. |
| newUUID | The new UUID. |
|
protectedvirtual |
Called internally when this state data's marking text changes; fires signal_markingTextChanged.
| oldText | The previous marking text. |
| newText | The new marking text. |
|
friend |
|
friend |
|
mutable |
Signal sent on the first frame advance.
|
mutable |
Signal emitted when this state data's UUID changes. Listeners receive the old UUID, the new UUID, and the state ID.
| boost::signals2::signal<void(const DtString&, const DtString&, const DtUUID&, SimStateID)> makVrf::DtStateData::signal_markingTextChanged |
Signal emitted when this state data's marking text changes. Listeners receive the old text, the new text, the associated UUID, and the state ID.
| boost::signals2::signal<void (const DtStateData*, const DtUUID& oldUUID, const DtUUID& newUUID)> makVrf::DtStateData::signal_hostChanged |
Signal sent when the host has changed.
|
mutable |
Signal emitted just before this state data object is destroyed. Listeners receive the state data pointer.
| boost::signals2::signal<void (SimStateID)> makVrf::DtStateData::signal_preFrameAdvanced |
Signal emitted at the beginning of frame advance, before component data is swapped. Listeners receive the state ID.
|
mutable |
Signal sent regardless of whether or not this state had any modified components.
| boost::signals2::signal<void (const DtStateData*)> makVrf::DtStateData::signal_modified |
Signal sent if this state had modified components.
| boost::signals2::signal<void (DtStateData*)> makVrf::DtStateData::signal_convertingToRemote |
Signal emitted when conversion from local to remote is about to begin. Listeners receive the state data pointer.
| boost::signals2::signal<void (DtStateData*)> makVrf::DtStateData::signal_convertedToRemote |
Signal emitted when conversion to a remote representation is complete. Listeners receive the state data pointer.
| boost::signals2::signal<void (DtStateData*)> makVrf::DtStateData::signal_convertingToLocal |
Signal emitted when conversion from remote to local is about to begin. Listeners receive the state data pointer.
| boost::signals2::signal<void (DtStateData*)> makVrf::DtStateData::signal_convertedToLocal |
Signal emitted when conversion to a locally simulated representation is complete. Listeners receive the state data pointer.
|
mutable |
Signal emitted whenever a state component is added to this state data. Listeners receive a pointer to the newly added component.
|
mutable |
Signal emitted whenever a state component is removed from this state data. Listeners receive a pointer to the removed component.
| boost::signals2::signal<void (const DtStateData*, const std::vector<DtUUID>& added, const std::vector<DtUUID>& removed)> makVrf::DtStateData::signal_subordinatesChanged |
Signal emitted when the set of subordinate entities changes. Listeners receive the state data pointer, the added UUIDs, and the removed UUIDs.
|
protected |
Write-access view of state components for the upcoming frame.
|
protected |
Read-only view of state components from the last completed frame.
|
protected |
The state data manager that owns and manages this state data, or nullptr.
|
protected |
Pointer to the Legion simulation database used to publish and receive updates.
|
protected |
The basic data. This is what all components are hung off of if they are STE compliant.
|
protected |
Pointer to the Legion read-state instance for receiving remote updates; may be nullptr for local entities.
|
protected |
Unique simulation state identifier assigned to this state data.
|
protected |
True if any state component was modified since the last frame advance.
|
protected |
Simulated locally vs. remote representation.
|
protected |
The coordinate system used when converting position data for this entity.
|
protected |
Session identifier for the current simulation session.
|
protected |
Two-dimensional array of state components indexed by StateComponentType and component index.
|
protected |
Two-dimensional array tracking components created (owned) by this state data.
|
protected |
Set of frame state interfaces queued for removal on the next frame advance.
|
protected |
True after the first call to advanceFrame().
|
protected |
True if this state data is pending conversion to a remote representation.
|
protected |
True if this entity is awaiting an ownership transfer.
|
protected |
The Legion global identifier for this entity.
Monotonically increasing counter used to assign unique indices to newly created components.
|
protected |
Connection tracking changes to the subordinate entity list.
|
protected |
Connection tracking host UUID changes.
|
protected |
Connection tracking UUID changes on this entity.
|
protected |
Connection tracking marking text changes on this entity.
|
mutableprotected |
Connection tracking host entity deletion.
|
staticprotected |
Default public data keyed by parameter type, shared across all instances.
|
staticprotected |
Additional public data (beyond the default) keyed by parameter type, shared across all instances.
|
staticprotected |
Shared map of default main component assignments, keyed by type string.
|
protected |
True if this state data has been cleared (all components invalidated and removed).
|
protected |
Object parameters used during initialization; not owned by this class.
|
protected |
True if state for this entity is being published on the Legion network.
|
protected |
True if the main (primary) component for this entity resides on the Legion network.
|
protected |
Cached pointer to the current-frame simulated object state component for fast access.
|
protected |
Cached pointer to the current-frame location state component for fast access.
|
protected |
Cached pointer to the next-frame location state component; nullptr until first assignment.
|
protected |
Cached pointer to the next-frame writable simulated object state component.
|
mutableprotected |
Mutable cache of the current-frame host state data pointer; updated lazily.
|
mutableprotected |
Reader-writer mutex protecting myCurrentFrameHostStateData during concurrent access.
|
staticprotected |
Mutex used to serialize concurrent calls to createInstance() across all state data instances.
|
protected |
True while frame advance is in progress.
|
protected |
True after this state data has been successfully converted from remote to local simulation.
|
protected |
True if this state data should register with the DtSimObjectManager on creation.
|
protected |
True if this state data owns (and will destroy) its registered components.
|
protected |
The current marking text (callsign / label) for this entity.
|
protected |
The entity type of this entity, used to select default parameter types.