ElementSubTreeDeleter Class
Beta
Performs a breadth-first search to visit elements in top-down order. When the supplied filter function chooses an element, ElementTreeDeleter is used to delete it and its sub-tree.
Extends
- ElementTreeTopDown
Methods
Name | Description | |
---|---|---|
constructor(iModel: IModelDb, shouldPruneCb: ElementSubTreeDeleteFilter): ElementSubTreeDeleter | Construct an ElementSubTreeDeleter. | |
deleteNormalElementSubTrees(topElement: string, scope?: ElementTreeWalkerScope): void | Traverses the tree of elements beginning with the top element, and deletes all selected sub-trees. | |
deleteSpecialElementSubTrees(): void | Delete all special elements and their sub-trees that were found in the course of processing. | |
prune(elementId: string, scope: ElementTreeWalkerScope): void Protected | ||
shouldPrune(elementId: string, scope: ElementTreeWalkerScope): boolean Protected |
Inherited methods
Name | Inherited from | Description |
---|---|---|
processElementTree(element: string, scope: ElementTreeWalkerScope): void Protected | ElementTreeTopDown |
Inherited properties
Name | Type | Inherited from | Description |
---|---|---|---|
_iModel Protected | IModelDb | ElementTreeTopDown |
Defined in
- backend/src/ElementTreeWalker.ts Line 407
Last Updated: 20 June, 2023