|
VR-Engage
2.2
|
This message contains the response to an entity location request, providing the current position, orientation, and velocity of the requested entity. If the entity cannot be found, an error code will be set.
#include <rfxEntityLocationMessage.h>
Public Types | |
| enum | DtEntityLocationError { ENTITY_LOC_NO_ERROR , ENTITY_LOC_NO_ENTITY , ENTITY_LOC_ERROR_OTHER } |
Public Member Functions | |
| DtEntityLocationResponse () | |
| virtual | ~DtEntityLocationResponse () |
| virtual void | setEntityLocation (DtVector location) |
| virtual DtVector | entityLocation () |
| virtual void | setEntityTopoOrientation (DtTaitBryan topoOrientation) |
| virtual DtTaitBryan | entityOrientation () |
| virtual void | setEntityVelocity (DtVector32 velocity) |
| virtual DtVector32 | entityVelocity () |
| virtual void | setError (DtEntityLocationError error) |
| virtual DtEntityLocationError | 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 | |
| DtVector | myEntityLocation |
| DtTaitBryan | myEntityTopoOrientation |
| DtVector32 | myEntityVelocity |
| DtEntityLocationError | myError |
| makRadarFx::DtEntityLocationResponse::DtEntityLocationResponse | ( | ) |
Default constructor.
Initializes a new entity location response message with default values
|
virtual |
Virtual destructor.
|
virtual |
Sets the entity's position.
| location | Vector containing the entity's position (latitude, longitude, altitude) |
Sets the location of the entity at the time the request was fulfilled. Position is in geodetic coordinates (latitude, longitude, altitude).
|
virtual |
Gets the entity's position.
Returns the location of the entity at the time the request was fulfilled.
|
virtual |
Sets the entity's orientation.
| topoOrientation | Tait-Bryan angles representing the entity's orientation |
Sets the topographic orientation of the entity at the time the request was fulfilled. Orientation is expressed as Tait-Bryan angles (heading, pitch, roll).
|
virtual |
Gets the entity's orientation.
Returns the topographic orientation of the entity at the time the request was fulfilled.
|
virtual |
Sets the entity's velocity.
| velocity | Vector containing the entity's velocity components in m/s |
Sets the velocity vector of the entity at the time the request was fulfilled. Velocity is in meters per second along each axis.
|
virtual |
Gets the entity's velocity.
Returns the velocity vector of the entity at the time the request was fulfilled.
|
virtual |
Sets the error code.
| error | The error code to set |
Sets the error status for this entity location response. Use ENTITY_LOC_NO_ERROR if the location information is valid.
References error().
|
virtual |
Gets the error code.
Returns the error status for this entity location 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 |
Entity's position in geodetic coordinates.
|
protected |
Entity's orientation as Tait-Bryan angles.
|
protected |
Entity's velocity vector in m/s.
|
protected |
Error code for this response.