20#include <matrix/vlVector.h>
DtBaseMessage()
Default constructor.
virtual void setTargetEntityId(const std::string &name)
Sets an entity ID to use for the target position.
virtual bool isUsingObserverForTarget()
Checks if using the observer view for the target position.
virtual void useObserverForTarget()
Uses the current observer's view direction for the target position.
virtual void useObserverAsHost()
Uses the current observer's position for the sensor location.
virtual bool isUsingEntityAsHost()
Checks if using an entity as the sensor platform.
virtual int messageSize()
size of the message
virtual DtBaseMessage * clone()
clone a message. Caller of function is responsible managing this memory
virtual void setOwnshipLocation(DtVector location)
Sets an absolute position for the sensor location.
bool myUseEntityAsTarget
Flag indicating if using an entity as the target.
Definition rfxElevationMessage.h:170
bool myUseObserverForTarget
Flag indicating if using observer view for the target.
Definition rfxElevationMessage.h:167
virtual void setTargetLocation(DtVector location)
Sets an absolute position for the target location.
std::string myTargetName
Name/ID of the entity to use as the target.
Definition rfxElevationMessage.h:179
std::string myOwnshipName
Name/ID of the entity to use as the sensor host.
Definition rfxElevationMessage.h:176
DtElevationRequest()
Default constructor.
bool myUseEntityAsHost
Flag indicating if using an entity as the sensor host.
Definition rfxElevationMessage.h:161
virtual std::string targetEntityId()
Gets the entity ID used for the target position.
virtual DtVector ownshipLocation()
Gets the absolute sensor position.
virtual std::string ownshipEntityId()
Gets the entity ID used for the sensor position.
bool myUseAbsoluteOwnship
Flag indicating if using absolute coordinates for the sensor position.
Definition rfxElevationMessage.h:164
virtual bool isUsingEntityForTarget()
Checks if using an entity as the target.
virtual void serialize(DtStreamWriter &writer)
Serializes the message data to a stream writer.
virtual void deserialize(DtStreamReader &reader)
Deserializes message data from a stream reader.
DtVector myOwnshipLocation
Absolute coordinates for the sensor position.
Definition rfxElevationMessage.h:182
virtual ~DtElevationRequest()
Virtual destructor.
virtual bool isUsingObserverAsHost()
Checks if using the observer position for the sensor.
bool myUseAbsoluteTarget
Flag indicating if using absolute coordinates for the target position.
Definition rfxElevationMessage.h:173
virtual void setOwnshipEntityId(const std::string &name)
Sets an entity ID to use for the sensor position.
static DtBaseMessage * decode(unsigned char *buffer, int length)
decode a message. Used by the factory
DtVector myTargetLocation
Absolute coordinates for the target position.
Definition rfxElevationMessage.h:185
virtual DtVector targetLocation()
Gets the absolute target position.
virtual bool isUsingLocationForTarget()
Checks if using an absolute position for the target.
virtual bool isUsingAbsoluteLocation()
Checks if using an absolute position for the sensor.
bool myUseObserverAsHost
Flag indicating if using observer as the sensor host.
Definition rfxElevationMessage.h:158
virtual void setElevation(float elevation)
Sets the elevation result.
virtual int messageSize()
size of the message
virtual void serialize(DtStreamWriter &writer)
Serializes the message data to a stream writer.
virtual DtElevationError error()
Gets the error code.
virtual ~DtElevationResponse()
Virtual destructor.
static DtBaseMessage * decode(unsigned char *buffer, int length)
decode a message. Used by the factory
DtElevationResponse()
Default constructor.
float myElevation
The elevation value in meters.
Definition rfxElevationMessage.h:257
DtElevationError
Error codes for elevation responses.
Definition rfxElevationMessage.h:199
@ ELEVATION_ERROR_OCCLUDED
Error due to occlusion (no line of sight)
Definition rfxElevationMessage.h:201
@ ELEVATION_ERROR_OTHER
Other unspecified error.
Definition rfxElevationMessage.h:202
@ ELEVATION_NO_ERROR
No error, elevation is valid.
Definition rfxElevationMessage.h:200
virtual void setError(DtElevationError error)
Sets the error code.
DtElevationError myError
The error code for this response.
Definition rfxElevationMessage.h:260
virtual void deserialize(DtStreamReader &reader)
Deserializes message data from a stream reader.
virtual float elevation()
Gets the elevation result.
virtual DtBaseMessage * clone()
clone a message. Caller of function is responsible managing this memory
Stream reader for decoding values from a byte array in little endian format.
Definition byteStream.h:32
Stream writer for encoding values into a byte array in little endian format.
Definition byteStream.h:159
Defines export macros for the RadarFx Shared library.
#define RFX_DLL_SHARED
Export/import macro for non-Windows platforms (empty)
Definition export.h:25
Definition radarFxConnectorDriver.h:21
Defines the base message class for RadarFX client-server communication.