![]() |
VR-Link API Documentation for DIS
|
Provides encoding logic for the DtLinearObjectStatePdu class. More...
Inheritance diagram for DtLinearObjectEncoder:
Collaboration diagram for DtLinearObjectEncoder:Public Member Functions | |
| DtLinearObjectEncoder (double locThresh=1.0, double oriThresh=1.0) | |
| CTOR. | |
| DtLinearObjectEncoder (const DtLinearObjectEncoder &orig) | |
| Copy CTOR. | |
| virtual | ~DtLinearObjectEncoder () |
| Virtual DTOR. | |
| DtLinearObjectEncoder & | operator= (const DtLinearObjectEncoder &orig) |
| Assignment operator. | |
| virtual DtLinearObjectStatePdu * | stateMsg (const DtLinearObjectRepository &stateRep, const DtLinearObjectRepository &asSeenByRemote) |
| Constructs a PDU from the state repository. | |
| DtCLONE_ENCODER (DtLinearObjectEncoder) | |
| 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. | |
| virtual void | setOriThreshold (double val) |
| Set/Query the value of the Orientation Update Threshold. | |
| virtual double | oriThreshold () const |
| Set/Query the value of the Orientation 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. | |
| void | setSendNeeded () |
| Sets myForceSendNeeded to true. | |
| 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) const |
| 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 DtLinearObjectRepository &stateRep, const DtLinearObjectRepository &asSeenByRemote) |
| Determine if a state message needs to be sent. | |
| virtual void | updateModifications (const DtLinearObjectRepository &lclRep, const DtLinearObjectRepository &remRep) |
| Update the PDU's modification flags. | |
Protected Attributes | |
| DtLinearObjectStatePdu | myPdu |
| double | myLocThresholdSquared |
| double | myOriThresholdSquared |
Protected Attributes inherited from DtStateEncoder | |
| bool | myForceSendNeeded |
Provides encoding logic for the DtLinearObjectStatePdu class.
CTOR.
| DtLinearObjectEncoder::DtLinearObjectEncoder | ( | const DtLinearObjectEncoder & | orig | ) |
Copy CTOR.
|
virtual |
Virtual DTOR.
| DtLinearObjectEncoder::DtCLONE_ENCODER | ( | DtLinearObjectEncoder | ) |
|
inlinevirtual |
Set/Query the value of the Location Update Threshold.
References myLocThresholdSquared.
| DtLinearObjectEncoder& DtLinearObjectEncoder::operator= | ( | const DtLinearObjectEncoder & | orig | ) |
Assignment operator.
|
inlinevirtual |
Set/Query the value of the Orientation Update Threshold.
References myOriThresholdSquared.
|
protectedvirtual |
Determine if a state message needs to be sent.
|
inlinevirtual |
Set/Query the value of the Location Update Threshold.
References myLocThresholdSquared.
|
inlinevirtual |
Set/Query the value of the Orientation Update Threshold.
References myOriThresholdSquared.
|
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 |
Referenced by oriThreshold(), and setOriThreshold().
|
protected |