![]() |
VR-Forces Developer's Guide
|
2) Define the next frame class. This will be used for write access. Write-access implementation of DtAerodromeStateComponent for use in the simulation controller thread.

Public Member Functions | |
| DtAerodromeStateComponentNextFrame (DtStateData *) | |
| virtual | ~DtAerodromeStateComponentNextFrame () override |
| virtual const DtAerodromeStateData & | frameState () const override |
| DtAerodromeStateData & | frameState () |
| virtual const bool & | isLocal () const override |
| virtual void | setIsLocal (const bool &) override |
| virtual const bool & | checkForNameReservation () const override |
| virtual void | setCheckForNameReservation (const bool &) override |
| virtual const bool & | active () const override |
| virtual void | setActive (const bool &) override |
| virtual const DtString & | globalId () const override |
| virtual void | setGlobalId (const DtString &) override |
| virtual const DtUUID & | uuid () const override |
| virtual void | setUUID (const DtUUID &) override |
| virtual const DtString & | airportCode () const override |
| virtual void | setAirportCode (const DtString &) override |
| virtual unsigned char | value (const DtString &) const override |
| virtual void | setValue (const DtString &, unsigned char) override |
| virtual void | restoreFromArchive (const DtString &) override |
| virtual unsigned char | runwayValue (const DtString &, const DtString &runwayName) const override |
| virtual void | setRunwayValue (const DtString &, unsigned char, const DtString &runwayName) override |
| virtual std::vector< DtString > | runwaysArchived () const override |
| virtual const DtString & | markingText () const override |
| virtual void | setMarkingText (const DtString &t) override |
| virtual const unsigned long long | orbatId () const override |
| virtual void | setOrbatId (const unsigned long long &) override |
| virtual void | setUserLongLongData (const unsigned long long &) override |
| virtual const UInt64 | userLongLongData () const override |
| virtual const DtString & | sidc () const override |
| virtual void | setSidc (const DtString &) override |
| virtual const DtForceType | forceType () const override |
| virtual void | setForceType (const DtForceType &) override |
| virtual const UInt32 | appearanceBits () const override |
| virtual void | setAppearanceBits (const UInt32 &) override |
| virtual const DtEntityType | entityType () const override |
| virtual const DtEntityType | objectType () const override |
| virtual void | setEntityType (const DtEntityType &t) override |
| virtual const DtEntityIdentifier & | entityId () const override |
| virtual void | setEntityId (const DtEntityIdentifier &) override |
| virtual const DtSimulationAddress | simEngineAddress () const override |
| virtual DtRunwayStateData & | addRunway () override |
| virtual void | removeRunway (const DtUUID &) override |
| virtual DtRunwayStateData & | runway (const DtUUID &) override |
| virtual DtRunwayStateData & | runway (const std::string &) override |
| virtual const DtRunwayStateData & | runway (const DtUUID &) const override |
| virtual const DtRunwayStateData & | runway (const std::string &) const override |
| virtual const DtRunwayLightStateData & | runwayState (const std::string &) const override |
| virtual const std::map< DtUUID, DtRunwayStateData > & | runways () const override |
| virtual void | setRunways (const std::map< DtUUID, DtRunwayStateData > &) override |
| virtual void | restoreRunwaysFromArchive (const std::vector< DtString > &) override |
Public Member Functions inherited from makVrf::DtAerodromeStateComponent | |
| DtAerodromeStateComponent (DtStateData *storage) | |
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 Attributes | |
| DtAerodromeStateData | myData |
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 |
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 |
Protected Member Functions inherited from makVrf::DtFrameStateInterface | |
| virtual void | makeWritable () |
| virtual void | makeReadOnly () |
| makVrf::DtAerodromeStateComponentNextFrame::DtAerodromeStateComponentNextFrame | ( | DtStateData * | ) |
Constructs the next-frame aerodrome state component with the given state data storage.
| sd | Pointer to the state data storage associated with this component. |
|
overridevirtual |
|
inlineoverridevirtual |
Next frame access write access. Ensure this is only used in a single thread (i.e.a controller thread)
|
inline |
Returns a mutable reference to the aerodrome state data for the next frame.
|
overridevirtual |
Returns whether this aerodrome is locally owned.
|
overridevirtual |
Sets whether this aerodrome is locally owned.
| isLocal | True if this aerodrome is local; false for remote. |
|
overridevirtual |
Returns whether a name reservation check is required for this aerodrome.
|
overridevirtual |
Sets whether a name reservation check is required for this aerodrome.
| check | True to require name reservation check. |
|
overridevirtual |
Returns whether this aerodrome is active.
|
overridevirtual |
Sets whether this aerodrome is active.
| active | True to mark the aerodrome as active. |
|
overridevirtual |
Returns the global identifier string for this aerodrome.
|
overridevirtual |
Sets the global identifier string for this aerodrome.
| id | The global identifier to set. |
|
overridevirtual |
Returns the UUID of this aerodrome.
|
overridevirtual |
Sets the UUID of this aerodrome.
| id | The UUID to assign. |
|
overridevirtual |
Returns the ICAO airport code for this aerodrome.
|
overridevirtual |
Sets the ICAO airport code for this aerodrome.
| code | The airport code to set. |
|
overridevirtual |
Returns the named appearance value for this aerodrome.
| valueName | Name of the appearance attribute. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Sets the named appearance value for this aerodrome.
| valueName | Name of the appearance attribute. |
| value | The appearance value to set. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Restores this aerodrome's state from the given archived state string.
| archivedState | Serialized state string to restore from. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns the named appearance value for the specified runway.
| valueName | Name of the appearance attribute. |
| runwayName | Name of the runway. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Sets the named appearance value for the specified runway.
| valueName | Name of the appearance attribute. |
| value | The appearance value to set. |
| runwayName | Name of the runway. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns a list of archived runway state strings.
Reimplemented from makVrf::DtAerodromeStateComponent.
|
inlineoverridevirtual |
Returns the airport code as the marking text for this aerodrome.
|
inlineoverridevirtual |
Sets the airport code via the marking text interface.
| t | The marking text (airport code) to set. |
|
inlineoverridevirtual |
Aerodromes cannot be in orbat.
|
inlineoverridevirtual |
|
overridevirtual |
Sets the user-defined 64-bit data value for this aerodrome.
| data | The 64-bit user data value to set. |
|
overridevirtual |
Returns the user-defined 64-bit data value for this aerodrome.
|
overridevirtual |
Unused for aerodromes.
|
overridevirtual |
|
overridevirtual |
Returns the force type (affiliation) of this aerodrome.
|
overridevirtual |
Sets the force type (affiliation) of this aerodrome.
| forceType | The force type to assign. |
|
overridevirtual |
Returns the packed DIS appearance bits for this aerodrome.
|
overridevirtual |
Sets the packed DIS appearance bits for this aerodrome.
| bits | The appearance bits to set. |
|
inlineoverridevirtual |
Returns the entity type (wraps objectType()).
|
overridevirtual |
Returns the DIS object type of this aerodrome.
|
overridevirtual |
Sets the DIS entity/object type of this aerodrome.
| t | The entity type to assign. |
|
overridevirtual |
Returns the DIS entity identifier for this aerodrome.
|
overridevirtual |
Sets the DIS entity identifier for this aerodrome.
| id | The entity identifier to assign. |
|
overridevirtual |
Returns the simulation engine address derived from the entity identifier.
|
overridevirtual |
Adds a new runway to this aerodrome and returns a reference to the new runway state data.
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Removes the runway identified by the given UUID.
| id | UUID of the runway to remove. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns a mutable reference to the runway identified by the given UUID.
| id | UUID of the runway. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns a mutable reference to the runway identified by the given name.
| name | Name of the runway. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns a const reference to the runway identified by the given UUID.
| id | UUID of the runway. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns a const reference to the runway identified by the given name.
| name | Name of the runway. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns the runway light state data for the runway end identified by the given name.
| runwayEndName | Name of the runway end. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns a const map of all runways keyed by UUID.
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Replaces all runways with the provided map.
| runways | Map of UUID to DtRunwayStateData to set. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Restores all runways from the provided list of archived state strings.
| archivedRunways | Vector of serialized runway state strings to restore. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
mutableprotected |
Mutable aerodrome state data buffer for the next frame.