![]() |
VR-Forces 4.0.4 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) |
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 DtMetaflightTerrainSourcePager::~DtMetaflightTerrainSourcePager | ( | ) | [virtual] |
| virtual DtTerrainSourceTracker* DtMetaflightTerrainSourcePager::createTerrainSourceTracker | ( | ) | [virtual] |
Creates and returns a DtOsgTerrainSourceTracker.
Implements DtTerrainSourcePager.
| virtual bool DtMetaflightTerrainSourcePager::pageInGeometry | ( | const DtTerrainPagingGeometryPtr | geometry, |
| const unsigned int | intersectId = 0 |
||
| ) | [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 bool DtMetaflightTerrainSourcePager::pageOutNodes | ( | std::list< DtNodeId > & | nodesToRemove | ) | [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 void DtMetaflightTerrainSourcePager::updateTerrain | ( | const unsigned int | intersectId = 0 | ) | [virtual] |
Implements DtBoundingVolumeTerrainSourcePager.
| virtual void DtMetaflightTerrainSourcePager::updatePageTracker | ( | const unsigned int | intersectId = 0 | ) | [virtual] |
Implements DtBoundingVolumeTerrainSourcePager.
| static DtTerrainSourcePager* DtMetaflightTerrainSourcePager::terrainChooserFunction | ( | osg::Node & | node, |
| DtVantageTerrainEngine * | terrainEngine | ||
| ) | [static] |
This is the function that is registered with the DtTerrainSourceChooser.
If node is a DtHierarchicalPagedLod node, then a DtMetaflightTerrainSourcePager is returned.
| static DtNodeId DtMetaflightTerrainSourcePager::osgNodeId | ( | makVrv::DtHierarchicalPagedLod * | node | ) | [static, protected] |
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.
| static makVrv::DtHierarchicalPagedLod* DtMetaflightTerrainSourcePager::nodeFromId | ( | DtNodeId | nodeId | ) | [static, protected] |
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.
osg::Group* DtMetaflightTerrainSourcePager::myRootNode [protected] |
This is the list of nodes for only the LODs that we will page into the terrain.