|
VR-Engage
2.2
|
This message requests the elevation at a specific target location using sensors on a specified platform or from the ownship location. The request supports multiple methods of specifying both the sensor position (ownship) and the target position, including using the observer's current view, specifying an entity by ID, or using absolute coordinates. If line of sight is not available from the sensing platform to the target location, the corresponding response will contain an error.
#include <rfxElevationMessage.h>
Public Member Functions | |
| DtElevationRequest () | |
| virtual | ~DtElevationRequest () |
| virtual void | useObserverAsHost () |
| virtual void | setOwnshipLocation (DtVector location) |
| virtual DtVector | ownshipLocation () |
| virtual void | setOwnshipEntityId (const std::string &name) |
| virtual std::string | ownshipEntityId () |
| virtual void | useObserverForTarget () |
| virtual void | setTargetEntityId (const std::string &name) |
| virtual std::string | targetEntityId () |
| virtual void | setTargetLocation (DtVector location) |
| virtual DtVector | targetLocation () |
| virtual int | messageSize () |
| virtual DtBaseMessage * | clone () |
Sensor Placement Mode Queries | |
Methods to determine how the sensor is being positioned | |
| virtual bool | isUsingObserverAsHost () |
| virtual bool | isUsingEntityAsHost () |
| virtual bool | isUsingAbsoluteLocation () |
Target Placement Mode Queries | |
Methods to determine how the target is being positioned | |
| virtual bool | isUsingObserverForTarget () |
| virtual bool | isUsingEntityForTarget () |
| virtual bool | isUsingLocationForTarget () |
Static Public Member Functions | |
| static DtBaseMessage * | decode (unsigned char *buffer, int length) |
Protected Member Functions | |
| virtual void | serialize (DtStreamWriter &writer) |
| virtual void | deserialize (DtStreamReader &reader) |
Protected Attributes | |
| bool | myUseObserverAsHost |
| bool | myUseEntityAsHost |
| bool | myUseAbsoluteOwnship |
| bool | myUseObserverForTarget |
| bool | myUseEntityAsTarget |
| bool | myUseAbsoluteTarget |
| std::string | myOwnshipName |
| std::string | myTargetName |
| DtVector | myOwnshipLocation |
| DtVector | myTargetLocation |
| makRadarFx::DtElevationRequest::DtElevationRequest | ( | ) |
Default constructor.
Initializes a new elevation request message with default settings
|
virtual |
Virtual destructor.
|
virtual |
Uses the current observer's position for the sensor location.
When called, this function configures the request to use the current observer's position and orientation for the sensor placement. The client does not need to set an ownship location if using this method to position the sensor.
|
virtual |
Sets an absolute position for the sensor location.
| location | Vector containing the sensor position (latitude, longitude, altitude) |
If the ownship is not hosted in the simulation system, this method allows explicit specification of the sensor position for the elevation test.
|
virtual |
Gets the absolute sensor position.
Returns the currently set absolute sensor position
|
virtual |
Sets an entity ID to use for the sensor position.
| name | String identifier of the entity to use as the sensor platform |
If the sensor platform is hosted by the simulation system, this method allows specification of the entity by its global simulation name or ID.
|
virtual |
Gets the entity ID used for the sensor position.
|
virtual |
Checks if using the observer position for the sensor.
|
virtual |
Checks if using an entity as the sensor platform.
|
virtual |
Checks if using an absolute position for the sensor.
|
virtual |
Uses the current observer's view direction for the target position.
When called, this function configures the request to use the current observer's view direction to determine the target position for the elevation query.
|
virtual |
Sets an entity ID to use for the target position.
| name | String identifier of the entity to use as the target |
Specifies an entity by its global simulation name or ID to use as the target location for the elevation query.
|
virtual |
Gets the entity ID used for the target position.
|
virtual |
Sets an absolute position for the target location.
| location | Vector containing the target position (latitude, longitude, altitude) |
Specifies the absolute coordinates of the target location for the elevation query. Location format is latitude/longitude/altitude (in degrees/meters). The altitude component is not required and will be determined by the query.
|
virtual |
Gets the absolute target position.
|
virtual |
Checks if using the observer view for the target position.
|
virtual |
Checks if using an entity as the target.
|
virtual |
Checks if using an absolute position for the target.
|
virtual |
size of the message
Reimplemented from makRadarFx::DtBaseMessage.
|
static |
decode a message. Used by the factory
References makRadarFx::DtBaseMessage::DtBaseMessage().
|
virtual |
clone a message. Caller of function is responsible managing this memory
Implements makRadarFx::DtBaseMessage.
References makRadarFx::DtBaseMessage::DtBaseMessage().
|
protectedvirtual |
Serializes the message data to a stream writer.
| writer | Reference to the stream writer to write the data to |
Reimplemented from makRadarFx::DtBaseMessage.
|
protectedvirtual |
Deserializes message data from a stream reader.
| reader | Reference to the stream reader to read the data from |
Reimplemented from makRadarFx::DtBaseMessage.
|
protected |
Flag indicating if using observer as the sensor host.
|
protected |
Flag indicating if using an entity as the sensor host.
|
protected |
Flag indicating if using absolute coordinates for the sensor position.
|
protected |
Flag indicating if using observer view for the target.
|
protected |
Flag indicating if using an entity as the target.
|
protected |
Flag indicating if using absolute coordinates for the target position.
|
protected |
Name/ID of the entity to use as the sensor host.
|
protected |
Name/ID of the entity to use as the target.
|
protected |
Absolute coordinates for the sensor position.
|
protected |
Absolute coordinates for the target position.