![]() |
VR-Forces 4.0.4 Class Documentation
|
A DtPagedLodTerrainSourcePager pages in data from a specific terrain patch. More...

Classes | |
| class | DtActivePageVisitor |
| Visitor class used to find the active paged of a OSG scene graph. More... | |
Public Member Functions | |
| DtPagedLodTerrainSourcePager (DtVantageTerrainEngine *terrainEngine, osg::Group *rootNode) | |
| virtual | ~DtPagedLodTerrainSourcePager () |
| 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) |
| Updates the DtOsgTerrainSourceTracker. | |
Static Public Member Functions | |
| static DtTerrainSourcePager * | terrainChooserFunction (osg::Node &node, DtVantageTerrainEngine *terrainEngine) |
| This is the function that is registered with the DtTerrainSourceChooser. | |
Protected Member Functions | |
| osg::Node * | terrainRoot () |
| The root node that this pager is operating on. | |
| virtual bool | pageInData (DtPageInVisitor &visitor) |
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. | |
Protected Attributes | |
| osg::Node * | myRootNode |
| The node on which this pager operates. | |
| bool | myForceUpdate |
| Used to force update terrain when data has been paged out. | |
A DtPagedLodTerrainSourcePager pages in data from a specific terrain patch.
DtPagedLodTerrainSourcePager is a derived terrainSourcePager that handles a source such as paged ive.
| DtPagedLodTerrainSourcePager::DtPagedLodTerrainSourcePager | ( | DtVantageTerrainEngine * | terrainEngine, |
| osg::Group * | rootNode | ||
| ) |
| virtual DtPagedLodTerrainSourcePager::~DtPagedLodTerrainSourcePager | ( | ) | [virtual] |
| virtual DtTerrainSourceTracker* DtPagedLodTerrainSourcePager::createTerrainSourceTracker | ( | ) | [virtual] |
Creates and returns a DtOsgTerrainSourceTracker.
Implements DtTerrainSourcePager.
| virtual bool DtPagedLodTerrainSourcePager::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 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] |
Implements DtBoundingVolumeTerrainSourcePager.
| virtual void DtPagedLodTerrainSourcePager::updatePageTracker | ( | const unsigned int | intersectId = 0 | ) | [virtual] |
Updates the DtOsgTerrainSourceTracker.
Implements DtBoundingVolumeTerrainSourcePager.
| static DtTerrainSourcePager* DtPagedLodTerrainSourcePager::terrainChooserFunction | ( | osg::Node & | node, |
| DtVantageTerrainEngine * | terrainEngine | ||
| ) | [static] |
This is the function that is registered with the DtTerrainSourceChooser.
If node is a pagedLOD node, then a DtPagedLodTerrainSourcePager is returned.
| osg::Node* DtPagedLodTerrainSourcePager::terrainRoot | ( | ) | [protected] |
The root node that this pager is operating on.
| virtual bool DtPagedLodTerrainSourcePager::pageInData | ( | DtPageInVisitor & | visitor | ) | [protected, virtual] |
| static DtNodeId DtPagedLodTerrainSourcePager::osgNodeId | ( | osg::Node * | 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 osg::Node* DtPagedLodTerrainSourcePager::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::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.