|
VR-Engage
2.2
|
This class encapsulates a request for an occlusion test between an observer position and a target position. The test determines if there is an unobstructed line of sight between the two points, taking into account terrain and objects in the simulation. Both the observer and target can be specified as absolute positions, entities in the simulation, or using the current observer's position and view.
#include <rfxOcclusionMessage.h>
Public Member Functions | |
| DtOcclusionRequest () | |
| virtual | ~DtOcclusionRequest () |
| virtual void | useObserverAsHost () |
| virtual void | setOwnshipLocation (DtVector location) |
| virtual DtVector | ownshipLocation () |
| virtual void | setOwnshipEntityId (const std::string &name) |
| virtual std::string | ownshipEntityId () |
| virtual bool | isUsingObserverAsHost () |
| virtual bool | isUsingEntityAsHost () |
| virtual bool | isUsingAbsoluteLocation () |
| virtual void | useObserverForTarget () |
| virtual void | setTargetEntityId (const std::string &name) |
| virtual std::string | targetEntityId () |
| virtual void | setTargetLocation (DtVector location) |
| virtual DtVector | targetLocation () |
| virtual bool | isUsingObserverForTarget () |
| virtual bool | isUsingEntityForTarget () |
| virtual bool | isUsingLocationForTarget () |
| 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 | |
| bool | myUseObserverAsHost |
| bool | myUseEntityAsHost |
| bool | myUseAbsoluteOwnship |
| bool | myUseObserverForTarget |
| bool | myUseEntityAsTarget |
| bool | myUseAbsoluteTarget |
| std::string | myOwnshipName |
| std::string | myTargetName |
| DtVector | myOwnshipLocation |
| DtVector | myTargetLocation |
| makRadarFx::DtOcclusionRequest::DtOcclusionRequest | ( | ) |
Default constructor.
Initializes a new occlusion request message with default settings
|
virtual |
Virtual destructor.
|
virtual |
calling this function causes the message to use the current observer's position and orientation for the SAR image setup. The client doees not need to set an ownship location or target location if using this method to orient the sensor.
|
virtual |
if the ownship is not hosted in the simulation system, we can explicitly state where we want to perform the elevation test from
|
virtual |
|
virtual |
If the ownship is hosted by the simulation system, we can use its global simulation name to look it up.
|
virtual |
|
virtual |
functions to determine how to place the sensor
|
virtual |
|
virtual |
|
virtual |
calling this function causes the message to use the current observer's view to determine the target for the SAR image setup.
|
virtual |
If the ownship is the target of the sensor, we can use its global simulation name to look it up.
|
virtual |
|
virtual |
this is the target that we would like to look at. Location format is latitude/longitude/altitude (in degrees/meters). the altitude of the target location is not required.
|
virtual |
|
virtual |
functions to determine how to place the target
|
virtual |
|
virtual |
|
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 |
Writes the message data to the provided stream writer. Derived classes should call the base class implementation before adding their own fields.
Reimplemented from makRadarFx::DtBaseMessage.
|
protectedvirtual |
Deserializes message data from a stream reader.
| reader | Reference to the stream reader to read the data from |
Reads the message data from the provided stream reader. Derived classes should call the base class implementation before reading their own fields.
Reimplemented from makRadarFx::DtBaseMessage.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |