|
VR-Engage
2.2
|
Interface message for radar contact data
This class encapsulates the current internal state of a radar system's contact detection capability. It contains information about the entity that owns the radar, the radar's name, and a list of currently detected contacts with their respective properties.
#include <ifRadarContactData.h>
Public Member Functions | |
| DtIfRadarContactData () | |
| DtIfRadarContactData (const DtIfRadarContactData &orig) | |
| const DtIfRadarContactData & | operator= (const DtIfRadarContactData &orig) |
| virtual | ~DtIfRadarContactData () override |
| virtual int | type () const override |
| virtual DtSimInterfaceContent * | clone () const override |
| virtual void | setSourceEntity (const DtUUID &entity) |
| virtual const DtUUID & | sourceEntity () const |
| virtual void | setSensorName (const DtString &sensorName) |
| virtual DtString | sensorName () const |
| virtual const DtRadarDataEntryList & | radarDataEntryList () const |
| virtual DtRadarDataEntryList & | radarDataEntryList () |
| virtual int | netRepSize () const override |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) override |
| virtual bool | setToNet () override |
| virtual void | printDataToString (DtString &str) override |
Static Public Member Functions | |
| static DtSimInterfaceContent * | creator () |
Protected Attributes | |
| DtUUID | mySourceEntity |
| DtString | mySensorName |
| DtRadarDataEntryList | myRadarContactDataList |
| DtIfRadarContactData::DtIfRadarContactData | ( | ) |
Default constructor.
Initializes an empty radar contact data message.
Referenced by DtIfRadarContactData(), and operator=().
| DtIfRadarContactData::DtIfRadarContactData | ( | const DtIfRadarContactData & | orig | ) |
Copy constructor.
| orig | The radar contact data to copy from |
Creates a new radar contact data object by copying an existing one.
References DtIfRadarContactData().
|
overridevirtual |
Virtual destructor.
| const DtIfRadarContactData & DtIfRadarContactData::operator= | ( | const DtIfRadarContactData & | orig | ) |
Assignment operator.
| orig | The radar contact data to copy from |
Copies the contents of another radar contact data object into this one.
References DtIfRadarContactData().
|
overridevirtual |
Gets the interface message type.
Returns DtRadarContactDataMessageType as defined in vreVrfMessageTypes.h.
|
overridevirtual |
Creates a copy of this message.
Creates a dynamically allocated copy of this message.
|
virtual |
Sets the source entity UUID.
| entity | The UUID of the source entity |
Sets the UUID of the entity that owns the radar system.
|
virtual |
Gets the source entity UUID.
Returns the UUID of the entity that owns the radar system.
|
virtual |
Sets the radar sensor name.
| sensorName | The name of the radar sensor |
Sets the name of the radar sensor that detected these contacts.
References sensorName().
|
virtual |
|
virtual |
Gets the list of radar contacts (const version)
Returns a constant reference to the list of contacts detected by the radar.
|
virtual |
Gets the list of radar contacts (non-const version)
Returns a modifiable reference to the list of contacts detected by the radar.
|
overridevirtual |
Gets the network representation size.
Returns the size of the network buffer needed to store this message.
|
overridevirtual |
Deserializes the message from a network buffer.
| contentBuffer | Pointer to the network buffer |
| contentSize | Size of the buffer in bytes |
Fills the message from the provided network buffer.
|
overridevirtual |
Serializes the message for network transmission.
Prepares the message for network transmission.
|
overridevirtual |
Formats the message data as a string.
| str | String to store the formatted message data |
Appends a human-readable representation of the message to the provided string.
|
static |
Static creator function for factory registration.
This static function is used for registration with DtInterfaceContentFactory.
|
protected |
UUID of the entity that owns the radar system.
|
protected |
Name of the radar sensor.
|
protected |
List of radar contacts detected by the radar.