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

DtOsgEarthCache - This class wraps the osgEarth::cache tool. More...

Public Member Functions

virtual ~DtOsgEarthCache ()
 DTOR.
virtual void setMapNode (osgEarth::MapNode *mapNode)
 Set the MapNode that forms the root of an osgEarth map.
virtual void setLowestLOD (int lowestLOD)
 Sets the lowest LOD to cache,only applies for image and elevation layers.
virtual void setHighestLOD (int highestLOD)
 Sets the highest LOD to cache,only applies for image and elevation layers.
virtual void setBound (const osgEarth::Bounds &bound)
 Sets the Bound of the selected area.
virtual void getEstimateInfo (double &time, double &size)
 Gets the estimation of caching.
virtual const std::vector
< std::string > & 
imageLayers ()
 Gets the names of the image layers.
virtual const std::vector
< std::string > & 
elevationLayers ()
 Gets the names of the elevation layers.
virtual std::vector< std::string > modelLayers ()
 Gets the names of the model layers.
virtual void reset ()
 Reset.
virtual void startCache ()
 Starts the cache.
virtual DtUnicode currentLayerName ()
 Gets the name of the current processing layer.
virtual void cancelCache ()
 Force the cache to cancel.
virtual bool isFinished ()
 return whether cache is finished.
virtual bool isCanceled ()
 return whether cache is canceled.
virtual void setSkipImageLayers (bool skip)
 set whether skip the cache of the image layers
virtual void setSkipElevationLayers (bool skip)
 set whether skip the cache of the image layers
virtual void setSkipModelLayers (bool skip)
 set whether skip the cache of the image layers

Public Attributes

boost::signal< void(int)> signal_updateProgress
 signal to emit when updating the progress(0-100)
boost::signal< void()> signal_cacheFinished
 signal to emit when cache finished

Protected Member Functions

 DtOsgEarthCache (DtDe &de)
 Protected Constructor.
virtual void cacheModelLayers ()
 Caches all the model layers.
virtual void cacheModelLayer (osgEarth::ModelLayer *modelLayer)
 Cache the model layer.
virtual osgEarth::GeoExtent getModelLayerExtent (osgEarth::Features::FeatureModelGraph *featureModelGraph)
 Gets the model layer extent.
virtual
osgEarth::Features::FeatureModelGraph * 
findFeatureModelGraph (osgEarth::ModelLayer *modelLayer)
 Gets the feature model graph under this model layer.
virtual void discoverModelLayers ()
 find the current intersected model layers.
virtual void cacheModelLayerImplementation (osgEarth::TaskService *service, osgEarth::ModelLayer *modelLayer)
 Caches the model layer using mutil thread,implementation of cacheModelLayer.

Protected Attributes

DtDemyDe
osgEarth::Bounds myBound
osgEarth::MapNode * myMapNode
osgEarth::TileVisitor * myTileVisitor
DtOsgEarthCacheProgressCallbackmyProgressCallback
osgEarth::CacheSeed * myCacheSeed
DtOsgEarthCacheEstimatormyCacheEstimator
int myLowestLOD
int myHighestLOD
bool myCanceled
bool myFinished
bool mySkipImageLayers
bool mySkipElevationLayers
bool mySkipModelLayers
std::vector< std::string > myImageLayers
std::vector< std::string > myElevationLayers
std::vector
< osgEarth::ModelLayer * > 
myIntersectModelLayers

Private Member Functions

 DtOsgEarthCache ()
 Private default constructor not implimented.
 DtOsgEarthCache (const DtOsgEarthCache &)
 Copy Constructor not implimented – Copy not allowed.
DtOsgEarthCacheoperator= (const DtOsgEarthCache &)
 Assignment Operator not implimented – Copy not allowed.

Friends

class DtOsgEarthCacheCreator
class DtWidgetProgressCallback

Detailed Description

DtOsgEarthCache - This class wraps the osgEarth::cache tool.

Constructor & Destructor Documentation

virtual makVrv::DtOsgEarthCache::~DtOsgEarthCache ( )
virtual

DTOR.

makVrv::DtOsgEarthCache::DtOsgEarthCache ( )
private

Private default constructor not implimented.

makVrv::DtOsgEarthCache::DtOsgEarthCache ( const DtOsgEarthCache )
private

Copy Constructor not implimented – Copy not allowed.

makVrv::DtOsgEarthCache::DtOsgEarthCache ( DtDe de)
protected

Protected Constructor.

Use DtOsgEarthCacheCreator to create instances of this class

Member Function Documentation

virtual void makVrv::DtOsgEarthCache::setMapNode ( osgEarth::MapNode *  mapNode)
virtual

Set the MapNode that forms the root of an osgEarth map.

virtual void makVrv::DtOsgEarthCache::setLowestLOD ( int  lowestLOD)
virtual

Sets the lowest LOD to cache,only applies for image and elevation layers.

virtual void makVrv::DtOsgEarthCache::setHighestLOD ( int  highestLOD)
virtual

Sets the highest LOD to cache,only applies for image and elevation layers.

virtual void makVrv::DtOsgEarthCache::setBound ( const osgEarth::Bounds &  bound)
virtual

Sets the Bound of the selected area.

virtual void makVrv::DtOsgEarthCache::getEstimateInfo ( double time,
double size 
)
virtual

Gets the estimation of caching.

Parameters
timeestimation time in seconds
sizeestimation size in Mbs
virtual const std::vector<std::string>& makVrv::DtOsgEarthCache::imageLayers ( )
virtual

Gets the names of the image layers.

Returns
std::vector of the image layer names
virtual const std::vector<std::string>& makVrv::DtOsgEarthCache::elevationLayers ( )
virtual

Gets the names of the elevation layers.

Returns
std::vector of the elevation layer names
virtual std::vector<std::string> makVrv::DtOsgEarthCache::modelLayers ( )
virtual

Gets the names of the model layers.

Returns
std::vector of the model layer names
virtual void makVrv::DtOsgEarthCache::reset ( )
virtual

Reset.

virtual void makVrv::DtOsgEarthCache::startCache ( )
virtual

Starts the cache.

virtual DtUnicode makVrv::DtOsgEarthCache::currentLayerName ( )
virtual

Gets the name of the current processing layer.

Returns
The name of the current processing layer
virtual void makVrv::DtOsgEarthCache::cancelCache ( )
virtual

Force the cache to cancel.

virtual bool makVrv::DtOsgEarthCache::isFinished ( )
virtual

return whether cache is finished.

Returns
return true if cache is finished,otherwise return false
virtual bool makVrv::DtOsgEarthCache::isCanceled ( )
virtual

return whether cache is canceled.

Returns
return true if cache is canceled,otherwise return false
virtual void makVrv::DtOsgEarthCache::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::DtOsgEarthCache::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::DtOsgEarthCache::setSkipModelLayers ( bool  skip)
virtual

set whether skip the cache of the image layers

Parameters
skipif true, it will skip caching model layers
DtOsgEarthCache& makVrv::DtOsgEarthCache::operator= ( const DtOsgEarthCache )
private

Assignment Operator not implimented – Copy not allowed.

virtual void makVrv::DtOsgEarthCache::cacheModelLayers ( )
protectedvirtual

Caches all the model layers.

virtual void makVrv::DtOsgEarthCache::cacheModelLayer ( osgEarth::ModelLayer *  modelLayer)
protectedvirtual

Cache the model layer.

virtual osgEarth::GeoExtent makVrv::DtOsgEarthCache::getModelLayerExtent ( osgEarth::Features::FeatureModelGraph *  featureModelGraph)
protectedvirtual

Gets the model layer extent.

Parameters
featureModelGraphThe osgEarth::Features::FeatureModelGraph
Returns
The osgEarth::GeoExtent of this feature model graph
virtual osgEarth::Features::FeatureModelGraph* makVrv::DtOsgEarthCache::findFeatureModelGraph ( osgEarth::ModelLayer *  modelLayer)
protectedvirtual

Gets the feature model graph under this model layer.

Parameters
modelLayerThe osgEarth::ModelLayer pointer
Returns
osgEarth::Features::FeatureModelGraph*
virtual void makVrv::DtOsgEarthCache::discoverModelLayers ( )
protectedvirtual

find the current intersected model layers.

virtual void makVrv::DtOsgEarthCache::cacheModelLayerImplementation ( osgEarth::TaskService *  service,
osgEarth::ModelLayer *  modelLayer 
)
protectedvirtual

Caches the model layer using mutil thread,implementation of cacheModelLayer.

Parameters
serviceThe osgEarth::TaskService for handling caching this model layer
modelLayerThe osgEarth::ModelLayer

Friends And Related Function Documentation

friend class DtOsgEarthCacheCreator
friend
friend class DtWidgetProgressCallback
friend

Member Data Documentation

boost::signal<void(int)> makVrv::DtOsgEarthCache::signal_updateProgress

signal to emit when updating the progress(0-100)

boost::signal<void()> makVrv::DtOsgEarthCache::signal_cacheFinished

signal to emit when cache finished

DtDe& makVrv::DtOsgEarthCache::myDe
protected
osgEarth::Bounds makVrv::DtOsgEarthCache::myBound
protected
osgEarth::MapNode* makVrv::DtOsgEarthCache::myMapNode
protected
osgEarth::TileVisitor* makVrv::DtOsgEarthCache::myTileVisitor
protected
DtOsgEarthCacheProgressCallback* makVrv::DtOsgEarthCache::myProgressCallback
protected
osgEarth::CacheSeed* makVrv::DtOsgEarthCache::myCacheSeed
protected
DtOsgEarthCacheEstimator* makVrv::DtOsgEarthCache::myCacheEstimator
protected
int makVrv::DtOsgEarthCache::myLowestLOD
protected
int makVrv::DtOsgEarthCache::myHighestLOD
protected
bool makVrv::DtOsgEarthCache::myCanceled
protected
bool makVrv::DtOsgEarthCache::myFinished
protected
bool makVrv::DtOsgEarthCache::mySkipImageLayers
protected
bool makVrv::DtOsgEarthCache::mySkipElevationLayers
protected
bool makVrv::DtOsgEarthCache::mySkipModelLayers
protected
std::vector<std::string> makVrv::DtOsgEarthCache::myImageLayers
protected
std::vector<std::string> makVrv::DtOsgEarthCache::myElevationLayers
protected
std::vector<osgEarth::ModelLayer*> makVrv::DtOsgEarthCache::myIntersectModelLayers
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)