跳到主要内容
版本:v10.0

M3D / M3D / Render / ColorEffect

Class: ColorEffect

M3D.Render.ColorEffect

Memberof

M3D.Render

Description

颜色效果

Author

ZYC

Date

2023-1-05

Version

1.0

Copyright

All Rights Reserved.Copyright (C) 2022 HOTEAMSOFT, Ltd

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ColorEffect(): ColorEffect

Returns

ColorEffect

Description

构造函数

Overrides

Effect.constructor

new ColorEffect(transparent): ColorEffect

Parameters

NameTypeDescription
transparentnumber透明度

Returns

ColorEffect

Description

构造函数

Overrides

Effect.constructor

new ColorEffect(color): ColorEffect

Parameters

NameTypeDescription
colorColor颜色

Returns

ColorEffect

Description

构造函数

Overrides

Effect.constructor

Properties

id

id: number

Inherited from

Effect.id


count

Static count: number

Inherited from

Effect.count

Methods

getColor

getColor(): Color

Returns

Color

选中颜色

Description

获取选中颜色


getEffectType

getEffectType(): EffectType

Returns

EffectType

特效类型

Description

获取特效类型

Inherited from

Effect.getEffectType


getEvents

getEvents(): M3DEvent[]

Returns

M3DEvent[]

Description

获得事件列表

Inherited from

Effect.getEvents


getId

getId(): number

Returns

number

Description

获取id

Inherited from

Effect.getId


getRenderContext

getRenderContext(): RenderContext

Returns

RenderContext

渲染上下文

Description

获取渲染上下文

Inherited from

Effect.getRenderContext


getTransparent

getTransparent(): number

Returns

number

透明度

Description

获取选中透明度


registerEvent

registerEvent(event): void

Parameters

NameTypeDescription
eventM3DEventM3D事件

Returns

void

Description

注册事件

Inherited from

Effect.registerEvent


removeEvent

removeEvent(): void

Returns

void

Description

删除事件

Inherited from

Effect.removeEvent


setColor

setColor(color): void

Parameters

NameTypeDescription
colorColor颜色

Returns

void

Description

设置选中颜色


setEffectType

setEffectType(effectType): void

Parameters

NameTypeDescription
effectTypeEffectType特效类型

Returns

void

Description

设置特效类型

Inherited from

Effect.setEffectType


setId

setId(v): void

Parameters

NameTypeDescription
vnumberShapeId

Returns

void

Description

设置id

Inherited from

Effect.setId


setRenderContext

setRenderContext(v): void

Parameters

NameTypeDescription
vRenderContext渲染上下文

Returns

void

Description

设置GL

Inherited from

Effect.setRenderContext


setTransparent

setTransparent(transparent): void

Parameters

NameTypeDescription
transparentnumber透明度

Returns

void

Description

设置选中透明度