VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtArealObjectEncoder Class Reference

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.
DtArealObjectEncoderoperator= (const DtArealObjectEncoder &orig)
 Assignment operator.
virtual DtArealObjectStatePdustateMsg (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.
DtStateEncoderoperator= (const DtStateEncoder &orig)
 Assignment operator.
void setSendNeeded ()
 Sets myForceSendNeeded to true.
virtual DtPduEncoderclone () 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 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

Detailed Description

Provides encoding logic for the DtArealObjectStatePdu class.

Constructor & Destructor Documentation

DtArealObjectEncoder::DtArealObjectEncoder ( double  locThresh = 1.0)

CTOR.

DtArealObjectEncoder::DtArealObjectEncoder ( const DtArealObjectEncoder orig)

Copy CTOR.

virtual DtArealObjectEncoder::~DtArealObjectEncoder ( )
virtual

Virtual DTOR.

Member Function Documentation

DtArealObjectEncoder::DtCLONE_ENCODER ( DtArealObjectEncoder  )
double DtArealObjectEncoder::locThreshold ( ) const
inlinevirtual

Set/Query the value of the Location Update Threshold.

References myLocThresholdSquared.

DtArealObjectEncoder& DtArealObjectEncoder::operator= ( const DtArealObjectEncoder orig)

Assignment operator.

virtual bool DtArealObjectEncoder::sendNeeded ( const DtArealObjectRepository stateRep,
const DtArealObjectRepository asSeenByRemote 
)
protectedvirtual

Determine if a state message needs to be sent.

void DtArealObjectEncoder::setLocThreshold ( double  val)
inlinevirtual

Set/Query the value of the Location Update Threshold.

References myLocThresholdSquared.

virtual DtArealObjectStatePdu* DtArealObjectEncoder::stateMsg ( const DtArealObjectRepository stateRep,
const DtArealObjectRepository asSeenByRemote 
)
virtual

Constructs a PDU from the state repository.

stateMsg determines whether a Designator PDU needs to be sent and constructs one of it does.

Returns
PDU if send is needed, and NULL if not
virtual void DtArealObjectEncoder::updateModifications ( const DtArealObjectRepository lclRep,
const DtArealObjectRepository remRep 
)
protectedvirtual

Update the PDU's modification flags.

Member Data Documentation

double DtArealObjectEncoder::myLocThresholdSquared
protected

Referenced by locThreshold(), and setLocThreshold().

DtArealObjectStatePdu DtArealObjectEncoder::myPdu
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)