![]() |
VR-Forces 4.1.1 Class Documentation
|
This class wraps the VR-Vantage Display Engine, and uses as a terrain loader and intersector. More...
Classes | |
| struct | ProcessedMtf |
Public Types | |
| typedef std::map< std::string, std::string > | TerrainSettings |
Public Member Functions | |
| DtVantageTerrainEngine (DtCollisionWorld *collisionWorld, DtActivePageTracker *pageTracker) | |
| virtual | ~DtVantageTerrainEngine () |
| virtual void | tick () |
| virtual bool | loadTerrain (const DtString &filename, MAKVRinTerra::DtFeatureLoader &, const TerrainSettings &settings=TerrainSettings()) |
| ! Terrain Loading Functions | |
| virtual bool | loadOsgEarthFile (const DtString &filename, MAKVRinTerra::DtFeatureLoader &) |
| virtual ProcessedMtf | processMtfFile (const DtString &filename) |
| virtual bool | processMapNode (osgEarth::MapNode *mapNode) |
| virtual void | startTerrainEngineThread () |
| Starts the execution of a separate thread that will handle terrain paging. | |
| void | stopTerrainEngineThread () |
| Stop the external thread. | |
| virtual void | setDatabasePager (osgDB::DatabasePager *databasePager) |
| ! Accessors / Mutators | |
| virtual osg::ref_ptr < osgDB::DatabasePager > | databasePager () |
| Accessor for database pager. | |
| const makVrv::DtCoordinateSystem & | coordSystem () |
| virtual void | setDebugDrawer (DtSharedMemoryBulletDebugDrawer *drawer) |
| virtual DtSharedMemoryBulletDebugDrawer * | debugDrawer () |
| virtual DtActivePageTracker * | pageTracker () |
| virtual makVrv::DtDe * | de () |
| Returns a pointer to theDe, creates and initializes it if it doesn't yet exist. | |
| virtual DtCollisionWorld * | collisionWorld () |
| virtual void | setLastIntersectId (unsigned int intersectId) |
| virtual void | setLoadImages (const bool &shouldLoadImages) |
| Set to true when you want osg to load image files (for example when reading heightfields saved as tifs from the cache). | |
| virtual DtDrawMode | drawMode () const |
| virtual void | setDrawMode (const DtDrawMode &drawMode) |
| virtual const unsigned int | numTriangles () const |
| virtual void | setNumTriangles (const unsigned int &numTriangles) |
| virtual const unsigned int | triangleThreshold () const |
| virtual void | setTriangleThreshold (const unsigned int &threshold) |
| virtual void | setConfigurationOptions (DtTerrainConfigurationOptions options) |
| virtual const DtTerrainConfigurationOptions | configurationOptions () const |
| virtual void | updatePageTracker () |
| Updates myPageTracker with the latest information about what areas of the terrain have paged-out data in them. | |
| virtual void | updateDrawer () |
| bool | threadShouldExit () const |
| Called by the thread. | |
| virtual void | updateCollisionObjectsDrawState () |
| virtual void | decrementPendingPageOutOperations () |
| virtual void | pageOutTerrainNextTick () |
| virtual void | expireCommandsBeforeTime (const double ¤tTime) |
| virtual const makArchives::DtTerrainRecord & | loadedTerrainRecord () |
| DtTerrainAltitudeTable * | altitudeTable () |
Static Public Member Functions | |
| static DtVantageTerrainEngine * | terrainEngine () |
Protected Member Functions | |
| virtual makVrv::DtDe * | createAndInitializeDe () |
| virtual void | reRegisterAgentCreators (makVrv::DtDe *de) |
| virtual std::list< std::string > | vrvPluginsToLoad (const std::string &pluginDir) |
Static Protected Member Functions | |
| static void | threadMain (DtVantageTerrainEngine *terrainEngine) |
Protected Attributes | |
| DtCollisionWorld * | myCollisionWorld |
| DtActivePageTracker * | myPageTracker |
| DtSharedMemoryBulletDebugDrawer * | myDebugDrawer |
| tbb::concurrent_queue < DtTerrainEngineCommand * > | myCommandQueue |
| tbb::tbb_thread * | myTerrainEngineThread |
| tbb::mutex | myShutdownMutex |
| bool | myThreadShutdown |
| tbb::spin_rw_mutex | myMutex |
| DtTerrainSourcePagerList | myTerrainSourcePagers |
| DtDrawMode | myDrawMode |
| bool | myRedraw |
| unsigned int | myLastIntersectId |
| unsigned int | myPageOutTriangleThreshold |
| unsigned int | myNumTriangles |
| unsigned int | myPendingPageOutOperations |
| DtPageOutAllTerrainCommand * | myPageOutTerrainCommand |
| bool | myPageOutTerrainNextTick |
| DtTerrainConfigurationOptions | myConfigurationOptions |
| makArchives::DtTerrainRecord | myLoadedTerrain |
| Keeps the mtf terrain record of the terrain that was loaded in the display engine. | |
| TerrainSettings | mySettings |
| boost::scoped_ptr < DtTerrainAltitudeTable > | myTerrainAltitudeTable |
Static Protected Attributes | |
| static makVrv::DtDe * | theDe |
| static osg::ref_ptr < osgDB::DatabasePager > | theDatabasePager |
| Make the database pager a static member since it is initialized when theDe is initialized. | |
| static DtReadFileCallback * | theReadFileCallback |
| static DtVantageTerrainEngine * | theVantageTerrainEngine |
| static bool | theWorkLeft |
Private Member Functions | |
| DtVantageTerrainEngine (const DtVantageTerrainEngine &) | |
| Not Implemented. | |
| DtVantageTerrainEngine & | operator= (const DtVantageTerrainEngine &) |
| Not Implemented. | |
This class wraps the VR-Vantage Display Engine, and uses as a terrain loader and intersector.
This is the terrain engine that powers the DtVantageTerrainImplementation. The DtVantageTerrainEngine runs the DtDe it its own thread, and processes commands thought the command queue.
| typedef std::map<std::string,std::string> DtVantageTerrainEngine::TerrainSettings |
|
private |
Not Implemented.
| DtVantageTerrainEngine::DtVantageTerrainEngine | ( | DtCollisionWorld * | collisionWorld, |
| DtActivePageTracker * | pageTracker | ||
| ) |
|
virtual |
|
private |
Not Implemented.
|
virtual |
|
virtual |
! Terrain Loading Functions
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Starts the execution of a separate thread that will handle terrain paging.
| void DtVantageTerrainEngine::stopTerrainEngineThread | ( | ) |
Stop the external thread.
Blocks until the thread has been shut down. Non-virtual becuase it is called by the destructor.
|
inlinevirtual |
! Accessors / Mutators
Set the database pager to be used by pageInVisitors.
References databasePager(), and theDatabasePager.
|
inlinevirtual |
|
inlinestatic |
References theVantageTerrainEngine.
| const makVrv::DtCoordinateSystem& DtVantageTerrainEngine::coordSystem | ( | ) |
|
virtual |
|
inlinevirtual |
References myDebugDrawer.
|
inlinevirtual |
References myPageTracker.
|
virtual |
Returns a pointer to theDe, creates and initializes it if it doesn't yet exist.
|
virtual |
|
virtual |
|
virtual |
Set to true when you want osg to load image files (for example when reading heightfields saved as tifs from the cache).
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Updates myPageTracker with the latest information about what areas of the terrain have paged-out data in them.
|
virtual |
| bool DtVantageTerrainEngine::threadShouldExit | ( | ) | const |
Called by the thread.
Returns true if the thread should exit, as indicated myThreadShutdown
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
References myTerrainAltitudeTable.
|
protectedvirtual |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
| pluginDir | is prepended to all the plugin names in the list. |
|
staticprotected |
|
staticprotected |
Make the database pager a static member since it is initialized when theDe is initialized.
Referenced by databasePager(), and setDatabasePager().
|
protected |
|
protected |
Referenced by pageTracker().
|
protected |
Referenced by debugDrawer().
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
staticprotected |
|
protected |
|
staticprotected |
Referenced by terrainEngine().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Keeps the mtf terrain record of the terrain that was loaded in the display engine.
|
protected |
|
protected |
Referenced by altitudeTable().
|
staticprotected |