DtOsgEarthCacheEstimator - Modified version of OsgEarthCacheEstimator add model layer cache estimation ,slightly better performance and more accurate estimation.
| virtual makVrv::DtOsgEarthCacheEstimator::~DtOsgEarthCacheEstimator |
( |
| ) |
|
|
virtual |
Copy Constructor not implimented – Copy not allowed.
| makVrv::DtOsgEarthCacheEstimator::DtOsgEarthCacheEstimator |
( |
| ) |
|
|
protected |
| virtual void makVrv::DtOsgEarthCacheEstimator::setLowestLOD |
( |
int |
lowestLOD | ) |
|
|
virtual |
Sets the lowest LOD to generate cache.
| virtual void makVrv::DtOsgEarthCacheEstimator::setHighestLOD |
( |
int |
highestLOD | ) |
|
|
virtual |
Sets the highest LOD to generate cache.
| virtual void makVrv::DtOsgEarthCacheEstimator::addExtent |
( |
const osgEarth::GeoExtent & |
value | ) |
|
|
virtual |
Adds the extent to the Estimator.
| virtual void makVrv::DtOsgEarthCacheEstimator::clearExtent |
( |
| ) |
|
|
virtual |
| virtual void makVrv::DtOsgEarthCacheEstimator::updateTiles |
( |
osgEarth::MapNode * |
mapNode, |
|
|
std::vector< osgEarth::ModelLayer * > & |
modelLayers |
|
) |
| |
|
virtual |
Updates the tiles of all the image,elevation,model layers.
- Parameters
-
| mapNode | the mapNode that contain those layers |
| modelLayers | all the model layers |
| virtual void makVrv::DtOsgEarthCacheEstimator::setProfile |
( |
const osgEarth::Profile * |
profile | ) |
|
|
virtual |
| virtual int makVrv::DtOsgEarthCacheEstimator::getNumTilesInModelLayer |
( |
osgEarth::MapNode * |
mapNode, |
|
|
osgEarth::ModelLayer * |
modelLayer |
|
) |
| |
|
virtual |
get total number of tile in ModelLayer
- Parameters
-
| mapNode | the mapNode that contains this model layer |
| modelLayer | the osgEarth::ModelLayer |
| the | profile for this model layer |
| virtual bool makVrv::DtOsgEarthCacheEstimator::intersects |
( |
const osgEarth::GeoExtent & |
extent | ) |
|
|
virtual |
check if intersect with the extent
| virtual unsigned int makVrv::DtOsgEarthCacheEstimator::numTiles |
( |
| ) |
|
|
virtual |
| virtual double makVrv::DtOsgEarthCacheEstimator::getSizeInMB |
( |
| ) |
|
|
virtual |
| virtual double makVrv::DtOsgEarthCacheEstimator::getTotalTimeInSeconds |
( |
| ) |
|
|
virtual |
Gets the total time in seconds.
| virtual void makVrv::DtOsgEarthCacheEstimator::setSkipImageLayers |
( |
bool |
skip | ) |
|
|
virtual |
set whether skip the cache of the image layers
- Parameters
-
| skip | if true, it will skip caching image layers |
| virtual void makVrv::DtOsgEarthCacheEstimator::setSkipElevationLayers |
( |
bool |
skip | ) |
|
|
virtual |
set whether skip the cache of the image layers
- Parameters
-
| skip | if true, it will skip caching elevation layers |
| virtual void makVrv::DtOsgEarthCacheEstimator::setSkipModelLayers |
( |
bool |
skip | ) |
|
|
virtual |
set whether skip the cache of the image layers
- Parameters
-
| skip | if true, it will skip caching model layers |
| virtual void makVrv::DtOsgEarthCacheEstimator::reset |
( |
| ) |
|
|
virtual |
| void makVrv::DtOsgEarthCacheEstimator::getIntersectTilesForModelLayer |
( |
const std::string & |
modelLayer, |
|
|
std::vector< osgEarth::TileKey > & |
|
|
) |
| |
Assignment Operator not implimented – Copy not allowed.
| virtual osgEarth::FeatureModelGraph* makVrv::DtOsgEarthCacheEstimator::findFeatureModelGraph |
( |
osgEarth::MapNode * |
mapNode, |
|
|
osgEarth::ModelLayer * |
modelLayer |
|
) |
| |
|
protectedvirtual |
Gets the feature model graph under this model layer.
- Parameters
-
| mapNode | the mapNode that contains this model layer |
| modelLayer | The model layer |
- Returns
- osgEarth::FeatureModelGraph*
| virtual void makVrv::DtOsgEarthCacheEstimator::getIntersectTileInModelLayer |
( |
int |
lod, |
|
|
std::vector< osgEarth::TileKey > & |
tiles, |
|
|
const osgEarth::Profile * |
profile |
|
) |
| |
|
protectedvirtual |
Gets all the tile keys with given lod intersect with the current bound Warnig: This function may be slow if high lod is given.
| const osgEarth::Profile* makVrv::DtOsgEarthCacheEstimator::getProfileForModelGraph |
( |
osgEarth::FeatureModelGraph * |
graph | ) |
|
|
protected |
| const osgEarth::Profile* makVrv::DtOsgEarthCacheEstimator::myProfile |
|
protected |
| std::vector< osgEarth::GeoExtent > makVrv::DtOsgEarthCacheEstimator::myExtents |
|
protected |
| std::vector< osgEarth::GeoExtent > makVrv::DtOsgEarthCacheEstimator::myLastExtents |
|
protected |
| int makVrv::DtOsgEarthCacheEstimator::myLowestLOD |
|
protected |
| int makVrv::DtOsgEarthCacheEstimator::myHighestLOD |
|
protected |
| double makVrv::DtOsgEarthCacheEstimator::mySizeInMBPerTile |
|
protected |
| double makVrv::DtOsgEarthCacheEstimator::myTimeInSecondsPerTile |
|
protected |
| int makVrv::DtOsgEarthCacheEstimator::myNumOfTiles |
|
protected |
| bool makVrv::DtOsgEarthCacheEstimator::mySkipImageLayers |
|
protected |
| bool makVrv::DtOsgEarthCacheEstimator::mySkipElevationLayers |
|
protected |
| bool makVrv::DtOsgEarthCacheEstimator::mySkipModelLayers |
|
protected |
| std::map<std::string, std::vector<osgEarth::TileKey> > makVrv::DtOsgEarthCacheEstimator::myIntersectTilesMap |
|
protected |
The documentation for this class was generated from the following file: