12 #include <osgEarth/Bounds>
13 #include <osgEarth/Progress>
14 #include <osgEarth/GeoData>
32 class FeatureModelGraph;
40 class DtOsgEarthCacheEstimator;
41 class DtOsgEarthCacheProgressCallback;
51 friend class DtWidgetProgressCallback;
57 virtual void setMapNode(osgEarth::MapNode* mapNode);
60 virtual void setLowestLOD(
int lowestLOD);
63 virtual void setHighestLOD(
int highestLOD);
66 virtual void setBound(
const osgEarth::Bounds& bound);
71 virtual void getEstimateInfo(
double& time,
double&
size);
75 virtual const std::vector<std::string>& imageLayers();
79 virtual const std::vector<std::string>& elevationLayers();
83 virtual std::vector<std::string> modelLayers();
89 virtual void startCache();
96 virtual void cancelCache();
100 virtual bool isFinished();
104 virtual bool isCanceled();
108 virtual void setSkipImageLayers(
bool skip);
112 virtual void setSkipElevationLayers(
bool skip);
116 virtual void setSkipModelLayers(
bool skip);
137 virtual void cacheModelLayers();
140 virtual void cacheModelLayer(osgEarth::ModelLayer* modelLayer);
145 virtual osgEarth::GeoExtent getModelLayerExtent(osgEarth::Features::FeatureModelGraph* featureModelGraph);
150 virtual osgEarth::Features::FeatureModelGraph* findFeatureModelGraph(osgEarth::ModelLayer* modelLayer);
153 virtual void discoverModelLayers();
158 virtual void cacheModelLayerImplementation(osgEarth::TaskService* service, osgEarth::ModelLayer* modelLayer);
196 void setCurrentLayName(
const DtUnicode& name);
201 void startCacheModelLayer(
int tiles,
const DtUnicode& name);
207 void increaseModelLayerProgress();
216 virtual bool reportProgress(
219 unsigned currentStage,
220 unsigned totalStages,
221 const std::string& msg);