| @@ -13,10 +13,13 @@ class BlackAndWhite { | |||
| this._enable = false | |||
| this._gradations = 1 | |||
| this._selected = [] | |||
| this.type = 'black_and_white' | |||
| this._state = State.INITIALIZED | |||
| } | |||
| get type() { | |||
| return 'black_and_white' | |||
| } | |||
| set enable(enable) { | |||
| this._enable = enable | |||
| if (enable && this._viewer && !this._delegate) { | |||
| @@ -16,10 +16,13 @@ class Bloom { | |||
| this._sigma = 3.8 | |||
| this._stepSize = 5 | |||
| this._selected = [] | |||
| this.type = 'bloom' | |||
| this._state = State.INITIALIZED | |||
| } | |||
| get type() { | |||
| return 'bloom' | |||
| } | |||
| set enable(enable) { | |||
| this._enable = enable | |||
| if (enable && this._viewer && !this._delegate) { | |||
| @@ -13,10 +13,13 @@ class Brightness { | |||
| this._enable = false | |||
| this._intensity = 1 | |||
| this._selected = [] | |||
| this.type = 'brightness' | |||
| this._state = State.INITIALIZED | |||
| } | |||
| get type() { | |||
| return 'brightness' | |||
| } | |||
| set enable(enable) { | |||
| this._enable = enable | |||
| if (enable && this._viewer && !this._delegate) { | |||
| @@ -16,10 +16,13 @@ class DepthOfField { | |||
| this._sigma = 3.8 | |||
| this._stepSize = 2.5 | |||
| this._selected = [] | |||
| this.type = 'depth_of_field' | |||
| this._state = State.INITIALIZED | |||
| } | |||
| get type() { | |||
| return 'depth_of_field' | |||
| } | |||
| set enable(enable) { | |||
| this._enable = enable | |||
| if ( | |||
| @@ -16,10 +16,13 @@ class LensFlare { | |||
| this._dirtAmount = 0.4 | |||
| this._haloWidth = 0.4 | |||
| this._selected = [] | |||
| this.type = 'lens_flare' | |||
| this._state = State.INITIALIZED | |||
| } | |||
| get type() { | |||
| return 'lens_flare' | |||
| } | |||
| set enable(enable) { | |||
| this._enable = enable | |||
| if (enable && this._viewer && !this._delegate) { | |||
| @@ -10,10 +10,13 @@ class NightVision { | |||
| constructor() { | |||
| this._enable = false | |||
| this._selected = [] | |||
| this.type = 'night' | |||
| this._state = State.INITIALIZED | |||
| } | |||
| get type() { | |||
| return 'night' | |||
| } | |||
| set enable(enable) { | |||
| this._enable = enable | |||
| if (enable && this._viewer && !this._delegate) { | |||
| @@ -14,10 +14,13 @@ class Silhouette { | |||
| this._color = Cesium.Color.GREEN | |||
| this._length = 0.5 | |||
| this._selected = [] | |||
| this.type = 'silhouette' | |||
| this._state = State.INITIALIZED | |||
| } | |||
| get type() { | |||
| return 'silhouette' | |||
| } | |||
| set enable(enable) { | |||
| this._enable = enable | |||
| if ( | |||
| @@ -0,0 +1,4 @@ | |||
| /** | |||
| * @Author: Caven | |||
| * @Date: 2021-08-01 00:22:00 | |||
| */ | |||