new LinkedElementsInfo(goComponents)
Creates an instance of LinkedElementsInfo.
| Name | Type | Description |
|---|---|---|
goComponents |
GoIFCComponents |
The GoIFCComponents instance for interacting with the IFC components. |
Members
-
classNames
-
Gets the mapping of class numbers to class names.
-
expressIdsWithClassNumbers
-
Gets the mapping of express IDs to class numbers.
-
uniquesClassNumbers
-
Gets the set of unique class numbers.
Methods
-
createStyledElement(styleOnElementFunction, elements){HTMLElement}
Interactions/IFC/interact/GoIFCComponents/MapComponents/LinkedElementsInfo.ts, line 148 -
Creates a styled HTML element based on the provided style function and elements map.
Name Type Description styleOnElementFunctionHTMLElement The callback function to style the element.
elementsMap.<string, Set.<number>> The map of class names to sets of express IDs.
Returns:
Type Description HTMLElement The styled HTML element. -
createStyledElementByClass(styleOnElementFunction, emptyElement){HTMLElement}
Interactions/IFC/interact/GoIFCComponents/MapComponents/LinkedElementsInfo.ts, line 166 -
Creates a styled HTML element by class.
Name Type Description styleOnElementFunctionfunction Function to style the element.
emptyElementHTMLElement Element to return if no classes are found.
Returns:
Type Description HTMLElement The styled HTML element or the empty element. -
generateClasifications()
Interactions/IFC/interact/GoIFCComponents/MapComponents/LinkedElementsInfo.ts, line 105 -
Generates classifications based on the current link and model data. Updates mappings for class numbers, class names, and emits an event when processing is complete.
-
getClassName(classNumber){string|undefined}
Interactions/IFC/interact/GoIFCComponents/MapComponents/LinkedElementsInfo.ts, line 89 -
Retrieves the class name for a given class number.
Name Type Description classNumbernumber The class number.
Returns:
Type Description string | undefined The class name, or undefined if not found. -
getComponents(){GoIFCComponents}
Interactions/IFC/interact/GoIFCComponents/MapComponents/LinkedElementsInfo.ts, line 138 -
Retrieves the GoIFCComponents instance.
Returns:
Type Description GoIFCComponents The GoIFCComponents instance. -
getLinksInfo(){Map.<number, object>}
Interactions/IFC/interact/GoIFCComponents/MapComponents/LinkedElementsInfo.ts, line 130 -
Retrieves the current link information.
Returns:
Type Description Map.<number, object> The map of express IDs to link data. -
updateLinksInfo()
Interactions/IFC/interact/GoIFCComponents/MapComponents/LinkedElementsInfo.ts, line 57 -
Updates the link information by retrieving current data from the IFC models. Clears the existing link data and generates classifications based on the new data.
