![]() |
VR-Link API Documentation for DIS
|
The DtStateEncoder class provides a base class for all DIS encoders. More...
Inheritance diagram for DtStateEncoder:
Collaboration diagram for DtStateEncoder:Public Member Functions | |
| 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 Attributes | |
| bool | myForceSendNeeded |
| DtU32 | myChangedState |
The DtStateEncoder class provides a base class for all DIS encoders.
| DtStateEncoder::DtStateEncoder | ( | ) |
Default constructor.
|
virtual |
Destructor.
| DtStateEncoder::DtStateEncoder | ( | const DtStateEncoder & | orig | ) |
Copy constructor.
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
clone.
Must be defined in your child class. This is easily done by defining DtCLONE_ENCODER(DtChildClass)
Implements DtPduEncoder.
Implemented in DtDirectedEnergyFireEncoder.
|
virtual |
This is a dummy method for backwards compatibility with DIS encoders.
Implements DtPduEncoder.
Reimplemented in DtDirectedEnergyFireEncoder.
|
virtual |
DIS 7 requires filling the Attribute Records for a coupled Attribute PDU.
It is filled in this function.
| DtStateEncoder& DtStateEncoder::operator= | ( | const DtStateEncoder & | orig | ) |
Assignment operator.
|
inlinevirtual |
|
virtual |
In order to modify records in place, and have them sent, we need to compare the stateRep with the As seen by remote.
(DIS 7).
|
inlinevirtual |
|
virtual |
Sets myForceSendNeeded to true.
Referenced by DtDirectedEnergyFirePublisher::forceUpdate(), DtDesignatorPublisher::forceUpdate(), DtLinearObjectPublisher::forceUpdate(), DtPointObjectPublisher::forceUpdate(), and DtArealObjectPublisher::forceUpdate().
|
protected |
|
protected |