VR-Forces 4.1 Class Documentation
List of all members | Classes | Public Member Functions
DtBoundingVolumeTerrainSourcePager Class Reference

DtBoundingVolumeTerrainSourcePager is a derived terrainSourcePager that handles a source such as metaflight, or paged .ive. More...

Inheritance diagram for DtBoundingVolumeTerrainSourcePager:
Inheritance graph
[legend]

Classes

class  DtBoundingVolumeActivePageVisitor
 Visitor class used to find the active paged of a OSG scene graph. More...

Public Member Functions

 DtBoundingVolumeTerrainSourcePager (DtVantageTerrainEngine *terrainEngine)
virtual ~DtBoundingVolumeTerrainSourcePager ()
virtual bool pageInGeometry (const DtTerrainPagingGeometryPtr geometry, const unsigned int intersectId=0)=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)=0
 This function must cause the page out of the nodeIds specified.
virtual void updateTerrain (const unsigned int intersectId=0)=0
virtual void updatePageTracker (const unsigned int intersectId=0)=0
- 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 DtTerrainSourceTrackercreateTerrainSourceTracker ()=0
 Creates and returns a DtTerrainSourceTracker.
virtual DtTerrainSourceTrackerterrainSourceTracker ()
 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 &currentTime)
 Sets myCurrentTime for purposes of expiring old page-in commands.

Additional Inherited Members

- Protected Attributes inherited from DtTerrainSourcePager
tbb::spin_rw_mutex myMutex
DtVantageTerrainEnginemyTerrainEngine
 Pointer to the terrain implementation's terrain engine.
DtTerrainSourceTrackermyTerrainSourceTracker
 The terrain source tracker that is updated by this pager.
double myCurrentTime
 Time to compare a command's expire time to before executing the command.
DtPagerCommandQueue myCommandQueue
 Thread-safe queue to put commands on.
DtCommandPriorityMultimap myPriorityCommandMultimap
 Multimap of priorities to paging commands.

Detailed Description

DtBoundingVolumeTerrainSourcePager is a derived terrainSourcePager that handles a source such as metaflight, or paged .ive.

Constructor & Destructor Documentation

DtBoundingVolumeTerrainSourcePager::DtBoundingVolumeTerrainSourcePager ( DtVantageTerrainEngine terrainEngine)
virtual DtBoundingVolumeTerrainSourcePager::~DtBoundingVolumeTerrainSourcePager ( )
virtual

Member Function Documentation

virtual bool DtBoundingVolumeTerrainSourcePager::pageInGeometry ( const DtTerrainPagingGeometryPtr  geometry,
const unsigned int  intersectId = 0 
)
pure 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.

Implemented in DtMetaflightTerrainSourcePager, and DtPagedLodTerrainSourcePager.

virtual bool DtBoundingVolumeTerrainSourcePager::pageOutNodes ( std::list< DtNodeId > &  nodesToRemove)
pure 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.

Implemented in DtMetaflightTerrainSourcePager, and DtPagedLodTerrainSourcePager.

virtual void DtBoundingVolumeTerrainSourcePager::updateTerrain ( const unsigned int  intersectId = 0)
pure virtual
virtual void DtBoundingVolumeTerrainSourcePager::updatePageTracker ( const unsigned int  intersectId = 0)
pure virtual

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)