File

src/client/app/frameworks/apis/services/bime.selector.service.ts

Description

高亮的服务对象
命名空间: window.BIMe.control.BIMeSelector

Constructor

constructor(bimeElementData: BIMeElementData, resourceService: ResourceService, selectorService: SelectorService, filterService: FilterService, rendererService: RendererService, BIMeEvent: BIMeEvent)

Methods

Public selectorCallBack
selectorCallBack(callback: any)

选择事件回调

Returns: void
Public getSelectorElementIds
getSelectorElementIds()

得到当前所有选中对象的Id

Example :
   function getSelectorElementIds(){
var elementIds = window.BIMe.control.BIMeSelector.getSelectorElementIds();
console.log(elementIds);
}
Returns: void
Public filterSelector
filterSelector(levelId: string[], category: string[])

自定义选择

Parameters :
  • levelId

    楼层ID

  • category

    类别

Returns: void
Public selectorElementByElementId
selectorElementByElementId(elementId: string | string[], isClear: boolean)

根据构件id高亮对象

Parameters :
  • elementId

    构件id string|string[];

  • isClear

    是否清空原来高亮对象

Example :
   function selectorElementByElementId(){
window.BIMe.control.BIMeSelector.selectorElementByElementId(elementId, isClear);
}
Returns: void
Public selectorElementByElementName
selectorElementByElementName(elementName: string | string[], isClear: boolean, modelId: string)

根据构件名称来高亮对象

Parameters :
  • elementName

    构件名称

  • isClear

    是否清空已选中的对象

  • modelId

    模型Id

Example :
   function selectorElementByElementName(){
window.BIMe.control.BIMeSelector.selectorElementByElementName(elementName, isClear, modelId);
}
Returns: void
Public selectorElementByCategoryId
selectorElementByCategoryId(categoryId: string | string[], isClear: boolean, modelId: string)

根据类型Id 高亮对象

Parameters :
  • categoryId

    类型Id

  • isClear

    是否清空已高亮对象

  • modelId

    模型id 可选参数

Example :
   function selectorElementByCategoryId(){
window.BIMe.control.BIMeSelector.selectorElementByCategoryId(categoryId, isClear, modelId);
}
Returns: void
Public selectorElementByLevelId
selectorElementByLevelId(levelId: string | string[], isClear: boolean, modelId: string)

根据楼层id 高亮对象

Parameters :
  • levelId

    楼层Id

  • isClear

    是否清空已高亮对象

  • modelId

    模型id 可选参数

Example :
   function selectorElementByLevelId(){
window.BIMe.control.BIMeSelector.selectorElementByLevelId(levelId, isClear, modelId);
}
Returns: void
Public selectorElementByTypeId
selectorElementByTypeId(typeId: string | string[], isClear: boolean, modelId: string)

根据构件类别Id 高亮对象

Parameters :
  • typeId

    类别Id

  • isClear

    是否清空已选中的对象

  • modelId

    模型Id

Example :
   function selectorElementByTypeId(){
window.BIMe.control.BIMeSelector.selectorElementByTypeId(typeId, isClear, modelId);
}
Returns: void
Public selectorElementByTypeName
selectorElementByTypeName(typeName: string | string[], isClear: boolean, modelId: string)

根据类别名称高亮对象

Parameters :
  • typeName

    类别名称

  • isClear

    是否清空已选中的对象

  • modelId

    模型ID

Example :
   function selectorElementByTypeName(){
window.BIMe.control.BIMeSelector.selectorElementByTypeName(typeName, isClear, modelId);
}
Returns: void
Public selectorElementByFamilyId
selectorElementByFamilyId(familyId: string | string[], isClear: boolean, modelId: string)

根据构件族Id 高亮对象

Parameters :
  • familyId

    族Id

  • isClear

    是否清空已选中的对象

  • modelId

    模型Id

Example :
   function selectorElementByFamilyId(){
window.BIMe.control.BIMeSelector.selectorElementByFamilyId(familyId, isClear, modelId);
}
Returns: void
Public selectorElementByFamilyName
selectorElementByFamilyName(familyName: string | string[], isClear: boolean, modelId: string)

根据构件族名称高亮对象

Parameters :
  • familyName

    组名称

  • isClear

    是否清空已选中的对象

  • modelId

    模型Id

Example :
   function selectorElementByFamilyName(){
window.BIMe.control.BIMeSelector.selectorElementByFamilyName(familyName, isClear, modelId);
}
Returns: void
Public removeAllSelectorElements
removeAllSelectorElements()

清空当前选中的对象

Example :
   function removeAllSelectorElements(){
window.BIMe.control.BIMeSelector.removeAllSelectorElements();
}
Returns: void
Public removeSelectorByElementId
removeSelectorByElementId(elementId: string | string[])

根据构件id 移除选中对象

Parameters :
  • elementId

    构件Id

Example :
   function removeSelectorByElementId(){
window.BIMe.control.BIMeSelector.removeSelectorByElementId(elementId);
}
Returns: void
Public removeSelectorByLevelId
removeSelectorByLevelId(levelId: string | string[], modelId: string)

根据楼层Id 移除选中对象

Parameters :
  • levelId

    楼层Id

  • modelId

    模型Id

Example :
   function removeSelectorByLevelId(){
window.BIMe.control.BIMeSelector.removeSelectorByLevelId(levelId, modelId);
}
Returns: void
Public removeSelectorByCategoryId
removeSelectorByCategoryId(categoryId: string | string[], modelId: string)

根据构件类型Id,移除选中对象

Parameters :
  • categoryId

    类别Id

  • modelId

    模型Id

Example :
   function removeSelectorByCategoryId(){
window.BIMe.control.BIMeSelector.removeSelectorByCategoryId(categoryId, modelId);
}
Returns: void
Public removeSelectorByCategoryName
removeSelectorByCategoryName(categoryName: string | string[], modelId: string)

根据类型名称移除选中对象

Parameters :
  • categoryName

    类型名称

  • modelId

    模型Id

Example :
   function removeSelectorByCategoryName(){
window.BIMe.control.BIMeSelector.removeSelectorByCategoryName(categoryName, modelId);
}
Returns: void
Public removeSelectorByTypeName
removeSelectorByTypeName(typeName: string | string[], modelId: string)

根据类别名称移除选中对象

Parameters :
  • typeName

    类别名称

  • modelId

    模型Id

Example :
   function removeSelectorByTypeName(){
window.BIMe.control.BIMeSelector.removeSelectorByTypeName(typeName, modelId);
}
Returns: void
Public removeSelectorByTypeId
removeSelectorByTypeId(typeId: string | string[], modelId: string)

根据类别名称移除选中对象

Parameters :
  • typeId

    类别Id

  • modelId

    模型Id

Example :
   function removeSelectorByTypeId(){
window.BIMe.control.BIMeSelector.removeSelectorByTypeId(typeId, modelId);
}
Returns: void
Public removeSelectorByFamilyId
removeSelectorByFamilyId(familyId: string | string[], modelId: string)

根据族id移除选中对象

Parameters :
  • familyId

    族Id

  • modelId

    模型Id

Example :
   function removeSelectorByFamilyId(){
window.BIMe.control.BIMeSelector.removeSelectorByFamilyId(familyId, modelId);
}
Returns: void
Public removeSelectorByFamilyName
removeSelectorByFamilyName(familyName: string | string[], modelId: string)

根据族名称移除选中对象

Parameters :
  • familyName

    组名称

  • modelId

    名称Id

Example :
   function removeSelectorByFamilyName(){
window.BIMe.control.BIMeSelector.removeSelectorByFamilyName(familyName, modelId);
}
Returns: void

results matching ""

    No results matching ""