VR-Forces 4.1.1 Class Documentation
osgEarthFeatureSet.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <features/feature.h>
4 #include <features/featureSet.h>
5 
6 #include <osgEarth/Map>
7 #include <osgEarthFeatures/FeatureSource>
8 #include <osgEarthSymbology/Query>
9 #include <osgEarth/MapNode>
10 
11 namespace MAKVRinTerra
12 {
14  {
15  public:
16  typedef osg::ref_ptr<osgEarth::Features::Feature> OsgEarthFeaturePtr;
17 
18  static const char* LayerAttribute;
19 
20  DtOsgEarthFeature(OsgEarthFeaturePtr, const DtProj&, std::string layerName);
21 
22  unsigned numberOfAttributes(const Key::String&) const;
23 
24  boost::optional<Attribute> attribute(const Key &) const;
25 
26  DtFeatureGeometry geometry() const;
27 
28  void forEachAttribute(ForEachFunction) const;
29 
30  private:
33  std::string myLayerName;
34  };
35 
37  {
38  public:
39  typedef std::set<DtFeature::Key> AttributeSet;
40 
41  static void SetMaxNetworkThreads(unsigned);
42 
43  static DtFeatureSet* MakeMap(const osgEarth::Map& map);
44  static DtFeatureSet* MakeWFS(std::string url, std::string layer);
45  static DtFeatureSet* Make(const osgEarth::Features::FeatureSourceOptions &);
46 
47  explicit DtOsgEarthFeatureSet(
48  const osgEarth::Features::FeatureSourceOptions&,
49  const osgEarth::Symbology::Query& = osgEarth::Symbology::Query());
50 
51  void forEachFeature(ForEachFunction, DtWaitType) const;
52  DtFeatureSet* filter(const DtQuery&, DtLoadType) const;
53  DtFeatureSet* clone() const;
54  DtQuery schema() const;
55  bool loaded(double) const;
56 
57  private:
58  DtOsgEarthFeatureSet(const DtOsgEarthFeatureSet&, const osgEarth::Symbology::Query&);
60 
61  osg::ref_ptr<osgEarth::Features::FeatureSource> myFeatureSource;
63  osgEarth::Symbology::Query myQuery;
64  std::string myLayerName;
67  };
68 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)