GlobeEngine
PlanetaryViewerTerrainModule.h
Go to the documentation of this file.
1 
11 #ifndef GlobeEngine_PlanetaryViewerTerrainModule_h
12 #define GlobeEngine_PlanetaryViewerTerrainModule_h
13 
14 #include "OpenGL_Includes.h"
15 #include "TerrainModule.h"
16 #include "TerrainMessageQueue.h"
17 #include "ColorisationTable.h"
18 
19 namespace gePlanetaryViewer {
20 
22  {
23  public:
26  void clear();
27  void create();
28  void update(std::shared_ptr<ge::Camera> _cam);
29  void updateQuadtree(std::shared_ptr<ge::Camera> _cam);
30  void draw(std::shared_ptr<ge::Camera> _cam);
31  void loadTerrainService(std::string _shaderPath,
32  std::string _terrainUrl, std::string _texUrl, int _midLoD, int _maxLoD, float _heightScale);
33 
34  private:
35  void updateGeometryForPosition(std::shared_ptr<ge::Camera> _cam);
36 
40  void loadElevationTile(int _tmsid, const std::shared_ptr<geSpatial::Tile> _tile);
41  void loadTextureTile(int _tmsid, const std::shared_ptr<geSpatial::Tile> _tile);
42 
43  void setupTileService(int _cacheSize);
44  void requestInitialTMSTiles(int _tmsid);
45  void getTilesFromTileService(int _tmsid);
46 
47  private:
48  //ge::MessageQueue* tileServiceProvider;
49  std::shared_ptr<geRaster::TerrainMessageQueue> tileServiceProvider;
50  std::shared_ptr<ge::Shader> programForTerrain;
51 
52  };
53 }
54 #endif
PlanetaryViewerTerrainModule()
Definition: PlanetaryViewerTerrainModule.cpp:12
~PlanetaryViewerTerrainModule()
Definition: PlanetaryViewerTerrainModule.cpp:17
void update(std::shared_ptr< ge::Camera > _cam)
Definition: PlanetaryViewerTerrainModule.cpp:95
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: PlanetaryViewerTerrainModule.cpp:142
Definition: TerrainModule.h:24
Definition: PlanetaryViewerTerrainModule.h:21
Definition: PlanetaryViewerComposition.h:6
void create()
Definition: PlanetaryViewerTerrainModule.cpp:27
void updateQuadtree(std::shared_ptr< ge::Camera > _cam)
Definition: PlanetaryViewerTerrainModule.cpp:75
void loadTerrainService(std::string _shaderPath, std::string _terrainUrl, std::string _texUrl, int _midLoD, int _maxLoD, float _heightScale)
Definition: PlanetaryViewerTerrainModule.cpp:33
void clear()
Definition: PlanetaryViewerTerrainModule.cpp:22