A DtPagedLodTerrainSourcePager pages in data from a specific terrain patch.
More...
Static Protected Member Functions |
|
| static DtNodeId | osgNodeId (osg::Node *node) |
| | Methods for converting to/from DtNodeId.
|
| static osg::Node * | nodeFromId (DtNodeId nodeId) |
| | Methods for converting to/from DtNodeId.
|
Detailed Description
A DtPagedLodTerrainSourcePager pages in data from a specific terrain patch.
DtPagedLodTerrainSourcePager is a derived terrainSourcePager that handles a source such as paged ive.
Constructor & Destructor Documentation
| DtPagedLodTerrainSourcePager::DtPagedLodTerrainSourcePager |
( |
DtVantageTerrainEngine * |
terrainEngine, |
|
|
osg::Group * |
rootNode, |
|
|
const DtFilename & |
surfaceCharacterMap |
|
) |
| |
| virtual DtPagedLodTerrainSourcePager::~DtPagedLodTerrainSourcePager |
( |
| ) |
|
|
virtual |
Member Function Documentation
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 DtPagedLodTerrainSourcePager::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 DtPagedLodTerrainSourcePager::updateTerrain |
( |
const unsigned int |
intersectId = 0 | ) |
|
|
virtual |
| virtual void DtPagedLodTerrainSourcePager::updatePageTracker |
( |
const unsigned int |
intersectId = 0 | ) |
|
|
virtual |
| osg::Node* DtPagedLodTerrainSourcePager::terrainRoot |
( |
| ) |
|
|
protected |
The root node that this pager is operating on.
| static DtNodeId DtPagedLodTerrainSourcePager::osgNodeId |
( |
osg::Node * |
node | ) |
|
|
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.
| static osg::Node* DtPagedLodTerrainSourcePager::nodeFromId |
( |
DtNodeId |
nodeId | ) |
|
|
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.
Member Data Documentation
| osg::Node* DtPagedLodTerrainSourcePager::myRootNode |
|
protected |
The node on which this pager operates.
| bool DtPagedLodTerrainSourcePager::myForceUpdate |
|
protected |
Used to force update terrain when data has been paged out.
| DtFilename DtPagedLodTerrainSourcePager::mySurfaceCharacterMap |
|
protected |
The documentation for this class was generated from the following file: