|
VR-Engage
2.2
|
Interface message for requesting radar state data
This class is used to request radar state data messages to be sent from a DtVreRadarObjectSensor. Two types of requests are supported:
#include <ifRadarStateRequest.h>
Public Member Functions | |
| DtIfRadarStateRequest () | |
| DtIfRadarStateRequest (const DtIfRadarStateRequest &orig) | |
| const DtIfRadarStateRequest & | operator= (const DtIfRadarStateRequest &orig) |
| virtual | ~DtIfRadarStateRequest () override |
| virtual int | type () const override |
| virtual DtSimInterfaceContent * | clone () const override |
| virtual void | setSubscribe (bool value) |
| virtual bool | subscribe () const |
| virtual void | setUUID (const DtUUID &uuid) |
| virtual const DtUUID & | uuid () const |
| 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 | myUUID |
| bool | mySubscribe |
| DtIfRadarStateRequest::DtIfRadarStateRequest | ( | ) |
Default constructor.
Initializes an empty radar state request message.
Referenced by DtIfRadarStateRequest(), and operator=().
| DtIfRadarStateRequest::DtIfRadarStateRequest | ( | const DtIfRadarStateRequest & | orig | ) |
Copy constructor.
| orig | The radar state request to copy from |
Creates a new radar state request message by copying an existing one.
References DtIfRadarStateRequest().
|
overridevirtual |
Virtual destructor.
| const DtIfRadarStateRequest & DtIfRadarStateRequest::operator= | ( | const DtIfRadarStateRequest & | orig | ) |
Assignment operator.
| orig | The radar state request to copy from |
Copies the contents of another radar state request message into this one.
References DtIfRadarStateRequest().
|
overridevirtual |
Gets the interface message type.
Returns DtRadarStateRequestMessageType as defined in vreVrfMessageTypes.h.
|
overridevirtual |
Creates a copy of this message.
Creates a dynamically allocated copy of this message.
|
virtual |
Sets the subscription flag.
| value | True for continuous updates, false for a one-time request |
When set to true, radar state data will be sent every time the data changes. When set to false, only a single radar state update will be sent.
|
virtual |
Gets the subscription flag.
|
virtual |
Sets the UUID of the entity whose radar state is being requested.
| uuid | The entity UUID to set |
Sets the UUID of the entity whose radar state data is being requested. This identifies the specific radar system in the simulation.
References uuid().
|
virtual |
Gets the UUID of the entity whose radar state is being requested.
Referenced by setUUID().
|
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 whose radar state is being requested.
|
protected |
Flag indicating whether continuous updates are requested When true, data will be sent each time it changes. When false, only a single update is sent.