GlobeEngine
geTerrainExample::TerrainExampleTerrainModule Class Reference

#include <TerrainExampleTerrainModule.h>

Inheritance diagram for geTerrainExample::TerrainExampleTerrainModule:
geRaster::TerrainModule

Public Member Functions

 TerrainExampleTerrainModule ()
 
 ~TerrainExampleTerrainModule ()
 
void clear () override
 
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, int _midLoD, int _maxLoD)
 
void loadTriangulationService (std::string _shaderPath, geRaster::TerrainTriangulationInfo _triangulationInfo)
 
void createDebugPlane (std::string _shaderPath)
 
void drawDebugPlanes (std::shared_ptr< ge::Camera > _cam, bool _colored, std::shared_ptr< ge::Camera > _debugcam)
 
- 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 ()
 

Additional Inherited Members

- 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

geTerrainExample::TerrainExampleTerrainModule::TerrainExampleTerrainModule ( )
geTerrainExample::TerrainExampleTerrainModule::~TerrainExampleTerrainModule ( )

Member Function Documentation

void geTerrainExample::TerrainExampleTerrainModule::clear ( )
overridevirtual

Reimplemented from geRaster::TerrainModule.

void geTerrainExample::TerrainExampleTerrainModule::create ( )
void geTerrainExample::TerrainExampleTerrainModule::createDebugPlane ( std::string  _shaderPath)
void geTerrainExample::TerrainExampleTerrainModule::draw ( std::shared_ptr< ge::Camera _cam)
virtual

Reimplemented from geRaster::TerrainModule.

void geTerrainExample::TerrainExampleTerrainModule::drawDebugPlanes ( std::shared_ptr< ge::Camera _cam,
bool  _colored,
std::shared_ptr< ge::Camera _debugcam 
)
void geTerrainExample::TerrainExampleTerrainModule::loadTerrainService ( std::string  _shaderPath,
std::string  _terrainUrl,
std::string  _texUrl,
int  _midLoD,
int  _maxLoD 
)
void geTerrainExample::TerrainExampleTerrainModule::loadTriangulationService ( std::string  _shaderPath,
geRaster::TerrainTriangulationInfo  _triangulationInfo 
)
void geTerrainExample::TerrainExampleTerrainModule::update ( std::shared_ptr< ge::Camera _cam)
virtual
void geTerrainExample::TerrainExampleTerrainModule::updateQuadtree ( std::shared_ptr< ge::Camera _cam)

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