![]() |
VR-Forces 4.10 Class Documentation
|
Line of sight track acquirer. More...

Public Member Functions | |
| DtLosTrackAcquirer (DtDe &de, DtObserver &observer, DtChannel &channel) | |
| CTOR. More... | |
| virtual | ~DtLosTrackAcquirer () |
| DTOR. More... | |
| virtual bool | initiateTrack () |
| Initiates this LOS acquirer, calls most of the methods in this class. More... | |
| virtual DtElementID | acquireTarget () |
| Attempts to find the entity closest to the center of the acquisition box by looping through all entities and checking their dot products against the direction vector of observer position -> acquisition box center. More... | |
Public Member Functions inherited from makVrv::DtTrackAcquirer | |
| virtual | ~DtTrackAcquirer () |
| Virtual DTOR. More... | |
| virtual const DtElementID | identifiedTrackableObjectId () const |
| Get the unique ID for the object that has been identified for tracking, returns -1 if this has not been set. More... | |
| virtual void | setTrackAcquisitionBox (DtTrackAcquisitionBox &box) |
| Get/ Set the acquisition box. More... | |
| virtual const DtTrackAcquisitionBox & | trackAcquisitionBox () const |
| virtual DtTrackAcquisitionBox & | trackAcquisitionBox () |
| virtual DtTrackableEntities & | trackableEntities () |
| Get / Set trackable entities. More... | |
| virtual const DtTrackableEntities & | trackableEntities () const |
| virtual void | setTrackAbleEntities (const DtTrackableEntities &entities) |
Private Member Functions | |
| DtLosTrackAcquirer (const DtLosTrackAcquirer &) | |
| Unimplemented CCTOR. More... | |
| DtLosTrackAcquirer & | operator= (const DtLosTrackAcquirer &) |
| Unimplemented Assignment CTOR. More... | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtTrackAcquirer | |
| typedef std::vector < DtTrackableEntity > | DtTrackableEntities |
| Typedef vector for holding scene objects that are within a FOV. More... | |
Protected Member Functions inherited from makVrv::DtTrackAcquirer | |
| DtTrackAcquirer (DtDe &de, DtObserver &observer, DtChannel &acquisitionChannel) | |
| CTOR. More... | |
Protected Attributes inherited from makVrv::DtTrackAcquirer | |
| DtDe & | myDe |
| DtTrackableEntities | myTrackableEntities |
| DtTrackAcquisitionBox * | myAcquisitionBox |
| DtChannel * | myAcquisitionChannel |
| DtObserver * | myObserver |
| DtElementID | myObjectIdToTrack |
Line of sight track acquirer.
This class can find entities within the planes specified by an acquistiion box. You need to add an acqusition box using the base function setTrackAcquisitionBox() before using getAllEntitiesWithinAcquisitionBox(), or the acquirer will create a defaults acquisition box which is the size of the entire channel. To render this default box / change it's size you can access it through trackAcquisitionBox(); call acquireTarget() to get the entity element ID at the center of the acquisition box.
| makVrv::DtLosTrackAcquirer::DtLosTrackAcquirer | ( | DtDe & | de, |
| DtObserver & | observer, | ||
| DtChannel & | channel | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
private |
Unimplemented CCTOR.
|
virtual |
Initiates this LOS acquirer, calls most of the methods in this class.
Returns true if a track was initiated.
Reimplemented from makVrv::DtTrackAcquirer.
|
virtual |
Attempts to find the entity closest to the center of the acquisition box by looping through all entities and checking their dot products against the direction vector of observer position -> acquisition box center.
Calls DtTrackAcquisitionBox::positionWithinAcquisitionBox on each entity Returns the entity with the largest dot product. This method does not populate myTrackableEntities(). Returns -1 if there is no object to track.
|
private |
Unimplemented Assignment CTOR.