24 #include <boost/scoped_ptr.hpp>
25 #include <boost/ptr_container/ptr_map.hpp>
27 #include <tbb/mutex.h>
32 class DtVectorNetwork;
45 namespace MAKVRinTerra
47 class DtSharedMemoryFeaturesDebugDrawer;
48 class DtFeatureContext;
49 class DtFeaturesDebugger;
50 class DtUnusedFeatureTileTracker;
78 static DtFeatureSet* CreateFeatureSetFromFile(std::string file);
85 DtFeatureSet*
set, std::string attribute, std::string value);
87 static std::auto_ptr<DtFeatureSet> ConfigureAttribute(
88 std::auto_ptr<DtFeatureSet>
set, std::string attribute, std::string value);
99 virtual bool loadSrcSpecConfigFor(std::string sourceFile, std::string attribute);
108 virtual bool loadConfig(std::string configFile,
DtQuery schema);
114 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(std::string file,
bool page=
true);
121 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(
122 osg::ref_ptr<osgEarth::Map> map,
123 std::string earthfile=std::string(),
bool page=
true);
129 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(
DtFeatureSet* fs,
bool page=
true);
136 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(
144 virtual std::auto_ptr<DtFeatureSet> addVectorNetworkFeatureSource(
145 DtVectorNetwork* network, std::string sourceFile);
153 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(
159 void addToDebugger(
DtFeatureSet* fs,
bool draw =
false);
165 boost::shared_ptr<DtAttributeConfigParser> parser()
const;
168 boost::shared_ptr<DtUnusedFeatureTileTracker> tracker()
const;
171 boost::shared_ptr<DtFeaturesDebugger> debugger()
const;
174 boost::shared_ptr<LoadingQueue> loadingQueue()
const;
182 virtual std::auto_ptr<DtFeatureSet> features(
const std::string& queryName)
const;
185 virtual std::auto_ptr<DtFeatureSet> allFeatures()
const;
193 typedef boost::shared_ptr<Record>
Ptr;
205 boost::shared_ptr<DtAttributeConfigParser>
myParser;
228 void shutdown(
bool block =
true);
232 std::auto_ptr<DtFeatureSet> features(
const std::string& queryName)
const;
235 std::auto_ptr<DtFeatureSet> allFeatures()
const;
239 std::auto_ptr<DtAreaFeatureSet> areas(
240 const std::string& type,
241 const boost::shared_ptr<DtCallbackQueue>& = boost::shared_ptr<DtCallbackQueue>());
248 std::auto_ptr<DtAreaFeatureSet> areas(
250 const boost::shared_ptr<DtCallbackQueue>& = boost::shared_ptr<DtCallbackQueue>());
253 std::auto_ptr<DtPathFeatureSet> paths(std::string type);
264 void cleanUpPathFinders();