![]() |
VR-Forces 5.0.2 Developer's Guide
|
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.
Public Member Functions | |
| DtPreloadCommandManager (DtActivePageTracker *pageTracker, const int defaultPriority) | |
| ~DtPreloadCommandManager () | |
| virtual void | tick () |
| virtual void | addPreloadGeometry (const DtTerrainPagingGeometryList &geometryList, DtTerrainIntersectIDType intersectId) |
| virtual void | startPreloadCommandThread () |
| void | stopPreloadCommandThread () |
| bool | threadShouldExit () const |
| void | shutdown () |
Static Protected Member Functions | |
| static void | threadMain (DtPreloadCommandManager *commandManager) |
Protected Attributes | |
| DtActivePageTracker * | myPageTracker |
| DtPreloadGeometryQueue | myGeometryQueue |
| int | myDefaultPreloadPriority |
| std::auto_ptr< tbb::tbb_thread > | myPreloadCommandThread |
| tbb::mutex | myShutdownMutex |
| bool | myThreadShutdown |
| DtPreloadCommandManager::DtPreloadCommandManager | ( | DtActivePageTracker * | pageTracker, |
| const int | defaultPriority | ||
| ) |
| DtPreloadCommandManager::~DtPreloadCommandManager | ( | ) |
|
virtual |
While myGeometryQueue is not empty, call pageInData on the active page tracker.
|
virtual |
Add goemetry to be paged in.
| geometryList | The geometry to add |
| intersectId | The intersectId to use for the paged in geometry. |
|
virtual |
Starts the execution of a separate thread that will handle terrain paging.
| void DtPreloadCommandManager::stopPreloadCommandThread | ( | ) |
Stop the external thread. Blocks until the thread has been shut down. Non-virtual becuase it is called by the destructor.
| bool DtPreloadCommandManager::threadShouldExit | ( | ) | const |
Called by the thread. Returns true if the thread should exit, as indicated myThreadShutdown.
| void DtPreloadCommandManager::shutdown | ( | ) |
Start shutdown but don't block.
|
staticprotected |
|
protected |
page tracker to call pageInData on.
|
protected |
Geometry is put on this queue and processed each tick.
|
protected |
The default priority to call with pageInData if not supplied with the preload geometry.
|
protected |
|
mutableprotected |
|
protected |