Appearance
Class: GradualLightRingMaterialProperty
渐变光圈材质
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new GradualLightRingMaterialProperty(options): GradualLightRingMaterialProperty
渐变光圈材质
options DynamicWallOptions 一个具有以下属性的对象:
| Name | Type | Default | Description |
|---|---|---|---|
rate | Number | 1 | optional 速率 |
repeatNum | Number | 5 | optional 重复数量 |
color | String | new Color(0.23, 0.67, 0.9, 1.0) | optional 光圈的颜色 |
Parameters
| Name | Type |
|---|---|
options | DynamicWallOptions |
Returns
GradualLightRingMaterialProperty
Example
js
// 动态墙
const entity = viewer.entities.add({
name: "DynamicWall",
wall: {
positions: Cesium.Cartesian3.fromDegreesArray([
113.41517, 23.18128, 113.41695, 23.17999, 113.4184, 23.18195, 113.4165,
23.18332
]),
maximumHeights: [100, 100, 100, 100],
minimumHeights: [38.9, 44, 34.7, 34.4],
material: new joDVF.GradualLightRingMaterialProperty({
color: new Cesium.Color(0.23, 0.67, 0.9, 1.0),
rate: 1,
repeatNum: 5
})
}
});Defined in
src/materials/GradualLightRingProperty.ts:75
Properties
color
• color: Color
Defined in
src/materials/GradualLightRingProperty.ts:34
Accessors
isConstant
• get isConstant(): boolean
是否为常量
Returns
boolean
Memberof
GradualLightRingMaterialProperty
Defined in
src/materials/GradualLightRingProperty.ts:186
definitionChanged
• get definitionChanged(): Event<(...args: any[]) => void>
定义改变事件
Returns
Event<(...args: any[]) => void>
Memberof
GradualLightRingMaterialProperty
Defined in
src/materials/GradualLightRingProperty.ts:196
Methods
getType
▸ getType(): string
获取材质的类型
Returns
string
Defined in
src/materials/GradualLightRingProperty.ts:110
getValue
▸ getValue(time, result): Object
获取材质属性值
Parameters
| Name | Type | Description |
|---|---|---|
time | Object | 时间 |
time.dayNumber | number | - |
time.secondsOfDay | number | - |
result | Object | 结果 |
result.color? | Color | - |
result.rate? | number | - |
result.repeatNum? | number | - |
Returns
Object
返回当前时间结果
| Name | Type |
|---|---|
color? | Color |
rate? | number |
repeatNum? | number |
Defined in
src/materials/GradualLightRingProperty.ts:120
equals
▸ equals(other): boolean
判断两材质是否相等
Parameters
| Name | Type | Description |
|---|---|---|
other | any | 材质 |
Returns
boolean
Defined in
src/materials/GradualLightRingProperty.ts:170

