-
_extentExtent
-
Geographical extent.
-
_extentExtent
-
Geographical extent.
-
bboxBox
-
Segment bounding box.
-
bboxBox
-
Segment bounding box.
-
bsphereSphere
-
Segment bounding sphere
-
bsphereSphere
-
Segment bounding sphere
-
gridSizenumber
-
Vertices grid size.
-
gridSizenumber
-
Vertices grid size.
-
handlerHandler
-
WebGl handler pointer.
-
handlerHandler
-
WebGl handler pointer.
-
initializedboolean
-
Segment is ready to create plain vertices.
-
initializedboolean
-
Segment is ready to create plain vertices.
-
materialsArray.<planetSegment.Material>
-
Texture materials array.
-
materialsArray.<planetSegment.Material>
-
Texture materials array.
-
nodequadTree.Node
-
Quad tree node of the segment.
-
nodequadTree.Node
-
Quad tree node of the segment.
-
normalMapReadyboolean
-
Normal map is allready made.
-
normalMapReadyboolean
-
Normal map is allready made.
-
parentNormalMapReadyboolean
-
Parent normal map is made allready(optimization parameter).
-
parentNormalMapReadyboolean
-
Parent normal map is made allready(optimization parameter).
-
passReadyboolean
-
Means that tree passage reach the segment, and the segment terrain is ready.
-
plainReadyboolean
-
Plain segment vertices was created.
-
plainReadyboolean
-
Plain segment vertices was created.
-
planetPlanet
-
Planet pointer.
-
planetPlanet
-
Planet pointer.
-
terrainExistsboolean
-
Terrain existing flag.
-
terrainExistsboolean
-
Terrain existing flag.
-
terrainIsLoadingboolean
-
Terrain is loading now flag.
-
terrainIsLoadingboolean
-
Terrain is loading now flag.
-
terrainReadyboolean
-
Terrain is allready applied flag.
-
terrainReadyboolean
-
Terrain is allready applied flag.
-
tileXnumber
-
Horizontal tile index.
-
tileXnumber
-
Horizontal tile index.
-
tileYnumber
-
Vertical tile index.
-
tileYnumber
-
Vertical tile index.
-
tileZoomnumber
-
Tile zoom index.
-
tileZoomnumber
-
Tile zoom index.
-
-
Removes cache records.
-
-
Removes cache records.
-
acceptForRendering(camera){boolean}
-
Returns that segment good for rendering with camera by current lod ratio.
Name |
Type |
Description |
camera |
Camera
|
Camera object. |
Returns:
Type |
Description |
boolean
|
- |
-
-
Clear but not destroy segment data.
-
-
Clear but not destroy segment data.
-
-
Creates bound volumes by segment geographical extent.
-
-
Creates bound volumes by segment geographical extent.
-
-
Delete segment gl buffers.
-
-
Delete segment gl buffers.
-
-
Delete elevation data.
-
-
Delete elevation data.
-
-
Delete materials.
-
-
Delete materials.
-
-
Clear and destroy all segment data.
-
-
Clear and destroy all segment data.
-
elevationsExists(elevations)
-
Terrain obtained from server.
Name |
Type |
Description |
elevations |
Float32Array
|
Elevation data. |
-
elevationsExists(elevations)
-
Terrain obtained from server.
Name |
Type |
Description |
elevations |
Float32Array
|
Elevation data. |
-
-
Terrain is not obtained or not exists on the server.
-
-
Terrain is not obtained or not exists on the server.
-
getEntityTerrainPoint(entity, res, normal){Vec3}
-
Returns entity terrain point.
Name |
Type |
Description |
entity |
Entity
|
Entity. |
res |
Vec3
|
Point coordinates. |
normal |
Vec3
|
optional
Terrain point normal. |
Returns:
-
getEntityTerrainPoint(entity, res, normal){Vec3}
-
Returns entity terrain point.
Name |
Type |
Description |
entity |
Entity
|
Entity. |
res |
Vec3
|
Point coordinates. |
normal |
Vec3
|
optional
Terrain point normal. |
Returns:
-
getMaterialByLayer(layer){planetSegment.Material}
-
Gets specific layer material.
Name |
Type |
Description |
layer |
Layer
|
Layer object. |
Returns:
Type |
Description |
planetSegment.Material
|
- Segment material. |
-
getMaterialByLayer(layer){planetSegment.Material}
-
Gets specific layer material.
Name |
Type |
Description |
layer |
Layer
|
Layer object. |
Returns:
Type |
Description |
planetSegment.Material
|
- Segment material. |
-
getTerrainPoint(xyz, insideSegmentPosition, res, normal){number}
-
Returns distance from object to terrain coordinates and terrain point that calculates out in the res parameter.
Name |
Type |
Description |
xyz |
Vec3
|
Cartesian object position. |
insideSegmentPosition |
LonLat
|
Geodetic object position. |
res |
Vec3
|
optional
Result cartesian coordiantes on the terrain. |
normal |
Vec3
|
optional
Terrain point normal. |
Returns:
Type |
Description |
number
|
- |
-
getTerrainPoint(xyz, insideSegmentPosition, res, normal){number}
-
Returns distance from object to terrain coordinates and terrain point that calculates out in the res parameter.
Name |
Type |
Description |
xyz |
Vec3
|
Cartesian object position. |
insideSegmentPosition |
LonLat
|
Geodetic object position. |
res |
Vec3
|
optional
Result cartesian coordiantes on the terrain. |
normal |
Vec3
|
optional
Terrain point normal. |
Returns:
Type |
Description |
number
|
- |
-
loadTerrain(forceLoading)
-
Name |
Type |
Description |
forceLoading |
boolean
|
|
-
loadTerrain(forceLoading)
-
Name |
Type |
Description |
forceLoading |
boolean
|
|
-
projectNative(lonlat){LonLat}
-
Project wgs86 to segment native projection.
Name |
Type |
Description |
lonlat |
LonLat
|
Coordinates to project. |
Returns:
Type |
Description |
LonLat
|
- |
-
projectNative(lonlat){LonLat}
-
Project wgs86 to segment native projection.
Name |
Type |
Description |
lonlat |
LonLat
|
Coordinates to project. |
Returns:
Type |
Description |
LonLat
|
- |