class
HeightmapTerrainData extends Object with TerrainData
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[TerrainData], 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
- The options object takes the following properties - {TypedArray} options.buffer The buffer containing height data. - {Number} options.width The width (longitude direction) of the heightmap, in samples. - {Number} options.height The height (latitude direction) of the heightmap, in samples. - {Number} [options.childTileMask=15] A bit mask indicating which of this tile's four children exist. If a child's bit is set, geometry will be requested for that tile as well when it is needed. If the bit is cleared, the child tile is not requested and geometry is instead upsampled from the parent. The bit values are as follows:
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. - {Boolean} [options.structure.isBigEndian=false] Indicates endianness of the elements in the buffer when the stride property is greater than 1. If this property is false, the first element is the low-order element. If it is true, the first element is the high-order element. - {Boolean} [options.createdByUpsampling=false] True if this instance was created by upsampling another instance; otherwise, false.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