|  | 
|  | Globe (std::shared_ptr< STK::ShaderProgramManager > shaderManager, const std::shared_ptr< STK::FontManager > &fontManager, std::shared_ptr< LocalOrigin > origin, std::shared_ptr< Maria::SystemTicker >systemTicker, std::shared_ptr< Maria::TileCacheManager > tile_cache_mgr, const Maria3D::Configuration &config) | 
|  | 
| bool | initShaders () | 
|  | 
| void | setMapTemplateXml (const std::string &xml) | 
|  | 
| bool | setMapTemplate (const Maria::MapTemplate &tpl) | 
|  | 
| bool | setElevationTemplateXml (const std::string &xml) | 
|  | 
| bool | setElevationTemplate (const Maria::MapTemplate &tpl) | 
|  | 
| bool | updateAndCull (const STK::Camera &cam, const STK::Viewport &vp) | 
|  | 
| void | drawRenderTiles (const STK::Camera &cam, const std::vector< std::shared_ptr< STK::Uniform > > *uniforms) | 
|  | 
| void | redraw (const STK::Camera &cam, const STK::Viewport &vp, int render_mask=STK::OpaqueMask, const std::vector< std::shared_ptr< STK::Uniform > > *uniforms=nullptr) override | 
|  | 
| void | drawShadowMap (const STK::Camera &cam, const STK::Viewport &vp, const STK::Camera &shd_cam, const STK::Viewport &shd_vp, STK::ShaderProgram *shader, STK::ShaderProgram *tex_shader) override | 
|  | 
| void | calcBoundingSphere (STK::Vector3f ¢er, double &radius) override | 
|  | 
| bool | needsRedraw () const | 
|  | 
| void | calcBoundingBox (STK::Vector3f &min, STK::Vector3f &max) override | 
|  | 
| void | clearRenderData (bool keepCurrentFrame=false) | 
|  | 
| void | clearRenderLists () | 
|  | 
| void | clearGeometryData () | 
|  | 
| const QuadTile * | getRenderRoot () const | 
|  | 
| QuadTile * | findRenderTileLatLon (double lat, double lon, int level) | 
|  | 
| void | setTileErrorScale (float scale) | 
|  | 
| float | getTileErrorScale () const | 
|  | 
| std::shared_ptr< MapTextureData > | getTextureData (QuadTile *tile) | 
|  | 
| std::shared_ptr< TextureData > | getNormalMapData (QuadTile *tile) | 
|  | 
| std::shared_ptr< GeometryData > | getGeometryData (QuadTile *tile) | 
|  | 
| std::shared_ptr< GeometryData > | getReadyGeometryData (QuadTile *tile) | 
|  | 
| std::shared_ptr< GeometryData > | geometryLoadSync (const QuadTile *tile, long timeout_ms=0) | 
|  | 
| std::shared_ptr< GeometryData > | geometryLoadAsync (const QuadTile *tile) | 
|  | 
| std::shared_ptr< TextureData > | normalMapLoadSync (const QuadTile *tile, long timeout_ms=0) | 
|  | 
| std::shared_ptr< TextureData > | normalMapLoadAsync (const QuadTile *tile) | 
|  | 
| double | calcVisualElevation (double lat, double lon, double pixelSize) | 
|  | 
| std::shared_ptr< const LocalOrigin > | getLocalOrigin () const | 
|  | 
| std::shared_ptr< LocalOrigin > | getLocalOrigin () | 
|  | 
| int | getMaxTreeLevel (const QuadCoo &quad) const | 
|  | 
| int | getMaxTreeLevelXY (M3DIntCoord x, M3DIntCoord y) const | 
|  | 
| int | getMaxTextureLevel (const QuadCoo &quad) const | 
|  | 
| int | getMaxNormalMapLevel (const QuadCoo &quad) const | 
|  | 
| void | clearTextureLayer () | 
|  | 
| const std::vector< std::shared_ptr< TileRender > > & | GetCurrentRenderTiles () const | 
|  | 
| std::shared_ptr< MapTextureData > | createTextureData (QuadTile *tile) | 
|  | 
| void | getIndexBuffers (unsigned short renderMask, GLuint *indexBuffers, int *numIndexes) const | 
|  | 
| GLuint | getIndexBuffer (int childId) const | 
|  | Get index buffer ID for child index. 
 | 
|  | 
| int | getIndexBufferSize (int childId) const | 
|  | Get size of index buffer for child index. 
 | 
|  | 
| const std::vector< uint16_t > & | getCollisionIndexArray () const | 
|  | 
| bool | hasOverlay () const | 
|  | 
| std::shared_ptr< Maria::ElevationData > | getElevationData () const | 
|  | 
| void | generateTextures (QuadTile *root, int numChildLevels, long maxTimeMs) | 
|  | 
| void | setMapLabelTemplateXml (const std::string &xml) | 
|  | 
| void | setMapLabelTemplate (const Maria::MapTemplate &tpl) | 
|  | 
| void | drawLabels (const STK::Camera &cam, const STK::Viewport &vp) | 
|  | 
| std::shared_ptr< LabelRenderer > | getLabelRenderer () const | 
|  | 
| bool | calcRayIntersection (const STK::Vector3d &pos, const STK::Vector3d &dir, STK::Vector3d &intersection) | 
|  | 
| void | calcFootprintTextures (const std::shared_ptr< ISceneryModels > &models, std::shared_ptr< FootprintTextureManager > &footprintTextureManager, bool forceFootprintMasking) | 
|  | 
| std::shared_ptr< Maria::SystemTicker > | getSystemTicker () const | 
|  | 
| void | calcIntersectingGeometry (const STK::Vector3d &pos, const STK::Vector3d &dir, std::vector< std::shared_ptr< GeometryData > > &tiles) | 
|  | 
| std::shared_ptr< GeometryData > | calcFinestGeometryTile (double lat, double lon, int maxlevel, bool load_data=true) | 
|  | Get the finest available tile with geometry data in the given location. 
 | 
|  | 
| bool | useHeightAboveEllipsoid () const | 
|  | 
| void | setHeightAboveEllipsoid (bool geoidCorrection) | 
|  | 
| void | setForestData (const Configuration &config, const std::shared_ptr< STK::TextureManager > &texManager) | 
|  | 
| void | setDrawObjectTileRenderer (const std::shared_ptr< Maria::DrawObjectTileRenderer > &drawObjectTileRenderer) | 
|  | 
| std::shared_ptr< Maria::DrawObjectTileRenderer > | getDrawObjectTileRenderer () const | 
|  | 
| void | addDrawObjectTileLayer (const std::shared_ptr< Maria::DrawObjectStore > &shared, const std::shared_ptr< Maria::StyleSet > &styles) | 
|  | 
|  | GraphicsModel (const std::string &name="") | 
|  | 
| void | setName (const std::string &name) | 
|  | 
| const std::string & | getName () const | 
|  | 
| virtual void | filterChildren (const filter_fn &fn, std::vector< std::shared_ptr< GraphicsModel > > &matched) | 
|  | 
| void | setTransform (const STK::Matrix4x4f &transform) | 
|  | 
| const STK::Matrix4x4f & | getTransform () const | 
|  | 
| void | setEnvironmentMap (const std::shared_ptr< STK::CubeMap > &env_map) | 
|  | 
| std::shared_ptr< STK::CubeMap > | getEnvironmentMap () | 
|  | 
| std::shared_ptr< const STK::CubeMap > | getEnvironmentMap () const | 
|  | 
| void | setWireframe (bool wireframe) | 
|  | 
| bool | getWireframe () const | 
|  | 
| void | setInvisible (bool invisible) | 
|  | 
| bool | getInvisible () const | 
|  | 
| void | setCastShadows (bool cast_shadows) | 
|  | 
| bool | getCastShadows () const | 
|  | 
| void | setDebugGraphics (bool debug_gfx) | 
|  | 
| bool | getDebugGraphics () const | 
|  | 
| virtual void | redraw (const STK::Camera &cam, const STK::Viewport &vp, int render_mask=STK::OpaqueMask, const std::vector< std::shared_ptr< STK::Uniform > > *uniforms=nullptr)=0 | 
|  | 
| virtual void | drawShadowMap (const STK::Camera &cam, const STK::Viewport &vp, const STK::Camera &shd_cam, const STK::Viewport &shd_vp, STK::ShaderProgram *shader, STK::ShaderProgram *tex_shader)=0 | 
|  | 
| virtual void | calcBoundingSphere (STK::Vector3f ¢er, double &radius)=0 | 
|  | 
| virtual void | calcBoundingBox (STK::Vector3f &min, STK::Vector3f &max)=0 | 
|  | 
|  | 
| QuadTile * | findTileXY (QuadTile *root_tile, M3DIntCoord x, M3DIntCoord y, int level) | 
|  | 
| void | findFinestGeometryTileXY (QuadTile *tile, M3DIntCoord x, M3DIntCoord y, int level, QuadTile *&best_tile, bool load_data=true) | 
|  | 
| double | calcTileError (const QuadCoo &quad) | 
|  | 
| int | checkTileVisibility (QuadTile *tile, const STK::Camera &cam, int parent_vis) | 
|  | 
| bool | isRenderQuadTreeDirty () const | 
|  | 
| void | setRenderQuadTreeDirty (bool dirty) | 
|  | 
| bool | refineTile (QuadTile *tile, const STK::Camera &cam, const STK::Viewport &vp, int parent_vis, std::vector< std::shared_ptr< TileRender > > &render_tiles, QuadTile *normal_map_tile, QuadTile *texture_tile) | 
|  | 
| double | calcShortestDistance (QuadTile *tile, const STK::Camera &cam) | 
|  | 
| void | genPrefetchTextureList (QuadTile *tile, int numChildLevels, std::vector< std::shared_ptr< MapTextureData > > &textures) | 
|  | 
| double | calcTileNormalAngle (QuadTile *tile, const STK::Camera &cam) | 
|  | 
| bool | calcIntersectingTiles (QuadTile *tile, const STK::Vector3d &pos, const STK::Vector3d &dir, std::vector< std::shared_ptr< GeometryData > > &tiles) | 
|  | 
| std::shared_ptr< TileRender > | getOrCreateTileRender (const QuadCoo &quad, std::shared_ptr< GeometryData > geometry_data, const std::shared_ptr< MapTextureData > &texture_data, const STK::Vector4f &texture_xfm, const std::shared_ptr< TextureData > &normal_map_data, const STK::Vector4f &normal_map_xfm, const std::shared_ptr< Maria::DrawObjectTileRenderData > &overlay_data, unsigned short renderMask) | 
|  | 
| void | cleanupRenderTiles () | 
|  | 
Globe - Main rendering class for the global terrain surface. Detailed description.
- See also
- Class1