Class: WorkOrderComponent

WorkOrderComponent

Represents the WorkOrderComponent which manages work orders in the application. This component handles the creation, visualization, and interaction with work orders.

new WorkOrderComponent(components, ui)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 26

Initializes the WorkOrderComponent.

Name Type Description
components Components

The components manager.

ui GoIFCUI

The UI instance.

Extends

  • undefined

Members

activeWorkOrders

Gets the active work orders.

dataForm

Gets the metadata form for work orders.

expressIdRelationWorkOrders

Gets the relations between express IDs and work orders.

goIFCComponents

Gets the GoIFCComponents instance.

workOrderRelationAssets

Gets the relations between work orders and assets.

workOrderRelationExpressIds

Gets the relations between work orders and express IDs.

workOrderRelationModels

Gets the relations between work orders and models.

Methods

_handleWorkOrderPosition()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 829

“Preview-and-click” reposition mode with UI lock-down.

• All other mouse interactions are blocked. • A banner tells the user the app is in positioning mode. • Helper line appears when displacement > THRESHOLD and REMAINS after commit. • Left-click commits, Esc cancels.

addWorkOrder(workOrderData)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 456

Adds a work order to the scene.

Name Type Description
workOrderData WorkOrder

The work order data.

addWorkOrderData(workOrderData)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 382

Adds work order data to the internal storage.

Name Type Description
workOrderData WorkOrder

The work order data.

addWorkOrderToScene(workOrderData)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 559

Adds a work order to the scene.

Name Type Description
workOrderData WorkOrder

The work order data.

createWorkOrder(workOrderData)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 332

Creates a new work order.

Name Type Description
workOrderData Partial.<WorkOrder>

The data for the new work order.

deselectWorkOrders()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 540

Deselects all work orders.

dismount()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 1142

Cleans up the component by stopping polling intervals.

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

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 1135

Gets the WorkOrderComponent instance.

Returns:
Type Description
module:Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts~WorkOrderComponent The instance.

getUI(){GoIFCUI}

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 1127

Gets the UI instance.

Returns:
Type Description
GoIFCUI The UI instance.

getWorkOrder(id){WorkOrder|undefined}

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 374

Retrieves a work order by its ID.

Name Type Description
id string

The ID of the work order.

Returns:
Type Description
WorkOrder | undefined The work order data.

getWorkOrderContent(workOrderId, onClick){HTMLDivElement}

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 740

Gets the content for a work order.

Name Type Description
workOrderId string

The ID of the work order.

onClick function optional

Optional click handler.

Returns:
Type Description
HTMLDivElement The content element.

hideActiveWorkOrders()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 726

Hides active work orders.

hideWorkOrder(id)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 505

Hides a work order.

Name Type Description
id string

The ID of the work order.

hideWorkOrders()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 697

Hides all work orders.

removeWorkOrderFromScene(id)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 434

Removes a work order from the scene.

Name Type Description
id string

The ID of the work order.

selectWorkOrder(id, zoomTo)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 466

Selects a work order and optionally zooms to it.

Name Type Default Description
id string

The ID of the work order.

zoomTo boolean false optional

Whether to zoom to the work order.

showActiveWorkOrders()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 717

Shows active work orders.

showWorkOrder(id)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 527

Shows a work order.

Name Type Description
id string

The ID of the work order.

showWorkOrders()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/index.ts, line 707

Shows all work orders.