GlobeEngine
geHikingViewer::HikingTerrainModule Class Reference

#include <HikingTerrainModule.h>

Inheritance diagram for geHikingViewer::HikingTerrainModule:
geRaster::TerrainModule

Public Member Functions

 HikingTerrainModule ()
 
 ~HikingTerrainModule ()
 
void clear ()
 
void create ()
 
void update (std::shared_ptr< ge::Camera > _cam)
 
void updateQuadtree (std::shared_ptr< ge::Camera > _cam)
 
void draw (std::shared_ptr< ge::Camera > _cam)
 
void loadTerrainService (std::string _shaderPath, std::string _terrainUrl, std::string _texUrl, float _heightScale)
 
void switchTerrainShader (std::string _shaderPath)
 
bool isDangerEnabled ()
 
void switchDanger ()
 
void setDangerHeight (float h)
 
float getDangerHeight ()
 
void enableNorthSouth (bool e)
 
void setDangerOrientation (float o)
 
int getRiskLevel ()
 
void setRiskLevel (int level)
 
void setHikingDangerSection (float s)
 
- Public Member Functions inherited from geRaster::TerrainModule
 TerrainModule ()
 
virtual ~TerrainModule ()
 
void createBasicSetup (double _scale)
 
void createBintree (short _lod, double _distLod, double _heightScale, std::shared_ptr< ge::Shader > _shader, geRaster::KPatchBase::PatchMode _mode, vmml::Vector3d _pos, std::string _name)
 
void createQuadPatchTree (geRaster::TerrainTriangulationInfo _triangulationInfo, std::shared_ptr< ge::Shader > _shader, vmml::Vector3d _pos, std::string _name, geRaster::TerrainVis::VisualizationMode _mode)
 
void createQuadtree (vmml::Vector2d _zeropos, double _scale)
 
int addTileMapService (int _minLod, int _maxLod, std::string _url, enum geRaster::TerrainVis::Layertype _type)
 
void updateGeometry (vmml::Vector3d _center)
 
void setVisualizationMode (geRaster::TerrainVis::VisualizationMode _mode)
 
bool isModuleActive ()
 
void rescale (float _in)
 
std::shared_ptr< geRaster::MBlockQuadtreegetElevationQuadtree ()
 
std::shared_ptr< geRaster::KPatchBintreegetBintree ()
 
std::string getName ()
 
void recompileShader ()
 
void printElevationQuadtreeInfo ()
 
void printElevationBintreeInfo ()
 

Protected Attributes

std::shared_ptr< geRaster::TerrainMessageQueuetileServiceProvider
 
int selectedShader
 
std::shared_ptr< ge::ShaderprogramForTerrain
 
std::shared_ptr< ge::ShaderprogramForTerrainRiskAnalysis
 
- Protected Attributes inherited from geRaster::TerrainModule
std::shared_ptr< geRaster::MBlockQuadtreequadtree
 
std::vector< tileService::TileMapService * > tmslist
 
geRaster::TerrainTriangulationInfo technique
 
std::shared_ptr< geRaster::KPatchBintreebintree
 
std::shared_ptr< geRaster::QuadPatchFieldquadpatchfield
 
float heightScale
 
bool loadTexture
 

Constructor & Destructor Documentation

geHikingViewer::HikingTerrainModule::HikingTerrainModule ( )
geHikingViewer::HikingTerrainModule::~HikingTerrainModule ( )

Member Function Documentation

void geHikingViewer::HikingTerrainModule::clear ( )
virtual

Reimplemented from geRaster::TerrainModule.

void geHikingViewer::HikingTerrainModule::create ( )
void geHikingViewer::HikingTerrainModule::draw ( std::shared_ptr< ge::Camera _cam)
virtual

Reimplemented from geRaster::TerrainModule.

void geHikingViewer::HikingTerrainModule::enableNorthSouth ( bool  e)
float geHikingViewer::HikingTerrainModule::getDangerHeight ( )
int geHikingViewer::HikingTerrainModule::getRiskLevel ( )
bool geHikingViewer::HikingTerrainModule::isDangerEnabled ( )
void geHikingViewer::HikingTerrainModule::loadTerrainService ( std::string  _shaderPath,
std::string  _terrainUrl,
std::string  _texUrl,
float  _heightScale 
)
void geHikingViewer::HikingTerrainModule::setDangerHeight ( float  h)
void geHikingViewer::HikingTerrainModule::setDangerOrientation ( float  o)
void geHikingViewer::HikingTerrainModule::setHikingDangerSection ( float  s)
void geHikingViewer::HikingTerrainModule::setRiskLevel ( int  level)
void geHikingViewer::HikingTerrainModule::switchDanger ( )
void geHikingViewer::HikingTerrainModule::switchTerrainShader ( std::string  _shaderPath)
void geHikingViewer::HikingTerrainModule::update ( std::shared_ptr< ge::Camera _cam)
virtual
void geHikingViewer::HikingTerrainModule::updateQuadtree ( std::shared_ptr< ge::Camera _cam)

Member Data Documentation

std::shared_ptr<ge::Shader> geHikingViewer::HikingTerrainModule::programForTerrain
protected
std::shared_ptr<ge::Shader> geHikingViewer::HikingTerrainModule::programForTerrainRiskAnalysis
protected
int geHikingViewer::HikingTerrainModule::selectedShader
protected
std::shared_ptr<geRaster::TerrainMessageQueue> geHikingViewer::HikingTerrainModule::tileServiceProvider
protected

The documentation for this class was generated from the following files: