![]() |
VR-Forces 5.0.2 Developer's Guide
|
This class keeps track of what parts of the terrain database are currently paged in and what ones are not. It is able to give very quick answers to queries about if all the data needed to satisfy a particular database request is loaded or not.
Protected Attributes | |
| DtVantageTerrainEngine * | myTerrainEngine |
| DtPrintPagingInfoCommand * | myPrintInfoCommand |
| DtTerrainSourceTrackerList | myTerrainSourceTrackers |
| double | myIntersectDataLoadExpireTime |
| tbb::spin_rw_mutex | myMutex |
| tbb::task_arena | myArena |
| bool | myUseTbb |
Private Member Functions | |
| DtActivePageTracker (const DtActivePageTracker &) | |
| DtActivePageTracker & | operator= (const DtActivePageTracker &) |
|
private |
Not implemented.
| DtActivePageTracker::DtActivePageTracker | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
private |
Not implemented.
|
virtual |
Sets the terrain engine.
|
virtual |
Calls pageInData on each tracker in myTerrainSourceTrackers. Once all data corresponding to this call is paged in, all the data necessary for the intersection call will be in the collision world.
| intersectId | Optional intersectId to seed newly-paged in data with for removal priority. Also used to mark already paged-in data that this geometry would require. |
| metaData | Data about this page in request |
| geometry | The geometry to page in. |
| fidelity | Specify the fidelity of the trackers to use, see DtTerrainIntersectOptions. |
|
virtual |
Calls pageInData on trackers which return false for dataAvailable.
| fidelity | Specify the fidelity of the trackers to use, see DtTerrainIntersectOptions. |
|
virtual |
Calls dataAvailableAlongChord on all available terrainSourceTrackers.
| metaData | Data about this page in request |
| geometry | Used to determine what terrain we're looking for. |
| fidelity | Specify the fidelity of the trackers to use, see DtTerrainIntersectOptions. |
|
virtual |
// Adds the filename to the list of known not found files. // Updates the paged out areas to reflect the new status. virtual void addToFilesNotFound(std::string filename);
// Checks the filename against the known not found filenames. virtual bool fileNotFound(std::string filename) const; Add a terrain source tracker.
|
virtual |
|
virtual |
Returns true if any tracker can page out data.
|
virtual |
| priority | The priority of any commands generated by this call. |
| numTrianglesToPageOut | The number of triangles this function will attempt to page out, from last-used to most-recently-used. |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
clear the cache (if any) of each trackers
|
protected |
|
protected |
|
protected |
List of terrain source trackers that will determine whether all the necessary data is paged in for the intersection.
|
protected |
|
mutableprotected |
|
protected |
Tbb arena to limit number of threads.
|
protected |
Enable or not the usage of TBB to multi thread the layers in the intersection can be configured in appData\settings\vrfSim\terrainInterfaceConfig.mtl by changing active-pager-tbb-mode Default is False (can speed up some databases with a lots of tree layers)