Browse Source

change the type property

tags/2.4.0
Caven Chen 4 years ago
parent
commit
76628b8095

+ 4
- 1
modules/effect/type/BlackAndWhite.js View File

this._enable = false this._enable = false
this._gradations = 1 this._gradations = 1
this._selected = [] this._selected = []
this.type = 'black_and_white'
this._state = State.INITIALIZED this._state = State.INITIALIZED
} }


get type() {
return 'black_and_white'
}

set enable(enable) { set enable(enable) {
this._enable = enable this._enable = enable
if (enable && this._viewer && !this._delegate) { if (enable && this._viewer && !this._delegate) {

+ 4
- 1
modules/effect/type/Bloom.js View File

this._sigma = 3.8 this._sigma = 3.8
this._stepSize = 5 this._stepSize = 5
this._selected = [] this._selected = []
this.type = 'bloom'
this._state = State.INITIALIZED this._state = State.INITIALIZED
} }


get type() {
return 'bloom'
}

set enable(enable) { set enable(enable) {
this._enable = enable this._enable = enable
if (enable && this._viewer && !this._delegate) { if (enable && this._viewer && !this._delegate) {

+ 4
- 1
modules/effect/type/Brightness.js View File

this._enable = false this._enable = false
this._intensity = 1 this._intensity = 1
this._selected = [] this._selected = []
this.type = 'brightness'
this._state = State.INITIALIZED this._state = State.INITIALIZED
} }


get type() {
return 'brightness'
}

set enable(enable) { set enable(enable) {
this._enable = enable this._enable = enable
if (enable && this._viewer && !this._delegate) { if (enable && this._viewer && !this._delegate) {

+ 4
- 1
modules/effect/type/DepthOfField.js View File

this._sigma = 3.8 this._sigma = 3.8
this._stepSize = 2.5 this._stepSize = 2.5
this._selected = [] this._selected = []
this.type = 'depth_of_field'
this._state = State.INITIALIZED this._state = State.INITIALIZED
} }


get type() {
return 'depth_of_field'
}

set enable(enable) { set enable(enable) {
this._enable = enable this._enable = enable
if ( if (

+ 4
- 1
modules/effect/type/LensFlare.js View File

this._dirtAmount = 0.4 this._dirtAmount = 0.4
this._haloWidth = 0.4 this._haloWidth = 0.4
this._selected = [] this._selected = []
this.type = 'lens_flare'
this._state = State.INITIALIZED this._state = State.INITIALIZED
} }


get type() {
return 'lens_flare'
}

set enable(enable) { set enable(enable) {
this._enable = enable this._enable = enable
if (enable && this._viewer && !this._delegate) { if (enable && this._viewer && !this._delegate) {

+ 4
- 1
modules/effect/type/NightVision.js View File

constructor() { constructor() {
this._enable = false this._enable = false
this._selected = [] this._selected = []
this.type = 'night'
this._state = State.INITIALIZED this._state = State.INITIALIZED
} }


get type() {
return 'night'
}

set enable(enable) { set enable(enable) {
this._enable = enable this._enable = enable
if (enable && this._viewer && !this._delegate) { if (enable && this._viewer && !this._delegate) {

+ 4
- 1
modules/effect/type/Silhouette.js View File

this._color = Cesium.Color.GREEN this._color = Cesium.Color.GREEN
this._length = 0.5 this._length = 0.5
this._selected = [] this._selected = []
this.type = 'silhouette'
this._state = State.INITIALIZED this._state = State.INITIALIZED
} }


get type() {
return 'silhouette'
}

set enable(enable) { set enable(enable) {
this._enable = enable this._enable = enable
if ( if (

+ 4
- 0
modules/effect/type/Sun.js View File

/**
* @Author: Caven
* @Date: 2021-08-01 00:22:00
*/

Loading…
Cancel
Save