BimIfcLoaderElementParent
Implemented by
Index
Properties
readonlyclasses
Gets all the IFC classes used by IFC products in the currently loaded IFC files.
readonlydisciplines
Gets the available disciplines.
readonlyfloors
Gets the floors (IfcBuildingStorey) available in the currently loaded IFC files.
readonlyloaderElements
Gets the BimIfcLoaderElement for the loaded IFC files.
readonlyprojects
Gets the IfcProject root nodes from each loaded IFC file.
readonlyspaces
Gets the spaces (IfcSpace) available in the currently loaded IFC files.
Methods
addOrGetIfcProductCache
Adds or retrieves the cached set of BimIfcObject instances based on the provided key and predicate. Cache is cleared when clear is called.
Type parameters
- T: BimIfcObject<T> = BimIfcObject
The type of BimIfcObject to be stored in the cache.
Parameters
key: string
The key used to identify the cache entry.
predicate: BimIfcObjectForEachPredicate
The predicate function used to filter BimIfcObject instances. If it returns
truthy
then object is added to cache. Otherwise not
Returns DeepImmutableObject<Set<T>>
The cached set of BimIfcObject instances.
- T: BimIfcObject<T> = BimIfcObject
clear
Clears the state of the BimIfcLoader instance. If geometryBuilder has been called, and if it has been use to create Geometry3d instances that have been added to TwinfinityViewer then those instances are NOT removed from the viewer. Call Twinfinity.clear to remove all geometry from the viewer as well.
Returns void
deleteIfcProductCache
Deletes a cache created by addOrGetIfcProductCache-
Parameters
key: string
Cache to delete
Returns boolean
true
if a cache was deleted, otherwisefalse
.
Represents a BIM IFC Loader. Responsible for managing a collection of IFC files and loading data from them.