|
VR-Engage
2.2
|
This class encapsulates the response to an occlusion test request, providing information about whether there is an unobstructed line of sight between the observer position and the target position. If the line of sight is obstructed, additional information about the obstruction may be included.
#include <rfxOcclusionMessage.h>
Public Member Functions | |
| DtOcclusionResponse () | |
| virtual | ~DtOcclusionResponse () |
| virtual void | setOcclusion (bool occluded) |
| virtual bool | occluded () |
| 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 | myOcclusion |
| makRadarFx::DtOcclusionResponse::DtOcclusionResponse | ( | ) |
Default constructor.
Initializes a new occlusion response message with default settings
|
virtual |
Virtual destructor.
|
virtual |
Returns whether or not the requesting platform has line of sight of the target location.
References occluded().
|
virtual |
Referenced by setOcclusion().
|
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 |