VR-Forces Developer's Guide
 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.

Public Member Functions

virtual ~DtOsgEarthCacheEstimator ()
 
virtual void setLowestLOD (int lowestLOD)
 
virtual void setHighestLOD (int highestLOD)
 
virtual void addExtent (const osgEarth::GeoExtent &value)
 
virtual void clearExtent ()
 
virtual void updateTiles (osgEarth::MapNode *mapNode, std::vector< osgEarth::ModelLayer * > &modelLayers)
 
virtual void setProfile (const osgEarth::Profile *profile)
 
virtual int getNumTilesInModelLayer (osgEarth::MapNode *mapNode, osgEarth::ModelLayer *modelLayer)
 
virtual bool intersects (const osgEarth::GeoExtent &extent)
 
virtual unsigned int numTiles ()
 
virtual double getSizeInMB ()
 
virtual double getTotalTimeInSeconds ()
 
virtual void setSkipImageLayers (bool skip)
 
virtual void setSkipElevationLayers (bool skip)
 
virtual void setSkipModelLayers (bool skip)
 
virtual void reset ()
 
void getIntersectTilesForModelLayer (const std::string &modelLayer, std::vector< osgEarth::TileKey > &)
 

Protected Member Functions

 DtOsgEarthCacheEstimator ()
 
virtual
osgEarth::FeatureModelGraph * 
findFeatureModelGraph (osgEarth::MapNode *mapNode, osgEarth::ModelLayer *modelLayer)
 
virtual void getIntersectTileInModelLayer (int lod, std::vector< osgEarth::TileKey > &tiles, const osgEarth::Profile *profile)
 
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 &)
 
DtOsgEarthCacheEstimatoroperator= (const DtOsgEarthCacheEstimator &)
 

Friends

class DtOsgEarthCacheEstimatorCreator
 

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 Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)