M3D / M3D / Render / BoundingBoxEffect
Class: BoundingBoxEffect
Memberof
M3D.Render
Description
��Χ��Ч��
Author
ZYC
Date
2023-1-05
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Hierarchy
-
↳
BoundingBoxEffect
Table of contents
Constructors
Properties
Methods
- getEffectType
- getEvents
- getId
- getLineColor
- getLineWidth
- getRenderContext
- registerEvent
- removeEvent
- setEffectType
- setId
- setLineColor
- setLineWidth
- setRenderContext
Constructors
constructor
• new BoundingBoxEffect(): BoundingBoxEffect
Returns
Description
���캯��
Overrides
• new BoundingBoxEffect(lineWidth
): BoundingBoxEffect
Parameters
Name | Type | Description |
---|---|---|
lineWidth | number | �߿� |
Returns
Description
���캯��
Overrides
Effect.constructor
• new BoundingBoxEffect(lineColor
): BoundingBoxEffect
Parameters
Name | Type | Description |
---|---|---|
lineColor | Color | ��Χ���߿���ɫ |
Returns
Description
���캯��
Overrides
Effect.constructor
• new BoundingBoxEffect(lineWidth
, lineColor
): BoundingBoxEffect
Parameters
Name | Type | Description |
---|---|---|
lineWidth | number | �߿� |
lineColor | Color | ��Χ���߿���ɫ |
Returns
Description
���캯��
Overrides
Effect.constructor
Properties
id
• id: number
Inherited from
count
▪ Static
count: number
Inherited from
Methods
getEffectType
▸ getEffectType(): EffectType
Returns
特效类型
Description
获取特效类型
Inherited from
getEvents
▸ getEvents(): M3DEvent
[]
Returns
M3DEvent
[]
Description
获得事件列表
Inherited from
getId
▸ getId(): number
Returns
number
Description
获取id
Inherited from
getLineColor
▸ getLineColor(): Color
Returns
Description
��ȡ��Χ������ɫ
getLineWidth
▸ getLineWidth(): number
Returns
number
�߿�
Description
��ȡ��Χ���߿�
getRenderContext
▸ getRenderContext(): RenderContext
Returns
渲染上下文
Description
获取渲染上下文
Inherited from
registerEvent
▸ registerEvent(event
): void
Parameters
Name | Type | Description |
---|---|---|
event | M3DEvent | M3D事件 |
Returns
void
Description
注册事件
Inherited from
removeEvent
▸ removeEvent(): void
Returns
void
Description
删除事件
Inherited from
setEffectType
▸ setEffectType(effectType
): void
Parameters
Name | Type | Description |
---|---|---|
effectType | EffectType | 特效类型 |
Returns
void
Description
设置特效类型
Inherited from
setId
▸ setId(v
): void
Parameters
Name | Type | Description |
---|---|---|
v | number | ShapeId |
Returns
void
Description
设置id
Inherited from
setLineColor
▸ setLineColor(color
): void
Parameters
Name | Type |
---|---|
color | Color |
Returns
void
Description
���ð�Χ������ɫ
setLineWidth
▸ setLineWidth(width
): void
Parameters
Name | Type | Description |
---|---|---|
width | number | �߿� |
Returns
void
Description
���ð�Χ���߿�
setRenderContext
▸ setRenderContext(v
): void
Parameters
Name | Type | Description |
---|---|---|
v | RenderContext | 渲染上下文 |
Returns
void
Description
设置GL