![]() |
VR-Forces 4.0.4 Class Documentation
|
A DtHatHotResponder receives HAT/HOT requests from CIGI and either initiates an immediate request or adds a periodic request. More...
Classes | |
| struct | HatHotData |
Public Member Functions | |
| DtHatHotResponder (DtCigiConnection &connection) | |
| Constructor. | |
| virtual | ~DtHatHotResponder () |
| Destructor. | |
| virtual void | addPeriodicHatHotRequest (DtUniqueID entityId, const DtVector &loc, int frequency, int hatHotId, bool hatRequest) |
| Adds a periodic request. | |
| virtual void | processHatHotRequests () |
| Iterates through periodic requests and sends a response if needed. | |
Public Attributes | |
| boost::signal< void(DtUniqueID, const DtVector &, unsigned int, bool, unsigned int)> | signal_hatHotRequested |
| Signal caught by the intersection handler. | |
Protected Member Functions | |
| void | processHatHotRequest (const CigiHatHotReqV3_2 &hatHotReq) |
| Takes the CIGI packet, extracts the data, and either sends a response or adds a periodic request. | |
| virtual void | sendHatHotRequest (DtUniqueID entityId, const DtVector &loc, int hatHotId, bool hatRequest) |
| Signals to the intersection handler that we want to initiate a HAT/HOT request. | |
Protected Attributes | |
| std::map< int, HatHotData > | myHatHotRequests |
| DtCigiConnection & | myConnection |
A DtHatHotResponder receives HAT/HOT requests from CIGI and either initiates an immediate request or adds a periodic request.
Contains the queue of responses used by the DtCigiConnection, and emits the signal caught by the DtCigiIntersectionHandler.
| makVrv::DtHatHotResponder::DtHatHotResponder | ( | DtCigiConnection & | connection | ) |
Constructor.
| virtual makVrv::DtHatHotResponder::~DtHatHotResponder | ( | ) | [virtual] |
Destructor.
| virtual void makVrv::DtHatHotResponder::addPeriodicHatHotRequest | ( | DtUniqueID | entityId, |
| const DtVector & | loc, | ||
| int | frequency, | ||
| int | hatHotId, | ||
| bool | hatRequest | ||
| ) | [virtual] |
Adds a periodic request.
| virtual void makVrv::DtHatHotResponder::processHatHotRequests | ( | ) | [virtual] |
Iterates through periodic requests and sends a response if needed.
| void makVrv::DtHatHotResponder::processHatHotRequest | ( | const CigiHatHotReqV3_2 & | hatHotReq | ) | [protected] |
Takes the CIGI packet, extracts the data, and either sends a response or adds a periodic request.
| virtual void makVrv::DtHatHotResponder::sendHatHotRequest | ( | DtUniqueID | entityId, |
| const DtVector & | loc, | ||
| int | hatHotId, | ||
| bool | hatRequest | ||
| ) | [protected, virtual] |
Signals to the intersection handler that we want to initiate a HAT/HOT request.
| boost::signal<void (DtUniqueID, const DtVector&, unsigned int, bool, unsigned int)> makVrv::DtHatHotResponder::signal_hatHotRequested |
Signal caught by the intersection handler.
std::map<int, HatHotData> makVrv::DtHatHotResponder::myHatHotRequests [protected] |
DtCigiConnection& makVrv::DtHatHotResponder::myConnection [protected] |