GlobeEngine
NamesObject.h
Go to the documentation of this file.
1 
9 #ifndef GlobeEngine_NamesObject_h
10 #define GlobeEngine_NamesObject_h
11 
12 #include <vector>
13 #include "OpenGL_Includes.h"
14 #include "PointFeatureObject.h"
15 #include "SceneBluePrint.h"
16 #include "Texture.h"
17 
18 namespace geGIS {
19 
21  {
22 
23  public:
24  NamesObject();
25  ~NamesObject();
26  void clear();
27  void create(std::shared_ptr<NamesBlueprint> _blueprint, std::shared_ptr<ReferenceSystem> _referenceSystem);
28  void loadData(std::string filename);
29  double getNameHeight(std::string _input);
30 
31  std::string getNameAt(int _idx);
32  GLuint getTexHandle(int _idx);
33 
34  private:
35  using ge::DrawableComponent::create; // implicitly hidden
36 
37  void loadNamesTable(std::string _filename);
38 
39  std::shared_ptr<NamesBlueprint> blueprint;
40  std::string namestable;
41  std::string heighttable;
42  std::map<std::string, double> namesmap;
43  std::vector<std::string> namesEntries;
44 
45  };
46 }
47 #endif
void loadData(std::string filename)
Definition: NamesObject.cpp:30
Definition: ClusterGrid.h:17
Definition: PointFeatureObject.h:19
Definition: NamesObject.h:20
virtual void create()=0
std::string getNameAt(int _idx)
Definition: NamesObject.cpp:96
NamesObject()
Definition: NamesObject.cpp:6
virtual void create()
Definition: FeatureObject.cpp:47
GLuint getTexHandle(int _idx)
void clear()
Definition: NamesObject.cpp:16
double getNameHeight(std::string _input)
Definition: NamesObject.cpp:85
~NamesObject()
Definition: NamesObject.cpp:11