![]() |
VR-Forces 4.1 Class Documentation
|
DtMetaflightTerrainSourcePager is a derived terrainSourcePager that handles metaflight terrains. More...

Classes | |
| class | DtMetaflightTerrainVisitor |
Public Member Functions | |
| DtMetaflightTerrainSourcePager (DtVantageTerrainEngine *terrainEngine, osg::Group *rootNode) | |
| virtual | ~DtMetaflightTerrainSourcePager () |
| virtual DtTerrainSourceTracker * | createTerrainSourceTracker () |
| Creates and returns a DtOsgTerrainSourceTracker. | |
| virtual bool | pageInGeometry (const DtTerrainPagingGeometryPtr geometry, const unsigned int intersectId=0) |
| This function must page in all the geometry specified by the argument, and return true when successful. | |
| virtual bool | pageOutNodes (std::list< DtNodeId > &nodesToRemove) |
| This function must cause the page out of the nodeIds specified. | |
| virtual void | updateTerrain (const unsigned int intersectId=0) |
| virtual void | updatePageTracker (const unsigned int intersectId=0) |
Public Member Functions inherited from DtBoundingVolumeTerrainSourcePager | |
| DtBoundingVolumeTerrainSourcePager (DtVantageTerrainEngine *terrainEngine) | |
| virtual | ~DtBoundingVolumeTerrainSourcePager () |
Public Member Functions inherited from DtTerrainSourcePager | |
| DtTerrainSourcePager (DtVantageTerrainEngine *terrainEngine) | |
| Constructor. | |
| virtual | ~DtTerrainSourcePager () |
| Destructor. Deletes all pending commands and myTerrainSourceTracker. | |
| virtual void | tick () |
| Processes commands from the priority-sorted command map. | |
| virtual DtTerrainSourceTracker * | terrainSourceTracker () |
| Accessor for myTerrainSourceTracker. | |
| virtual int | highestPriorityPendingWork () |
| Calls processCommandQueue to add new commands into the priority-sorted command map. | |
| virtual void | processCommandQueue () |
| Takes incoming commands off the command queue and adds them to the priority-sorted command map. | |
| virtual void | setCurrentTime (const double ¤tTime) |
| Sets myCurrentTime for purposes of expiring old page-in commands. | |
Static Public Member Functions | |
| static DtTerrainSourcePager * | terrainChooserFunction (osg::Node &node, DtVantageTerrainEngine *terrainEngine) |
| This is the function that is registered with the DtTerrainSourceChooser. | |
Static Protected Member Functions | |
| static DtNodeId | osgNodeId (makVrv::DtHierarchicalPagedLod *node) |
| Methods for converting to/from DtNodeId. | |
| static makVrv::DtHierarchicalPagedLod * | nodeFromId (DtNodeId nodeId) |
| Methods for converting to/from DtNodeId. | |
Protected Attributes | |
| osg::Group * | myRootNode |
| DtHierNodeBoundingVolumeMap | myPagedInNodes |
| This is the list of nodes for only the LODs that we will page into the terrain. | |
| DtHierNodeBoundingVolumeMap | myPagedOutNodes |
DtMetaflightTerrainSourcePager is a derived terrainSourcePager that handles metaflight terrains.
| DtMetaflightTerrainSourcePager::DtMetaflightTerrainSourcePager | ( | DtVantageTerrainEngine * | terrainEngine, |
| osg::Group * | rootNode | ||
| ) |
|
virtual |
|
virtual |
Creates and returns a DtOsgTerrainSourceTracker.
Implements DtTerrainSourcePager.
|
virtual |
This function must page in all the geometry specified by the argument, and return true when successful.
If this method returns false, it will be called again later, until it returns true or times out.
Implements DtBoundingVolumeTerrainSourcePager.
|
virtual |
This function must cause the page out of the nodeIds specified.
It should return true when successful. It will be called repeatedly with the same arguments until it succeeds.
Implements DtBoundingVolumeTerrainSourcePager.
|
virtual |
Implements DtBoundingVolumeTerrainSourcePager.
|
virtual |
Implements DtBoundingVolumeTerrainSourcePager.
|
static |
This is the function that is registered with the DtTerrainSourceChooser.
If node is a DtHierarchicalPagedLod node, then a DtMetaflightTerrainSourcePager is returned.
|
staticprotected |
Methods for converting to/from DtNodeId.
These are protected, because only the pager should be accessing NodeIds as if they are actual nodes. The tracker does not do that since it operates in a separate thread.
|
staticprotected |
Methods for converting to/from DtNodeId.
These are protected, because only the pager should be accessing NodeIds as if they are actual nodes. The tracker does not do that since it operates in a separate thread.
|
protected |
|
protected |
This is the list of nodes for only the LODs that we will page into the terrain.
|
protected |