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 | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
DtDIGuyCustomPduEncoder Class Reference
+ Inheritance diagram for DtDIGuyCustomPduEncoder:
+ Collaboration diagram for DtDIGuyCustomPduEncoder:

Public Member Functions

virtual DtPduEncoderclone () const
 Clone method. More...
 
 DtDIGuyCustomPduEncoder ()
 CTOR. More...
 
virtual ~DtDIGuyCustomPduEncoder ()
 Virtual DTOR. More...
 
virtual bool encodeAndSend (DtExerciseConn *exConn, const DtEntityStateRepository &stateRep, DtEntityStateRepository *asSeenByRemote)
 Check if state data has changed and encode as either attributes (added to state rep) or DI-Guy PDUs. More...
 
virtual void encode (DtPdu *pdu)
 This is a dummy method for backwards compatibility with DIS encoders. More...
 
virtual void setSendAsAttributes (bool enable)
 Set/Get whether to send as attributes or PDU. More...
 
virtual bool isSendAsAttributes () const
 Set/Get whether to send as attributes or PDU. More...
 
virtual void addDiGuyEncoder (DtDIGuyEncodeFcn info)
 Add/Remove an encoder for DI Guy Attributes. More...
 
virtual void removeDiGuyEncoder (const DtDIGuyEncodeFcn &info)
 Add/Remove an encoder for DI Guy Attributes. More...
 
virtual void clearEncoders ()
 Add/Remove an encoder for DI Guy Attributes. More...
 
virtual void setDiGuyActionTimeThreshold (DtTime time)
 Set/Get the thresholds for sending PDU updates. More...
 
virtual DtTime diGuyActionTimeThreshold () const
 Return the DIGuy Action time threshold. More...
 
virtual void setDiGuyAppearanceTimeThreshold (DtTime time)
 Set the DIGuy Appearance time threshold for sending a PDU. More...
 
virtual DtTime diGuyAppearanceTimeThreshold () const
 Return the DIGuy Appearance time threshold. More...
 
virtual void setDiGuyTypeTimeThreshold (DtTime time)
 Set the DIGuy Type time threshold for sending a PDU. More...
 
virtual DtTime diGuyTypeTimeThreshold () const
 Return the DIGuy Type time threshold. More...
 
virtual void setDiGuyShapeVariationsTimeThreshold (DtTime time)
 Set the DIGuy Shape Variations time threshold for sending a PDU. More...
 
virtual DtTime diGuyShapeVariationsTimeThreshold () const
 Return the DIGuy Type time threshold. More...
 
virtual void setDiGuyScaleTimeThreshold (DtTime time)
 Set the DIGuy Scale time threshold for sending a PDU. More...
 
virtual DtTime diGuyScaleTimeThreshold () const
 Return the DIGuy Scale time threshold. More...
 
- Public Member Functions inherited from DtPduEncoder
virtual ~DtPduEncoder ()
 

Protected Member Functions

virtual void setDiGuyActionUpdate (DtTime time)
 Set/Get the time that the last PDU was update sent. More...
 
virtual DtTime diGuyActionUpdate () const
 Set/Get the time that the last PDU was update sent. More...
 
virtual void setDiGuyAppearanceUpdate (DtTime time)
 Set/Get the time that the last PDU was update sent. More...
 
virtual DtTime diGuyAppearanceUpdate () const
 Set/Get the time that the last PDU was update sent. More...
 
virtual void setDiGuyTypeUpdate (DtTime time)
 Set/Get the time that the last PDU was update sent. More...
 
virtual DtTime diGuyTypeUpdate () const
 Set/Get the time that the last PDU was update sent. More...
 
virtual void setDiGuyShapeVariationsUpdate (DtTime time)
 Set/Get the time that the last PDU was update sent. More...
 
virtual DtTime diGuyShapeVariationsUpdate () const
 Set/Get the time that the last PDU was update sent. More...
 
virtual void setDiGuyScaleUpdate (DtTime time)
 Set/Get the time that the last PDU was update sent. More...
 
virtual DtTime diGuyScaleUpdate () const
 Set/Get the time that the last PDU was update sent. More...
 

Static Protected Member Functions

static DtPduencodeDiGuyActionPdu (const DtEntityStateRepository &stateRep, DtEntityStateRepository *asSeenByRemote, DtClock *theClock, DtDIGuyCustomPduEncoder *encoder)
 Encode the action PDU (or attribute record). More...
 
static DtPduencodeDiGuyAppearancePdu (const DtEntityStateRepository &stateRep, DtEntityStateRepository *asSeenByRemote, DtClock *theClock, DtDIGuyCustomPduEncoder *encoder)
 Encode the appearance PDU (or attribute record). More...
 
static DtPduencodeDiGuyTypePdu (const DtEntityStateRepository &stateRep, DtEntityStateRepository *asSeenByRemote, DtClock *theClock, DtDIGuyCustomPduEncoder *encoder)
 Encode the type PDU (or attribute record). More...
 
static DtPduencodeDiGuyShapeVariationsPdu (const DtEntityStateRepository &stateRep, DtEntityStateRepository *asSeenByRemote, DtClock *theClock, DtDIGuyCustomPduEncoder *encoder)
 Encode the shape variations PDU (or attribute record). More...
 
static DtPduencodeDiGuyScalePdu (const DtEntityStateRepository &stateRep, DtEntityStateRepository *asSeenByRemote, DtClock *theClock, DtDIGuyCustomPduEncoder *encoder)
 Encode the scale PDU (or attribute record). More...
 
static DtPduencodeDiGuyPatches (const DtEntityStateRepository &stateRep, DtEntityStateRepository *asSeenByRemote, DtClock *theClock, DtDIGuyCustomPduEncoder *encoder)
 Encode the Patches attribute record. More...
 

Protected Attributes

std::list< DtDIGuyEncodeFcnmyDiGuyCbList
 
DtTime myDiGuyActionPdusTimeThreshold
 
DtTime myDiGuyAppearancePdusTimeThreshold
 
DtTime myDiGuyTypePdusTimeThreshold
 
DtTime myDiGuyShapeVariationsPdusTimeThreshold
 
DtTime myDiGuyScalePdusTimeThreshold
 
DtTime myLastDiGuyActionPdusUpdate
 
DtTime myLastDiGuyAppearancePdusUpdate
 
DtTime myLastDiGuyTypePdusUpdate
 
DtTime myLastDiGuyShapeVariationsPdusUpdate
 
DtTime myLastDiGuyScalePdusUpdate
 
bool myIsSendAsAttributes
 

Static Protected Attributes

static short myShapeVariationsEncodingVersion
 

Constructor & Destructor Documentation

DtDIGuyCustomPduEncoder::DtDIGuyCustomPduEncoder ( )

CTOR.

virtual DtDIGuyCustomPduEncoder::~DtDIGuyCustomPduEncoder ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual void DtDIGuyCustomPduEncoder::addDiGuyEncoder ( DtDIGuyEncodeFcn  info)
virtual

Add/Remove an encoder for DI Guy Attributes.

You should have one encoder for each type of PDU that you want to send. In the case of encoded attributes, just need to insure that all the state data is handled by exactly one encoder. All the encoders will be called when encodeAndSend is accessed.

virtual void DtDIGuyCustomPduEncoder::clearEncoders ( )
virtual

Add/Remove an encoder for DI Guy Attributes.

You should have one encoder for each type of PDU that you want to send. In the case of encoded attributes, just need to insure that all the state data is handled by exactly one encoder. All the encoders will be called when encodeAndSend is accessed.

virtual DtPduEncoder* DtDIGuyCustomPduEncoder::clone ( ) const
virtual

Clone method.

Implements DtPduEncoder.

virtual DtTime DtDIGuyCustomPduEncoder::diGuyActionTimeThreshold ( ) const
virtual

Return the DIGuy Action time threshold.

virtual DtTime DtDIGuyCustomPduEncoder::diGuyActionUpdate ( ) const
protectedvirtual

Set/Get the time that the last PDU was update sent.

virtual DtTime DtDIGuyCustomPduEncoder::diGuyAppearanceTimeThreshold ( ) const
virtual

Return the DIGuy Appearance time threshold.

virtual DtTime DtDIGuyCustomPduEncoder::diGuyAppearanceUpdate ( ) const
protectedvirtual

Set/Get the time that the last PDU was update sent.

virtual DtTime DtDIGuyCustomPduEncoder::diGuyScaleTimeThreshold ( ) const
virtual

Return the DIGuy Scale time threshold.

virtual DtTime DtDIGuyCustomPduEncoder::diGuyScaleUpdate ( ) const
protectedvirtual

Set/Get the time that the last PDU was update sent.

virtual DtTime DtDIGuyCustomPduEncoder::diGuyShapeVariationsTimeThreshold ( ) const
virtual

Return the DIGuy Type time threshold.

virtual DtTime DtDIGuyCustomPduEncoder::diGuyShapeVariationsUpdate ( ) const
protectedvirtual

Set/Get the time that the last PDU was update sent.

virtual DtTime DtDIGuyCustomPduEncoder::diGuyTypeTimeThreshold ( ) const
virtual

Return the DIGuy Type time threshold.

virtual DtTime DtDIGuyCustomPduEncoder::diGuyTypeUpdate ( ) const
protectedvirtual

Set/Get the time that the last PDU was update sent.

virtual void DtDIGuyCustomPduEncoder::encode ( DtPdu pdu)
virtual

This is a dummy method for backwards compatibility with DIS encoders.

Implements DtPduEncoder.

virtual bool DtDIGuyCustomPduEncoder::encodeAndSend ( DtExerciseConn exConn,
const DtEntityStateRepository stateRep,
DtEntityStateRepository asSeenByRemote 
)
virtual

Check if state data has changed and encode as either attributes (added to state rep) or DI-Guy PDUs.

static DtPdu* DtDIGuyCustomPduEncoder::encodeDiGuyActionPdu ( const DtEntityStateRepository stateRep,
DtEntityStateRepository asSeenByRemote,
DtClock theClock,
DtDIGuyCustomPduEncoder encoder 
)
staticprotected

Encode the action PDU (or attribute record).

static DtPdu* DtDIGuyCustomPduEncoder::encodeDiGuyAppearancePdu ( const DtEntityStateRepository stateRep,
DtEntityStateRepository asSeenByRemote,
DtClock theClock,
DtDIGuyCustomPduEncoder encoder 
)
staticprotected

Encode the appearance PDU (or attribute record).

static DtPdu* DtDIGuyCustomPduEncoder::encodeDiGuyPatches ( const DtEntityStateRepository stateRep,
DtEntityStateRepository asSeenByRemote,
DtClock theClock,
DtDIGuyCustomPduEncoder encoder 
)
staticprotected

Encode the Patches attribute record.

static DtPdu* DtDIGuyCustomPduEncoder::encodeDiGuyScalePdu ( const DtEntityStateRepository stateRep,
DtEntityStateRepository asSeenByRemote,
DtClock theClock,
DtDIGuyCustomPduEncoder encoder 
)
staticprotected

Encode the scale PDU (or attribute record).

static DtPdu* DtDIGuyCustomPduEncoder::encodeDiGuyShapeVariationsPdu ( const DtEntityStateRepository stateRep,
DtEntityStateRepository asSeenByRemote,
DtClock theClock,
DtDIGuyCustomPduEncoder encoder 
)
staticprotected

Encode the shape variations PDU (or attribute record).

static DtPdu* DtDIGuyCustomPduEncoder::encodeDiGuyTypePdu ( const DtEntityStateRepository stateRep,
DtEntityStateRepository asSeenByRemote,
DtClock theClock,
DtDIGuyCustomPduEncoder encoder 
)
staticprotected

Encode the type PDU (or attribute record).

virtual bool DtDIGuyCustomPduEncoder::isSendAsAttributes ( ) const
virtual

Set/Get whether to send as attributes or PDU.

virtual void DtDIGuyCustomPduEncoder::removeDiGuyEncoder ( const DtDIGuyEncodeFcn info)
virtual

Add/Remove an encoder for DI Guy Attributes.

You should have one encoder for each type of PDU that you want to send. In the case of encoded attributes, just need to insure that all the state data is handled by exactly one encoder. All the encoders will be called when encodeAndSend is accessed.

virtual void DtDIGuyCustomPduEncoder::setDiGuyActionTimeThreshold ( DtTime  time)
virtual

Set/Get the thresholds for sending PDU updates.

Set the DIGuy Action time threshold for sending a PDU

virtual void DtDIGuyCustomPduEncoder::setDiGuyActionUpdate ( DtTime  time)
protectedvirtual

Set/Get the time that the last PDU was update sent.

virtual void DtDIGuyCustomPduEncoder::setDiGuyAppearanceTimeThreshold ( DtTime  time)
virtual

Set the DIGuy Appearance time threshold for sending a PDU.

virtual void DtDIGuyCustomPduEncoder::setDiGuyAppearanceUpdate ( DtTime  time)
protectedvirtual

Set/Get the time that the last PDU was update sent.

virtual void DtDIGuyCustomPduEncoder::setDiGuyScaleTimeThreshold ( DtTime  time)
virtual

Set the DIGuy Scale time threshold for sending a PDU.

virtual void DtDIGuyCustomPduEncoder::setDiGuyScaleUpdate ( DtTime  time)
protectedvirtual

Set/Get the time that the last PDU was update sent.

virtual void DtDIGuyCustomPduEncoder::setDiGuyShapeVariationsTimeThreshold ( DtTime  time)
virtual

Set the DIGuy Shape Variations time threshold for sending a PDU.

virtual void DtDIGuyCustomPduEncoder::setDiGuyShapeVariationsUpdate ( DtTime  time)
protectedvirtual

Set/Get the time that the last PDU was update sent.

virtual void DtDIGuyCustomPduEncoder::setDiGuyTypeTimeThreshold ( DtTime  time)
virtual

Set the DIGuy Type time threshold for sending a PDU.

virtual void DtDIGuyCustomPduEncoder::setDiGuyTypeUpdate ( DtTime  time)
protectedvirtual

Set/Get the time that the last PDU was update sent.

virtual void DtDIGuyCustomPduEncoder::setSendAsAttributes ( bool  enable)
virtual

Set/Get whether to send as attributes or PDU.

Member Data Documentation

DtTime DtDIGuyCustomPduEncoder::myDiGuyActionPdusTimeThreshold
protected
DtTime DtDIGuyCustomPduEncoder::myDiGuyAppearancePdusTimeThreshold
protected
std::list<DtDIGuyEncodeFcn> DtDIGuyCustomPduEncoder::myDiGuyCbList
protected
DtTime DtDIGuyCustomPduEncoder::myDiGuyScalePdusTimeThreshold
protected
DtTime DtDIGuyCustomPduEncoder::myDiGuyShapeVariationsPdusTimeThreshold
protected
DtTime DtDIGuyCustomPduEncoder::myDiGuyTypePdusTimeThreshold
protected
bool DtDIGuyCustomPduEncoder::myIsSendAsAttributes
protected
DtTime DtDIGuyCustomPduEncoder::myLastDiGuyActionPdusUpdate
protected
DtTime DtDIGuyCustomPduEncoder::myLastDiGuyAppearancePdusUpdate
protected
DtTime DtDIGuyCustomPduEncoder::myLastDiGuyScalePdusUpdate
protected
DtTime DtDIGuyCustomPduEncoder::myLastDiGuyShapeVariationsPdusUpdate
protected
DtTime DtDIGuyCustomPduEncoder::myLastDiGuyTypePdusUpdate
protected
short DtDIGuyCustomPduEncoder::myShapeVariationsEncodingVersion
staticprotected

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

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)