A DtLosResponder processes CIGI LOS Segment Request and LOS Vector Request messages and packages them up into an instance of this class, and either immediately signals the DtCigiIntersectionHandler of a request or adds a periodic request to its queue.
More...
A DtLosResponder processes CIGI LOS Segment Request and LOS Vector Request messages and packages them up into an instance of this class, and either immediately signals the DtCigiIntersectionHandler of a request or adds a periodic request to its queue.
The type of LOS request an instance represents.
| Enumerator |
|---|
| SegmentRequest |
|
| VectorRequest |
|
The kind of response the LOS request wants.
The coordinate system that intersections should be reported in.
'Entity' is the coordinate system of an entity that's been intersected. Intersections with the terrain are always reported in 'Geodetic'.
| Enumerator |
|---|
| Geodetic |
|
| Entity |
|
| virtual makVrv::DtCigiLosRequest::~DtCigiLosRequest |
( |
| ) |
|
|
virtual |
| makVrv::DtCigiLosRequest::DtCigiLosRequest |
( |
| ) |
|
|
protected |
(Unimplemented) Copy CTOR
| virtual unsigned int makVrv::DtCigiLosRequest::losId |
( |
| ) |
const |
|
virtual |
Get/Set the los id used by the host to request this los check.
| virtual void makVrv::DtCigiLosRequest::setLosId |
( |
unsigned int |
id | ) |
|
|
virtual |
| virtual unsigned int makVrv::DtCigiLosRequest::hostFrameNumber |
( |
| ) |
const |
|
virtual |
Get/Set the hostFrameNumber for this request.
If the request is periodic, this will be updated for each request
| virtual void makVrv::DtCigiLosRequest::setHostFrameNumber |
( |
unsigned int |
frameNum | ) |
|
|
virtual |
| virtual RequestType makVrv::DtCigiLosRequest::requestType |
( |
| ) |
const |
|
virtual |
Get/Set whether the request came via a segment request or a vector request.
For extended data responses, this can matter
| virtual void makVrv::DtCigiLosRequest::setRequestType |
( |
RequestType |
reqType | ) |
|
|
virtual |
| virtual ResponseType makVrv::DtCigiLosRequest::responseType |
( |
| ) |
const |
|
virtual |
Get/Set the response type requested (currently either basic or extended data)
| virtual void makVrv::DtCigiLosRequest::setResponseType |
( |
ResponseType |
respType | ) |
|
|
virtual |
| virtual ResponseCS makVrv::DtCigiLosRequest::responseCS |
( |
| ) |
const |
|
virtual |
Get/Set the coordinate system requested for entity intersections (only extended data responses include this).
The intersections will be returned in either geodetic coordinates or the coordinate system of the entity that was intersected
| virtual void makVrv::DtCigiLosRequest::setResponseCS |
( |
ResponseCS |
coordSys | ) |
|
|
virtual |
| virtual DtUniqueID makVrv::DtCigiLosRequest::sourceEntity |
( |
| ) |
const |
|
virtual |
Get/Set the scene object ID of the entity specified as the start point for the LOS request (or 0) if not set.
| virtual void makVrv::DtCigiLosRequest::setSourceEntity |
( |
DtUniqueID |
source | ) |
|
|
virtual |
| virtual const DtVector& makVrv::DtCigiLosRequest::sourcePoint |
( |
| ) |
const |
|
virtual |
Get/Set the source point of the intersection.
There are multiple options here.
- The request was a segment request that specified an entity as the start point: then this is an <x,y,z> offset from that entity also specified in the request
- The request was a segment request that specified a geodetic start point: then this is that point in database coordinates
- The request was a vector request that specified an entity as the start point: then this is an <x,y,z> offset that incorporates both the specified offset plus the minimum length along the vector, both specified in the request, in entity coordinates. So adding this value to the entity's database position gives the position that the intersection will start at
- The request was a vector request that specified a geodetic start point: then this is that point, in database coordinates, plus the offset specified by the minimum length parameter in the request.
| virtual void makVrv::DtCigiLosRequest::setSourcePoint |
( |
const DtVector & |
source | ) |
|
|
virtual |
| virtual DtUniqueID makVrv::DtCigiLosRequest::destEntity |
( |
| ) |
const |
|
virtual |
Get/Set the destination entity (set to 0 by default, which indicates none specified).
| virtual void makVrv::DtCigiLosRequest::setDestEntity |
( |
DtUniqueID |
destEnt | ) |
|
|
virtual |
| virtual const DtVector& makVrv::DtCigiLosRequest::destPoint |
( |
| ) |
const |
|
virtual |
Get/Set the destination endpoint of the intersection.
There are multiple options here.
- The request was a segment request that specified an entity as the end point: then this is an <x,y,z> offset from that entity also specified in the request
- The request was a segment request that specified a geodetic end point: then this is that point in database coordinates
- The request was a vector request: this is the endpoint of that vector based on the maximum length specified.
| virtual void makVrv::DtCigiLosRequest::setDestPoint |
( |
const DtVector & |
destPnt | ) |
|
|
virtual |
| virtual unsigned int makVrv::DtCigiLosRequest::updatePeriod |
( |
| ) |
const |
|
virtual |
Get/Set the intersection requests update period.
If non-zero, this request will be placed on a list to be executed every 'update period' frames. This value will be used by the DtLosResponder (in conjunction with the lastFrameSent) to determine when another LOS check should be executed
| virtual void makVrv::DtCigiLosRequest::setUpdatePeriod |
( |
unsigned int |
frames | ) |
|
|
virtual |
| virtual unsigned int makVrv::DtCigiLosRequest::lastFrameSent |
( |
| ) |
const |
|
virtual |
Get/Set the last frame number that an LOS check was executed.
Used by the DtLosResponder (in conjuntion with the updatePeriod) to determine when another LOS check should be executed
| virtual void makVrv::DtCigiLosRequest::setLastFrameSent |
( |
unsigned int |
frame | ) |
|
|
virtual |
| virtual float makVrv::DtCigiLosRequest::minimumRange |
( |
| ) |
const |
|
virtual |
Get/Set the minimum ranges for the LOS request Only used for Vector Requests.
| virtual void makVrv::DtCigiLosRequest::setMinimumRange |
( |
float |
dist | ) |
|
|
virtual |
| virtual float makVrv::DtCigiLosRequest::maximumRange |
( |
| ) |
const |
|
virtual |
Get/Set the maximum ranges for the LOS request Only used for Vector Requests.
| virtual void makVrv::DtCigiLosRequest::setMaximumRange |
( |
float |
dist | ) |
|
|
virtual |
Friended so that the creator can call the (protected) CTOR.
| unsigned int makVrv::DtCigiLosRequest::myHostFrameNumber |
|
protected |
| DtUniqueID makVrv::DtCigiLosRequest::mySourceEntity |
|
protected |
| DtVector makVrv::DtCigiLosRequest::mySourcePoint |
|
protected |
| DtVector makVrv::DtCigiLosRequest::myDestPoint |
|
protected |
| float makVrv::DtCigiLosRequest::myMinRange |
|
protected |
| float makVrv::DtCigiLosRequest::myMaxRange |
|
protected |
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf4-10-branch/include/vrvCigi/DtCigiLosRequest.h