![]() |
VR-Link API Documentation for DIS
|
class DtEntityStateUpdatePdu: More...
Inheritance diagram for DtEntityStateUpdatePdu:
Collaboration diagram for DtEntityStateUpdatePdu:Public Member Functions | |
| DtEntityStateUpdatePdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtEntityStateUpdatePdu (const DtNetEntityStateUpdatePdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtEntityStateUpdatePdu (const DtEntityStateUpdatePdu &orig) | |
| virtual | ~DtEntityStateUpdatePdu () |
| destructor | |
| DtEntityStateUpdatePdu & | operator= (const DtEntityStateUpdatePdu &orig) |
| Assignment operator. | |
| virtual void | setEntityID (const DtEntityIdentifier &id) |
| Set/Get entity ID. | |
| virtual const DtEntityIdentifier & | entityID () const |
| virtual DtU8 | numRecords () const |
| Get the number of articulation parameter records (this field is automatically set by the PDU when the articulated part list or attached part list is set). | |
| virtual void | setVelocity (const DtVector &velocity) |
| Set/Get velocity. | |
| virtual const DtVector & | velocity () const |
| virtual void | setLocation (const DtVector &coords) |
| Set/Get location. | |
| virtual const DtVector & | location () const |
| virtual void | setOrientation (const DtTaitBryan &orientation) |
| Set/Get orientation. | |
| virtual const DtTaitBryan & | orientation () const |
| virtual void | setAppearance (DtU32 app) |
| Set/Get appearance (as a 32 bit integer). | |
| virtual DtU32 | appearance () const |
| virtual void | setAppearanceAttribute (const DtAppearAttribute attr, const DtAppearAttrVal val) |
| Set/Get appearance by attribute. | |
| virtual DtAppearAttrVal | appearanceAttribute (const DtAppearAttribute attr) const |
| virtual bool | setArtPartParameters (const DtArticulatedPartCollection &partList) |
| The articulated parts and attached parts information are both optional. | |
| virtual bool | getArtPartParameters (DtArticulatedPartCollection &partList) const |
| virtual bool | setAttPartParameters (const DtAttachedPartCollection &partList) |
| Set/Get attached parts parameters. | |
| virtual bool | getAttPartParameters (DtAttachedPartCollection &partList) const |
| virtual void | printData () const |
| Print the data contained by this PDU. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print the data to a stream. | |
Public Member Functions inherited from DtStateMsg | |
| DtStateMsg () | |
| default constructor | |
| virtual | ~DtStateMsg () |
| destructor | |
| DtStateMsg (const DtStateMsg &orig) | |
| copy constructor | |
| DtStateMsg & | operator= (const DtStateMsg &orig) |
| assignment operator | |
Public Member Functions inherited from DtPdu | |
| virtual | ~DtPdu () |
| Destructor. | |
| DtPdu (const DtPdu &pdu, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Copy constructor. | |
| DtPdu & | operator= (const DtPdu &pdu) |
| Assignment operator. | |
| virtual void * | packet () const |
| Older function that returns a pointer to the network representation. | |
| virtual int | status () const |
| Get PDU status. | |
| virtual void | setVersion (int vers) |
| Set/Get protocol version from PDU header. | |
| virtual int | protocolVersion () const |
| virtual void | setExerciseId (int id) |
| Set/Get exerciseID in PDU header. | |
| virtual int | exerciseId () const |
| virtual DtPduKind | kind () const |
| Returns PDU kind from PDU header. | |
| virtual DtProtocolFamily | protocolFamily () const |
| Returns protocol family from PDU header. | |
| virtual void | setTimeStamp (DtTime time, DtTimeStampType type=DtTimeStampRelative) |
| Set the PDU header's time stamp to reflect time and type. | |
| virtual DtTime | timeStamp () const |
| Return the time (in seconds past an hour) encoded in the PDU header's time stamp. | |
| virtual DtTimeStampType | timeStampType () const |
| Return the type of the time stamp, as indicated in PDU header. | |
| virtual DtTime | guessTimeValid (DtTime referenceTime) const |
| Since timestamp only represents number of seconds past the hour, guessTimeValid chooses the hour that would make the timestamp closest to reference time, and returns a time that is timestamp seconds past that hour. | |
| virtual DtNetPduHeader * | netHeader () const |
| Returns a pointer to the PDU's header. | |
| virtual void | print () const |
| Print the contents of the PDU by calling printToStream(DtInfo). | |
| virtual void | printToStream (std::ostream &stream) const |
| Print the contents of the PDU by calling printHeaderToStream and printDataToStream. | |
| virtual void | printHeader () const |
| Print the PDU's header. This calls printHeaderToStream(DtInfo). | |
| virtual void | printHeaderToStream (std::ostream &stream) const |
| Print the PDU's header to a stream. | |
| virtual void | printDataToString (DtString &str) const |
Public Member Functions inherited from DtBaseMsg | |
| virtual | ~DtBaseMsg () |
| Destructor. | |
| DtBaseMsg (const DtBaseMsg &msg, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Copy constructor. | |
| DtBaseMsg & | operator= (const DtBaseMsg &msg) |
| Assignment. | |
| virtual const char * | netRep () const |
| Get network representation. | |
| virtual int | length () const |
| Get size of message. | |
Static Public Member Functions | |
| static DtPdu * | create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Create a DtEntityStateUpdatePdu. | |
| static void | addCallback (DtExerciseConn *conn, DtEntityStateUpdatePduCb cb, void *usr) |
| Add (register)/Remove (deregister) function to be called when pdu is received. | |
| static void | removeCallback (DtExerciseConn *conn, DtEntityStateUpdatePduCb cb, void *usr) |
Protected Member Functions | |
| virtual DtPduKind | internalGetPduKind () const |
| Returns the internal PDU kind. | |
| virtual DtNetEntityStateUpdatePdu * | netPduStruct () const |
| Casts the netPdu element to our network struct. | |
| DtEntityStateUpdatePdu * | self () const |
| Casts the 'this' pointer for changing elements in a const function. | |
| virtual char * | var () const |
| Returns a pointer to the first byte of variable length data. | |
| virtual void | setNumRecords (DtU8 value) |
| Set number of records. | |
| virtual int | artParmOffset () const |
| Returns the offset (in bytes) of a field in the variable data region. | |
| virtual int | attParmOffset () const |
| virtual void | fillAttPartNetParams (const DtAttachedPartCollection &apList, DtNetAttachedPart *netRecords) |
| virtual void | fillAttPartCollection (DtAttachedPartCollection &apList, const DtNetAttachedPart *netRecords) const |
Protected Attributes | |
| int | myNumArtPartParams |
| Number of articulated part parameters for this PDU. | |
| int | myNumAttPartParams |
| Number of attached part parameters for this PDU. | |
| DtEntityIdentifier | myEntityID |
| Temporary objects for reference returns. | |
| DtVector | myVector |
| DtTaitBryan | myEulerAngles |
Static Protected Attributes | |
| static const int | theStaticSize |
| Size of PDU with zero parameter records. | |
class DtEntityStateUpdatePdu:
Instances of DtEntityStateUpdatePdu are used to send non-static information about a particular entity.
| DtEntityStateUpdatePdu::DtEntityStateUpdatePdu | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructors.
| DtEntityStateUpdatePdu::DtEntityStateUpdatePdu | ( | const DtNetEntityStateUpdatePdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtEntityStateUpdatePdu::DtEntityStateUpdatePdu | ( | const DtEntityStateUpdatePdu & | orig | ) |
|
virtual |
destructor
|
static |
Add (register)/Remove (deregister) function to be called when pdu is received.
|
virtual |
|
virtual |
|
protectedvirtual |
Returns the offset (in bytes) of a field in the variable data region.
|
protectedvirtual |
|
static |
Create a DtEntityStateUpdatePdu.
Caller is responsible for deletion.
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
|
virtual |
|
protectedvirtual |
Returns the internal PDU kind.
Implements DtPdu.
|
virtual |
|
protectedvirtual |
Casts the netPdu element to our network struct.
|
virtual |
Get the number of articulation parameter records (this field is automatically set by the PDU when the articulated part list or attached part list is set).
| DtEntityStateUpdatePdu& DtEntityStateUpdatePdu::operator= | ( | const DtEntityStateUpdatePdu & | orig | ) |
Assignment operator.
|
virtual |
|
virtual |
Print the data contained by this PDU.
Reimplemented from DtPdu.
|
virtual |
Print the data to a stream.
Reimplemented from DtPdu.
|
static |
|
protected |
Casts the 'this' pointer for changing elements in a const function.
Non-virtual since you can't override based on return type.
|
virtual |
Set/Get appearance (as a 32 bit integer).
|
virtual |
Set/Get appearance by attribute.
|
virtual |
The articulated parts and attached parts information are both optional.
Either or both can be set. Set/Get articulated parts parameters. Parameters are passed in the form of an articulated parts list. Returns false if the operation could not be performed.
|
virtual |
Set/Get attached parts parameters.
Parameters are passed in the form of an attached parts list. Returns false if the operation could not be performed.
|
virtual |
Set/Get entity ID.
|
virtual |
Set/Get location.
|
protectedvirtual |
Set number of records.
|
virtual |
Set/Get orientation.
|
virtual |
Set/Get velocity.
|
protectedvirtual |
Returns a pointer to the first byte of variable length data.
|
virtual |
|
protected |
Temporary objects for reference returns.
|
protected |
|
protected |
Number of articulated part parameters for this PDU.
|
protected |
Number of attached part parameters for this PDU.
|
protected |
|
staticprotected |
Size of PDU with zero parameter records.