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

Public Member Functions

virtual void marshal (DataStream &dataStream) const
 
virtual void unmarshal (DataStream &dataStream)
 
EntityIDgetMunitionID ()
 
const EntityIDgetMunitionID () const
 
void setMunitionID (const EntityID &pX)
 
EventIDgetEventID ()
 
const EventIDgetEventID () const
 
void setEventID (const EventID &pX)
 
int getFireMissionIndex () const
 
void setFireMissionIndex (int pX)
 
Vector3DoublegetLocationInWorldCoordinates ()
 
const Vector3DoublegetLocationInWorldCoordinates () const
 
void setLocationInWorldCoordinates (const Vector3Double &pX)
 
BurstDescriptorgetBurstDescriptor ()
 
const BurstDescriptorgetBurstDescriptor () const
 
void setBurstDescriptor (const BurstDescriptor &pX)
 
Vector3FloatgetVelocity ()
 
const Vector3FloatgetVelocity () const
 
void setVelocity (const Vector3Float &pX)
 
float getRange () const
 
void setRange (float pX)
 
virtual int getMarshalledSize () const
 
bool operator== (const FirePdu &rhs) const
 
virtual void marshal (DataStream &dataStream) const
 
virtual void unmarshal (DataStream &dataStream)
 
EntityIDgetMunitionExpendibleID ()
 
const EntityIDgetMunitionExpendibleID () const
 
void setMunitionExpendibleID (const EntityID &pX)
 
EventIdentifiergetEventID ()
 
const EventIdentifiergetEventID () const
 
void setEventID (const EventIdentifier &pX)
 
unsigned int getFireMissionIndex () const
 
void setFireMissionIndex (unsigned int pX)
 
Vector3DoublegetLocationInWorldCoordinates ()
 
const Vector3DoublegetLocationInWorldCoordinates () const
 
void setLocationInWorldCoordinates (const Vector3Double &pX)
 
MunitionDescriptorgetDescriptor ()
 
const MunitionDescriptorgetDescriptor () const
 
void setDescriptor (const MunitionDescriptor &pX)
 
Vector3FloatgetVelocity ()
 
const Vector3FloatgetVelocity () const
 
void setVelocity (const Vector3Float &pX)
 
float getRange () const
 
void setRange (float pX)
 
virtual int getMarshalledSize () const
 
bool operator== (const FirePdu &rhs) const
 
- Public Member Functions inherited from DIS::WarfareFamilyPdu
EntityIDgetFiringEntityID ()
 
const EntityIDgetFiringEntityID () const
 
void setFiringEntityID (const EntityID &pX)
 
EntityIDgetTargetEntityID ()
 
const EntityIDgetTargetEntityID () const
 
void setTargetEntityID (const EntityID &pX)
 
bool operator== (const WarfareFamilyPdu &rhs) const
 
EntityIDgetFiringEntityID ()
 
const EntityIDgetFiringEntityID () const
 
void setFiringEntityID (const EntityID &pX)
 
EntityIDgetTargetEntityID ()
 
const EntityIDgetTargetEntityID () const
 
void setTargetEntityID (const EntityID &pX)
 
bool operator== (const WarfareFamilyPdu &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 _munitionID
 ID of the munition that is being shot.
 
EventID _eventID
 ID of event.
 
int _fireMissionIndex
 
Vector3Double _locationInWorldCoordinates
 location of the firing event More...
 
BurstDescriptor _burstDescriptor
 Describes munitions used in the firing event.
 
Vector3Float _velocity
 Velocity of the ammunition. More...
 
float _range
 range to the target More...
 
EntityID _munitionExpendibleID
 This field shall specify the entity identification of the fired munition or expendable. More...
 
EventIdentifier _eventID
 This field shall contain an identification generated by the firing entity to associate related firing and detonation events. More...
 
unsigned int _fireMissionIndex
 This field shall identify the fire mission (see 5.4.3.3). More...
 
MunitionDescriptor _descriptor
 This field shall describe the firing or launch of a munition or expendable represented by one of the following types of Descriptor records: Munition Descriptor (6.2.20.2) or Expendable Descriptor (6.2.20.4). More...
 
- Protected Attributes inherited from DIS::WarfareFamilyPdu
EntityID _firingEntityID
 ID of the entity that shot.
 
EntityID _targetEntityID
 ID of the entity that is being shot at.
 
- 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

◆ _descriptor

MunitionDescriptor DIS::FirePdu::_descriptor
protected

This field shall describe the firing or launch of a munition or expendable represented by one of the following types of Descriptor records: Munition Descriptor (6.2.20.2) or Expendable Descriptor (6.2.20.4).

◆ _eventID

EventIdentifier DIS::FirePdu::_eventID
protected

This field shall contain an identification generated by the firing entity to associate related firing and detonation events.

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

◆ _fireMissionIndex

unsigned int DIS::FirePdu::_fireMissionIndex
protected

This field shall identify the fire mission (see 5.4.3.3).

This field shall be representedby a 32-bit unsigned integer.

◆ _locationInWorldCoordinates

Vector3Double DIS::FirePdu::_locationInWorldCoordinates
protected

location of the firing event

This field shall specify the location, in world coordinates, from which the munition was launched, and shall be represented by a World Coordinates record (see 6.2.97).

◆ _munitionExpendibleID

EntityID DIS::FirePdu::_munitionExpendibleID
protected

This field shall specify the entity identification of the fired munition or expendable.

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

◆ _range

float DIS::FirePdu::_range
protected

range to the target

This field shall specify the range that an entity’s fire control system has assumed in computing the fire control solution.

This field shall be represented by a 32-bit floating point number in meters. For systems where range is unknown or unavailable, this field shall contain a value of zero.

◆ _velocity

Vector3Float DIS::FirePdu::_velocity
protected

Velocity of the ammunition.

This field shall specify the velocity of the fired munition at the point when the issuing simulation application intends the externally visible effects of the launch (e.g.

exhaust plume or muzzle blast) to first become apparent. The velocity shall be represented in world coordinates. This field shall be represented by a Linear Velocity Vector record [see 6.2.95 item c)].


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