![]() |
VR-Forces Developer's Guide
|
3) Define the current frame class. This will be used for read access.

Public Member Functions | |
| DtEnvironmentalStateComponentCurrentFrame (DtStateData *) | |
| virtual | ~DtEnvironmentalStateComponentCurrentFrame () override |
| const DtEnvironmentalStateComponentData & | frameState () const |
| virtual const bool & | isLocal () const override |
| virtual const bool & | checkForNameReservation () const override |
| virtual const DtString & | globalId () const override |
| virtual const DtUUID & | uuid () const override |
| virtual const DtString & | markingText () const override |
| virtual const DtString & | sidc () const override |
| virtual const DtForceType | forceType () const override |
| virtual const DtEntityType | entityType () const override |
| virtual const DtEntityType | objectType () const override |
| virtual const DtEntityIdentifier & | entityId () const override |
| virtual const UInt32 | appearanceBits () const override |
| virtual const int | tickPeriod () const override |
| virtual const int | color () const override |
| virtual const DtString | userData () const override |
| virtual const double & | physicalLineHeight () const override |
| virtual const double & | physicalLineWidth () const override |
| virtual const double & | ceilingHeight () const override |
| virtual double | intelAreaModifierForForce (int forceType) const override |
| virtual const unsigned long long | userLongLongData () const override |
| virtual const unsigned long long | orbatId () const override |
| virtual const DtSimulationAddress | simEngineAddress () const override |
| virtual const int | penStyle () const override |
| virtual const int | fillStyle () const override |
| virtual const int | lineWidth () const override |
| bool | readComponentValid () const |
| bool | findReadComponent () |
| virtual int | recordCount () const override |
| virtual std::vector< UInt64 > | records () const override |
| virtual UInt64 | instanceHandle () const override |
| bool | checkForUpdatedItems () |
Public Member Functions inherited from makVrf::DtEnvironmentalStateComponent | |
| DtEnvironmentalStateComponent (DtStateData *storage) | |
| virtual void | addRecord (Legion::WriteStateInstance) |
| virtual void | removeRecord (Legion::WriteStateInstance) |
Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent | |
| DtSimulatedObjectStateComponent (DtStateData *) | |
| virtual bool | mainComponentOnLegion () const |
Public Member Functions inherited from makVrf::DtFrameStateInterface | |
| DtFrameStateInterface (DtStateData *) | |
| virtual | ~DtFrameStateInterface () |
| void | setIsWritable (bool b) |
| bool | isWritable () const |
| UInt64 | stateId () const |
| UInt64 | legionGlobalId () const |
| void | setLegionGlobalId (UInt64 d) |
| virtual bool | isModified () const |
| virtual void | clearModified () |
| virtual void | markModified () |
| virtual DtStateComponent::StateComponentType | type () const |
| virtual DtStateComponent::StateComponentType | componentType () const =0 |
| virtual const char * | stringType () const =0 |
| void | setId (UInt64 id) |
| virtual UInt64 | id () const |
| virtual void | updateStateData (DtStateData *sd) |
| virtual Legion::ReadStateInstance | readStateInstance () const |
| virtual Legion::WriteStateInstance | writeStateInstance () |
| void | emitComponentUpdated () |
| void | setMarkedForRemoval (bool b) |
| bool | markedForRemoval () const |
| bool | cleared () const |
| bool | advancedFrame () const |
| virtual void | frameAdvanced () |
| virtual void | convertToRemote () |
| virtual void | convertToLocal () |
| virtual void | aboutToBeDeleted () |
Protected Member Functions | |
| const DtUUID | _uuid () const |
| const DtString | _markingText () const |
| const DtEntityIdentifier | _entityId () const |
| void | completeSetup () |
| void | updateVrfStateComponentParameters () |
| void | updatePhysicalLineHeightInformation () |
| void | updateCeilingInformation () |
| void | updatePhysicalLineWidthInformation () |
| void | handleDataUpdated (const std::vector< UInt32 > &attributesUpdated) |
| bool | checkUUIDChanged () |
| bool | checkForceChanged () |
| bool | checkMarkingTextChanged () |
| bool | checkEntityIdChanged () |
| void | advanceFrame (const DtEnvironmentalStateComponentData &data) |
Protected Member Functions inherited from makVrf::DtFrameStateInterface | |
| virtual void | makeWritable () |
| virtual void | makeReadOnly () |
Protected Attributes | |
| boost::signals2::scoped_connection | myVrfStateComponentChangedConnection |
| DtRwIntelCollectionArea * | myIntelCollectionAreaInformation |
| LOM::ReadEnvironmentProcessRepository | myReadEnvironmentProcessRepository |
| VRF::ReadVrfEnvironmentRecordRepository | myReadVrfEnvironmentRecordRepository |
| unsigned int | myCallbackHandle |
| unsigned int | myDataCallbackHandle |
| UInt32 | myCenterPointColumn |
| UInt32 | myOrientationColumn |
| int | myForceId |
| std::string | myMarkingText |
| DtEnvironmentalStateComponentData | myData |
Protected Attributes inherited from makVrf::DtEnvironmentalStateComponent | |
| UInt32 | myUUIDColumn |
| UInt32 | myMarkingTextColumn |
| UInt32 | myForceTypeColumn |
| UInt32 | myEntityIdColumn |
| UInt32 | myAppearanceBitsColumn |
| UInt32 | myObjectTypeColumn |
Protected Attributes inherited from makVrf::DtFrameStateInterface | |
| bool | myIsModified |
| UInt64 | myId |
| UInt64 | myStateId |
| UInt64 | myLegionId |
| bool | myIsWritable |
| bool | myCleared |
| bool | myAdvancedFrame |
| bool | myMarkedForRemoval = false |
| DtStateData * | myStateData |
Friends | |
| class | DtEnvironmentalStateComponentImplementation |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent | |
| static DtStateComponent::StateComponentType | ComponentType () |
| static const char * | StringType () |
Public Attributes inherited from makVrf::DtSimulatedObjectStateComponent | |
| boost::signals2::signal< void(const DtUUID &, const DtUUID &, makVrf::SimStateID)> | signal_uuidChanged |
| boost::signals2::signal< void(const DtString &, const DtString &, makVrf::SimStateID)> | signal_markingTextChanged |
| boost::signals2::signal< void(int oldForce, int newForce, makVrf::SimStateID)> | signal_forceChanged |
| boost::signals2::signal< void(const DtSimulationAddress &oldAddress, const DtSimulationAddress &newAddress, makVrf::SimStateID)> | signal_simEngineAddressChanged |
Public Attributes inherited from makVrf::DtFrameStateInterface | |
| boost::signals2::signal< void(DtFrameStateInterface *)> | signal_stateComponentAboutToBeDeleted |
| boost::signals2::signal< void(const DtFrameStateInterface *)> | signal_componentModified |
| makVrf::DtEnvironmentalStateComponentCurrentFrame::DtEnvironmentalStateComponentCurrentFrame | ( | DtStateData * | ) |
Constructs a current-frame component backed by the given state data.
| sd | Pointer to the owning state data object. |
|
overridevirtual |
Destructor; unregisters attribute-update callbacks.
|
inline |
Current frame state only can access current frame buffers. This ensures thread safety.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Returns the visual Sidc code to be used.
|
overridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Gets/sets the tick period override; -1 uses the default.
Gets/sets the color of this environmental object. Gets/sets the user data string associated with this environmental object. Gets/sets the physical height of the line in meters. Gets/sets the physical width of the line in meters. Gets/sets the ceiling height in meters. Returns the pen/line style derived from appearance bits. Returns the fill style derived from appearance bits. Returns the line width derived from appearance bits. Returns the intelligence collection area modifier for the given force type.
| forceType | The force type identifier. |
Reimplemented from makVrf::DtEnvironmentalStateComponent.
|
overridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
| bool makVrf::DtEnvironmentalStateComponentCurrentFrame::readComponentValid | ( | ) | const |
Returns true if the underlying read component is valid and available.
| bool makVrf::DtEnvironmentalStateComponentCurrentFrame::findReadComponent | ( | ) |
Searches for and connects to the read component in the current frame state.
|
overridevirtual |
Returns the number of additional records attached to this environmental object.
Reimplemented from makVrf::DtEnvironmentalStateComponent.
|
overridevirtual |
Returns instance handles to all the records in this environmental.
Reimplemented from makVrf::DtEnvironmentalStateComponent.
|
overridevirtual |
The instance handle for the read (or write) environment process repository.
Reimplemented from makVrf::DtEnvironmentalStateComponent.
| bool makVrf::DtEnvironmentalStateComponentCurrentFrame::checkForUpdatedItems | ( | ) |
Checks all tracked attributes for changes and fires corresponding signals.
|
protected |
Reads the UUID from the underlying Legion repository.
|
protected |
Reads the marking text from the underlying Legion repository.
|
protected |
Reads the entity identifier from the underlying Legion repository.
|
protected |
Finalizes column index lookup and connects attribute-change callbacks.
|
protected |
Refreshes any parameters derived from the associated VRF state component.
|
protected |
Updates the physical line height from extended state data.
|
protected |
Updates the ceiling height from extended state data or vertex geometry.
|
protected |
Updates the physical line width from extended state data.
|
protected |
Handles attribute update callbacks from the Legion database.
| attributesUpdated | List of attribute column indices that changed. |
|
protected |
Checks if the UUID has changed and emits signal_uuidChanged if so.
|
protected |
Checks if the force type has changed and emits signal_forceChanged if so.
|
protected |
Checks if the marking text has changed and emits signal_markingTextChanged if so.
|
protected |
Checks if the entity identifier has changed and updates cached data if so.
|
inlineprotected |
Advances the internal data cache to the given snapshot.
| data | The new state data to cache. |
|
friend |
|
protected |
Connection to the VRF state component's extended-data-modified signal.
|
protected |
Intel collection area information parsed from extended data.
|
protected |
Read-access repository for the Legion environment process record.
|
protected |
Read-access repository for the VRF-specific environment record.
Handle for the VRF environment record attribute-update callback.
Handle for the environment process attribute-update callback.
|
protected |
Column index for the center-point position attribute.
|
protected |
Column index for the orientation attribute.
|
protected |
Cached force type identifier for change detection.
|
protected |
Cached marking text string for change detection.
|
protected |
Cached state data for this current-frame component.