| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /**
- * @Author: Caven
- * @Date: 2021-02-27 23:53:08
- */
-
- import { Cesium } from '@dc-modules/namespace'
- import MaterialProperty from '../../MaterialProperty'
-
- class RadarLineMaterialProperty extends MaterialProperty {
- constructor(options = {}) {
- super(options)
- }
-
- getType(time) {
- return Cesium.Material.RadarLineType
- }
-
- getValue(time, result) {
- result = Cesium.defaultValue(result, {})
- result.color = Cesium.Property.getValueOrUndefined(this._color, time)
- result.speed = this._speed
- return result
- }
-
- equals(other) {
- return (
- this === other ||
- (other instanceof RadarLineMaterialProperty &&
- Cesium.Property.equals(this._color, other._color) &&
- Cesium.Property.equals(this._speed, other._speed))
- )
- }
- }
-
- Object.defineProperties(RadarLineMaterialProperty.prototype, {
- color: Cesium.createPropertyDescriptor('color'),
- speed: Cesium.createPropertyDescriptor('speed')
- })
-
- export default RadarLineMaterialProperty
|