![]() |
VR-Link API Documentation for DIS
|
This class handles encoding of Transmitter PDUs. More...
Inheritance diagram for DtRadioTransmitterEncoder:
Collaboration diagram for DtRadioTransmitterEncoder:Public Member Functions | |
| DtRadioTransmitterEncoder () | |
| Constructor. More... | |
| virtual | ~DtRadioTransmitterEncoder () |
| Destructor. More... | |
| DtRadioTransmitterEncoder (const DtRadioTransmitterEncoder &orig) | |
| Copy constructor. More... | |
| DtRadioTransmitterEncoder & | operator= (const DtRadioTransmitterEncoder &orig) |
| Assignment operator. More... | |
| virtual DtTransmitterPdu * | stateMsg (const DtRadioTransmitterRepository &stateRep, const DtRadioTransmitterRepository &asSeenByRemote) |
| Constructs a PDU from the state repository. More... | |
| DtCLONE_ENCODER (DtRadioTransmitterEncoder) | |
Public Member Functions inherited from DtStateEncoder | |
| DtStateEncoder () | |
| Default constructor. More... | |
| virtual | ~DtStateEncoder () |
| Destructor. More... | |
| DtStateEncoder (const DtStateEncoder &orig) | |
| Copy constructor. More... | |
| DtStateEncoder & | operator= (const DtStateEncoder &orig) |
| Assignment operator. More... | |
| virtual void | setSendNeeded () |
| Sets myForceSendNeeded to true. More... | |
| virtual DtU32 | changedState () const |
| virtual void | clearChangedState () |
| virtual bool | isChangedStateBit (DtU32 st) const |
| virtual void | resetChangedStateBit (DtU32 st) |
| virtual void | setChangedStateBit (DtU32 st) |
| virtual DtPduEncoder * | clone () const =0 |
| clone. More... | |
| virtual void | encode (DtPdu *pdu) |
| This is a dummy method for backwards compatibility with DIS encoders. More... | |
| virtual void | fillOutAttributeRecords (const DtStateRepository &stateRep, DtPduWithAttributeRecordSets *pdu, const DtEntityIdentifier &id, bool clearBeforeAdding=true) |
| DIS 7 requires filling the Attribute Records for a coupled Attribute PDU. More... | |
| virtual bool | sendNeededAttributeRecords (const DtStateRepository &stateRep, const DtStateRepository &asSeenByRemote) |
| In order to modify records in place, and have them sent, we need to compare the stateRep with the As seen by remote. More... | |
Public Member Functions inherited from DtPduEncoder | |
| virtual | ~DtPduEncoder () |
Protected Member Functions | |
| virtual bool | sendNeeded (const DtRadioTransmitterRepository &stateRep, const DtRadioTransmitterRepository &asSeenByRemote) |
| Determines whether a PDU needs to be sent. More... | |
| virtual bool | antennaLocationThresholdExceeded (const DtVector &stateRepLocation, const DtVector &asSeenByRemoteLocation, double threshold) const |
| Determines whether the antenna location threshold has been exceeded. More... | |
| virtual bool | antennaOrientationThresholdExceeded (const DtTaitBryan &stateRepOrientation, const DtTaitBryan &asSeenByRemoteOrientation, double threshold) const |
| Determines whether the antenna orientation threshold has been exceeded. More... | |
Protected Attributes | |
| DtTransmitterPdu | myPdu |
| The PDU constructed by the encoder. More... | |
Protected Attributes inherited from DtStateEncoder | |
| bool | myForceSendNeeded |
| DtU32 | myChangedState |
This class handles encoding of Transmitter PDUs.
It is responsible for constructing a DtTransmitterPdu based on the data in the DtRadioTransmitterRepository, and also checking whether the data has exceeded its thresholds so that a PDU must be sent.
| DtRadioTransmitterEncoder::DtRadioTransmitterEncoder | ( | ) |
Constructor.
|
virtual |
Destructor.
| DtRadioTransmitterEncoder::DtRadioTransmitterEncoder | ( | const DtRadioTransmitterEncoder & | orig | ) |
Copy constructor.
|
protectedvirtual |
Determines whether the antenna location threshold has been exceeded.
|
protectedvirtual |
Determines whether the antenna orientation threshold has been exceeded.
Note that the antenna orientation is only in the PDU when the antenna pattern type is that of beam antenna. The DIS spec states that the orientation should be determined by azimuth and elevation of the beam. If azimuth + elevation > threshold, then the threshold has been exceeded.
| DtRadioTransmitterEncoder::DtCLONE_ENCODER | ( | DtRadioTransmitterEncoder | ) |
| DtRadioTransmitterEncoder& DtRadioTransmitterEncoder::operator= | ( | const DtRadioTransmitterEncoder & | orig | ) |
Assignment operator.
|
protectedvirtual |
Determines whether a PDU needs to be sent.
|
virtual |
Constructs a PDU from the state repository.
stateMsg determines whether a Transmitter PDU needs to be sent and constructs one of it does.
|
protected |
The PDU constructed by the encoder.