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;
77 static DtFeatureSet* CreateFeatureSetFromFile(std::string file);
84 DtFeatureSet*
set, std::string attribute, std::string value);
86 static std::auto_ptr<DtFeatureSet> ConfigureAttribute(
87 std::auto_ptr<DtFeatureSet>
set, std::string attribute, std::string value);
93 virtual bool loadSrcSpecConfigFor(std::string sourceFile, std::string attribute);
102 virtual bool loadConfig(std::string configFile,
DtQuery schema);
108 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(std::string file,
bool page=
true);
115 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(
116 osg::ref_ptr<osgEarth::Map> map,
117 std::string earthfile=std::string(),
bool page=
true);
123 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(
DtFeatureSet* fs,
bool page=
true);
129 virtual std::auto_ptr<DtFeatureSet> addVectorNetworkFeatureSource(
130 DtVectorNetwork* network, std::string sourceFile);
138 virtual std::auto_ptr<DtFeatureSet> addFeatureSource(
145 void addToDebugger(
DtFeatureSet* fs,
bool draw =
false, std::string label = std::string());
148 boost::shared_ptr<DtAttributeConfigParser> parser()
const;
151 boost::shared_ptr<DtTerrainInterfaceConfig> config()
const;
154 boost::shared_ptr<DtUnusedFeatureTileTracker> tracker()
const;
157 boost::shared_ptr<DtFeaturesDebugger> debugger()
const;
160 boost::shared_ptr<LoadingQueue> loadingQueue()
const;
172 typedef boost::shared_ptr<Record>
Ptr;
182 boost::shared_ptr<DtAttributeConfigParser>
myParser;
214 std::auto_ptr<DtFeatureSet> features(
215 std::string queryName = std::string(),
216 bool readDirectly =
false);
220 std::auto_ptr<DtObstacleFeatureSet> obstacles(std::string type);
227 std::auto_ptr<DtObstacleFeatureSet> obstacles(
ObstacleConfig cfg);
230 std::auto_ptr<DtPathFeatureSet> paths(std::string type);
239 DtQuery findQuery(std::string name)
const;
247 void cleanUpPathFinders();