![]() |
VR-Link API Documentation for DIS
|
Instances of DtEntityStateEncoder are used to take state information from a DtEntityStateRepository and place it into an entity state PDU. More...
Inheritance diagram for DtEntityStateEncoder:
Collaboration diagram for DtEntityStateEncoder:Public Member Functions | |
| DtEntityStateEncoder () | |
| Constructor. | |
| virtual | ~DtEntityStateEncoder () |
| Destructor. | |
| DtEntityStateEncoder (const DtEntityStateEncoder &orig) | |
| Copy constructor. | |
| DtEntityStateEncoder & | operator= (const DtEntityStateEncoder &orig) |
| Assignment operator. | |
| virtual DtEntityStatePdu * | stateMsg (const DtEntityStateRepository &stateRep, const DtEntityStateRepository &asSeenByRemote) |
| Constructs a PDU from the state repository. | |
Protected Member Functions | |
| virtual bool | sendNeeded (const DtEntityStateRepository &stateRep, const DtEntityStateRepository &asSeenByRemote) |
| Returns true if a PDU needs to be sent, (based on thresholds, etc) false otherwise. | |
| virtual void | fillOut (const DtEntityStateRepository &stateRep, const DtEntityStateRepository &asSeenByRemote, DtEntityStatePdu *pdu) |
| Copy current ESR data to the pdu. | |
| virtual bool | artPartsNeedUpdating (const DtEntityStateRepository &stateRep, const DtEntityStateRepository &asSeenByRemote) |
| Returns true if art part info is out of date, false otherwise. | |
| virtual bool | attPartsNeedUpdating (const DtEntityStateRepository &stateRep, const DtEntityStateRepository &asSeenByRemote) |
| Returns true if art part info is out of date, false otherwise. | |
| virtual void | fillOutArtAndAttParts (const DtEntityStateRepository &stateRep, const DtEntityStateRepository &asSeenByRemote, DtEntityStatePdu *pdu) |
| Copies current articulated and attached part info from the ESR to the PDU. | |
Protected Attributes | |
| DtEntityStatePdu | myEsPdu |
Instances of DtEntityStateEncoder are used to take state information from a DtEntityStateRepository and place it into an entity state PDU.
Constructor.
| virtual DtEntityStateEncoder::~DtEntityStateEncoder | ( | ) | [virtual] |
Destructor.
| DtEntityStateEncoder::DtEntityStateEncoder | ( | const DtEntityStateEncoder & | orig | ) |
Copy constructor.
| virtual bool DtEntityStateEncoder::artPartsNeedUpdating | ( | const DtEntityStateRepository & | stateRep, |
| const DtEntityStateRepository & | asSeenByRemote | ||
| ) | [protected, virtual] |
Returns true if art part info is out of date, false otherwise.
| virtual bool DtEntityStateEncoder::attPartsNeedUpdating | ( | const DtEntityStateRepository & | stateRep, |
| const DtEntityStateRepository & | asSeenByRemote | ||
| ) | [protected, virtual] |
Returns true if art part info is out of date, false otherwise.
| virtual void DtEntityStateEncoder::fillOut | ( | const DtEntityStateRepository & | stateRep, |
| const DtEntityStateRepository & | asSeenByRemote, | ||
| DtEntityStatePdu * | pdu | ||
| ) | [protected, virtual] |
Copy current ESR data to the pdu.
| virtual void DtEntityStateEncoder::fillOutArtAndAttParts | ( | const DtEntityStateRepository & | stateRep, |
| const DtEntityStateRepository & | asSeenByRemote, | ||
| DtEntityStatePdu * | pdu | ||
| ) | [protected, virtual] |
Copies current articulated and attached part info from the ESR to the PDU.
| DtEntityStateEncoder& DtEntityStateEncoder::operator= | ( | const DtEntityStateEncoder & | orig | ) |
Assignment operator.
| virtual bool DtEntityStateEncoder::sendNeeded | ( | const DtEntityStateRepository & | stateRep, |
| const DtEntityStateRepository & | asSeenByRemote | ||
| ) | [protected, virtual] |
Returns true if a PDU needs to be sent, (based on thresholds, etc) false otherwise.
| virtual DtEntityStatePdu* DtEntityStateEncoder::stateMsg | ( | const DtEntityStateRepository & | stateRep, |
| const DtEntityStateRepository & | asSeenByRemote | ||
| ) | [virtual] |
Constructs a PDU from the state repository.
stateMsg determines whether an Entity State PDU needs to be sent and constructs one of it does.
DtEntityStatePdu DtEntityStateEncoder::myEsPdu [protected] |