![]() |
VR-Forces Developer's Guide
|
Classes | |
| struct | TrackerMetric |
Public Types | |
| typedef boost::ptr_vector < TileSpatialIndex > | TileRoots |
Static Public Attributes | |
| static const unsigned int | theGuiMaxRenderLod |
Protected Types | |
| typedef makVrf::RTree < std::shared_ptr < osgEarth::DataExtent > , double, 2 > | DtLayerExtentTree |
Protected Member Functions | |
| virtual DtPageInTilesCommand * | createPageInTilesCommand (DtPagingMetaDataPtr metaData) |
| virtual DtPageOutTilesCommand * | createPageOutTilesCommand (DtPagingMetaDataPtr metaData) |
| virtual bool | aboveAllTerrain (const DtChord &geocentricChord, const DtChord &geodeticCoord) const |
| virtual bool | shortEnoughForIntersection (const DtChord &geocentricChord, const DtChord &geodeticChord, double chordLengthSq) const |
| virtual bool | crosses180Lon (const DtChord &geodeticChord) const |
| virtual bool | findData (const DtTerrainPagingGeometry *geometry, std::vector< std::shared_ptr< DtTileData > > &data, const DtPagingMetaDataPtr &metaData=DtPagingMetaDataPtr(), OsgEarthTileDataCallback *callback=nullptr) const |
| virtual bool | findData (const DtTerrainPagingGeometry *geometry, std::vector< std::shared_ptr< DtTileData > > &data, OsgEarthTileDataCallback *callback) const |
| virtual void | findMissing (const DtTerrainPagingGeometry &geometry, DtTileKeyList &missing) const |
| virtual std::shared_ptr < DtTileData > | findOldest () const |
| virtual std::shared_ptr < DtTileData > | findOldestUnlocked () const |
| virtual void | resetMetrics () |
Friends | |
| class | DtOsgEarthTerrainSourceTracker |
| typedef boost::ptr_vector<TileSpatialIndex> DtOsgEarthTerrainSourceTracker::TileRoots |
|
protected |
| DtOsgEarthTerrainSourceTracker::DtOsgEarthTerrainSourceTracker | ( | DtVantageTerrainEngine * | , |
| DtPagerCommandQueue * | commandQueue, | ||
| osgEarth::MapNode * | mapNode | ||
| ) |
|
overridevirtual |
Reimplemented from DtTerrainSourceTracker.
|
overridevirtual |
True if using elevation data (i.e. if using osgEarth REX engine).
Reimplemented from DtTerrainSourceTracker.
|
overridevirtual |
Return true if the current tracker use land cover data.
Reimplemented from DtTerrainSourceTracker.
|
overridevirtual |
Return true if the current tracker use Biome data.
Reimplemented from DtTerrainSourceTracker.
| unsigned DtOsgEarthTerrainSourceTracker::getHighestLodForLandCover | ( | ) | const |
| void DtOsgEarthTerrainSourceTracker::setLandCoverSurfaceCharacteristicsMapper | ( | makVrf::DtSurfaceCharacteristicMap * | mapper | ) |
|
overridevirtual |
Reimplemented from DtTerrainSourceTracker.
|
virtual |
|
overridevirtual |
Fidelity this tracker is configured for.
Reimplemented from DtTerrainSourceTracker.
|
overridevirtual |
Max lod that the tracker will generate.
Reimplemented from DtTerrainSourceTracker.
|
virtual |
Max lod that the tracker will generate.
|
overridevirtual |
Max lod at which intersections will be done by exact solution of bilinear surface. Higher lods will be intersected against the same triangle grid that REX uses.
Reimplemented from DtTerrainSourceTracker.
|
virtual |
Max lod at which intersections will be done by exact solution of bilinear surface. Higher lods will be intersected against the same triangle grid that REX uses.
|
overridevirtual |
If the max difference between true elevation and elevation defined by the two triangles that make up this cell is less than this value then the system will use those two triangles instead of breaking them up further. Intersection is for terrain intersections. Triangle output is for triangle generation.
Reimplemented from DtTerrainSourceTracker.
|
virtual |
If the max difference between true elevation and elevation defined by the two triangles that make up this cell is less than this value then the system will use those two triangles instead of breaking them up further. Intersection is for terrain intersections. Triangle output is for triangle generation.
|
overridevirtual |
If the max difference between true elevation and elevation defined by the two triangles that make up this cell is less than this value then the system will use those two triangles instead of breaking them up further. Intersection is for terrain intersections. Triangle output is for triangle generation.
Reimplemented from DtTerrainSourceTracker.
|
virtual |
If the max difference between true elevation and elevation defined by the two triangles that make up this cell is less than this value then the system will use those two triangles instead of breaking them up further. Intersection is for terrain intersections. Triangle output is for triangle generation.
|
overridevirtual |
Sets the range of LOD levels where elevation values from the terrain index will be used.
Reimplemented from DtTerrainSourceTracker.
|
virtual |
Sets the range of LOD levels where elevation values from the terrain index will be used.
|
overridevirtual |
Sets the range of LOD levels where elevation values from the terrain index will be used.
Reimplemented from DtTerrainSourceTracker.
|
virtual |
Sets the range of LOD levels where elevation values from the terrain index will be used.
|
virtual |
Set the max chord length before chords are split.
|
virtual |
Set the max chord length before chords are split.
|
virtual |
Sets the max lod used to estimate max terrain elevation under chords.
|
virtual |
Sets the max lod used to estimate max terrain elevation under chords.
|
virtual |
Number of currently paged in tiles.
|
virtual |
Number of cells in index.
|
overridevirtual |
Initialize after configuration.
Reimplemented from DtTerrainSourceTracker.
|
virtual |
Adds a tileId and the corresponding tileData to #myPagedInTiles.
| tileId | Key for the tileData passed in. |
| tileData | tileData to create the tileId -> tileData mapping with. |
|
virtual |
Removes a tileId and the corresponding tileData from #myPagedInTiles.
|
overridevirtual |
Finds all tiles within geometry, and tests to see whether they have all been paged in already. Tiles within the geometry that have been paged in have their "lastUsed" data set to the intersectId parameter for removal priority.
| geometry | The geometry to test for data available. |
| intersectId | Optional parameter to mark already-paged-in tiles with. |
Implements DtTerrainSourceTracker.
|
virtual |
Performs terrain intersections.
| status | See DtTerrainIntersectStatus. |
| chord | Chord to intersect. |
| intList | Results added to this. |
| options | See DtTerrainIntersectOptions. |
|
virtual |
Used in findHeightFieldIntersections. Splits a long chord (shortEnoughForIntersection is false) into halves and recursively checks findHeightFieldIntersections on each.
|
virtual |
Used in findHeightFieldIntersections. Splits the chord at lon = 180 (Geoc y=0) and recursively checks findHeightFieldIntersections on each part.
|
virtual |
Outputs triangles interpolated from elevation data.
| output | Output interface which received triangles. |
| box | Query which defines which area is output. |
|
overridevirtual |
Page in data within geometry. Determines which tiles are within the geometry and adds a page in command to myCommandQueue to page in any tiles within the geometry that have not yet been paged in.
| geometry | The geometry to page in data within. |
| intersectId | Id to assign to the page in command to seed tileData for newly paged-in tiles. |
| priority | Priority to use for commands generated by this call. |
Implements DtTerrainSourceTracker.
|
overridevirtual |
Finds the least-recently-used tile and set myOldestPagedObject to it.
| numTrianglesOut | The number of triangles the least-recently-used tileId represents in the collision world. |
Implements DtTerrainSourceTracker.
|
overridevirtual |
Adds a page out command for the least-recently-used tileID to myCommandQueue.
| priority | Priority to use for commands generated by this call. |
Implements DtTerrainSourceTracker.
|
overridevirtual |
Returns true if there is data that can be paged out.
Implements DtTerrainSourceTracker.
|
overridevirtual |
Uses osgearth layer data to find the smallest lod for a given area that actually has data. The osgearth APIs can only return a larger tile (i.e. smaller lod), so this function is used by starting with the highest LOD (the max LOD set, which is 19 by default for REX) and then going up. Elevation layers may not have any information on this in which case the input key will be returned. This is all used so that we don't have to always have to start checking for data at the highest LOD. The quadtree itself uses this to cap the depth in a given area.
Reimplemented from DtTerrainSourceTracker.
|
virtual |
Find all the tiles that intersect the geometry which are not paged in.
| void DtOsgEarthTerrainSourceTracker::findPagedInTilesWithinExtent | ( | std::vector< osgEarth::TileKey > & | tileKeysPagedIn, |
| const osgEarth::GeoExtent & | extent | ||
| ) | const |
! Finds the TileKeys for all of the Paged in Tiles that intersect the geo extent
| void DtOsgEarthTerrainSourceTracker::findPagesAtLodWithinExtents | ( | std::vector< osgEarth::TileKey > & | tileKeysFound, |
| const osgEarth::GeoExtent & | extent, | ||
| unsigned | lod | ||
| ) | const |
|
virtual |
Writes an index using the whole terrain (i.e. merged) elevation data.
|
virtual |
Writes indices for each elevation layer.
|
virtual |
Return vector of index config objects, one per each index set in layer.
|
virtual |
Reads an index file.
|
virtual |
Reads per layer index files.
|
virtual |
Enable or not debug metrics.
|
virtual |
return all the metric at once
|
inlinevirtual |
return the associated OsgEarthTerrainSourcePager
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Determines if the chord is (not) above the threshold length myMaxChordLengthBeforeSplitSquared.
|
protectedvirtual |
Determines if the chord goes between end points that are on opposite sides of the lon = 180 meridian.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
reset metrics values
|
explicit |
|
overridepure virtual |
|
friend |
The LOD that the GUI renders to, regardless of data LOD. This is used to generate triangles from elevation data that will match this LOD, when necessary.
|
protected |
top level elevation layers
|
protected |
flattens composite layers
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
use elevation (if false old geometry system will be used)
|
protected |
|
protected |
max LOD which will use exact intersection with bilinear surface
|
protected |
max error tolerances used to decide when it's not necessary triangle elevation to full resolution
|
protected |
|
protected |
range of LODs where elevation from index will be used
|
protected |
|
protected |
max chord length squared before chords are split
|
protected |
max lod used for estimated max elevation under chord for spliting chords
|
protected |
roots of the quad tree (not necessarily 4, geodetic usually has 2)
|
protected |
width of world in osgearth coord sys, used for wrapping coords
|
protected |
intersect fidelity for this layer
|
protected |
cached pointer to oldest tile data
|
protected |
|
protected |
Tbb arena to limit number of threads.
|
protected |
Remember if a warning about CS type was given;.
|
protected |
|
protected |
Are debug metrics enable.
|
protected |
Structure holding all the metric.
|
protected |
Pointer to the associated pager.