VR-Forces Developer's Guide
 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) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 // The Terrain Editor had a bunch of functionality that was lost when we moved from OE2.x to OE3.x.
7 // Those functions are some examples of functionality we lost(and hope to restore)
8 #if OSGEARTH_UPGRADE_GOOD
9 
13 
14 #pragma once
15 
17 #include <vrvUtil/DtUnicode.h>
18 
19 namespace makVrv
20 {
25  class DT_DLL_VRVTERRAINEDITOR DtOsgEarthAddModelLayerInterface
26  {
27  public:
28 
30  enum LayerSource
31  {
32  //OGC Web Feature Service
33  WFS,
34  //Tiled Feature Service
35  TFS,
36  //OGR Simple Feature Library
37  OGR,
38  Unknown
39  };
40 
43  class VrTheWorldFeatureInfo
44  {
45  public:
46 
48  VrTheWorldFeatureInfo();
49 
56  VrTheWorldFeatureInfo(const std::string& name, const DtUnicode& url, const std::string& description,
57  int maxLevel, int type);
58 
61  void setName(const std::string& name);
62 
64  std::string name() const;
65 
68  void setUrl(const DtUnicode& url);
69 
71  DtUnicode url() const;
72 
75  void setDescription(const std::string& description);
76 
78  std::string description() const;
79 
82  void setMaxLevel(int maxLevel);
83 
85  int maxLevel() const;
86 
89  void setType(int type);
90 
92  int type() const;
93 
94  protected:
95 
96  std::string myName;
97  DtUnicode myUrl;
98  std::string myDecription;
99  int myMaxLevel;
100  int myType;
101  };
102 
103  typedef std::map<std::string, VrTheWorldFeatureInfo> FeaturesMap;
104 
106  virtual void resetWidgets() = 0;
107 
108  public:
109 
115  boost::signalslib::signal<void(const std::string& name, const std::string& driver, const DtUnicode& url, const std::string& wfsType)> signal_osgEarthModelLayerDataRequestAdded;
116  };
117 }
118 
119 #endif
Contains DLL export macros.
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)