PolygonFeatureManager

Glodon.Bimface.ElementManager. PolygonFeatureManager

SHP图层的面要素管理器

Constructor

new Glodon.Bimface.ElementManager.PolygonFeatureManager(layer)

Parameters:
Name Type Description
layer Glodon.Bimface.Layer.FeatureLayer

FeatureLayer对象

Methods

设置构件闪烁

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}]}

color Glodon.Web.Graphics.Color

构件闪烁颜色

interval Number

闪烁间隔时间(毫秒),参数为空时恢复为默认,参数 time <= 0 时无效

times Number

闪烁次数,参数为空时默认不限次数

clearAllBlinkComponents()

取消所有构件的闪烁状态

clearBlinkComponents(conditions)

根据筛选条件取消构件闪烁

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}]}

clearIsolation()

取消模型隔离

getArea(id)

根据ID获取指定面要素的面积大小,单位为m2

Parameters:
Name Type Description
id String

面要素ID

Returns:
Type Description
Number

面要素面积大小,单位为m2

getBoundingBox(conditions)

根据条件获取包围盒信息

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}

Returns:
Type Description
Object

包围盒对象

hide(conditions)

根据条件隐藏对应要素

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}

isolate(conditions)

根据筛选条件隔离构件

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}]}

overrideColor(conditions, color)

根据条件对要素着色

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}

color Glodon.Web.Graphics.Color

着色颜色

overrideFrameColor(conditions, color)

根据条件对要素边界线着色

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}

color Glodon.Web.Graphics.Color

边界线颜色

removeGlowEffectById(ids)

根据ID移除发光效果

Parameters:
Name Type Description
ids Array

Object Ids.

restoreColor(conditions)

根据条件清空要素颜色,恢复默认显示

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}

restoreFrameColor(conditions)

根据条件清空要素边线着色,恢复默认显示

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}

restoreOutlineStyle(condition)

将面要素边框恢复为默认样式

Parameters:
Name Type Description
condition Object

面要素对象的过滤条件

Properties
Name Type Description
ids Array

面要素ID列表

objectData Array

面要素筛选条件

all Boolean

全部面要素

select(condition)

Overrides:

根据条件选择对应要素

Parameters:
Name Type Description
condition Object

选择条件

Properties
Name Type Description
ids Array

要素ID列表

noIds Array

取消要素ID列表

objectData Array

要素筛选条件

all Boolean

全部要素

setGlowEffectById(ids, opt)

根据ID列表设置构件、房间、外部构件的发光效果

Parameters:
Name Type Description
ids Array

构件、房间、外部构件ID列表

opt Object

发光效果参数

Properties
Name Type Description
type String

发光效果类型,“body”为整体发光,“outline”为轮廓线发光,默认为“body”

color Glodon.Web.Graphics.Color

发光效果颜色

intensity Number

发光强度,取值范围[0,1],默认值为0.3

spread Number

扩散程度,取值范围[1,5],默认值为3

setOutlineStyle(condition, style)

设置面要素边框样式

Parameters:
Name Type Description
condition Object

面要素对象的过滤条件

Properties
Name Type Description
ids Array

面要素ID列表

objectData Array

面要素筛选条件

all Boolean

全部面要素

style Object

边框样式

Properties
Name Type Description
color Glodon.Web.Graphics.Color

线框颜色

width线框宽度 Number

show(conditions)

根据条件显示对应要素

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}