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;
137 explicit GCTileDataCallback();
139 virtual bool operator()(
const boost::shared_ptr<DtTileData>& tile) = 0;
std::list< osgEarth::TileKey > DtTileKeyList
Definition: tileSpatialIndex.h:27
DtBoost::shared_ptr< DtTerrainPagingGeometry > DtTerrainPagingGeometryPtr
Definition: terrainPagingGeometry.h:41
Definition: osgEarthCommands.h:41
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:90
Definition: osgEarthGroundCoverSourceTracker.h:25
unsigned long long DtTerrainIntersectIDType
Definition: terrainInterfaceDefines.h:28
virtual bool init(DtTerrainSourcePager &)
Called after options are set.
virtual void pageInData(DtPagingMetaDataPtr metaData, DtTerrainPagingGeometryPtr geometry)=0
Page in data within geometry.
Definition: osgEarthCommands.h:83
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:29
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.
Definition: terrainSourceTracker.h:40
virtual bool operator()(const boost::shared_ptr< DtTileData > &tile)=0
bool myIsFinished
Definition: osgEarthGroundCoverSourceTracker.h:144
const osgEarth::Profile * myOsgEarthProfile
Keep a copy of the pointer to the profile.
Definition: osgEarthGroundCoverSourceTracker.h:130
TileRoots * myTileSpatialIndexRoots
roots of the quad tree (not necessarily 4, geodetic usually has 2)
Definition: osgEarthGroundCoverSourceTracker.h:118
Definition: terrainSourceTracker.h:171
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.
Definition: terrainPagingGeometry.h:22
A DtChord is a finite line segment in 3-space, represented by two points.
#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.
Definition: vantageTerrainEngine.h:93
virtual bool canPageOutData(DtTerrainIntersectIDType intersectId)=0
DtBoost::shared_ptr< DtPagingMetaData > DtPagingMetaDataPtr
Definition: terrainPagingGeometry.h:89
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:31
Definition: osgEarthCommands.h:61