open-dis-cpp
|
Public Member Functions | |
virtual void | marshal (DataStream &dataStream) const |
virtual void | unmarshal (DataStream &dataStream) |
EntityID & | getIssuingEntityID () |
const EntityID & | getIssuingEntityID () const |
void | setIssuingEntityID (const EntityID &pX) |
EntityID & | getCollidingEntityID () |
const EntityID & | getCollidingEntityID () const |
void | setCollidingEntityID (const EntityID &pX) |
EventID & | getCollisionEventID () |
const EventID & | getCollisionEventID () const |
void | setCollisionEventID (const EventID &pX) |
short | getPad () const |
void | setPad (short pX) |
Vector3Float & | getContactVelocity () |
const Vector3Float & | getContactVelocity () const |
void | setContactVelocity (const Vector3Float &pX) |
float | getMass () const |
void | setMass (float pX) |
Vector3Float & | getLocation () |
const Vector3Float & | getLocation () const |
void | setLocation (const Vector3Float &pX) |
float | getCollisionResultXX () const |
void | setCollisionResultXX (float pX) |
float | getCollisionResultXY () const |
void | setCollisionResultXY (float pX) |
float | getCollisionResultXZ () const |
void | setCollisionResultXZ (float pX) |
float | getCollisionResultYY () const |
void | setCollisionResultYY (float pX) |
float | getCollisionResultYZ () const |
void | setCollisionResultYZ (float pX) |
float | getCollisionResultZZ () const |
void | setCollisionResultZZ (float pX) |
Vector3Float & | getUnitSurfaceNormal () |
const Vector3Float & | getUnitSurfaceNormal () const |
void | setUnitSurfaceNormal (const Vector3Float &pX) |
float | getCoefficientOfRestitution () const |
void | setCoefficientOfRestitution (float pX) |
virtual int | getMarshalledSize () const |
bool | operator== (const CollisionElasticPdu &rhs) const |
virtual void | marshal (DataStream &dataStream) const |
virtual void | unmarshal (DataStream &dataStream) |
EntityID & | getIssuingEntityID () |
const EntityID & | getIssuingEntityID () const |
void | setIssuingEntityID (const EntityID &pX) |
EntityID & | getCollidingEntityID () |
const EntityID & | getCollidingEntityID () const |
void | setCollidingEntityID (const EntityID &pX) |
EventIdentifier & | getCollisionEventID () |
const EventIdentifier & | getCollisionEventID () const |
void | setCollisionEventID (const EventIdentifier &pX) |
short | getPad () const |
void | setPad (short pX) |
Vector3Float & | getContactVelocity () |
const Vector3Float & | getContactVelocity () const |
void | setContactVelocity (const Vector3Float &pX) |
float | getMass () const |
void | setMass (float pX) |
Vector3Float & | getLocationOfImpact () |
const Vector3Float & | getLocationOfImpact () const |
void | setLocationOfImpact (const Vector3Float &pX) |
float | getCollisionIntermediateResultXX () const |
void | setCollisionIntermediateResultXX (float pX) |
float | getCollisionIntermediateResultXY () const |
void | setCollisionIntermediateResultXY (float pX) |
float | getCollisionIntermediateResultXZ () const |
void | setCollisionIntermediateResultXZ (float pX) |
float | getCollisionIntermediateResultYY () const |
void | setCollisionIntermediateResultYY (float pX) |
float | getCollisionIntermediateResultYZ () const |
void | setCollisionIntermediateResultYZ (float pX) |
float | getCollisionIntermediateResultZZ () const |
void | setCollisionIntermediateResultZZ (float pX) |
Vector3Float & | getUnitSurfaceNormal () |
const Vector3Float & | getUnitSurfaceNormal () const |
void | setUnitSurfaceNormal (const Vector3Float &pX) |
float | getCoefficientOfRestitution () const |
void | setCoefficientOfRestitution (float pX) |
virtual int | getMarshalledSize () const |
bool | operator== (const CollisionElasticPdu &rhs) const |
![]() | |
bool | operator== (const EntityInformationFamilyPdu &rhs) const |
bool | operator== (const EntityInformationFamilyPdu &rhs) const |
![]() | |
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 |
![]() | |
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 | _collisionEventID |
ID of event. | |
short | _pad |
some padding | |
Vector3Float | _contactVelocity |
velocity at collision More... | |
float | _mass |
mass of issuing entity More... | |
Vector3Float | _location |
Location with respect to entity the issuing entity collided with. | |
float | _collisionResultXX |
tensor values | |
float | _collisionResultXY |
tensor values | |
float | _collisionResultXZ |
tensor values | |
float | _collisionResultYY |
tensor values | |
float | _collisionResultYZ |
tensor values | |
float | _collisionResultZZ |
tensor values | |
Vector3Float | _unitSurfaceNormal |
This record shall represent the normal vector to the surface at the point of collision detection. More... | |
float | _coefficientOfRestitution |
This field shall represent the degree to which energy is conserved in a collision. More... | |
EventIdentifier | _collisionEventID |
This field shall contain an identification generated by the issuing simulation application to associate related collision events. More... | |
Vector3Float | _locationOfImpact |
This field shall specify the location of the collision with respect to the entity with which the issuing entity collided. More... | |
float | _collisionIntermediateResultXX |
These six records represent the six independent components of a positive semi-definite matrix formed by pre-multiplying and post-multiplying the tensor of inertia, by the anti-symmetric matrix generated by the moment arm, and shall be represented by 32-bit floating point numbers (see 5.3.4.4) | |
float | _collisionIntermediateResultXY |
tensor values | |
float | _collisionIntermediateResultXZ |
tensor values | |
float | _collisionIntermediateResultYY |
tensor values | |
float | _collisionIntermediateResultYZ |
tensor values | |
float | _collisionIntermediateResultZZ |
tensor values | |
![]() | |
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 | |
![]() | |
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. | |
|
protected |
This field shall represent the degree to which energy is conserved in a collision.
This field shall represent the degree to which energy is conserved in a collision and shall be represented by a 32-bit floating point number.
In addition, it represents a free parameter by which simulation application developers may “tune” their collision interactions.
|
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.
This field shall be a valid identifier of an entity or server capable of responding to the receipt of this Collision-Elastic PDU. This field shall be represented by an Entity Identifier record (see 6.2.28).
|
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).
|
protected |
velocity at collision
This field shall contain the velocity at the time the collision is detected at the point the collision is detected.
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)]
|
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)
|
protected |
This field shall specify the location of the collision with respect to the entity with which the issuing entity collided.
This field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)].
|
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.
|
protected |
This record shall represent the normal vector to the surface at the point of collision detection.
The surface normal shall be represented in world coordinates.
The surface normal shall be represented in world coordinates. This field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)].