Appearance
KBE3D / KBCore / Cesium / DiscardMissingTileImagePolicy
类: DiscardMissingTileImagePolicy
A policy for discarding tile images that match a known image containing a "missing" image.
参数
Object with the following properties:
参数
The URL of the known missing image.
参数
An array of Cartesian2 pixel positions to compare against the missing image.
参数
If true, the discard check will be disabled if all of the pixelsToCheck in the missingImageUrl have an alpha value of 0. If false, the discard check will proceed no matter the values of the pixelsToCheck.
方法
isReady()
isReady():
boolean
Determines if the discard policy is ready to process images.
返回
boolean
True if the discard policy is ready to process images; otherwise, false.
shouldDiscardImage()
shouldDiscardImage(
image:HTMLImageElement):boolean
Given a tile image, decide whether to discard that image.
参数
image
HTMLImageElement
An image to test.
返回
boolean
True if the image should be discarded; otherwise, false.
构造函数
构造函数
new DiscardMissingTileImagePolicy(
options: {missingImageUrl:string|Resource;pixelsToCheck:Cartesian2[];disableCheckIfAllPixelsAreTransparent?:boolean; }):DiscardMissingTileImagePolicy
参数
options
missingImageUrl
string | Resource
pixelsToCheck
disableCheckIfAllPixelsAreTransparent?
boolean
返回
DiscardMissingTileImagePolicy
