new fengmap.FMExternalModel()
Members
-
readonlyFID
-
元素FID
Properties:
Type Description string -
readonlyID
-
ID
Properties:
Type Description number -
readonlybindBuildingID
-
当前对象所关联的子地图的 buildingID,undefined 表示当前对象不属于任何子地图;
Properties:
Type Description string | undefined -
readonlybound
-
Properties:
Name Type Description boundfengmap.FMBound 边界
-
color
-
Properties:
Name Type Description colorstring 颜色值
-
readonlyeName
-
英文名称
Properties:
Type Description string -
readonlyheight
-
元素高度
Properties:
Type Description number -
readonlylevel
-
元素所在层级
Properties:
Type Description string -
readonlyname
-
模型名称
Properties:
Type Description string -
opacity
-
Properties:
Name Type Description opacitynumber 透明度
-
readonlytype
-
Properties:
Name Type Description typefengmap.FMType 节点类型
-
readonlytypeID
-
数据类型ID
Properties:
Type Description string -
visible
-
Properties:
Name Type Description visibleBoolean true 显示 false 隐藏
-
readonlyx
-
中点X轴坐标
Properties:
Name Type Description 返回中点X轴坐标number -
readonlyy
-
中点Y轴坐标
Properties:
Name Type Description 返回中点Y轴坐标number
Methods
-
inherited dispose()
-
废置地图对象
-
getActionNames(){*}
-
获取所有动画片段名称
Returns:
Type Description * -
getActions(){Array}
-
获取action
Returns:
Type Description Array FMAction对象数组。 -
inherited getBelongedBuildingID(){string|null}
-
获取当前对象所属的 buildingID
Returns:
Type Description string | null null 表示归属为当前地图或室内外一体化中的室外主地图 -
inherited getData(){Object}
-
获取模型数据属性
Returns:
Name Type Description ObjectObject 模型的数据属性 Name Type Description IDnumber 数据ID typeIDstring 数据类型ID FIDstring 模型FID heightnumber 高度 namestring 模型名字 eNamestring 模型英文名字 minLevelint 最小显示级别 maxLevelint 最大显示级别 -
getTextureNames(){Array}
-
获取外部模型所有纹理名称
Returns:
Type Description Array 返回查询结果。 -
resetColor()
-
重置回外默认颜色和透明度
-
setColor(color, opacity)
-
设置颜色和透明度
Name Type Description colorstring | number 颜色值
opacitynumber 透明度
-
startAction(name, once)
-
开始播放模型对象的动画
Name Type Description namestring 模型对象的动画name名称
onceboolean true 只执行一次动画,false 循环执行;默认 false
- Deprecated
- 3.2.4 版本及以后版本将不可用, 使用FMAction里的start方法替换
-
stopAction(name)
-
停止播放模型对象的动画
Name Type Description namestring 模型对象的动画name名称
- Deprecated
- 3.2.4 版本及以后版本将不可用, 使用FMAction里的stop方法替换
-
inherited traverse(callback)
-
遍历返回子节点
Name Type Description callback