![]() |
VR-Forces 4.0.4 Class Documentation
|
Each tick, the preload command manager takes any new preload geometry that has been added to its queue and calls pageInData on the active page tracker. More...
Public Member Functions | |
| DtPreloadCommandManager (DtActivePageTracker *pageTracker, const int defaultPriority) | |
| ~DtPreloadCommandManager () | |
| virtual void | tick () |
| While myGeometryQueue is not empty, call pageInData on the active page tracker. | |
| virtual void | addPreloadGeometry (const DtTerrainPagingGeometryList &geometryList, unsigned int intersectId) |
| Add goemetry to be paged in. | |
| virtual void | startPreloadCommandThread () |
| Starts the execution of a separate thread that will handle terrain paging. | |
| void | stopPreloadCommandThread () |
| Stop the external thread. | |
| bool | threadShouldExit () const |
| Called by the thread. | |
Static Protected Member Functions | |
| static void | threadMain (DtPreloadCommandManager *commandManager) |
Protected Attributes | |
| DtActivePageTracker * | myPageTracker |
| page tracker to call pageInData on. | |
| DtPreloadGeometryQueue | myGeometryQueue |
| Geometry is put on this queue and processed each tick. | |
| int | myDefaultPreloadPriority |
| The default priority to call with pageInData if not supplied with the preload geometry. | |
| tbb::tbb_thread * | myPreloadCommandThread |
| tbb::mutex | myShutdownMutex |
| bool | myThreadShutdown |
Each tick, the preload command manager takes any new preload geometry that has been added to its queue and calls pageInData on the active page tracker.
| DtPreloadCommandManager::DtPreloadCommandManager | ( | DtActivePageTracker * | pageTracker, |
| const int | defaultPriority | ||
| ) |
| virtual void DtPreloadCommandManager::tick | ( | ) | [virtual] |
While myGeometryQueue is not empty, call pageInData on the active page tracker.
| virtual void DtPreloadCommandManager::addPreloadGeometry | ( | const DtTerrainPagingGeometryList & | geometryList, |
| unsigned int | intersectId | ||
| ) | [virtual] |
Add goemetry to be paged in.
| geometryList | The geometry to add |
| intersectId | The intersectId to use for the paged in geometry. |
| virtual void DtPreloadCommandManager::startPreloadCommandThread | ( | ) | [virtual] |
Starts the execution of a separate thread that will handle terrain paging.
Stop the external thread.
Blocks until the thread has been shut down. Non-virtual becuase it is called by the destructor.
Called by the thread.
Returns true if the thread should exit, as indicated myThreadShutdown
| static void DtPreloadCommandManager::threadMain | ( | DtPreloadCommandManager * | commandManager | ) | [static, protected] |
page tracker to call pageInData on.
Geometry is put on this queue and processed each tick.
int DtPreloadCommandManager::myDefaultPreloadPriority [protected] |
The default priority to call with pageInData if not supplied with the preload geometry.
tbb::tbb_thread* DtPreloadCommandManager::myPreloadCommandThread [protected] |
tbb::mutex DtPreloadCommandManager::myShutdownMutex [mutable, protected] |
bool DtPreloadCommandManager::myThreadShutdown [protected] |