All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.DiscardEmptyTileImagePolicy.kt Maven / Gradle / Ivy

There is a newer version: 1.90.0-10
Show newest version
// Automatically generated - do not modify!

package cesium

/**
 * A policy for discarding tile images that contain no data (and so aren't actually images).
 * This policy discards [DiscardEmptyTileImagePolicy.EMPTY_IMAGE], which is
 * expected to be used in place of any empty tile images by the image loading code.
 * @see Online Documentation
 */
@JsName("\$cesium__DiscardEmptyTileImagePolicy")
external class DiscardEmptyTileImagePolicy : TileDiscardPolicy {
    /**
     * Determines if the discard policy is ready to process images.
     * @return True if the discard policy is ready to process images; otherwise, false.
     * @see Online Documentation
     */
    override fun isReady(): Boolean

    /**
     * Given a tile image, decide whether to discard that image.
     * @param [image] An image to test.
     * @return True if the image should be discarded; otherwise, false.
     * @see Online Documentation
     */
    override fun shouldDiscardImage(image: org.w3c.dom.HTMLImageElement): Boolean

    companion object {
        /**
         * Default value for representing an empty image.
         * @see Online Documentation
         */
        val EMPTY_IMAGE: org.w3c.dom.HTMLImageElement
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy