|
VR-Engage
2.2
|
This message contains the response to an elevation request, providing the terrain elevation at the requested location and any error information if the elevation could not be determined. The response may include an error if there is no line of sight from the sensor position to the target location.
#include <rfxElevationMessage.h>
Public Types | |
| enum | DtElevationError { ELEVATION_NO_ERROR , ELEVATION_ERROR_OCCLUDED , ELEVATION_ERROR_OTHER } |
Public Member Functions | |
| DtElevationResponse () | |
| virtual | ~DtElevationResponse () |
| virtual void | setElevation (float elevation) |
| virtual float | elevation () |
| virtual void | setError (DtElevationError error) |
| virtual DtElevationError | error () |
| virtual int | messageSize () |
| virtual DtBaseMessage * | clone () |
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 | |
| float | myElevation |
| DtElevationError | myError |
| makRadarFx::DtElevationResponse::DtElevationResponse | ( | ) |
Default constructor.
Initializes a new elevation response message with default settings
|
virtual |
Virtual destructor.
|
virtual |
Sets the elevation result.
| elevation | The elevation value in meters |
Sets the elevation at the requested location. A value of NaN indicates that the request could not be completed due to line of sight being blocked from the sensing platform to the requested target or another error.
References elevation().
|
virtual |
Gets the elevation result.
Returns the terrain elevation at the requested location.
Referenced by setElevation().
|
virtual |
Sets the error code.
| error | The error code to set |
Sets the error status for this elevation response. Use ELEVATION_NO_ERROR if the elevation value is valid.
References error().
|
virtual |
Gets the error code.
Returns the error status for this elevation response.
Referenced by setError().
|
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 |
The elevation value in meters.
|
protected |
The error code for this response.