![]() |
VR-Link API Documentation for DIS
|
Provides encoding logic for the DtArealObjectStatePdu class. More...
Inheritance diagram for DtArealObjectEncoder:
Collaboration diagram for DtArealObjectEncoder:Public Member Functions | |
| DtArealObjectEncoder (double locThresh=1.0) | |
| CTOR. | |
| DtArealObjectEncoder (const DtArealObjectEncoder &orig) | |
| Copy CTOR. | |
| virtual | ~DtArealObjectEncoder () |
| Virtual DTOR. | |
| DtArealObjectEncoder & | operator= (const DtArealObjectEncoder &orig) |
| Assignment operator. | |
| virtual DtArealObjectStatePdu * | stateMsg (const DtArealObjectRepository &stateRep, const DtArealObjectRepository &asSeenByRemote) |
| Constructs a PDU from the state repository. | |
| DtCLONE_ENCODER (DtArealObjectEncoder) | |
| virtual void | setLocThreshold (double val) |
| Set/Query the value of the Location Update Threshold. | |
| virtual double | locThreshold () const |
| Set/Query the value of the Location Update Threshold. | |
Public Member Functions inherited from DtStateEncoder | |
| DtStateEncoder () | |
| Default constructor. | |
| virtual | ~DtStateEncoder () |
| Destructor. | |
| DtStateEncoder (const DtStateEncoder &orig) | |
| Copy constructor. | |
| DtStateEncoder & | operator= (const DtStateEncoder &orig) |
| Assignment operator. | |
| virtual void | setSendNeeded () |
| Sets myForceSendNeeded to true. | |
| 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. | |
| virtual void | encode (DtPdu *pdu) |
| This is a dummy method for backwards compatibility with DIS encoders. | |
| 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. | |
| 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. | |
Public Member Functions inherited from DtPduEncoder | |
| virtual | ~DtPduEncoder () |
Protected Member Functions | |
| virtual bool | sendNeeded (const DtArealObjectRepository &stateRep, const DtArealObjectRepository &asSeenByRemote) |
| Determine if a state message needs to be sent. | |
| virtual void | updateModifications (const DtArealObjectRepository &lclRep, const DtArealObjectRepository &remRep) |
| Update the PDU's modification flags. | |
Protected Attributes | |
| DtArealObjectStatePdu | myPdu |
| double | myLocThresholdSquared |
Protected Attributes inherited from DtStateEncoder | |
| bool | myForceSendNeeded |
| DtU32 | myChangedState |
Provides encoding logic for the DtArealObjectStatePdu class.
| DtArealObjectEncoder::DtArealObjectEncoder | ( | double | locThresh = 1.0 | ) |
CTOR.
| DtArealObjectEncoder::DtArealObjectEncoder | ( | const DtArealObjectEncoder & | orig | ) |
Copy CTOR.
|
virtual |
Virtual DTOR.
| DtArealObjectEncoder::DtCLONE_ENCODER | ( | DtArealObjectEncoder | ) |
|
inlinevirtual |
Set/Query the value of the Location Update Threshold.
References myLocThresholdSquared.
| DtArealObjectEncoder& DtArealObjectEncoder::operator= | ( | const DtArealObjectEncoder & | orig | ) |
Assignment operator.
|
protectedvirtual |
Determine if a state message needs to be sent.
|
inlinevirtual |
Set/Query the value of the Location Update Threshold.
References myLocThresholdSquared.
|
virtual |
Constructs a PDU from the state repository.
stateMsg determines whether a Designator PDU needs to be sent and constructs one of it does.
|
protectedvirtual |
Update the PDU's modification flags.
|
protected |
Referenced by locThreshold(), and setLocThreshold().
|
protected |