class
HeightmapTerrainData extends Object
Instance Constructors
-
-
new
HeightmapTerrainData()
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hasOwnProperty(v: String): Boolean
-
def
hashCode(): Int
-
def
interpolateHeight(rectangle: Rectangle, longitude: Double, latitude: Double): Double
-
def
isChildAvailable(thisX: Double, thisY: Double, childX: Double, childY: Double): Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
isPrototypeOf(v: Object): Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
propertyIsEnumerable(v: String): Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toLocaleString(): String
-
def
toString(): String
-
def
upsample(tilingScheme: TilingScheme, thisX: Double, thisY: Double, thisLevel: Double, descendantX: Double, descendantY: Double, descendantLevel: Double): |[Promise[HeightmapTerrainData], Unit]
-
def
valueOf(): Any
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
wasCreatedByUpsampling(): Boolean
-
var
waterMask: |[|[Uint8Array, HTMLImageElement], HTMLCanvasElement]
Inherited from Object
Inherited from Any
Inherited from AnyRef
Inherited from Any
Terrain data for a single tile where the terrain data is represented as a heightmap. A heightmap is a rectangular array of heights in row-major order from south to north and west to east.
alias HeightmapTerrainData
height = buffer[index] + buffer[index + 1] * 256 + buffer[index + 2] * 256 * 256 + buffer[index + 3] * 256 * 256 * 256
This is assuming that the isBigEndian property is false. If it is true, the order of the elements is reversed.var buffer = ... var heightBuffer = new Uint16Array(buffer, 0, that._heightmapWidth * that._heightmapWidth); var childTileMask = new Uint8Array(buffer, heightBuffer.byteLength, 1)[0]; var waterMask = new Uint8Array(buffer, heightBuffer.byteLength + 1, buffer.byteLength - heightBuffer.byteLength - 1); var terrainData = new Cesium.HeightmapTerrainData({ buffer : heightBuffer, width : 65, height : 65, childTileMask : childTileMask, waterMask : waterMask });
QuantizedMeshTerrainData
TerrainData