VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthAddModelLayerInterface.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #if OSGEARTH_UPGRADE_GOOD
7 
11 
12 #pragma once
13 
15 #include <vrvUtil/DtUnicode.h>
16 
17 namespace makVrv
18 {
23  class DT_DLL_VRVTERRAINEDITOR DtOsgEarthAddModelLayerInterface
24  {
25  public:
26 
28  enum LayerSource
29  {
30  //OGC Web Feature Service
31  WFS,
32  //Tiled Feature Service
33  TFS,
34  //OGR Simple Feature Library
35  OGR,
36  Unknown
37  };
38 
41  class VrTheWorldFeatureInfo
42  {
43  public:
44 
46  VrTheWorldFeatureInfo();
47 
54  VrTheWorldFeatureInfo(const std::string& name, const DtUnicode& url, const std::string& description,
55  int maxLevel, int type);
56 
59  void setName(const std::string& name);
60 
62  std::string name() const;
63 
66  void setUrl(const DtUnicode& url);
67 
69  DtUnicode url() const;
70 
73  void setDescription(const std::string& description);
74 
76  std::string description() const;
77 
80  void setMaxLevel(int maxLevel);
81 
83  int maxLevel() const;
84 
87  void setType(int type);
88 
90  int type() const;
91 
92  protected:
93 
94  std::string myName;
95  DtUnicode myUrl;
96  std::string myDecription;
97  int myMaxLevel;
98  int myType;
99  };
100 
101  typedef std::map<std::string, VrTheWorldFeatureInfo> FeaturesMap;
102 
104  virtual void resetWidgets() = 0;
105 
106  public:
107 
113  boost::signalslib::signal<void(const std::string& name, const std::string& driver, const DtUnicode& url, const std::string& wfsType)> signal_osgEarthModelLayerDataRequestAdded;
114  };
115 }
116 
117 #endif
Contains DLL export macros.
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)