Members
detailControl :Number
Controls the level of detail switching for this layer. The next highest resolution level is
used when an elevation tile's cell size is greater than this number of pixels, up to the maximum
resolution of the elevation model.
Type:
- Number
- Default Value:
- 1.75
- Source:
Methods
beginRendering(dc)
Initializes rendering state to draw a succession of terrain tiles.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The draw context. |
- Source:
beginRenderingTile(dc, terrainTile)
Initializes rendering state for drawing a specified terrain tile.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The draw context. |
terrainTile |
TerrainTile | The terrain tile subsequently drawn via this tessellator's render function. |
- Source:
Throws:
-
If the specified tile is null or undefined.
- Type
- ArgumentError
endRendering(dc)
Restores rendering state after drawing a succession of terrain tiles.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The draw context. |
- Source:
endRenderingTile(dc, terrainTile)
Restores rendering state after drawing the most recent tile specified to
beginRenderingTile.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The draw context. |
terrainTile |
TerrainTile | The terrain tile most recently rendered. |
- Source:
Throws:
-
If the specified tile is null or undefined.
- Type
- ArgumentError
pick(dc, tileList, pickDelegate)
Causes this terrain to perform the picking operations on the specified tiles, as appropriate for the draw
context's pick settings. Normally, this draws the terrain in a unique pick color and computes the picked
terrain position. When the draw context is set to region picking mode, this omits the computation of a picked
terrain position.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The current draw context. |
tileList |
Array | The list of tiles to pick. |
pickDelegate |
Object | Indicates the object to use as the picked object's userObject .
If null, then this tessellator is used as the userObject . |
- Source:
Throws:
-
If either the draw context or the tile list are null or undefined.
- Type
- ArgumentError
renderTile(dc, terrainTile)
Renders a specified terrain tile.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The draw context. |
terrainTile |
TerrainTile | The terrain tile to render. |
- Source:
Throws:
-
If the specified tile is null or undefined.
- Type
- ArgumentError
renderTileOutline(dc, terrainTile)
Draws the outer boundary of a specified terrain tile.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The current draw context. |
terrainTile |
TerrainTile | The tile whose outer boundary to draw. |
- Source:
Throws:
-
If the specified tile is null or undefined.
- Type
- ArgumentError
renderWireframeTile(dc, terrainTile)
Draws outlines of the triangles composing the tile.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The current draw context. |
terrainTile |
TerrainTile | The tile to draw. |
- Source:
Throws:
-
If the specified tile is null or undefined.
- Type
- ArgumentError
tessellate(dc) → {Terrain}
Creates the visible terrain of the globe associated with the current draw context.
Parameters:
Name | Type | Description |
---|---|---|
dc |
DrawContext | The draw context. |
- Source:
Throws:
-
If the dc is null or undefined.
- Type
- ArgumentError
Returns:
The computed terrain, or null if terrain could not be computed.
- Type
- Terrain