@JsType(isNative=true,
namespace="Cesium",
name="TileAvailability")
public class TileAvailability
extends Object
| Constructor and Description |
|---|
TileAvailability(TilingScheme tilingScheme,
int maximumLevel)
Reports the availability of tiles in a TilingScheme.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAvailableTileRange(int level,
int startX,
int startY,
int endX,
int endY)
Marks a rectangular range of tiles in a particular level as being available.
|
int |
computeBestAvailableLevelOverRectangle(Rectangle rectangle)
Finds the most detailed level that is available _everywhere_ within a given rectangle.
|
int |
computeChildMaskForTile(int level,
int x,
int y)
Computes a bit mask indicating which of a tile's four children exist.
|
int |
computeMaximumLevelAtPosition(Cartographic position)
Determines the level of the most detailed tile covering the position.
|
boolean |
isTileAvailable(int level,
int x,
int y)
Determines if a particular tile is available.
|
@JsConstructor public TileAvailability(TilingScheme tilingScheme, int maximumLevel)
tilingScheme - The tiling scheme in which to report availability.maximumLevel - The maximum tile level that is potentially available.@JsMethod
public void addAvailableTileRange(int level,
int startX,
int startY,
int endX,
int endY)
level - The level.startX - The X coordinate of the first available tiles at the level.startY - The Y coordinate of the first available tiles at the level.endX - The X coordinate of the last available tiles at the level.endY - The Y coordinate of the last available tiles at the level.@JsMethod public int computeBestAvailableLevelOverRectangle(Rectangle rectangle)
rectangle - The rectangle.@JsMethod
public int computeChildMaskForTile(int level,
int x,
int y)
Bit Position Bit Value Child Tile
0 1 Southwest
1 2 Southeast
2 4 Northwest
3 8 Northeast
level - The level of the parent tile.x - The X coordinate of the parent tile.y - The Y coordinate of the parent tile.@JsMethod public int computeMaximumLevelAtPosition(Cartographic position)
position - The position for which to determine the maximum available level. The height component is ignored.@JsMethod
public boolean isTileAvailable(int level,
int x,
int y)
level - The tile level to check.x - The X coordinate of the tile to check.y - The Y coordinate of the tile to check.Copyright © 2019. All rights reserved.