@JsType(isNative=true, namespace="Cesium", name="VRTheWorldTerrainProvider") public class VRTheWorldTerrainProvider extends Object implements TerrainProvider
Modifier and Type | Field and Description |
---|---|
Credit |
credit
Gets the credit to display when this terrain provider is active.
|
Event |
errorEvent
Gets an event that is raised when the terrain provider encounters an asynchronous error..
|
boolean |
hasVertexNormals
Gets a value indicating whether or not the requested tiles include vertex normals.
|
boolean |
hasWaterMask
Gets a value indicating whether or not the provider includes a water mask.
|
boolean |
ready
Gets a value indicating whether or not the provider is ready for use.
|
GeographicTilingScheme |
tilingScheme
Gets the tiling scheme used by this provider.
|
Constructor and Description |
---|
VRTheWorldTerrainProvider()
A
TerrainProvider that produces terrain geometry by tessellating height maps
retrieved from a VT MÄK VR-TheWorld server. |
VRTheWorldTerrainProvider(VRTheWorldTerrainProviderOptions options)
A
TerrainProvider that produces terrain geometry by tessellating height maps
retrieved from a VT MÄK VR-TheWorld server. |
Modifier and Type | Method and Description |
---|---|
double |
getLevelMaximumGeometricError(int level)
Gets the maximum geometric error allowed in a tile at a given level.
|
boolean |
getTileDataAvailable(int x,
int y,
int level)
Determines whether data for a tile is available to be loaded.
|
Promise<Boolean,Void> |
readyPromise()
Gets a promise that resolves to true when the provider is ready for use.
|
Promise<TerrainData,Void> |
requestTileGeometry(int x,
int y,
int level,
Request request)
Requests the geometry for a given tile.
|
@JsProperty public Credit credit
ready
returns true.@JsProperty public Event errorEvent
@JsProperty public boolean hasVertexNormals
ready
returns true.@JsProperty public boolean hasWaterMask
@JsProperty public boolean ready
@JsProperty public GeographicTilingScheme tilingScheme
ready
returns true.@JsConstructor public VRTheWorldTerrainProvider()
TerrainProvider
that produces terrain geometry by tessellating height maps
retrieved from a VT MÄK VR-TheWorld server.@JsConstructor public VRTheWorldTerrainProvider(VRTheWorldTerrainProviderOptions options)
TerrainProvider
that produces terrain geometry by tessellating height maps
retrieved from a VT MÄK VR-TheWorld server.options
- VRTheWorldTerrainProviderOptions
Options.@JsProperty(name="readyPromise") public Promise<Boolean,Void> readyPromise()
@JsMethod public double getLevelMaximumGeometricError(int level)
ready
returns true.getLevelMaximumGeometricError
in interface TerrainProvider
level
- The tile level for which to get the maximum geometric error.@JsMethod public boolean getTileDataAvailable(int x, int y, int level)
getTileDataAvailable
in interface TerrainProvider
x
- The X coordinate of the tile for which to request geometry.y
- The Y coordinate of the tile for which to request geometry.level
- The level of the tile for which to request geometry.@JsMethod public Promise<TerrainData,Void> requestTileGeometry(int x, int y, int level, Request request)
ready
returns true.
The result must include terrain data and may optionally include a water mask and an indication of which child tiles are available.requestTileGeometry
in interface TerrainProvider
x
- The X coordinate of the tile for which to request geometry.y
- The Y coordinate of the tile for which to request geometry.level
- The level of the tile for which to request geometry.request
- The request object. Intended for internal use only.Copyright © 2019. All rights reserved.