VR-Forces 4.0.4 Class Documentation
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrv::DtLosResponder Class Reference

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...

List of all members.

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

DtCigiConnectionmyConnection
std::map< int, LosDatamyLosIdToDataMap

Detailed Description

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.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

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.


Member Data Documentation

boost::signal<void (DtUniqueID, const DtVector&, DtUniqueID, const DtVector&, int, int)> makVrv::DtLosResponder::signal_losSegRequested

Signal to the intersection handler of a request.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)