-
protected_createdNodesCount
-
-
protected_frustumEntityCollectionsArray.<EntityCollection>
-
Vector layers visible nodes with collections.
-
protected_geoImageCreator
-
GeoImage creator.
-
protected_heightFactornumber
-
Height scale factor. 1 - is normal elevation scale.
-
protected_heightPickingFramebufferObject
-
Framebuffer for relief. Is null when WEBGL_draw_buffers extension initialized.
-
protected_indexesCacheArray.<Array.<number>>
-
Precomputed indexes array for differrent grid size segments.
-
_lodSizenumber
-
Level of the visible segment detalization.
-
protected_nightTexture
-
Night glowing gl texture.
-
protected_planetRadius2number
-
Squared ellipsoid radius.
-
protected_quadTreequadTree.Node
-
Mercator grid tree.
-
protected_quadTreeNodesCacheMercquadTree.Node
-
Created nodes cache
-
protected_quadTreeNorthquadTree.Node
-
North grid tree.
-
protected_quadTreeSouthquadTree.Node
-
South grid tree.
-
protected_renderedNodesquadTree.Node
-
Planet's segments collected for rendering frame.
-
protected_specularTexture
-
Specular mask gl texture.
-
protected_tcolorArr
-
Layer's transparent colors.
-
protected_textureCoordsBufferCacheArray.<Array.<number>>
-
Precomputed texture coordinates buffers for differrent grid size segments.
-
protected_useNightTextureboolean
-
True for rendering night glowing texture.
-
protected_useSpecularTextureboolean
-
True for rendering specular mask texture.
-
protected_visibleNodesquadTree.Node
-
Current visible mercator segments tree nodes array.
-
protected_visibleNodesNorthquadTree.Node
-
Current visible north pole nodes tree nodes array.
-
protected_visibleNodesSouthquadTree.Node
-
Current visible south pole nodes tree nodes array.
-
baseLayerLayer
-
There is only one base layer on the globe when layer.isBaseLayer is true.
-
cameraPlanetCamera
-
Camera is this.renderer.activeCamera pointer.
-
ellipsoidEllipsoid
-
-
entityCollectionsArray.<EntityCollection>
-
Entity collection array.
-
layerLockidle.Lock
-
Layers activity lock.
-
layersArray.<Layer>
-
All layers array.
-
lightEnabledBoolean
-
-
maxCurrZoomnumber
-
Current visible maximal zoom index planet segment.
-
minCurrZoomnumber
-
Current visible minimal zoom index planet segment.
-
mousePositionOnEarthVec3
-
Screen mouse pointer projected to planet cartesian position.
-
-
Renderer that calls frame() callback.
-
show
-
Show rendering.
-
constantSLICE_SIZE
-
Segment multiple textures size.(4 - convinient value for the most devices)
-
terrainTerrain
-
Terrain provider.
-
terrainLockidle.Lock
-
Terrain providers activity lock.
-
visibleTileLayersArray.<Layer>
-
Current visible imagery tile layers array.
-
protectedvisibleVectorLayersArray.<layer.Vector>
-
Current visible vector layers array.
-
protected_clearLayerMaterial(layer)
-
Name |
Type |
Description |
layer |
Layer
|
Material layer. |
-
protected_collectRenderNodes()
-
Collects visible quad nodes.
-
protected_frustumEntityCollectionPickingCallback()
-
Vector layers picking pass.
-
abstract,protected_initializeShaders()
-
-
protected_onLayerVisibilityChanged(layer)
-
Dispatch layer visibility changing event.
Name |
Type |
Description |
layer |
Layer
|
Changed layer. |
-
protected_renderColorPickingFramebufferPASS()
-
-
protected_renderDepthFramebufferPASS()
-
-
protected_renderHeightPickingFramebufferPASS()
-
-
protected_renderScreenNodesPASS()
-
-
-
Sort visible layer - preparing for rendering.
-
-
Add the given control to the renderer of the planet scene.
Name |
Type |
Description |
control |
control.Control
|
Control. |
-
-
Add the given controls array to the renderer of the planet.
Name |
Type |
Description |
cArr |
Array.<control.Control>
|
Control array. |
-
-
Adds entity collection.
Name |
Type |
Description |
entityCollection |
EntityCollection
|
Entity collection. |
isHidden |
boolean
|
optional
If it's true that this collection has specific rendering. |
Returns:
-
-
Adds the given layer to the planet.
Name |
Type |
Description |
layer |
Layer
|
Layer object. |
-
-
Adds the given layers array to the planet.
Name |
Type |
Description |
layers |
Array.<Layer>
|
Layers array. |
-
-
Adds point light source.
Name |
Type |
Description |
light |
LightSource
|
Light source. |
Returns:
-
-
Adds node to the current hierarchy.
-
-
Assign render node with renderer.
Name |
Type |
Description |
renderer |
Renderer
|
Redner node's renderer. |
-
-
Creates default textures first for nirth pole and whole globe and second for south pole.
-
-
Calls render frame node's callback. Used in renderer.
-
-
Draw entity collections picking frame.
-
flyCartesian(cartesian, look, up, ampl, completeCallback, startCallback, frameCallback)
-
Fly camera to the new point.
Name |
Type |
Description |
cartesian |
Vec3
|
Fly coordiantes. |
look |
Vec3
|
optional
Camera "look at" point. |
up |
Vec3
|
optional
Camera UP vector on the end of a flying. |
ampl |
Number
|
optional
Altitude amplitude factor. |
completeCallback |
|
optional
|
startCallback |
|
optional
|
frameCallback |
|
optional
|
-
flyExtent(extent, height, up, ampl, startCallback, completeCallback)
-
Fly camera to the planet geographical extent.
Name |
Type |
Description |
extent |
Extent
|
Geographical extent. |
height |
Number
|
optional
Height on the end of the flight route. |
up |
Vec3
|
optional
Camera UP vector on the end of a flying. |
ampl |
Number
|
optional
Altitude amplitude factor. |
startCallback |
cameraCallback
|
optional
Callback that calls after flying when flying is finished. |
completeCallback |
cameraCallback
|
optional
Callback that calls befor the flying begins. |
-
flyLonLat(lonlat, look, up, ampl, completeCallback, startCallback, frameCallback)
-
Fly camera to the new geographical position.
Name |
Type |
Description |
lonlat |
LonLat
|
Fly geographical coordiantes. |
look |
Vec3
|
optional
Camera "look at" point on the end of a flying. |
up |
Vec3
|
optional
Camera UP vector on the end of a flying. |
ampl |
Number
|
optional
Altitude amplitude factor. |
completeCallback |
|
optional
|
startCallback |
|
optional
|
frameCallback |
|
optional
|
-
-
Render node callback.
-
getCartesianFromMouseTerrain(){Vec3}
-
Returns 3d cartesian coordinates on the relief planet by mouse cursor
position or null if mouse cursor is outside the planet.
Returns:
-
getCartesianFromPixelEllipsoid(px){Vec3}
-
Returns 2d screen coordanates projection point to the planet ellipsoid 3d coordinates.
Name |
Type |
Description |
px |
math.Pixel
|
2D sreen coordinates. |
Returns:
-
getCartesianFromPixelTerrain(px, force){Vec3}
-
Returns 3d cartesian coordinates on the relief planet by 2d screen coordinates.
position or null if input coordinates is outside the planet.
Name |
Type |
Default |
Description |
px |
Vec2
|
|
Pixel screen 2d coordinates. |
force |
Boolean
|
false
|
optional
Force framebuffer rendering. |
Returns:
-
getDistanceFromPixel(px, force){number}
-
Returns distance from active camera to the the relief planet coordiantes unprojected
by 2d screen coordiantes, or null if screen coordinates outside the planet.
If screen coordinates inside the planet but relief is not exists in the
point than function returns distance to the planet ellipsoid.
Name |
Type |
Default |
Description |
px |
Vec2
|
|
Screen coordinates. |
force |
Boolean
|
false
|
optional
Force framebuffer rendering. |
Returns:
Type |
Description |
number
|
- |
-
getDistanceFromPixelEllipsoid(px){number}
-
Returns distance from active camera to the the planet ellipsoid
coordiantes unprojected by 2d screen coordiantes, or null if screen coordinates outside the planet.
Name |
Type |
Description |
px |
Vec2
|
Screen coordinates. |
Returns:
Type |
Description |
number
|
- |
-
getHeightFactor(){number}
-
Gets elevation scale.
Returns:
Type |
Description |
number
|
Terrain elevation scale |
-
getLayerByName(name){Layer}
-
Return layer by it name
Name |
Type |
Description |
name |
string
|
Name of the layer. og.Layer.prototype.name |
Returns:
-
getLayers(){Array.<Layer>}
-
Get the collection of layers associated with this planet.
Returns:
Type |
Description |
Array.<Layer>
|
Layers array. |
-
-
Gets light object by its name.
Name |
Type |
Description |
name |
string
|
Point light name. |
Returns:
Type |
Description |
LightSource
|
|
-
getLonLatFromPixelEllipsoid(px){LonLat}
-
Returns 2d screen coordanates projection point to the planet ellipsoid geographical coordinates.
Name |
Type |
Description |
px |
math.Pixel
|
2D screen coordinates. |
Returns:
Type |
Description |
LonLat
|
- |
-
getLonLatFromPixelTerrain(px, force){LonLat}
-
Returns geographical coordinates on the relief planet by 2d screen coordinates.
position or null if input coordinates is outside the planet.
Name |
Type |
Default |
Description |
px |
Vec2
|
|
Pixel screen 2d coordinates. |
force |
Boolean
|
false
|
optional
Force framebuffer rendering. |
Returns:
Type |
Description |
LonLat
|
- |
-
getPixelFromCartesian(coords){Vec2}
-
Returns projected 2d screen coordinates by 3d cartesian coordiantes.
Name |
Type |
Description |
coords |
Vec3
|
Cartesian coordinates. |
Returns:
-
getPixelFromLonLat(lonlat){Vec2}
-
Returns projected 2d screen coordinates by geographical coordinates.
Name |
Type |
Description |
lonlat |
LonLat
|
Geographical coordinates. |
Returns:
-
getRayIntersectionEllipsoid(ray){Vec3}
-
Returns ray vector hit ellipsoid coordinates.
If the ray doesn't hit ellipsoit returns null.
Name |
Type |
Description |
ray |
Ray
|
Ray 3d. |
Returns:
-
-
Gets current viewing geographical extent.
Returns:
Type |
Description |
Extent
|
- |
-
-
-
-
Gets render node activity.
Returns:
Type |
Description |
Boolean
|
- |
-
-
Starts clear memory thread.
-
inherited
removeEntityCollection(entityCollection)
-
Removes entity collection.
Name |
Type |
Description |
entityCollection |
EntityCollection
|
Entity collection for remove. |
-
removeLayer(layer){Layer|undefined}
-
Removes the given layer from the planet.
Name |
Type |
Description |
layer |
Layer
|
Layer to remove. |
Returns:
Type |
Description |
Layer
|
undefined
|
The removed layer or undefined if the layer was not found. |
-
-
Removes light source.
Name |
Type |
Description |
light |
LightSource
|
Light source object. |
-
-
Rendering activation.
Name |
Type |
Description |
isActive |
boolean
|
Activation flag. |
-
-
Sets base layer coverage to the planet.
Name |
Type |
Description |
layer |
Layer
|
Layer object. |
-
-
Sets draw mode
Name |
Type |
Description |
mode |
Number
|
Draw mode, such as gl.TRIANGLES, gl.TRIANGLE_STRIP, gl.LINES etc. |
-
-
Sets elevation scale. 1.0 is default.
Name |
Type |
Description |
factor |
number
|
Elevation scale. |
-
-
Sets terrain provider
Name |
Type |
Description |
terrain |
Terrain
|
Terrain provider. |
-
-
Breaks the flight.
-
-
IMPORTANT: This function have to be called manualy in each render node frame callback, before drawing scene geometry.
-
-
Updates attribution lists
-
-
Updates visible layers.
-
-
Sets camera to the planet geographical extent.
Name |
Type |
Description |
extent |
Extent
|
Geographical extent. |
-
-
Sets camera to the planet geographical extent.
Name |
Type |
Description |
extentArr |
Array.<number>
|
Geographical extent array, (exactly 4 entries)
where index 0 - southwest longitude, 1 - latitude southwest, 2 - longitude northeast, 3 - latitude northeast. |
-
-
Sets camera to the planet geographical position.
Name |
Type |
Description |
lonlat |
LonLat
|
New geographical position. |
up |
Vec3
|
optional
Camera UP vector. |