Sha256: 43f5061109a789e3b37792756a6141573b8ef971e0098dba9d413da0cffe1bf5

Contents?: true

Size: 1.36 KB

Versions: 6

Compression:

Stored size: 1.36 KB

Contents

/*global define*/
define([
        '../Core/DeveloperError'
    ], function(
        DeveloperError) {
    "use strict";

    /**
     * A policy for discarding tile images according to some criteria.  This type describes an
     * interface and is not intended to be instantiated directly.
     *
     * @alias TileDiscardPolicy
     * @constructor
     *
     * @see DiscardMissingTileImagePolicy
     * @see NeverTileDiscardPolicy
     */
    var TileDiscardPolicy = function(description) {
        throw new DeveloperError('This type should not be instantiated directly.');
    };

    /**
     * Determines if the discard policy is ready to process images.
     * @returns {Boolean} True if the discard policy is ready to process images; otherwise, false.
     */
    TileDiscardPolicy.prototype.isReady = function() {
        throw new DeveloperError('This type should not be instantiated directly.');
    };

    /**
     * Given a tile image, decide whether to discard that image.
     *
     * @param {Image|Promise} image An image, or a promise that will resolve to an image.
     *
     * @returns {Boolean} A promise that will resolve to true if the tile should be discarded.
     */
    TileDiscardPolicy.prototype.shouldDiscardImage = function(image) {
        throw new DeveloperError('This type should not be instantiated directly.');
    };

    return TileDiscardPolicy;
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cesium-0.18.0 app/assets/javascripts/Scene/TileDiscardPolicy.js
cesium-0.17.0 app/assets/javascripts/Scene/TileDiscardPolicy.js
cesium-0.16.0 app/assets/javascripts/Scene/TileDiscardPolicy.js
cesium-0.15.0 app/assets/javascripts/Scene/TileDiscardPolicy.js
cesium-0.14.0 app/assets/javascripts/Scene/TileDiscardPolicy.js
cesium-0.13.2 app/assets/javascripts/Scene/TileDiscardPolicy.js