VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
makVrv::DtOsgEarthCacheEstimator Class Reference

DtOsgEarthCacheEstimator - Modified version of OsgEarthCacheEstimator add model layer cache estimation ,slightly better performance and more accurate estimation. More...

Public Member Functions

virtual ~DtOsgEarthCacheEstimator ()
 DTOR. More...
 
virtual void setLowestLOD (int lowestLOD)
 Sets the lowest LOD to generate cache. More...
 
virtual void setHighestLOD (int highestLOD)
 Sets the highest LOD to generate cache. More...
 
virtual void addExtent (const osgEarth::GeoExtent &value)
 Adds the extent to the Estimator. More...
 
virtual void clearExtent ()
 Clears the extent. More...
 
virtual void updateTiles (osgEarth::MapNode *mapNode, std::vector< osgEarth::ModelLayer * > &modelLayers)
 Updates the tiles of all the image,elevation,model layers. More...
 
virtual void setProfile (const osgEarth::Profile *profile)
 Sets the profile. More...
 
virtual int getNumTilesInModelLayer (osgEarth::MapNode *mapNode, osgEarth::ModelLayer *modelLayer)
 get total number of tile in ModelLayer More...
 
virtual bool intersects (const osgEarth::GeoExtent &extent)
 check if intersect with the extent More...
 
virtual unsigned int numTiles ()
 Gets the number tiles. More...
 
virtual double getSizeInMB ()
 Gets the size in mbs. More...
 
virtual double getTotalTimeInSeconds ()
 Gets the total time in seconds. More...
 
virtual void setSkipImageLayers (bool skip)
 set whether skip the cache of the image layers More...
 
virtual void setSkipElevationLayers (bool skip)
 set whether skip the cache of the image layers More...
 
virtual void setSkipModelLayers (bool skip)
 set whether skip the cache of the image layers More...
 
virtual void reset ()
 reset More...
 
void getIntersectTilesForModelLayer (const std::string &modelLayer, std::vector< osgEarth::TileKey > &)
 

Protected Member Functions

 DtOsgEarthCacheEstimator ()
 Protected Constructor. More...
 
virtual
osgEarth::FeatureModelGraph * 
findFeatureModelGraph (osgEarth::MapNode *mapNode, osgEarth::ModelLayer *modelLayer)
 Gets the feature model graph under this model layer. More...
 
virtual void getIntersectTileInModelLayer (int lod, std::vector< osgEarth::TileKey > &tiles, const osgEarth::Profile *profile)
 Gets all the tile keys with given lod intersect with the current bound Warnig: This function may be slow if high lod is given. More...
 
const osgEarth::Profile * getProfileForModelGraph (osgEarth::FeatureModelGraph *graph)
 

Protected Attributes

const osgEarth::Profile * myProfile
 
std::vector< osgEarth::GeoExtent > myExtents
 
std::vector< osgEarth::GeoExtent > myLastExtents
 
int myLowestLOD
 
int myHighestLOD
 
double mySizeInMBPerTile
 
double myTimeInSecondsPerTile
 
int myNumOfTiles
 
bool mySkipImageLayers
 
bool mySkipElevationLayers
 
bool mySkipModelLayers
 
std::map< std::string,
std::vector< osgEarth::TileKey > > 
myIntersectTilesMap
 

Private Member Functions

 DtOsgEarthCacheEstimator (const DtOsgEarthCacheEstimator &)
 Copy Constructor not implimented – Copy not allowed. More...
 
DtOsgEarthCacheEstimatoroperator= (const DtOsgEarthCacheEstimator &)
 Assignment Operator not implimented – Copy not allowed. More...
 

Friends

class DtOsgEarthCacheEstimatorCreator
 

Detailed Description

DtOsgEarthCacheEstimator - Modified version of OsgEarthCacheEstimator add model layer cache estimation ,slightly better performance and more accurate estimation.

Constructor & Destructor Documentation

virtual makVrv::DtOsgEarthCacheEstimator::~DtOsgEarthCacheEstimator ( )
virtual

DTOR.

makVrv::DtOsgEarthCacheEstimator::DtOsgEarthCacheEstimator ( const DtOsgEarthCacheEstimator )
private

Copy Constructor not implimented – Copy not allowed.

makVrv::DtOsgEarthCacheEstimator::DtOsgEarthCacheEstimator ( )
protected

Protected Constructor.

Use DtOsgEarthCacheEstimatorCreator to create instances of this class

Member Function Documentation

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

Clears the extent.

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
mapNodethe mapNode that contain those layers
modelLayersall the model layers
virtual void makVrv::DtOsgEarthCacheEstimator::setProfile ( const osgEarth::Profile *  profile)
virtual

Sets the profile.

virtual int makVrv::DtOsgEarthCacheEstimator::getNumTilesInModelLayer ( osgEarth::MapNode *  mapNode,
osgEarth::ModelLayer *  modelLayer 
)
virtual

get total number of tile in ModelLayer

Parameters
mapNodethe mapNode that contains this model layer
modelLayerthe osgEarth::ModelLayer
theprofile 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

Gets the number tiles.

virtual double makVrv::DtOsgEarthCacheEstimator::getSizeInMB ( )
virtual

Gets the size in mbs.

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
skipif 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
skipif 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
skipif true, it will skip caching model layers
virtual void makVrv::DtOsgEarthCacheEstimator::reset ( )
virtual

reset

void makVrv::DtOsgEarthCacheEstimator::getIntersectTilesForModelLayer ( const std::string &  modelLayer,
std::vector< osgEarth::TileKey > &   
)
DtOsgEarthCacheEstimator& makVrv::DtOsgEarthCacheEstimator::operator= ( const DtOsgEarthCacheEstimator )
private

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
mapNodethe mapNode that contains this model layer
modelLayerThe 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

Friends And Related Function Documentation

friend class DtOsgEarthCacheEstimatorCreator
friend

Member Data Documentation

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:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)