![]() |
VR-Forces 4.0.4 Class Documentation
|
A DtLosResponder processes CIGI LOS Segment Request and LOS Vector Request messages, and either immediately signals the DtCigiIntersectionHandler of a request or adds a periodic request to its queue. More...
Classes | |
| struct | LosData |
Public Member Functions | |
| DtLosResponder (DtCigiConnection &connection) | |
| Constructor. | |
| virtual | ~DtLosResponder () |
| Destructor. | |
| virtual void | generateLosResponse (int losId, DtUniqueID entityId, bool visible, double range, int responseCount, int hostFrame) |
| Makes a call to the DtCigiConnection to send out a LOS response. | |
| virtual void | processLosRequests () |
| Iterates through the periodic LOS requests and sends a request to the intersection handler if necessary. | |
Public Attributes | |
| boost::signal< void(DtUniqueID, const DtVector &, DtUniqueID, const DtVector &, int, int)> | signal_losSegRequested |
| Signal to the intersection handler of a request. | |
Protected Member Functions | |
| virtual void | processLosSegmentRequest (const CigiLosSegReqV3_2 &losSegReq) |
| Process a CIGI Line of Sight Segment Request packet. | |
| virtual void | processLosVectorRequest (CigiLosVectReqV3_2 &losVecReq) |
| Process a CIGI Line of Sight Vector Request packet. | |
| virtual void | setDatabaseCoordinateFromGeodetic (const DtGeodeticCoord &from, DtVector &to) |
| Utility function sets a database coordinate from a geodetic coordinate. | |
| virtual void | addPeriodicLosRequest (DtUniqueID sourceEntityId, const DtVector &sourcePoint, DtUniqueID destEntityId, const DtVector &destPoint, unsigned int updatePeriod, int losId) |
| Adds a periodic LOS request. | |
| virtual void | sendLosRequest (DtUniqueID sourceId, const DtVector &sourcePoint, DtUniqueID destId, const DtVector &destPoint, int losId) |
| Notifies the intersection handler that LOS is requested. | |
Protected Attributes | |
| DtCigiConnection & | myConnection |
| std::map< int, LosData > | myLosIdToDataMap |
A DtLosResponder processes CIGI LOS Segment Request and LOS Vector Request messages, and either immediately signals the DtCigiIntersectionHandler of a request or adds a periodic request to its queue.
| makVrv::DtLosResponder::DtLosResponder | ( | DtCigiConnection & | connection | ) |
Constructor.
| virtual makVrv::DtLosResponder::~DtLosResponder | ( | ) | [virtual] |
Destructor.
| virtual void makVrv::DtLosResponder::generateLosResponse | ( | int | losId, |
| DtUniqueID | entityId, | ||
| bool | visible, | ||
| double | range, | ||
| int | responseCount, | ||
| int | hostFrame | ||
| ) | [virtual] |
Makes a call to the DtCigiConnection to send out a LOS response.
| virtual void makVrv::DtLosResponder::processLosRequests | ( | ) | [virtual] |
Iterates through the periodic LOS requests and sends a request to the intersection handler if necessary.
| virtual void makVrv::DtLosResponder::processLosSegmentRequest | ( | const CigiLosSegReqV3_2 & | losSegReq | ) | [protected, virtual] |
Process a CIGI Line of Sight Segment Request packet.
| virtual void makVrv::DtLosResponder::processLosVectorRequest | ( | CigiLosVectReqV3_2 & | losVecReq | ) | [protected, virtual] |
Process a CIGI Line of Sight Vector Request packet.
| virtual void makVrv::DtLosResponder::setDatabaseCoordinateFromGeodetic | ( | const DtGeodeticCoord & | from, |
| DtVector & | to | ||
| ) | [protected, virtual] |
Utility function sets a database coordinate from a geodetic coordinate.
| virtual void makVrv::DtLosResponder::addPeriodicLosRequest | ( | DtUniqueID | sourceEntityId, |
| const DtVector & | sourcePoint, | ||
| DtUniqueID | destEntityId, | ||
| const DtVector & | destPoint, | ||
| unsigned int | updatePeriod, | ||
| int | losId | ||
| ) | [protected, virtual] |
Adds a periodic LOS request.
| virtual void makVrv::DtLosResponder::sendLosRequest | ( | DtUniqueID | sourceId, |
| const DtVector & | sourcePoint, | ||
| DtUniqueID | destId, | ||
| const DtVector & | destPoint, | ||
| int | losId | ||
| ) | [protected, virtual] |
Notifies the intersection handler that LOS is requested.
| boost::signal<void (DtUniqueID, const DtVector&, DtUniqueID, const DtVector&, int, int)> makVrv::DtLosResponder::signal_losSegRequested |
Signal to the intersection handler of a request.
DtCigiConnection& makVrv::DtLosResponder::myConnection [protected] |
std::map<int, LosData> makVrv::DtLosResponder::myLosIdToDataMap [protected] |