Skip to content

m-gis核心库 v0.4.4


m-gis核心库 / Cloud

类: Cloud ​

定义于: effects/Cloud.ts:44

体积云特效

this.$viewer.addEffect(new Cloud());

继承 ​

  • Effect

构造函数 ​

构造函数 ​

new Cloud(options?): Cloud

定义于: effects/Cloud.ts:50

参数 ​

options? ​

any = {}

体积云特效可选参数

返回 ​

Cloud

重写了 ​

Effect.constructor

属性 ​

_delegate ​

_delegate: any

定义于: effects/Effect.ts:13

继承自 ​

Effect._delegate


_effectEvent ​

_effectEvent: EffectEvent

定义于: effects/Effect.ts:14

继承自 ​

Effect._effectEvent


_id ​

_id: string

定义于: effects/Effect.ts:11

继承自 ​

Effect._id


_options ​

_options: any

定义于: effects/Effect.ts:15

继承自 ​

Effect._options


_viewer ​

_viewer: any

定义于: effects/Effect.ts:12

继承自 ​

Effect._viewer


options ​

options: CloudOptions

定义于: effects/Cloud.ts:45


type ​

type: any

定义于: effects/Effect.ts:16

继承自 ​

Effect.type

访问器 ​

cover ​

Getter 签名 ​

get cover(): number

定义于: effects/Cloud.ts:94

返回 ​

number

Setter 签名 ​

set cover(value): void

定义于: effects/Cloud.ts:89

设置云量

参数 ​
value ​

number

云量

返回 ​

void


direction ​

Getter 签名 ​

get direction(): Cartesian3

定义于: effects/Cloud.ts:68

返回 ​

Cartesian3

Setter 签名 ​

set direction(value): void

定义于: effects/Cloud.ts:63

设置风向

参数 ​
value ​

Cartesian3

风向

返回 ​

void


effectEvent ​

Getter 签名 ​

get effectEvent(): EffectEvent

定义于: effects/Effect.ts:41

Effect 的事件对象

返回 ​

EffectEvent

继承自 ​

Effect.effectEvent


groundAmbientColor ​

Getter 签名 ​

get groundAmbientColor(): Color

定义于: effects/Cloud.ts:120

返回 ​

Color

Setter 签名 ​

set groundAmbientColor(color): void

定义于: effects/Cloud.ts:115

设置地面环境色

参数 ​
color ​

Color

地面环境色

返回 ​

void


height ​

Getter 签名 ​

get height(): number

定义于: effects/Cloud.ts:146

返回 ​

number

Setter 签名 ​

set height(value): void

定义于: effects/Cloud.ts:141

设置云层高度

参数 ​
value ​

number

云层高度

返回 ​

void


id ​

Getter 签名 ​

get id(): string

定义于: effects/Effect.ts:32

唯一标识 id

返回 ​

string

继承自 ​

Effect.id


realPlanetRadius ​

Getter 签名 ​

get realPlanetRadius(): number

定义于: effects/Cloud.ts:133

返回 ​

number

Setter 签名 ​

set realPlanetRadius(value): void

定义于: effects/Cloud.ts:128

设置地球半径

参数 ​
value ​

number

地球半径

返回 ​

void


skyAmbientColor ​

Getter 签名 ​

get skyAmbientColor(): Color

定义于: effects/Cloud.ts:107

返回 ​

Color

Setter 签名 ​

set skyAmbientColor(color): void

定义于: effects/Cloud.ts:102

设置天空环境色

参数 ​
color ​

Color

天空环境色

返回 ​

void


speedRatio ​

Getter 签名 ​

get speedRatio(): number

定义于: effects/Cloud.ts:81

返回 ​

number

Setter 签名 ​

set speedRatio(value): void

定义于: effects/Cloud.ts:76

设置风速

参数 ​
value ​

number

风速

返回 ​

void


thickness ​

Getter 签名 ​

get thickness(): number

定义于: effects/Cloud.ts:159

返回 ​

number

Setter 签名 ​

set thickness(value): void

定义于: effects/Cloud.ts:154

设置云层厚度

参数 ​
value ​

number

云层厚度

返回 ​

void

方法 ​

_addCallback() ​

_addCallback(viewer): void

定义于: effects/Effect.ts:59

参数 ​

viewer ​

Viewer

效果添加的回调函数,

返回 ​

void

继承自 ​

Effect._addCallback


_mountedHook() ​

_mountedHook(): void

定义于: effects/Effect.ts:50

返回 ​

void

继承自 ​

Effect._mountedHook


_prepareDelegate() ​

_prepareDelegate(): void

定义于: effects/Cloud.ts:163

准备代理

返回 ​

void

重写了 ​

Effect._prepareDelegate


_removeCallback() ​

_removeCallback(): void

定义于: effects/Effect.ts:71

效果添加的回调函数

返回 ​

void

继承自 ​

Effect._removeCallback


_removedHook() ​

_removedHook(): void

定义于: effects/Effect.ts:52

返回 ​

void

继承自 ​

Effect._removedHook


addToViewer() ​

addToViewer(viewer): Cloud

定义于: effects/Effect.ts:84

将特效添加到当前视图

参数 ​

viewer ​

Viewer

当前视图

返回 ​

Cloud

继承自 ​

Effect.addToViewer


calcCloudHeight() ​

calcCloudHeight(): object

定义于: effects/Cloud.ts:187

返回 ​

object

cloudBase ​

cloudBase: number

cloudBaseRadius ​

cloudBaseRadius: number

cloudTop ​

cloudTop: number

cloudTopRadius ​

cloudTopRadius: number


fire() ​

fire(type, params): Cloud

定义于: effects/Effect.ts:116

参数 ​

type ​

any

params ​

any

返回 ​

Cloud

继承自 ​

Effect.fire


off() ​

off(type, callback, context): Cloud

定义于: effects/Effect.ts:106

参数 ​

type ​

any

callback ​

any

context ​

any

返回 ​

Cloud

继承自 ​

Effect.off


on() ​

on(type, callback, context): Cloud

定义于: effects/Effect.ts:95

参数 ​

type ​

any

callback ​

any

context ​

any

返回 ​

Cloud

继承自 ​

Effect.on


update() ​

update(): void

定义于: effects/Cloud.ts:207

返回 ​

void


updateCloudHeight() ​

updateCloudHeight(): void

定义于: effects/Cloud.ts:198

更新云层高度

返回 ​

void

MGis 地理三维库