VR-Forces 4.0.4 Class Documentation
Classes | Public Member Functions | Static Public Member Functions | Protected Attributes
DtMetaflightTerrainSourcePager Class Reference

DtMetaflightTerrainSourcePager is a derived terrainSourcePager that handles metaflight terrains. More...

Inheritance diagram for DtMetaflightTerrainSourcePager:
Inheritance graph
[legend]

List of all members.

Classes

class  DtMetaflightTerrainVisitor

Public Member Functions

 DtMetaflightTerrainSourcePager (DtVantageTerrainEngine *terrainEngine, osg::Group *rootNode)
virtual ~DtMetaflightTerrainSourcePager ()
virtual DtTerrainSourceTrackercreateTerrainSourceTracker ()
 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 DtTerrainSourcePagerterrainChooserFunction (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

Detailed Description

DtMetaflightTerrainSourcePager is a derived terrainSourcePager that handles metaflight terrains.


Constructor & Destructor Documentation


Member Function Documentation

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]
virtual void DtMetaflightTerrainSourcePager::updatePageTracker ( const unsigned int  intersectId = 0) [virtual]
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.

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.

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

This is the list of nodes for only the LODs that we will page into the terrain.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)