LayerBuilding

LayerBuilding

new LayerBuilding(params)

Description:
  • 楼宇拆解,支持楼层隐藏、推出等功能
Source:
  • objects/other/LayerBuilding.js, line6
Parameters:
Name Type Description
params object 参数
Properties
Name Type Description
buildingName string 控制楼宇名称,若为all则控制全部楼宇,默认'all'
layeringHeight Number 楼宇楼层分解时,每层之间的高度,默认500,单位cm
layeringBaseHeight Number 楼宇分解时,模型整体抬高的高度,默认300,单位cm
floorPullDir object 楼层抽出方位,默认{x: 5000, y: 0, z: 0},单位cm * @param {Boolean} params.hiddenDefault 楼层默认是否隐藏,默认true,一般如果分层模型和非分层用的不是同一个模型时,需要设置为true

Methods

backBuildingToNormal()

Description:
  • 楼宇恢复默认状态
Source:
  • objects/other/LayerBuilding.js, line112

hideAboveFloor(number)

Description:
  • 隐藏输入的楼以上的楼层
Source:
  • objects/other/LayerBuilding.js, line212
Parameters:
Name Type Description
number number 楼层

hideAll()

Description:
  • 隐藏所有楼层
Source:
  • objects/other/LayerBuilding.js, line234

hideBuildings(numbers)

Description:
  • 隐藏楼层
Source:
  • objects/other/LayerBuilding.js, line182
Parameters:
Name Type Description
numbers Array 楼层,[-1, 1]

layeringBuilding()

Description:
  • 楼宇分解
Source:
  • objects/other/LayerBuilding.js, line95

pullBuilding(number)

Description:
  • 楼宇处于分解状态时,抽出楼层
Source:
  • objects/other/LayerBuilding.js, line130
Parameters:
Name Type Description
number number 楼层

pushBuilding(number)

Description:
  • 楼宇处于分解状态时,推回楼层
Source:
  • objects/other/LayerBuilding.js, line156
Parameters:
Name Type Description
number number 楼层

showAll()

Description:
  • 显示所有楼层
Source:
  • objects/other/LayerBuilding.js, line225

showBuildings(numbers)

Description:
  • 显示楼层
Source:
  • objects/other/LayerBuilding.js, line197
Parameters:
Name Type Description
numbers Array 楼层,[-1, 1]