16 #include <osgEarth/Profile>
19 #include <boost/ptr_container/ptr_vector.hpp>
28 class GCTileDataCallback;
32 osgEarth::MapNode* mapNode);
68 virtual void addPagedInTile(
69 const osgEarth::TileKey& tilekey,
70 const boost::shared_ptr<DtTileData>& tileData);
73 virtual void removePagedInTile(
const osgEarth::TileKey tileKey);
79 virtual void findPagedInTilesWithinExtent(std::vector<osgEarth::TileKey> & tileKeysPagedIn,
const osgEarth::GeoExtent & extent)
const;
99 virtual bool findData(
101 std::vector< boost::shared_ptr<DtTileData> >& data,
103 GCTileDataCallback* callback = 0)
const;
105 virtual bool findData(
107 std::vector< boost::shared_ptr<DtTileData> >& data,
108 GCTileDataCallback* callback)
const;
110 virtual void findMissing(
115 virtual boost::shared_ptr<DtTileData> findOldestUnlocked()
const;
133 explicit GCTileDataCallback();
135 virtual bool operator()(
const boost::shared_ptr<DtTileData>& tile) = 0;
std::list< osgEarth::TileKey > DtTileKeyList
Definition: tileSpatialIndex.h:32
DtBoost::shared_ptr< DtTerrainPagingGeometry > DtTerrainPagingGeometryPtr
Definition: terrainPagingGeometry.h:46
Definition: osgEarthCommands.h:44
const double myWorldWidth
width of world in osgearth coord sys, used for wrapping coords
Definition: osgEarthGroundCoverSourceTracker.h:124
unsigned int myGroundCoverLod
ground cover lod
Definition: osgEarthGroundCoverSourceTracker.h:127
std::vector< makVrf::DtLine > terrainLineList
Lines structure/calls/list.
Definition: debugDrawTerrainOutputInterface.h:103
Definition: osgEarthGroundCoverSourceTracker.h:25
virtual bool init(DtTerrainSourcePager &)
Called after options are set. Returns false if error.
virtual void pageInData(DtPagingMetaDataPtr metaData, DtTerrainPagingGeometryPtr geometry)=0
Page in data within geometry. Determines which tiles are within the geometry and adds a page in comma...
Definition: osgEarthCommands.h:86
virtual void pageOutOldestData(const int priority)=0
Adds a page out command for the least-recently-used tileID to myCommandQueue.
tbb::concurrent_queue< DtTerrainPagerCommand * > DtPagerCommandQueue
Definition: vantageTerrainImplementationUtil.h:40
virtual void getProceduralTreeTile(DtDebugDrawTerrainOutputInterface::terrainLineList &nodeBoundingList)
Return a list of tiles that represent the ground cover loaded.
virtual unsigned maxLOD() const
Return the max lod.
virtual bool dataAvailable(DtPagingMetaDataPtr metaData, DtTerrainPagingGeometryPtr geometry)=0
Base class for Terrain Source trackers. Determines if the necessary data To perform an intersection i...
Definition: terrainSourceTracker.h:75
virtual bool operator()(const boost::shared_ptr< DtTileData > &tile)=0
bool myIsFinished
Definition: osgEarthGroundCoverSourceTracker.h:140
TileRoots * myTileSpatialIndexRoots
roots of the quad tree (not necessarily 4, geodetic usually has 2)
Definition: osgEarthGroundCoverSourceTracker.h:118
Definition: terrainSourceTracker.h:244
boost::weak_ptr< DtTileData > myOldestData
cached pointer to oldest tile data
Definition: osgEarthGroundCoverSourceTracker.h:121
Definition: osgEarthCommands.h:19
Abstract base class for defining geometric areas for paging of terrain. Subclasses of this class will...
Definition: terrainPagingGeometry.h:24
A DtChord is a finite line segment in 3-space, represented by two points. Data derived from the two e...
#define DT_DLL_vantageTerrainImplementation
This file is used to determine how to build.
Definition: vantageTerrainImplementationDefines.h:28
This class wraps the VR-Vantage Display Engine, and uses as a terrain loader and intersector. This is the terrain engine that powers the DtVantageTerrainImplementation. The DtVantageTerrainEngine runs the DtDe it its own thread, and processes commands thought the command queue.
Definition: vantageTerrainEngine.h:99
virtual bool canPageOutData(DtTerrainIntersectIDType intersectId)=0
DtBoost::shared_ptr< DtPagingMetaData > DtPagingMetaDataPtr
Definition: terrainPagingGeometry.h:101
virtual DtTerrainIntersectIDType findOldestPagedData(unsigned int &numTriangles)=0
Finds the least-recently-used tile and set myOldestPagedObject to it.
boost::ptr_vector< TileSpatialIndex > TileRoots
Definition: tileSpatialIndex.h:36
Definition: osgEarthCommands.h:64