![]() |
VR-Forces Developer's Guide
|
Double-buffered entity state component implementation.
Owns the Legion WriteEntityRepository instance and exposes the next-frame (myNextFrameState) and current-frame (myCurrentFrameState) wrappers. On construction, if no read instance exists, convertToLocal() is called immediately to create a writable Legion instance.
Additional state components (DtEntityLocationStateComponent and DtVrfGeometryStateComponent) are added automatically via addAdditionalStateComponents().

Static Public Member Functions | |
| static void | addAdditionalTableColumns (Legion::SimulationDatabase *) |
Static Public Member Functions inherited from makVrf::DtDoubleBufferedStateComponent< DtEntityStateComponent > | |
| static void | registerLegionComponent (Legion::SimulationDatabase *) |
| static void | addAdditionalTableColumns (Legion::SimulationDatabase *) |
Protected Attributes | |
| DtEntityStateComponentCurrentFrame | myCurrentFrameState |
| DtEntityStateComponentNextFrame | myNextFrameState |
| LOM::WriteEntityRepository | myWriteEntityStateRepository |
Protected Attributes inherited from makVrf::DtStateComponent | |
| UInt64 | myId |
| DtStateData * | myStateData |
| const Coordinate_System * | myCoordinateSystem |
| bool | myIsRemoteComponent |
| bool | myCleared |
| bool | myPublishingOnLegionNetwork |
| bool | myAdvancedFrame |
| makVrf::DtEntityStateComponentImplementation::DtEntityStateComponentImplementation | ( | DtStateData * | sd | ) |
Constructs the implementation and binds it to sd.
If sd has no read state instance yet, convertToLocal() is called immediately to create the underlying Legion write instance.
| sd | The owning DtStateData instance. |
|
overridevirtual |
Destroys the implementation and, if it owns the write instance, releases it.
|
inline |
Returns true; this component uses double-buffered state.
|
inlineoverridevirtual |
Returns the current-frame state interface (read-only).
Reimplemented from makVrf::DtStateComponent.
|
inlineoverridevirtual |
Returns the next-frame state interface (read-write).
Reimplemented from makVrf::DtStateComponent.
|
inlineoverridevirtual |
Returns the next-frame state interface (read-only overload).
Reimplemented from makVrf::DtStateComponent.
|
overridevirtual |
Promotes next-frame data to the current frame.
For locally owned objects, checkForUpdatedItems() is called first to detect and signal any Legion-side attribute changes. Then the next-frame data block is copied into the current-frame cache via advanceFrame(), and emitComponentUpdated() is called.
Implements makVrf::DtDoubleBufferedStateComponent< DtEntityStateComponent >.
|
inlineoverridevirtual |
Propagates a new DtStateData pointer into both frame states.
| sd | The new owning DtStateData instance. |
Implements makVrf::DtDoubleBufferedStateComponent< DtEntityStateComponent >.
|
static |
Registers the UUID and ClutterEntity attribute columns in the Legion database.
UUID is stored as a fixed-size UInt8 array (size equal to a null UUID's data size) and reflected on the network. ClutterEntity is a single Bool that is also reflected on the network.
| db | The Legion simulation database to extend. |
|
overridevirtual |
Applies initial appearance bits from object parameters if specified.
| params | Object parameters potentially containing an initial appearance value. |
Reimplemented from makVrf::DtStateComponent.
|
inlineoverridevirtual |
Returns the Legion write state instance handle for this entity.
Reimplemented from makVrf::DtStateComponent.
|
overridevirtual |
Transitions this entity from local to remote (non-writable) ownership.
Releases the WriteEntityRepository if it is valid and the state data is currently publishing on the Legion network.
Reimplemented from makVrf::DtStateComponent.
|
overridevirtual |
Transitions this entity from remote to local (writable) ownership.
Creates a new main Legion write instance, makes the next-frame state writable, and synchronises the Legion global ID into both frame states.
Reimplemented from makVrf::DtStateComponent.
|
overridevirtual |
Adds DtEntityLocationStateComponent and DtVrfGeometryStateComponent to the owning state data.
Reimplemented from makVrf::DtStateComponent.
|
inlineoverridevirtual |
Notifies both frame states that the component is about to be destroyed.
Reimplemented from makVrf::DtStateComponent.
References makVrf::DtStateComponent::aboutToBeDeleted().
|
protected |
Current-frame (read-only) entity state.
|
protected |
Next-frame (write-access) entity state.
|
protected |
Legion write repository owned by this implementation instance.