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
|
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.
|
Detailed Description
DtOsgEarthCache - This class wraps the osgEarth::cache tool.
Constructor & Destructor Documentation
| virtual makVrv::DtOsgEarthCache::~DtOsgEarthCache |
( |
| ) |
|
|
virtual |
| makVrv::DtOsgEarthCache::DtOsgEarthCache |
( |
| ) |
|
|
private |
Private default constructor not implimented.
Copy Constructor not implimented – Copy not allowed.
| makVrv::DtOsgEarthCache::DtOsgEarthCache |
( |
DtDe & |
de | ) |
|
|
protected |
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
-
| time | estimation time in seconds |
| size | estimation 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 |
| virtual void makVrv::DtOsgEarthCache::startCache |
( |
| ) |
|
|
virtual |
| 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
-
| skip | if 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
-
| skip | if 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
-
| skip | if true, it will skip caching model layers |
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 |
| virtual osgEarth::GeoExtent makVrv::DtOsgEarthCache::getModelLayerExtent |
( |
osgEarth::Features::FeatureModelGraph * |
featureModelGraph | ) |
|
|
protectedvirtual |
Gets the model layer extent.
- Parameters
-
| featureModelGraph | The 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
-
| modelLayer | The 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
-
| service | The osgEarth::TaskService for handling caching this model layer |
| modelLayer | The osgEarth::ModelLayer |
Friends And Related Function Documentation
| 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 |
| osgEarth::CacheSeed* makVrv::DtOsgEarthCache::myCacheSeed |
|
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:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.tot/include/vrvOsgEarth/DtOsgEarthCache.h