open-dis-cpp
Public Member Functions | Protected Attributes | List of all members
DIS::CollisionPdu Class Reference
Inheritance diagram for DIS::CollisionPdu:
Inheritance graph
[legend]
Collaboration diagram for DIS::CollisionPdu:
Collaboration graph
[legend]

Public Member Functions

virtual void marshal (DataStream &dataStream) const
 
virtual void unmarshal (DataStream &dataStream)
 
EntityIDgetIssuingEntityID ()
 
const EntityIDgetIssuingEntityID () const
 
void setIssuingEntityID (const EntityID &pX)
 
EntityIDgetCollidingEntityID ()
 
const EntityIDgetCollidingEntityID () const
 
void setCollidingEntityID (const EntityID &pX)
 
EventIDgetEventID ()
 
const EventIDgetEventID () const
 
void setEventID (const EventID &pX)
 
unsigned char getCollisionType () const
 
void setCollisionType (unsigned char pX)
 
char getPad () const
 
void setPad (char pX)
 
Vector3FloatgetVelocity ()
 
const Vector3FloatgetVelocity () const
 
void setVelocity (const Vector3Float &pX)
 
float getMass () const
 
void setMass (float pX)
 
Vector3FloatgetLocation ()
 
const Vector3FloatgetLocation () const
 
void setLocation (const Vector3Float &pX)
 
virtual int getMarshalledSize () const
 
bool operator== (const CollisionPdu &rhs) const
 
virtual void marshal (DataStream &dataStream) const
 
virtual void unmarshal (DataStream &dataStream)
 
EntityIDgetIssuingEntityID ()
 
const EntityIDgetIssuingEntityID () const
 
void setIssuingEntityID (const EntityID &pX)
 
EntityIDgetCollidingEntityID ()
 
const EntityIDgetCollidingEntityID () const
 
void setCollidingEntityID (const EntityID &pX)
 
EventIdentifiergetEventID ()
 
const EventIdentifiergetEventID () const
 
void setEventID (const EventIdentifier &pX)
 
unsigned char getCollisionType () const
 
void setCollisionType (unsigned char pX)
 
char getPad () const
 
void setPad (char pX)
 
Vector3FloatgetVelocity ()
 
const Vector3FloatgetVelocity () const
 
void setVelocity (const Vector3Float &pX)
 
float getMass () const
 
void setMass (float pX)
 
Vector3FloatgetLocation ()
 
const Vector3FloatgetLocation () const
 
void setLocation (const Vector3Float &pX)
 
virtual int getMarshalledSize () const
 
bool operator== (const CollisionPdu &rhs) const
 
- Public Member Functions inherited from DIS::EntityInformationFamilyPdu
bool operator== (const EntityInformationFamilyPdu &rhs) const
 
bool operator== (const EntityInformationFamilyPdu &rhs) const
 
- Public Member Functions inherited from DIS::Pdu
unsigned char getProtocolVersion () const
 
void setProtocolVersion (unsigned char pX)
 
unsigned char getExerciseID () const
 
void setExerciseID (unsigned char pX)
 
unsigned char getPduType () const
 
void setPduType (unsigned char pX)
 
unsigned char getProtocolFamily () const
 
void setProtocolFamily (unsigned char pX)
 
unsigned int getTimestamp () const
 
void setTimestamp (unsigned int pX)
 
unsigned short getLength () const
 
void setLength (unsigned short pX)
 
short getPadding () const
 
void setPadding (short pX)
 
bool operator== (const Pdu &rhs) const
 
unsigned char getPduStatus () const
 
void setPduStatus (unsigned char pX)
 
unsigned char getPadding () const
 
void setPadding (unsigned char pX)
 
bool operator== (const Pdu &rhs) const
 
- Public Member Functions inherited from DIS::PduSuperclass
unsigned char getProtocolVersion () const
 
void setProtocolVersion (unsigned char pX)
 
unsigned char getExerciseID () const
 
void setExerciseID (unsigned char pX)
 
unsigned char getPduType () const
 
void setPduType (unsigned char pX)
 
unsigned char getProtocolFamily () const
 
void setProtocolFamily (unsigned char pX)
 
unsigned int getTimestamp () const
 
void setTimestamp (unsigned int pX)
 
unsigned short getLength () const
 
void setLength (unsigned short pX)
 
bool operator== (const PduSuperclass &rhs) const
 

Protected Attributes

EntityID _issuingEntityID
 ID of the entity that issued the collision PDU. More...
 
EntityID _collidingEntityID
 ID of entity that has collided with the issuing entity ID. More...
 
EventID _eventID
 ID of event.
 
unsigned char _collisionType
 ID of event. More...
 
char _pad
 some padding
 
Vector3Float _velocity
 velocity at collision More...
 
float _mass
 mass of issuing entity More...
 
Vector3Float _location
 Location with respect to entity the issuing entity collided with. More...
 
EventIdentifier _eventID
 This field shall contain an identification generated by the issuing simulation application to associate related collision events. More...
 
- Protected Attributes inherited from DIS::Pdu
unsigned char _protocolVersion
 The version of the protocol. More...
 
unsigned char _exerciseID
 Exercise ID.
 
unsigned char _pduType
 Type of pdu, unique for each PDU class.
 
unsigned char _protocolFamily
 value that refers to the protocol family, eg SimulationManagement, et
 
unsigned int _timestamp
 Timestamp value.
 
unsigned short _length
 Length, in bytes, of the PDU.
 
short _padding
 zero-filled array of padding
 
unsigned char _pduStatus
 PDU Status Record. More...
 
unsigned char _padding
 zero-filled array of padding
 
- Protected Attributes inherited from DIS::PduSuperclass
unsigned char _protocolVersion
 The version of the protocol. More...
 
unsigned char _exerciseID
 Exercise ID.
 
unsigned char _pduType
 Type of pdu, unique for each PDU class.
 
unsigned char _protocolFamily
 value that refers to the protocol family, eg SimulationManagement, et
 
unsigned int _timestamp
 Timestamp value.
 
unsigned short _length
 Length, in bytes, of the PDU.
 

Member Data Documentation

◆ _collidingEntityID

EntityID DIS::CollisionPdu::_collidingEntityID
protected

ID of entity that has collided with the issuing entity ID.

This field shall identify the entity that has collided with the issuing entity (see 5.3.3.4).

This field shall be represented by an Entity Identifier record (see 6.2.28).

◆ _collisionType

unsigned char DIS::CollisionPdu::_collisionType
protected

ID of event.

This field shall identify the type of collision.

The Collision Type field shall be represented by an 8-bit record of enumerations

◆ _eventID

EventIdentifier DIS::CollisionPdu::_eventID
protected

This field shall contain an identification generated by the issuing simulation application to associate related collision events.

This field shall be represented by an Event Identifier record (see 6.2.34).

◆ _issuingEntityID

EntityID DIS::CollisionPdu::_issuingEntityID
protected

ID of the entity that issued the collision PDU.

This field shall identify the entity that is issuing the PDU, and shall be represented by an Entity Identifier record (see 6.2.28).

◆ _location

Vector3Float DIS::CollisionPdu::_location
protected

Location with respect to entity the issuing entity collided with.

This field shall specify the location of the collision with respect to the entity with which the issuing entity collided.

The Location field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)].

◆ _mass

float DIS::CollisionPdu::_mass
protected

mass of issuing entity

This field shall contain the mass of the issuing entity, and shall be represented by a 32-bit floating point number representing kilograms.

◆ _velocity

Vector3Float DIS::CollisionPdu::_velocity
protected

velocity at collision

This field shall contain the velocity (at the time the collision is detected) of the issuing entity.

The velocity shall be represented in world coordinates. This field shall be represented by the Linear Velocity Vector record [see 6.2.95 item c)].


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