14 #include <osgEarth/Bounds>
15 #include <osgEarth/Progress>
16 #include <osgEarth/GeoData>
34 class FeatureModelGraph;
42 class DtOsgEarthCacheEstimator;
43 class DtOsgEarthCacheProgressCallback;
53 friend class DtWidgetProgressCallback;
59 virtual void setMapNode(osgEarth::MapNode* mapNode);
62 virtual void setLowestLOD(
int lowestLOD);
65 virtual void setHighestLOD(
int highestLOD);
68 virtual void setBound(
const osgEarth::Bounds& bound);
73 virtual void getEstimateInfo(
double& time,
double&
size);
77 virtual const std::vector<std::string>& imageLayers();
81 virtual const std::vector<std::string>& elevationLayers();
85 virtual std::vector<std::string> modelLayers();
91 virtual void startCache();
98 virtual void cancelCache();
102 virtual bool isFinished();
106 virtual bool isCanceled();
110 virtual void setSkipImageLayers(
bool skip);
114 virtual void setSkipElevationLayers(
bool skip);
118 virtual void setSkipModelLayers(
bool skip);
139 virtual void cacheModelLayers();
142 virtual void cacheModelLayer(osgEarth::ModelLayer* modelLayer);
147 virtual osgEarth::GeoExtent getModelLayerExtent(osgEarth::Features::FeatureModelGraph* featureModelGraph);
152 virtual osgEarth::Features::FeatureModelGraph* findFeatureModelGraph(osgEarth::ModelLayer* modelLayer);
155 virtual void discoverModelLayers();
160 virtual void cacheModelLayerImplementation(osgEarth::TaskService* service, osgEarth::ModelLayer* modelLayer);
198 void setCurrentLayName(
const DtUnicode& name);
203 void startCacheModelLayer(
int tiles,
const DtUnicode& name);
209 void increaseModelLayerProgress();
218 virtual bool reportProgress(
221 unsigned currentStage,
222 unsigned totalStages,
223 const std::string& msg);