![]() |
VR-Link API Documentation for DIS
|
class DtLinearObjectStatePdu: More...
Inheritance diagram for DtLinearObjectStatePdu:
Collaboration diagram for DtLinearObjectStatePdu:Public Member Functions | |
| DtLinearObjectStatePdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtLinearObjectStatePdu (const DtNetLinearObjectStatePdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtLinearObjectStatePdu (const DtLinearObjectStatePdu &orig) | |
| virtual | ~DtLinearObjectStatePdu () |
| destructor | |
| DtLinearObjectStatePdu & | operator= (const DtLinearObjectStatePdu &orig) |
| Assignment operator. | |
| virtual void | setObjectID (const DtEntityIdentifier &id) |
| Set/Get object ID. | |
| virtual const DtEntityIdentifier & | objectID () const |
| virtual void | setReferencedObjectID (const DtEntityIdentifier &id) |
| Set/Get referenced object ID. | |
| virtual const DtEntityIdentifier & | referencedObjectID () const |
| virtual void | setUpdateNumber (DtU16 field) |
| Set/Get update number. | |
| virtual DtU16 | updateNumber () const |
| virtual void | setForceID (DtForceType force) |
| Set/Get the force ID. | |
| virtual DtForceType | forceID () const |
| virtual bool | setNumSegments (DtU8 num) |
| Set/Get the number of segments. | |
| virtual DtU8 | numSegments () const |
| virtual void | setRequesterID (const DtSimulationAddress &type) |
| Set/Get the requester ID. | |
| virtual const DtSimulationAddress & | requesterID () const |
| virtual void | setReceivingID (const DtSimulationAddress &type) |
| Set/Get the receiving ID. | |
| virtual const DtSimulationAddress & | receivingID () const |
| virtual void | setObjectType (const DtSyntheticEnvironmentObjectType &type) |
| Set/Get the object type. | |
| virtual const DtSyntheticEnvironmentObjectType & | objectType () const |
| virtual bool | setLinearSegmentParameter (int index, const DtLinearSegmentParameter &init) |
| Set/Get a linear segment parameter record. | |
| virtual bool | getLinearSegmentParameter (int index, DtLinearSegmentParameter &record) 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 DtLinearObjectStatePdu. | |
| static void | addCallback (DtExerciseConn *conn, DtLinearObjectStatePduCb cb, void *usr) |
| Add (register)/Remove (deregister) function to be called when pdu is received. | |
| static void | removeCallback (DtExerciseConn *conn, DtLinearObjectStatePduCb cb, void *usr) |
Protected Member Functions | |
| virtual DtPduKind | internalGetPduKind () const |
| Returns the internal PDU kind. | |
| virtual DtNetLinearObjectStatePdu * | netPduStruct () const |
| Casts the netPdu element to our network struct. | |
| DtLinearObjectStatePdu * | 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. | |
Protected Attributes | |
| DtEntityIdentifier | myEntityID |
| Temporary objects for reference returns. | |
| DtSyntheticEnvironmentObjectType | myObjectType |
| DtSimulationAddress | mySimulationAddress |
Static Protected Attributes | |
| static const int | theStaticSize |
| Size of PDU with zero parameter records. | |
class DtLinearObjectStatePdu:
Instances of DtLinearObjectStatePdu are used to communicate information about the addition/modification of a synthetic object which is geometrically anchored to the terrain with one point.
| DtLinearObjectStatePdu::DtLinearObjectStatePdu | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructors.
| DtLinearObjectStatePdu::DtLinearObjectStatePdu | ( | const DtNetLinearObjectStatePdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtLinearObjectStatePdu::DtLinearObjectStatePdu | ( | const DtLinearObjectStatePdu & | orig | ) |
|
virtual |
destructor
|
static |
Add (register)/Remove (deregister) function to be called when pdu is received.
|
static |
Create a DtLinearObjectStatePdu.
Caller is responsible for deletion.
|
virtual |
|
virtual |
|
protectedvirtual |
Returns the internal PDU kind.
Implements DtPdu.
|
protectedvirtual |
Casts the netPdu element to our network struct.
|
virtual |
|
virtual |
|
virtual |
| DtLinearObjectStatePdu& DtLinearObjectStatePdu::operator= | ( | const DtLinearObjectStatePdu & | orig | ) |
Assignment operator.
|
virtual |
Print the data contained by this PDU.
Reimplemented from DtPdu.
|
virtual |
Print the data to a stream.
Reimplemented from DtPdu.
|
virtual |
|
virtual |
|
static |
|
virtual |
|
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 the force ID.
|
virtual |
Set/Get a linear segment parameter record.
Returns false if the index is out of range.
|
virtual |
Set/Get the number of segments.
|
virtual |
Set/Get object ID.
|
virtual |
Set/Get the object type.
|
virtual |
Set/Get the receiving ID.
|
virtual |
Set/Get referenced object ID.
|
virtual |
Set/Get the requester ID.
|
virtual |
Set/Get update number.
|
virtual |
|
protectedvirtual |
Returns a pointer to the first byte of variable length data.
|
protected |
Temporary objects for reference returns.
|
protected |
|
protected |
|
staticprotected |
Size of PDU with zero parameter records.