VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthAddTerrainLayerInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrvUtil/DtUnicode.h>
14 
15 namespace makVrv
16 {
22  {
23  public:
24 
27  {
29  Elevation
30  };
31 
35  {
36  public:
37 
40 
48  VrTheWorldLayerInfo(const std::string& name, const DtUnicode& url, int tileSize, const std::string& decription,
49  int maxLevel, int type);
50 
53  void setName(const std::string& name);
54 
56  std::string name() const;
57 
60  void setUrl(const DtUnicode& url);
61 
63  DtUnicode url() const;
64 
67  void setDescription(const std::string& description);
68 
70  std::string description() const;
71 
74  void setTileSize(int tileSize);
75 
77  int tileSize() const;
78 
81  void setType(int type);
82 
84  int type() const;
85 
86  protected:
87 
88  std::string myName;
90  std::string myDecription;
93  int myType;
94  };
95 
98  {
101  FromWeb
102  };
103 
104 
105  typedef std::map<std::string, VrTheWorldLayerInfo> LayersMap;
106 
109  virtual void resetWidgets() = 0;
110 
113  virtual void setLayerType(int type) = 0;
114 
115  public:
116 
122  boost::signalslib::signal<void(int type, const std::string& name, const std::string& driver, const DtUnicode& url)> signal_osgEarthTerrainLayerRequestAdded;
123  };
124 }
Contains DLL export macros.
boost::signalslib::signal< void(int type, const std::string &name, const std::string &driver, const DtUnicode &url)> signal_osgEarthTerrainLayerRequestAdded
Signal emits when a terrain layer has been added through the gui.
Definition: DtOsgEarthAddTerrainLayerInterface.h:122
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
TerrainLayerType
The type of the terrain layer.
Definition: DtOsgEarthAddTerrainLayerInterface.h:26
Definition: DtOsgEarthAddTerrainLayerInterface.h:28
VrTheWorldLayerInfo The convenient class to store the information of image/elevation layer that comes...
Definition: DtOsgEarthAddTerrainLayerInterface.h:34
std::map< std::string, VrTheWorldLayerInfo > LayersMap
Definition: DtOsgEarthAddTerrainLayerInterface.h:105
DtOsgEarthAddTerrainLayerInterface.
Definition: DtOsgEarthAddTerrainLayerInterface.h:21
std::string myDecription
Definition: DtOsgEarthAddTerrainLayerInterface.h:90
int myType
Definition: DtOsgEarthAddTerrainLayerInterface.h:93
int myMaxLevel
Definition: DtOsgEarthAddTerrainLayerInterface.h:92
Definition: DtOsgEarthAddTerrainLayerInterface.h:100
Definition: DtOsgEarthAddTerrainLayerInterface.h:99
int myTileSize
Definition: DtOsgEarthAddTerrainLayerInterface.h:91
DtUnicode myUrl
Definition: DtOsgEarthAddTerrainLayerInterface.h:89
LayerSource
The source of the terrain layer.
Definition: DtOsgEarthAddTerrainLayerInterface.h:97
std::string myName
Definition: DtOsgEarthAddTerrainLayerInterface.h:88
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)