Class: SmartViewComponent

SmartViewComponent

This class extends the Component class and provides specific functionalities for handling SmarthView features in IFC models.

new SmartViewComponent(components, ui)

Interactions/IFC/interact/GoIFCComponents/Components/SmartViewComponent/index.ts, line 22

Constructs a SmartViewComponent instance.

Name Type Description
components Components

The Components instance associated with this component.

ui GoIFCUI

The UI component associated with GoIFCComponents.

Extends

  • undefined

Methods

asyncactivate()

Interactions/IFC/interact/GoIFCComponents/Components/SmartViewComponent/index.ts, line 183

Activates the SmartViewComponent, enabling its functionality. It generates colors for the classes and storeys if not already done. This method is asynchronous due to potential external operations.

deactivate()

Interactions/IFC/interact/GoIFCComponents/Components/SmartViewComponent/index.ts, line 239

Deactivates the SmartViewComponent, disabling its functionality and hiding all colorations. It also resets the visibility of all classes. This method is asynchronous due to potential external operations.

get(){module:Interactions/IFC/interact/GoIFCComponents/Components/SmartViewComponent/index.ts~SmartViewComponent}

Interactions/IFC/interact/GoIFCComponents/Components/SmartViewComponent/index.ts, line 71

Returns the current instance of SmartViewComponent.

Returns:
Type Description
module:Interactions/IFC/interact/GoIFCComponents/Components/SmartViewComponent/index.ts~SmartViewComponent The current instance of the component.

toggleClassVisibility(classNumber){void}

Interactions/IFC/interact/GoIFCComponents/Components/SmartViewComponent/index.ts, line 114

Toggles the visibility state of a class associated with the given class number.

Name Type Description
classNumber number

The number representing the class whose visibility state is to be toggled.

Returns:
Type Description
void

asyncupdate(_name)

Interactions/IFC/interact/GoIFCComponents/Components/SmartViewComponent/index.ts, line 132

Updates the visibility and coloration of fragments based on class names. This method is asynchronous due to potential external operations.

Name Type Description
_name string optional

An optional class name to update. If not provided, all class names are updated.