open-dis-cpp
Public Member Functions | Protected Attributes | List of all members
DIS::CollisionElasticPdu Class Reference
Inheritance diagram for DIS::CollisionElasticPdu:
Inheritance graph
[legend]
Collaboration diagram for DIS::CollisionElasticPdu:
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)
 
EventIDgetCollisionEventID ()
 
const EventIDgetCollisionEventID () const
 
void setCollisionEventID (const EventID &pX)
 
short getPad () const
 
void setPad (short pX)
 
Vector3FloatgetContactVelocity ()
 
const Vector3FloatgetContactVelocity () const
 
void setContactVelocity (const Vector3Float &pX)
 
float getMass () const
 
void setMass (float pX)
 
Vector3FloatgetLocation ()
 
const Vector3FloatgetLocation () 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)
 
Vector3FloatgetUnitSurfaceNormal ()
 
const Vector3FloatgetUnitSurfaceNormal () 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)
 
EntityIDgetIssuingEntityID ()
 
const EntityIDgetIssuingEntityID () const
 
void setIssuingEntityID (const EntityID &pX)
 
EntityIDgetCollidingEntityID ()
 
const EntityIDgetCollidingEntityID () const
 
void setCollidingEntityID (const EntityID &pX)
 
EventIdentifiergetCollisionEventID ()
 
const EventIdentifiergetCollisionEventID () const
 
void setCollisionEventID (const EventIdentifier &pX)
 
short getPad () const
 
void setPad (short pX)
 
Vector3FloatgetContactVelocity ()
 
const Vector3FloatgetContactVelocity () const
 
void setContactVelocity (const Vector3Float &pX)
 
float getMass () const
 
void setMass (float pX)
 
Vector3FloatgetLocationOfImpact ()
 
const Vector3FloatgetLocationOfImpact () 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)
 
Vector3FloatgetUnitSurfaceNormal ()
 
const Vector3FloatgetUnitSurfaceNormal () const
 
void setUnitSurfaceNormal (const Vector3Float &pX)
 
float getCoefficientOfRestitution () const
 
void setCoefficientOfRestitution (float pX)
 
virtual int getMarshalledSize () const
 
bool operator== (const CollisionElasticPdu &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 _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
 
- 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

◆ _coefficientOfRestitution

float DIS::CollisionElasticPdu::_coefficientOfRestitution
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.

◆ _collidingEntityID

EntityID DIS::CollisionElasticPdu::_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.

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).

◆ _collisionEventID

EventIdentifier DIS::CollisionElasticPdu::_collisionEventID
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).

◆ _contactVelocity

Vector3Float DIS::CollisionElasticPdu::_contactVelocity
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)]

◆ _issuingEntityID

EntityID DIS::CollisionElasticPdu::_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)

◆ _locationOfImpact

Vector3Float DIS::CollisionElasticPdu::_locationOfImpact
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)].

◆ _mass

float DIS::CollisionElasticPdu::_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.

◆ _unitSurfaceNormal

Vector3Float DIS::CollisionElasticPdu::_unitSurfaceNormal
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)].


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