Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | /**
* A class containing a the values that affect the appearance of
* an <code>ImageryLayer</code>.
*
* This is used in the <code>ModelImagery</code> to detect changes in
* the imagery settings: The <code>ModelImagery</code> stores one
* instance per imagery layer. During the <code>update</code>
* call, it checks whether any of the settings was changed.
* If this is the case, the draw commands of the model are reset.
*
* @private
*/
class ImageryConfiguration {
constructor(imageryLayer) {
this.show = imageryLayer.show;
this.alpha = imageryLayer.alpha;
this.brightness = imageryLayer.brightness;
this.contrast = imageryLayer.contrast;
this.hue = imageryLayer.hue;
this.saturation = imageryLayer.saturation;
this.gamma = imageryLayer.gamma;
this.colorToAlpha = imageryLayer.colorToAlpha;
}
}
export default ImageryConfiguration;
|