VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Protected Member Functions | Protected Attributes
DtPreloadCommandManager Class Reference

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...

List of all members.

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

DtActivePageTrackermyPageTracker
 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

Detailed Description

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.


Constructor & Destructor Documentation

DtPreloadCommandManager::DtPreloadCommandManager ( DtActivePageTracker pageTracker,
const int  defaultPriority 
)

Member Function Documentation

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.

Parameters:
geometryListThe geometry to add
intersectIdThe intersectId to use for the paged in geometry.

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]

Member Data Documentation

page tracker to call pageInData on.

Geometry is put on this queue and processed each tick.

The default priority to call with pageInData if not supplied with the preload geometry.

tbb::mutex DtPreloadCommandManager::myShutdownMutex [mutable, protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)