The main BimCT OpenGL 4.6 Renderer API entry point

Hierarchy

  • ExternalBaseBIMRenderer
    • BimCTOpenGL4Renderer

Constructors

Accessors

alignment allowPicking2DElements animations assetsBasePath autoCameraResetAfterModelLoaded baseCanvas bimctServerBasePath canvasCursor clipping comparisonViewer contextMenu contextMenuEvent currentFPS designTreeWindow displayFormat divElement dynamicElements elements filterElementsWindow gpuInfo guiActionsLockedEvent hasComparisonViewer hasContextMenu hasDesignTreeWindow hasFilterElementsWindow hasHomeToolbar hasLeftToolbar hasMessageWindow hasMinimapViewer hasPropertiesWindow hasSelectionLabelEnabled hasSettingsWindow hasShareWindow hasSnapshotWindow hasTimeChangerWindow hasToolbar hasTouchWidget hasViewsManager hasWebXRWindow homeToolbar inputHandler isDrawing isRotatingOrPanning languageChangedEvent leftToolbar mapPositionsChangeEvent measurementSystem measurements measurementsPointPushBackEvent measurementsSelectedEvent measurementsUpdatedEvent messageWindow metadataAccessor minimapViewer modelLoadedEvent modelRemovedEvent mouseRightClickedEvent overlay pickLines pickLinesUpdatedEvent pinClickedEvent pinDehighlightedEvent pinHighlightedEvent pinInsertEvent pinMovedEvent pins propertiesWindow renderingContext resizedEvent sceneState selectedElementIds selectedElementInternalIds selectedElements selectionChangeEvent sensors settingsChangedEvent settingsWindow shadingMode shareWindow showProgressWhileModelLoading snappingEnabled snapshotWindow state stateChangedEvent timeChangedEvent toolbar touchWidget transformationGismo viewsManager visibilityChangeEvent webXRWindow xrChangedEvent xrPanels xrPreviewToCanvas

Methods

BR3D_ComputeNormals BR3D_ConvertFromDXToOpenGL BR3D_EndComputingNormals BR3D_Get2DDrawingBackground BR3D_Get2DDrawingZoomOutPercentage BR3D_GetCurrentCameraProjectionType BR3D_GetCurrentCameraProjectionTypeSync BR3D_GetElementFirstColor BR3D_QuickCorner BR3D_QuickEdgePoint BR3D_Set2DDrawingFontName BR3D_SetOrthoCameraStatePart BR3D_StartComputingNormals BRFont_AddTextToPos BRMD_GetElementModelId BRXR_GetUpdateDataPtr_Webgl2 BRXR_SetAimPosition_Webgl2 BRXR_SetFramebufferData_Webgl2 BRXR_SetHandControllerState_Webgl2 BRXR_SetHandPosition_Webgl2 BR_FontCreateWithShadow BR_GetBuildId BR_GetValidationError BR_Validate _BR3D_IsElementVisible _BRXR_GetUpdateDataPtr_Webgl2 _BR_Debug_GetFPS activateArbitraryCuttingPlane activateCuttingPlane activateCuttingPlaneOnFaceId addClippingRegion addComparisonRenderer addCustomScale addNewMeasurement beginDrawLoop changeLanguage checkElementsShowing checkGUIActionsLocked checkVRSupported clearCuttingPlanes clearMeasurements clearPins clearSelection cloneModel colorizeInternalIds colorizeSelectedElements currentLanguage deactivateCuttingPlane decolorizeAllElements decolorizeInternalIds decolorizeSelectedElements destroy dispatchContextMenu dispatchStateChanged doRollOver focus getCameraState getClippingRegionsState getColorizationState getCuttingPlanesState getDynamicElementsState getElementsBoundingBox getElementsSelectionMode getFacesBoundingBox getHighlightedInternalIds getHighlightedState getHybridState getImageData getImageDataGzipped getMarkupState getMeasurementsState getModelsWithURLState getPaperIdOfElementId getPickMode getPinState getSceneBoundingBox getSceneView getSelectionType getSensorsState getSkymapIds getViewerSettingsState getVisibilityState getVisibleElementsBoundingBox getVisibleInternalIds getVisibleRegion2D hideAllWindows hideContextMenu hideDesignTreeWindow hideElementsByElementId hideElementsByGlobalId hideElementsByInternalId hideFilterElementsWindow hideMenus hideMessageWindow hidePropertiesWindow hideSelectedElements hideSettingsWindow hideShareWindow hideSnapshotWindow hideViewsWindow hideViewsWindows hideWebXRWindow init inputNumberMessageBox inputTextMessageBox inputUnitMessageBox is2DVisualizer is3DElement isCameraCompassVisible isCameraCubeVisible isCameraTransitioning isComparing isContextMenuShowing isCuttingPlaneActive isCuttingPlaneEnabled isDesignTreeWindowShowing isElementVisible isFilterElementsWindowShowing isGameModeOn isInitialized isKeyDown isMessageWindowShowing isMobileRenderer isPickingElements isPickingFaces isPickingFacesOrElements isPickingIsometric isPickingLines isPickingMeasurements isPropertiesWindowShowing isRenderingStopped isRollOverEnabled isSettingsWindowShowing isShareWindowShowing isSnapshotWindowShowing isVR_SessionStarted isViewsWindowShowing isViewsWindowsShowing isWebXRWindowShowing isolateSelectedElements loadDataMsgPack loadModel loadModelAndCache loadModelAndCache2 loadModelFromUrl loadSkymap loadSkymapById lookAtBoundingBox markMouseActionEventMade messageBox pickElementIds pickFaceId pickFaceIds pickNormal pickRubberbandElementIds pickRubberbandFaceIds pickRubberbandMeasurementIds recomputeCameraMovementSettings recomputeSnappingPoints refreshCameraCube refreshCloudsPosition refreshCuttingPlaneLabel refreshRedrawNeeded refreshSolarPosition removeClippingRegion removeComparisonRenderer removeSkymap requestRubberbandSelection resetCamera3D resetCameraToHome resetHybridMode resetLastRedrawExecuted resetXRVisibilityState revertPreviousRollOver rotateCamera2D screenToWorldPosition screenToWorldPositionNoDepth selectAllElements selectAllVisibleElements selectByClass selectByElementInfo selectByFilters selectByIds selectByInternalIds selectByLayer selectByMaterial selectByMembership selectByModel selectByStorey selectByType selectElementsByProperty set2DBoundingBox set2DVisualizerOn setBoundingBoxVisible setCameraCompassVisible setCameraCubeVisible setCameraState setCameraType setClippingRegionsState setColorizationState setCuttingPlanesState setDynamicElementsState setElementsHybridOpaque setElementsVisible setGUIActionsLocked setGridEnabled setGroundShadowEnabled setHighlightedState setHybridState setKey setMarkupState setMeasurementSystem setMeasurementsState setModelsWithURLState setNormalArrowVisible setPickMode setPinState setPointCloudPixelSize setSSAOEnabled setSceneDateAndTime setSceneView setSelectionLabelEnabled setSelectionType setSensorsState setShadowMapsEnabled setSunFlareEnabled setSunLightEnabled setViewerSettingsState setVisibilityState setXRPreviewToCanvas showAllElements showElementsByElementId showElementsByGlobalId showViewsWindow startAreaMeasure startCountMeasure startCuttingPlaneAddition startIsometricMeasure startLengthMeasure startOcclusionCulling startPinAdditionByColor startPinAdditionByImage startRendering startVR_Session stopOcclusionCulling stopRendering stopVR_Session supportedLanguages takeSnapshot unloadAll unloadModel updateSelectionByElementIds updateSelectionByElementNodes updateSelectionByGlobalIds updateSelectionByInternalIds updateSelectionFromHighlight updateSelectionLabel worldToScreenSpacePosition zoomExtents zoomToElements zoomToElementsByElementIds zoomToElementsByGlobalIds zoomToSelectedElements zoomToSelection

Constructors

Accessors

  • get alignment(): BimCTAlignment
  • Returns the alignment cofiguration handler of the BimCT scene models.

    Returns BimCTAlignment

  • get allowPicking2DElements(): boolean
  • Gets whether picking 2D elements is allowed.

    Returns

    Whether picking 2D elements is allowed.

    Returns boolean

  • set allowPicking2DElements(allowPicking2DElements: boolean): void
  • Sets whether picking 2D elements is allowed.

    Parameters

    • allowPicking2DElements: boolean

      Whether to allow picking 2D elements.

    Returns void

  • get animations(): Animations
  • Gets the animations.

    Returns

    The animations.

    Returns Animations

  • get assetsBasePath(): string
  • Gets the base path for assets.

    Returns

    The base path for assets.

    Returns string

  • get autoCameraResetAfterModelLoaded(): boolean
  • Gets the auto camera reset state after model is loaded.

    Returns boolean

  • set autoCameraResetAfterModelLoaded(v: boolean): void
  • Sets the auto camera reset state after model is loaded.

    Parameters

    • v: boolean

    Returns void

  • get baseCanvas(): BaseBimCanvas
  • Gets the base canvas.

    Returns

    The base canvas.

    Returns BaseBimCanvas

  • get bimctServerBasePath(): string
  • Gets the base path for the BimCT additional functions server.

    Returns

    The base path for the BimCT server.

    Returns string

  • set canvasCursor(cursor: BaseBimCanvasCursor): void
  • Sets the canvas cursor.

    Parameters

    Returns void

  • get comparisonViewer(): BimCTComparisonViewer
  • Gets the comparison viewer.

    Returns BimCTComparisonViewer

  • get contextMenu(): BimCTContextMenu
  • Gets the context menu.

    Returns

    The context menu.

    Returns BimCTContextMenu

  • get contextMenuEvent(): IEvent<BaseRenderer, PointerEvent>
  • Gets the context menu event.

    Returns

    The context menu event.

    Returns IEvent<BaseRenderer, PointerEvent>

  • get currentFPS(): number
  • Returns number

  • get displayFormat(): DisplayFormat
  • Gets the display format.

    Returns DisplayFormat

  • get divElement(): HTMLDivElement
  • Gets the div element.

    Returns

    The div element.

    Returns HTMLDivElement

  • get dynamicElements(): DynamicElements
  • Gets the dynamic elements.

    Returns

    The dynamic elements.

    Returns DynamicElements

  • get elements(): ElementInfo[]
  • Gets the elements.

    Returns

    The elements.

    Returns ElementInfo[]

  • get gpuInfo(): GPUInfo
  • Returns the GPU information.

    Returns GPUInfo

  • get guiActionsLockedEvent(): IEvent<BaseRenderer, boolean>
  • Gets the GUI actions locked event.

    Returns

    The GUI actions locked event.

    Returns IEvent<BaseRenderer, boolean>

  • get hasComparisonViewer(): boolean
  • Checks if the comparison viewer is available.

    Returns boolean

  • get hasContextMenu(): boolean
  • Checks if the context menu is available.

    Returns

    Whether the context menu is available.

    Returns boolean

  • get hasDesignTreeWindow(): boolean
  • Returns boolean

  • get hasFilterElementsWindow(): boolean
  • Returns boolean

  • get hasHomeToolbar(): boolean
  • Checks if the home toolbar is available.

    Returns

    Whether the home toolbar is available.

    Returns boolean

  • get hasLeftToolbar(): boolean
  • Checks if the left toolbar is available.

    Returns

    Whether the left toolbar is available.

    Returns boolean

  • get hasMessageWindow(): boolean
  • Checks if the message window is available.

    Returns

    Whether the message window is available.

    Returns boolean

  • get hasMinimapViewer(): boolean
  • Checks if the comparison viewer is available.

    Returns boolean

  • get hasPropertiesWindow(): boolean
  • Returns boolean

  • get hasSelectionLabelEnabled(): boolean
  • Checks if the selection label is enabled.

    Returns

    Whether the selection label is enabled.

    Returns boolean

  • get hasSettingsWindow(): boolean
  • Checks if the settings window is available.

    Returns

    Whether the settings window is available.

    Returns boolean

  • get hasShareWindow(): boolean
  • Checks if the share window is available.

    Returns

    Whether the share window is available.

    Returns boolean

  • get hasSnapshotWindow(): boolean
  • Checks if the snapshot window is available.

    Returns

    Whether the snapshot window is available.

    Returns boolean

  • get hasTimeChangerWindow(): boolean
  • Checks if the time changer window is available.

    Returns

    Whether the time changer window is available.

    Returns boolean

  • get hasToolbar(): boolean
  • Checks if the toolbar is available.

    Returns

    Whether the toolbar is available.

    Returns boolean

  • get hasTouchWidget(): boolean
  • Checks if the touch widget is available.

    Returns

    Whether the touch widget is available.

    Returns boolean

  • get hasViewsManager(): boolean
  • Checks if the views manager is available.

    Returns

    Whether the views manager is available.

    Returns boolean

  • get hasWebXRWindow(): boolean
  • Checks if the WebXR window is available.

    Returns

    Whether the WebXR window is available.

    Returns boolean

  • get homeToolbar(): BimCTHomeToolbar
  • Gets the home toolbar.

    Returns

    The home toolbar.

    Returns BimCTHomeToolbar

  • get inputHandler(): EnhancedInputHandler
  • Gets the input handler.

    Returns EnhancedInputHandler

  • get isDrawing(): boolean
  • Checks if the renderer is currently drawing.

    Returns boolean

  • get isRotatingOrPanning(): boolean
  • Gets whether the renderer is rotating or panning.

    Returns

    Whether the renderer is rotating or panning.

    Returns boolean

  • set isRotatingOrPanning(isRotatingOrPanning: boolean): void
  • Sets whether the renderer is rotating or panning.

    Parameters

    • isRotatingOrPanning: boolean

      Whether the renderer is rotating or panning.

    Returns void

  • get languageChangedEvent(): EventDispatcher<BaseRenderer, Language>
  • Gets the language changed event.

    Returns

    The language changed event.

    Returns EventDispatcher<BaseRenderer, Language>

  • get leftToolbar(): BimCTLeftToolbar
  • Gets the left toolbar.

    Returns

    The left toolbar.

    Returns BimCTLeftToolbar

  • get mapPositionsChangeEvent(): IEvent<BaseRenderer, WGS84>
  • Gets the visibility change event.

    Returns

    The visibility change event.

    Returns IEvent<BaseRenderer, WGS84>

  • get measurementSystem(): MEASUREMENT_SYSTEM
  • Gets the measurement system.

    Returns

    The measurement system.

    Returns MEASUREMENT_SYSTEM

  • get measurements(): MeasurementsState
  • Gets the measurements state.

    Returns

    The measurements state.

    Returns MeasurementsState

  • get measurementsPointPushBackEvent(): IEvent<BaseRenderer, Measurement[]>
  • Gets the measurements point push back event.

    Returns

    The measurements point push back event.

    Returns IEvent<BaseRenderer, Measurement[]>

  • get measurementsSelectedEvent(): IEvent<BaseRenderer, Measurement[]>
  • Gets the measurements selected event.

    Returns

    The measurements selected event.

    Returns IEvent<BaseRenderer, Measurement[]>

  • get measurementsUpdatedEvent(): IEvent<BaseRenderer, Measurement[]>
  • Gets the measurements updated event.

    Returns

    The measurements updated event.

    Returns IEvent<BaseRenderer, Measurement[]>

  • get messageWindow(): BimCTMessageBoxWindow
  • Gets the message window.

    Returns

    The message window.

    Returns BimCTMessageBoxWindow

  • get metadataAccessor(): BimCTMetadataAccessor
  • Gets the metadata accessor.

    Returns

    The metadata accessor.

    Returns BimCTMetadataAccessor

  • get minimapViewer(): BimCTMiniMapViewer
  • Gets the instance of the minimap viewer.

    Returns

    The instance of the minimap viewer.

    Returns BimCTMiniMapViewer

  • get modelLoadedEvent(): IEvent<BaseRenderer, Int64[]>
  • Gets the model loaded event.

    Returns

    The model loaded event.

    Returns IEvent<BaseRenderer, Int64[]>

  • get modelRemovedEvent(): IEvent<BaseRenderer, Int64[]>
  • Gets the model removed event.

    Returns

    The model removed event.

    Returns IEvent<BaseRenderer, Int64[]>

  • get mouseRightClickedEvent(): IEvent<BaseRenderer, UIEvent>
  • Gets the mouse right clicked event.

    Returns

    The mouse right clicked event.

    Returns IEvent<BaseRenderer, UIEvent>

  • get overlay(): BimCTOverlay
  • Gets the overlay.

    Returns

    The overlay.

    Returns BimCTOverlay

  • get pickLines(): PickLineState
  • Gets the pick lines state.

    Returns PickLineState

  • get pickLinesUpdatedEvent(): IEvent<BaseRenderer, Measurement[]>
  • Gets the pick lines updated event.

    Returns

    The pick lines updated event.

    Returns IEvent<BaseRenderer, Measurement[]>

  • get pinDehighlightedEvent(): IEvent<BaseRenderer, PinWidget3D>
  • Gets the pin dehighlighted event.

    Returns

    The pin dehighlighted event.

    Returns IEvent<BaseRenderer, PinWidget3D>

  • get pinHighlightedEvent(): IEvent<BaseRenderer, PinWidget3D>
  • Gets the pin highlighted event.

    Returns

    The pin highlighted event.

    Returns IEvent<BaseRenderer, PinWidget3D>

  • get pinInsertEvent(): IEvent<BaseRenderer, PinWidget3D>
  • Gets the pin insert event.

    Returns

    The pin insert event.

    Returns IEvent<BaseRenderer, PinWidget3D>

  • get pins(): Pins
  • Gets the pins.

    Returns

    The pins.

    Returns Pins

  • get renderingContext(): WebGL2RenderingContext
  • Returns the WebGL2 rendering context.

    Returns WebGL2RenderingContext

  • get resizedEvent(): EventDispatcher<BaseRenderer, { height: number; width: number }>
  • Gets the resized event.

    Returns

    The resized event.

    Returns EventDispatcher<BaseRenderer, { height: number; width: number }>

  • get sceneState(): SceneState
  • Keeps tracking of loaded models and elements. See SceneState.

    Returns

    The scene state.

    Returns SceneState

  • get selectedElementIds(): Int64[]
  • Gets the selected element IDs.

    Returns

    The selected element IDs.

    Returns Int64[]

  • get selectedElementInternalIds(): Int64[]
  • Gets the selected element internal IDs.

    Returns

    The selected element internal IDs.

    Returns Int64[]

  • get selectedElements(): ElementInfo[]
  • Gets the selected elements.

    Returns

    The selected elements.

    Returns ElementInfo[]

  • get selectionChangeEvent(): IEvent<BaseRenderer, ElementInfo[]>
  • Gets the selection change event.

    Returns

    The selection change event.

    Returns IEvent<BaseRenderer, ElementInfo[]>

  • get sensors(): SensorManager
  • Gets the sensor manager.

    Returns

    The sensor manager.

    Returns SensorManager

  • get settingsChangedEvent(): SimpleEventDispatcher<BaseRenderer>
  • Gets the settings changed event.

    Returns

    The settings changed event.

    Returns SimpleEventDispatcher<BaseRenderer>

  • get settingsWindow(): BimCTSettingsWindow
  • Gets the settings window.

    Returns

    The settings window.

    Returns BimCTSettingsWindow

  • get shadingMode(): SHADING_MODE
  • Gets the shading mode.

    Returns

    The shading mode.

    Returns SHADING_MODE

  • set shadingMode(mode: SHADING_MODE): void
  • Sets the shading mode of the renderer.

    Parameters

    Returns void

  • get shareWindow(): BimCTShareWindow
  • Gets the share window.

    Returns

    The share window.

    Returns BimCTShareWindow

  • get showProgressWhileModelLoading(): boolean
  • Gets the show progress state while model is loading.

    Returns boolean

  • set showProgressWhileModelLoading(v: boolean): void
  • Sets the show progress state while model is loading.

    Parameters

    • v: boolean

    Returns void

  • get snappingEnabled(): boolean
  • Gets whether snapping is enabled.

    Returns

    Whether snapping is enabled.

    Returns boolean

  • get snapshotWindow(): BimCTSnapshotWindow
  • Gets the snapshot window.

    Returns

    The snapshot window.

    Returns BimCTSnapshotWindow

  • get state(): RendererState
  • Gets the state of the renderer.

    Returns

    The state of the renderer.

    Returns RendererState

  • get stateChangedEvent(): ISimpleEvent<BaseRenderer>
  • Gets the state changed event.

    Returns

    The state changed event.

    Returns ISimpleEvent<BaseRenderer>

  • get timeChangedEvent(): IEvent<BaseRenderer, Date>
  • Gets the solar position changed event.

    Returns

    The the solar position changed event.

    Returns IEvent<BaseRenderer, Date>

  • get toolbar(): BimCTToolbar
  • Gets the toolbar.

    Returns

    The toolbar.

    Returns BimCTToolbar

  • get touchWidget(): BimCTTouchCursor
  • Gets the touch widget.

    Returns

    The touch widget.

    Returns BimCTTouchCursor

  • get transformationGismo(): TransformationGizmo
  • Gets the transformation gismo.

    Returns

    The transformation gismo.

    Returns TransformationGizmo

  • get visibilityChangeEvent(): ISimpleEvent<BaseRenderer>
  • Gets the visibility change event.

    Returns

    The visibility change event.

    Returns ISimpleEvent<BaseRenderer>

  • get webXRWindow(): BimCTWebXRWindow
  • Gets the WebXR window.

    Returns

    The WebXR window.

    Returns BimCTWebXRWindow

  • get xrPanels(): BimCTXrPanelsController
  • Returns BimCTXrPanelsController

  • get xrPreviewToCanvas(): boolean
  • Returns boolean

Methods

  • Parameters

    • vertices: number[]
    • number_of_vertices: number
    • indices: number[]
    • number_of_indices: number
    • indexArrayOffset: number
    • indexArrayPrimitives: number
    • useRightHand: number

    Returns Promise<void>

  • Parameters

    • interleavedVertexArray: number[]
    • number_of_vertices: number
    • indicesArray: number[]
    • number_of_indices: number

    Returns Promise<void>

  • Parameters

    • vertices: number[]
    • number_of_vertices: number

    Returns Promise<void>

  • Returns Promise<BR3D_Get2DDrawingBackgroundResult>

  • Returns Promise<BR3D_Get2DDrawingZoomOutPercentageResult>

  • Returns Promise<BR3D_GetCurrentCameraProjectionTypeResult>

  • Returns BR3D_GetCurrentCameraProjectionTypeResult

  • Parameters

    • element_id: Int64
    • original: boolean

    Returns Promise<BR3D_GetElementFirstColorResult>

  • Parameters

    • coord_x: number
    • coord_y: number

    Returns Promise<BR3D_QuickCornerResult>

  • Parameters

    • coord_x: number
    • coord_y: number

    Returns Promise<BR3D_QuickEdgePointResult>

  • Parameters

    • name: string

    Returns Promise<BR_FunctionOutput>

  • Parameters

    • state: number[]

    Returns Promise<BR_FunctionOutput>

  • Parameters

    • vertices: number[]
    • number_of_vertices: number
    • indices: number[]
    • number_of_indices: number

    Returns Promise<void>

  • Parameters

    • text: string
    • posx: number
    • posy: number

    Returns Promise<BR_FunctionOutput>

  • Parameters

    Returns Promise<BRMD_GetElementModelIdResult>

  • Returns Promise<Pointer>

  • Parameters

    • side: number
    • posX: number
    • posY: number
    • posZ: number
    • quatW: number
    • quatX: number
    • quatY: number
    • quatZ: number

    Returns Promise<boolean>

  • Parameters

    • framebuffer: number
    • x0: number
    • y0: number
    • w0: number
    • h0: number
    • x1: number
    • y1: number
    • w1: number
    • h1: number

    Returns Promise<boolean>

  • Parameters

    • side: number
    • active: number
    • aButton: number
    • bButton: number
    • trigger: number
    • grip: number
    • thumbstick: number
    • thumbX: number
    • thumbY: number
    • menu: number

    Returns Promise<boolean>

  • Parameters

    • side: number
    • posX: number
    • posY: number
    • posZ: number
    • quatW: number
    • quatX: number
    • quatY: number
    • quatZ: number

    Returns Promise<boolean>

  • Hide

    Parameters

    • name: string
    • active: boolean
    • filename: string
    • size: number
    • color_r: number
    • color_g: number
    • color_b: number
    • color_a: number
    • has_shadow: boolean
    • shadow_color_r: number
    • shadow_color_g: number
    • shadow_color_b: number
    • shadow_color_a: number
    • shadow_size: number
    • shadow_dir_x: number
    • shadow_dir_y: number

    Returns Promise<BR_FunctionOutput>

  • Returns Promise<string>

  • Returns Promise<string>

  • Parameters

    • key: string

    Returns Promise<boolean>

  • Parameters

    Returns boolean

  • Returns unknown

  • Returns BR_FunctionOutput

  • Activates an arbitrary cutting plane.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • point3D: Vector3D

      The point of the cutting plane.

    • direction: Vector3D

      The direction of the cutting plane.

    • showGizmo: boolean = false

      Whether to show the gismo.

    Returns Promise<boolean>

  • Activates a cutting plane.

    Parameters

    • index: number

      The index of the cutting plane.

    Returns Promise<void>

  • Activates a cutting plane on a face ID.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • faceId: Int64

      The face ID.

    • Optional point3D: Vector3D

      The point of the cutting plane.

    Returns Promise<boolean>

  • Adds a new clipping region by allowing the user to define it interactively.

    Returns

    A promise that resolves to the created BimCTClippingRegion or null if the operation fails.

    Returns Promise<ClippingRegion>

  • Adds a comparison renderer.

    Parameters

    Returns void

  • Adds a new custom scale by allowing the user to define it interactively.

    Returns Promise<CustomScale>

  • Adds a new measurement.

    Returns

    A promise that resolves to the new measurement.

    Returns Promise<Measurement>

  • Starts the drawing loop.

    Returns Promise<void>

  • Changes the language of the renderer.

    Parameters

    • lang: Language

      The language to change to.

    Returns void

  • Checks if elements are showing.

    Returns

    A promise that resolves to a boolean indicating if the elements are showing.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    Returns Promise<boolean>

  • Checks if GUI actions are locked.

    Returns

    Whether GUI actions are locked.

    Returns boolean

  • Checks if VR is supported.

    Returns Promise<boolean>

  • Clears the cutting planes.

    Returns Promise<void>

  • Clears the measurements.

    Returns Promise<void>

  • Clears the pins.

    Returns Promise<void>

  • Clears the selection.

    Returns Promise<void>

  • Clones a model that was already loaded to the scene using a URL.

    Returns

    A promise that resolves to the ModelInfo object of the cloned model.

    Parameters

    • modelId: Int64

      The ID of the model to clone.

    • Optional sceneView: SceneView

      The scene view to use for the model.

    • Optional transition: boolean

      Whether to use a transition when loading the model.

    • Optional matrix: number[]

      The matrix to apply to the model.

    • Optional mapping: ModelIdMapping

      The mapping to apply to the model.

    Returns Promise<ModelInfo>

  • Colorizes elements by internal IDs.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    • red: number

      The red component of the color.

    • green: number

      The green component of the color.

    • blue: number

      The blue component of the color.

    Returns Promise<void>

  • Colorizes the selected elements.

    Parameters

    • red: number

      The red component of the color.

    • green: number

      The green component of the color.

    • blue: number

      The blue component of the color.

    Returns Promise<void>

  • Get the currently used Language

    Returns

    the current Language

    Returns Language

  • Deactivates a cutting plane.

    Parameters

    • index: number

      The index of the cutting plane.

    Returns Promise<void>

  • Decolorizes all elements.

    Returns Promise<void>

  • Decolorizes elements by internal IDs.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    Returns Promise<void>

  • Decolorizes the selected elements.

    Returns Promise<void>

  • Asynchronously cleans up and releases resources used by the viewer. This may include removing event listeners, freeing memory, and terminating ongoing processes or operations.

    It is important to ensure that this method is called when the object is no longer needed to prevent memory leaks and ensure optimal application performance.

    Returns

    A promise that resolves when the destruction process is complete, indicating that all resources have been released successfully.

    Returns Promise<void>

  • Dispatches the context menu event.

    Parameters

    • evt: PointerEvent

      The pointer event.

    Returns number

  • Dispatches the state changed event.

    Returns void

  • Performs roll over at the specified coordinates.

    Parameters

    • x: number

      The x-coordinate.

    • y: number

      The y-coordinate.

    Returns Promise<void>

  • Focuses the renderer.

    Returns void

  • Gets the state of the camera. The state number array includes:

    1. position (3 floats)
    2. target (3 floats)
    3. direction (3 floats)
    4. right (3 floats)
    5. up (3 floats)
    6. linear speed (1 float)
    7. angular speed (1 float)
    8. zoom speed (1 float)
    9. min blend zoom (1 float)
    10. max blend zoom (1 float)

    Returns

    A promise that resolves to a CameraState object.

    Returns Promise<CameraState>

  • Gets the state of clipping regions.

    Returns

    A promise that resolves to a ClippingRegionsState object.

    Returns Promise<RegionsClippingState>

  • Gets the colorization state.

    Returns

    A promise that resolves to a ColorizationState object.

    Returns Promise<ColorizationState>

  • Gets the cutting planes state.

    Returns

    A promise that resolves to a CuttingPlanesState object.

    Returns Promise<CuttingPlanesState>

  • Retrieves the current state of dynamic elements.

    Returns

    A promise that resolves to a DynamicElementsState object.

    Returns Promise<DynamicElementsState>

  • Gets the bounding box of elements.

    Returns

    A promise that resolves to the bounding box of the elements.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    Returns Promise<BoundingBox3D>

  • Gets the elements selection mode.

    Returns

    A promise that resolves to the elements selection mode.

    Returns Promise<BIM_ELEMENT_SELECTION_MODE>

  • Gets the bounding box of faces.

    Returns

    A promise that resolves to the bounding box of the faces.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the faces.

    Returns Promise<BoundingBox3D>

  • Gets the highlighted internal IDs.

    Returns

    A promise that resolves to an array of highlighted internal IDs.

    Returns Promise<Int64[]>

  • Gets the highlighted state.

    Returns

    A promise that resolves to a HighlightedState object.

    Returns Promise<HighlightedState>

  • Gets the hybrid state.

    Returns

    A promise that resolves to a HybridState object.

    Returns Promise<HybridState>

  • Gets the image data.

    Returns

    A promise that resolves to the image data.

    Parameters

    • upsideDown: boolean = true

      Whether to flip the image upside down.

    Returns Promise<Uint8Array>

  • Gets the gzipped image data.

    Returns

    A promise that resolves to the gzipped image data.

    Returns Promise<Uint8Array>

  • Gets the markup state.

    Returns

    A promise that resolves to a MarkupState object.

    Returns Promise<MarkupState>

  • Gets the measurements state.

    Returns

    A promise that resolves to a MeasurementState object.

    Returns Promise<MeasurementState>

  • Gets the models with URL state.

    Parameters

    • modelIds: Int64[]

      The model IDs to get the state for.

    Returns Promise<ModelsWithURLState>

  • Gets the paper ID of an element ID.

    Returns

    A promise that resolves to the paper ID.

    Parameters

    • rendererId: Int64

      The renderer ID of the element.

    Returns Promise<Int64>

  • Gets the pick mode.

    Returns

    The pick mode.

    Returns RENDERER_PICK_MODE

  • Gets the pin state.

    Returns

    A promise that resolves to a PinState object.

    Returns Promise<PinState>

  • Gets the bounding box of the scene.

    Returns

    A promise that resolves to the bounding box of the scene.

    Returns Promise<BoundingBox3D>

  • Gets the scene view.

    Returns

    A promise that resolves to a SceneView object.

    Parameters

    • includeSettingsState: boolean = true

      Whether to include the settings state.

    • Optional includePinsState: boolean

      Whether to include the pins state.

    • Optional incudeSensorsState: boolean

      Whether to include the sensors state.

    • Optional includeDynamicElementsState: boolean

      Whether to include the dynamic elements state.

    Returns Promise<SceneView>

  • Gets the selection type.

    Returns

    The selection type.

    Returns BIM_SELECTION_TYPE

  • Gets the sensors state.

    Returns

    A promise that resolves to a SensorsState object.

    Returns Promise<SensorsState>

  • Gets the skymap IDs.

    Returns

    A map of skymap IDs.

    Returns Map<string, string>

  • Gets the viewer settings state.

    Returns

    A promise that resolves to a ViewerSettingsState object.

    Parameters

    • includeGeoPositionAndTime: boolean = true

      Whether to include geo position and time.

    Returns Promise<ViewerSettingsState>

  • Gets the visibility state.

    Returns

    A promise that resolves to a VisibilityState object.

    Returns Promise<VisibilityState>

  • Gets the bounding box of visible elements.

    Returns

    A promise that resolves to the bounding box of visible elements.

    Returns Promise<BoundingBox3D>

  • Gets the visible internal IDs.

    Returns

    A promise that resolves to an array of visible internal IDs.

    Parameters

    • staticElements: boolean

      Whether to include static elements.

    • dynamicElements: boolean

      Whether to include dynamic elements.

    Returns Promise<Int64[]>

  • Returns the visible region of the scene in 2D Visualuzer mode only

    Returns

    A promise that resolves to the bounding box of the visible region in 3D scene coordinates.

    Returns Promise<BoundingBox3D>

  • Hides all windows.

    Returns void

  • Hides the context menu.

    Returns

    Whether the context menu was hidden.

    Returns boolean

  • Hides the design tree window.

    Returns void

  • Hides elements by element ID.

    Parameters

    • ids: (number | Int64)[]

      The element IDs of the elements to hide.

    • recomputeSnapping: boolean = true

      Whether to recompute snapping points.

    Returns Promise<void>

  • Hides elements by global ID.

    Parameters

    • ids: string[]

      The global IDs of the elements to hide.

    Returns Promise<void>

  • Hides elements by internal ID.

    Parameters

    • ids: Int64[]

      The internal IDs of the elements to hide.

    • recomputeSnapping: boolean = true

      Whether to recompute snapping points.

    Returns Promise<void>

  • Hides the filter elements window.

    Returns void

  • Hides the menus.

    Returns

    Whether the context menu was hidden.

    Returns boolean

  • Hides the message window.

    Returns void

  • Hides the properties window.

    Returns void

  • Hides the selected elements.

    Returns Promise<void>

  • Hides the settings window.

    Returns void

  • Hides the share window.

    Returns void

  • Hides the snapshot window.

    Returns void

  • Hides the views window.

    Returns void

  • Hides all views windows.

    Returns void

  • Hides the WebXR window.

    Returns void

  • Shows an input number message box.

    Returns

    A promise that resolves to the input number.

    Parameters

    • message: string

      The message to display.

    • title: string = 'Message'

      The title of the message box.

    • value: number = undefined

      The default value of the input.

    • icon: MessageIcon = MessageIcon.INFO

      The icon for the message box.

    Returns Promise<number>

  • Shows an input text message box.

    Returns

    A promise that resolves to the input text.

    Parameters

    • message: string

      The message to display.

    • title: string = 'Message'

      The title of the message box.

    • value: string = ''

      The default value of the input.

    • icon: MessageIcon = MessageIcon.INFO

      The icon for the message box.

    Returns Promise<string>

  • Shows an input number message box.

    Returns

    A promise that resolves to the input number in millimeters

    Parameters

    • message: string

      The message to display.

    • title: string = 'Message'

      The title of the message box.

    • valueInMM: number = undefined

      The default value of the input in millimeters

    • icon: MessageIcon = MessageIcon.INFO

      The icon for the message box.

    Returns Promise<number>

  • Returns boolean

  • Checks if the element is a 3D element.

    Returns

    A promise that resolves to a boolean indicating if the element is a 3D element.

    Parameters

    • rendererId: Int64

      The renderer ID of the element.

    Returns Promise<boolean>

  • Checks if the camera compass is visible.

    Returns

    Whether the camera compass is visible.

    Returns boolean

  • Checks if the camera cube is visible.

    Returns

    Whether the camera cube is visible.

    Returns boolean

  • Returns boolean

  • Returns

    whether the renderer is comparing.

    Returns boolean

  • Checks if the context menu is showing.

    Returns

    Whether the context menu is showing.

    Returns boolean

  • Checks if a cutting plane is active.

    Returns

    Whether the cutting plane is active.

    Parameters

    • index: number

      The index of the cutting plane.

    Returns boolean

  • Checks if a cutting plane is enabled.

    Returns

    Whether a cutting plane is enabled.

    Returns boolean

  • Checks if the design tree window is showing.

    Returns

    Whether the design tree window is showing.

    Returns boolean

  • Checks if an element is visible.

    Returns

    A promise that resolves to a boolean indicating if the element is visible.

    Parameters

    • internalId: Int64

      The internal ID of the element.

    Returns Promise<boolean>

  • Checks if the filter elements window is showing.

    Returns

    Whether the filter elements window is showing.

    Returns boolean

  • Checks if the game mode is on.

    Returns

    Whether the game mode is on.

    Returns boolean

  • Checks if the renderer is initialized.

    Returns

    Whether the renderer is initialized.

    Returns boolean

  • Checks if a key is pressed.

    Returns

    Whether the key is pressed.

    Parameters

    • code: string

      The key code to check.

    Returns boolean

  • Checks if the message window is showing.

    Returns

    Whether the message window is showing.

    Returns boolean

  • Checks if the renderer is a mobile renderer.

    Returns

    Whether the renderer is a mobile renderer.

    Returns boolean

  • Checks if picking elements is enabled.

    Returns

    Whether picking elements is enabled.

    Returns boolean

  • Checks if picking faces is enabled.

    Returns

    Whether picking faces is enabled.

    Returns boolean

  • Checks if picking faces or elements is enabled.

    Returns

    Whether picking faces or elements is enabled.

    Returns boolean

  • Checks if picking isometric is enabled.

    Returns

    Whether picking isometric is enabled.

    Returns boolean

  • Checks if picking lines is enabled.

    Returns

    Whether picking lines is enabled.

    Returns boolean

  • Checks if picking measurements is enabled.

    Returns

    Whether picking measurements is enabled.

    Returns boolean

  • Checks if the properties window is showing.

    Returns

    Whether the properties window is showing.

    Returns boolean

  • Returns whether the rendering is stopped.

    Returns boolean

  • Checks if roll over is enabled.

    Returns

    Whether roll over is enabled.

    Returns boolean

  • Checks if the settings window is showing.

    Returns

    Whether the settings window is showing.

    Returns boolean

  • Checks if the share window is showing.

    Returns

    Whether the share window is showing.

    Returns boolean

  • Checks if the snapshot window is showing.

    Returns

    Whether the snapshot window is showing.

    Returns boolean

  • Checks if a VR session is started.

    Returns boolean

  • Checks if the views window is showing.

    Returns

    Whether the views window is showing.

    Returns boolean

  • Checks if any views windows are showing.

    Returns

    Whether any views windows are showing.

    Returns boolean

  • Checks if the WebXR window is showing.

    Returns

    Whether the WebXR window is showing.

    Returns boolean

  • Isolates the selected elements.

    Returns Promise<void>

  • Loads data from a MsgPack payload.

    Returns

    A promise that resolves when the model is loaded.

    Parameters

    • payload: number[] | Uint8Array | Buffer

      The payload to load.

    • Optional sceneView: SceneView

      The scene view to use for the model or undefined to use the default scene view. if you dont want to change the camera or the view use autoCameraResetAfterModelLoaded = true prior to calling this function.

    • Optional transition: boolean

      Whether to animate the transition to the new model.

    Returns Promise<void>

  • Loads a model from a payload.

    Returns

    A promise that resolves to the ModelInfo object of the loaded model.

    Parameters

    • payload: number[] | Uint8Array | Blob | XMLHttpRequest

      The payload of the model to load.

    • Optional sceneView: SceneView

      The scene view to use for the model or undefined to use the default scene view. if you dont want to change the camera or the view use autoCameraResetAfterModelLoaded = true prior to calling this function.

    • Optional transition: boolean

      Whether to use a transition when loading the model.

    • Optional matrix: number[]

      The matrix to apply to the model.

    • Optional mapping: ModelIdMapping

      The mapping to apply to the model.

    Returns Promise<ModelInfo>

  • Loads a model from a URL and caches it in the browser.

    Returns

    A promise that resolves when the model is loaded.

    Parameters

    • url: string

      The URL to load the model from.

    • Optional sceneView: SceneView

      The scene view to use for the model or undefined to use the default scene view. if you dont want to change the camera or the view use autoCameraResetAfterModelLoaded = true prior to calling this function.

    • Optional transition: boolean

      Whether to animate the transition to the new model.

    • Optional matrix: number[]

      The matrix to apply to the model.

    • Optional mapping: ModelIdMapping

      The mapping to apply to the model.

    Returns Promise<void>

  • Loads a model from an XMLHttpRequest and caches it in the browser.

    Returns

    A promise that resolves when the model is loaded.

    Parameters

    • httpRequest: XMLHttpRequest

      The XMLHttpRequest to load the model from.

    • uuid: string

      The UUID of the model.

    • Optional sceneView: SceneView

      The scene view to use for the model or undefined to use the default scene view. if you dont want to change the camera or the view use autoCameraResetAfterModelLoaded = true prior to calling this function.

    • Optional transition: boolean

      Whether to animate the transition to the new model.

    • Optional matrix: number[]

      The matrix to apply to the model.

    • Optional mapping: ModelIdMapping

      The mapping to apply to the model.

    Returns Promise<void>

  • Loads a model from a URL.

    Returns

    A promise that resolves to the ModelInfo object of the loaded model.

    Parameters

    • url: string

      The URL of the model to load.

    • Optional sceneView: SceneView

      The scene view to use for the model or undefined to use the default scene view. if you dont want to change the camera or the view use autoCameraResetAfterModelLoaded = true prior to calling this function.

    • Optional transition: boolean

      Whether to use a transition when loading the model.

    • Optional matrix: number[]

      The matrix to apply to the model.

    • Optional mapping: ModelIdMapping

      The mapping to apply to the model.

    Returns Promise<ModelInfo>

  • Loads a skymap from URLs.

    Parameters

    • skymapURL: string

      The URL of the skymap.

    • cloudsURL: string

      The URL of the clouds.

    Returns Promise<void>

  • Loads a skymap by its ID.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • skymapId: "grass" | "desert" | "farm"

      The ID of the skymap.

    • showLoading: boolean = true

      Whether to show the loading screen.

    Returns Promise<boolean>

  • Looks at the specified bounding box.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • bBox: BoundingBox3D

      The bounding box to look at.

    • animate: boolean

      Whether to animate the transition.

    Returns Promise<boolean>

  • Marks that a mouse action event has been made.

    Returns void

  • Shows a message box.

    Returns

    A promise that resolves to the result of the message box.

    Parameters

    • message: string

      The message to display.

    • title: string = 'Message'

      The title of the message box.

    • option: MessageOption = MessageOption.OKCANCEL

      The options for the message box.

    • icon: MessageIcon = MessageIcon.INFO

      The icon for the message box.

    Returns Promise<MessageResult>

  • Picks element IDs within the specified rectangle.

    Returns

    A promise that resolves to an array of picked element IDs.

    Parameters

    • x: number

      The x-coordinate of the top-left corner of the rectangle.

    • y: number

      The y-coordinate of the top-left corner of the rectangle.

    • w: number

      The width of the rectangle.

    • h: number

      The height of the rectangle.

    Returns Promise<Int64[]>

  • Picks the face ID at the specified coordinates.

    Returns

    A promise that resolves to the picked face ID.

    Parameters

    • x: number

      The x-coordinate.

    • y: number

      The y-coordinate.

    • prefer2DPaperFace: boolean

      Whether to prefer 2D paper face.

    Returns Promise<Int64>

  • Picks face IDs within the specified rectangle.

    Returns

    A promise that resolves to an array of picked face IDs.

    Parameters

    • x: number

      The x-coordinate of the top-left corner of the rectangle.

    • y: number

      The y-coordinate of the top-left corner of the rectangle.

    • w: number

      The width of the rectangle.

    • h: number

      The height of the rectangle.

    • prefer2DPaperFace: boolean

      Whether to prefer 2D paper face.

    Returns Promise<Int64[]>

  • Picks the normal vector at the specified coordinates.

    Returns

    A promise that resolves to the normal vector.

    Parameters

    • x: number

      The x-coordinate.

    • y: number

      The y-coordinate.

    Returns Promise<Vector3D>

  • Picks element IDs within the specified rubberband rectangle.

    Returns

    A promise that resolves to an array of picked element IDs.

    Parameters

    • sx: number

      The x-coordinate of the start point.

    • sy: number

      The y-coordinate of the start point.

    • ex: number

      The x-coordinate of the end point.

    • ey: number

      The y-coordinate of the end point.

    Returns Promise<Int64[]>

  • Picks face IDs within the specified rubberband rectangle.

    Returns

    A promise that resolves to an array of picked face IDs.

    Parameters

    • sx: number

      The x-coordinate of the start point.

    • sy: number

      The y-coordinate of the start point.

    • ex: number

      The x-coordinate of the end point.

    • ey: number

      The y-coordinate of the end point.

    Returns Promise<Int64[]>

  • Picks measurement IDs within the specified rubberband rectangle.

    Returns

    A promise that resolves to an array of picked measurement IDs.

    Parameters

    • sx: number

      The x-coordinate of the start point.

    • sy: number

      The y-coordinate of the start point.

    • ex: number

      The x-coordinate of the end point.

    • ey: number

      The y-coordinate of the end point.

    Returns Promise<Int64[]>

  • Recomputes the camera movement settings.

    Returns Promise<void>

  • Recomputes the snapping points.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Returns Promise<boolean>

  • Refreshes the camera cube.

    Returns Promise<void>

  • Refreshes the position of the clouds.

    Returns Promise<void>

  • Refreshes the cutting plane label.

    Parameters

    • planeIndex: number

      The index of the cutting plane.

    Returns void

  • Refreshes the redraw needed state.

    Parameters

    • reloadColors: boolean = false

    Returns void

  • Refreshes the solar position.

    Parameters

    • showDateTime: boolean = true

      Whether to show the date and time.

    • forceDispatchTimeChangedEvent: boolean = false

    Returns Promise<void>

  • Removes a specified clipping region from the list of regions.

    Returns

    A promise that resolves to true if the region was successfully removed, or false if the region was not found.

    Parameters

    • region: ClippingRegion

      The BimCTClippingRegion object to be removed.

    • silent: boolean = false

      If true, will not ask the user to delete any measurements that overlap with this region.

    Returns Promise<boolean>

  • Removes a comparison renderer.

    Parameters

    Returns void

  • Removes the skymap.

    Returns Promise<void>

  • Disables any GUI actions and forces the user to select a Rubberband area on screen Pressing Escape will return null

    Returns

    A promise that resolves to the selection Rectangle or null if the operation fails.

    Returns Promise<Rectangle>

  • Resets the 3D camera to the specified position.

    Parameters

    • position: BIM_CAMERA_POSITION

      The position to reset the camera to.

    • animate: boolean

      Whether to animate the transition.

    Returns Promise<void>

  • Resets the camera to the home position.

    Returns Promise<void>

  • Resets the hybrid mode.

    Parameters

    • clearHighlights: boolean = true

      Whether to clear the highlights.

    Returns Promise<void>

  • Resets the last redraw executed time.

    Returns void

  • Resets the XR visibility state.

    Returns Promise<void>

  • Reverts the previous roll over.

    Parameters

    • reset: boolean = false

      Whether to reset the roll over.

    Returns Promise<void>

  • Rotates the 2D camera to the specified position.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    Returns Promise<boolean>

  • Converts screen coordinates to world position.

    Returns

    A promise that resolves to the world position.

    Parameters

    • x: number

      The x-coordinate on the screen.

    • y: number

      The y-coordinate on the screen.

    Returns Promise<Vector3D>

  • Converts screen coordinates to world position without taking depth into account.

    Returns

    A promise that resolves to the world position.

    Parameters

    • x: number

      The x-coordinate on the screen.

    • y: number

      The y-coordinate on the screen.

    Returns Promise<Vector3D>

  • Selects and highlights all elements on the scene.

    Returns Promise<void>

  • Selects and highlights visible elements on the scene according to static or dynamic type.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • staticElements: boolean = true

      Whether to include static elements.

    • dynamicElements: boolean = true

      Whether to include dynamic elements.

    Returns Promise<boolean>

  • Selects and highlights the elements on the scene according to the class name. Names for all file types are similar to Ifc Standard without the Ifc prefix.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • className: string

      The class name.

    Returns Promise<boolean>

  • Selects and highlights the elements using an ElementInfo structure.

    Parameters

    • elements: ElementInfo[]

      The elements to select and highlight.

    Returns void

  • Selects and highlights the elements on the scene according to filters.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    Returns Promise<boolean>

  • Selects and highlights the elements by element ID.

    Parameters

    • ids: Int64[]

      The element IDs as defined on the metadata file.

    Returns Promise<void>

  • Selects and highlights the elements by engine internal IDs.

    Parameters

    • ids: Int64[]

      The internal IDs (different on every scene loading).

    Returns Promise<void>

  • Selects and highlights the elements on the scene according to the layer name defined in the file.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • layerName: string

      The layer name.

    Returns Promise<boolean>

  • Selects and highlights the elements on the scene according to the material name defined in the file.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • materialName: string

      The material name.

    Returns Promise<boolean>

  • Selects and highlights the elements on the scene according to the membership defined in the file.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • membershipNameOrGlobalId: string

      The membership name or global ID.

    Returns Promise<boolean>

  • Selects and highlights the elements on the scene according to model name.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • modelName: string

      The name of the model.

    Returns Promise<boolean>

  • Selects and highlights the elements on the scene according to the storey defined in the file.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • storeyName: string

      The storey name.

    Returns Promise<boolean>

  • Selects and highlights the elements on the scene according to the type defined in the file. Note: For Revit, this is usually the family name.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • typeName: string

      The type name.

    Returns Promise<boolean>

  • Selects and highlights the elements sharing the same property.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • property: ElementProperty

      The property to filter by.

    • group: string = null

      The group of the property.

    Returns Promise<boolean>

  • Sets the 2D bounding box.

    Parameters

    Returns void

  • Sets the 2D visualizer on or off.

    Parameters

    • on: boolean

      Whether to set the 2D visualizer on or off.

    • animate: boolean

      Whether to animate the transition.

    • dispatchStateChanged: boolean = true

    Returns Promise<void>

  • Sets the visibility of a bounding box.

    Parameters

    • bBox: BoundingBox3D

      The bounding box to set visibility for.

    • visible: boolean

      Whether to set the bounding box visible or not.

    • rgb: RGB = ...

      The color of the bounding box.

    Returns Promise<void>

  • Sets the camera compass visible or not.

    Parameters

    • visible: boolean

      Whether to set the camera compass visible or not.

    Returns Promise<void>

  • Sets the camera cube visible or not.

    Parameters

    • visible: boolean

      Whether to set the camera cube visible or not.

    Returns Promise<void>

  • Sets the state of the camera. The state number array includes:

    1. position (3 floats)
    2. target (3 floats)
    3. direction (3 floats)
    4. right (3 floats)
    5. up (3 floats)
    6. linear speed (1 float)
    7. angular speed (1 float)
    8. zoom speed (1 float)
    9. min blend zoom (1 float)
    10. max blend zoom (1 float)

    Parameters

    • state: CameraState

      The state to set.

    • animate: boolean

      Whether to animate the transition.

    • distatchStateChanged: boolean = true

      Whether to dispatch the state changed event default is true

    Returns Promise<void>

  • Sets the camera type.

    Parameters

    • type: BIM_CAMERA_TYPE

      The camera type to set.

    • panPrefered: boolean = false

      Whether panning is preferred.

    • dispatchStateChanged: boolean = true

    Returns Promise<void>

  • Sets the state of clipping regions.

    Parameters

    Returns Promise<void>

  • Sets the colorization state.

    Parameters

    Returns Promise<void>

  • Sets the cutting planes state.

    Parameters

    Returns Promise<void>

  • Sets the state of dynamic elements.

    Parameters

    Returns Promise<void>

  • Sets elements to hybrid opaque state.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    • state: boolean

      The hybrid opaque state.

    • clearHighlights: boolean = true

      Whether to clear the highlights.

    Returns Promise<void>

  • Sets the visibility of elements by internal IDs.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    • visible: boolean

      Whether to set the elements visible or not.

    Returns Promise<void>

  • Locks or unlocks GUI actions.

    Parameters

    • locked: boolean

      Whether to lock or unlock GUI actions.

    • escapeCallback: (() => void) = undefined
        • (): void
        • Returns void

    Returns void

  • Sets the grid enabled or disabled.

    Parameters

    • enabled: boolean

      Whether to enable or disable the grid.

    Returns Promise<void>

  • Sets ground shadow enabled or disabled.

    Parameters

    • enabled: boolean

      Whether to enable or disable ground shadow.

    Returns Promise<void>

  • Sets the highlighted state.

    Parameters

    Returns Promise<void>

  • Sets the hybrid state.

    Parameters

    Returns Promise<void>

  • Sets the key for the renderer.

    Parameters

    • key: string

      The key to set.

    Returns Promise<void>

  • Sets the markup state.

    Parameters

    • state: MarkupState

      The state to set.

    • editMode: boolean = false

      Whether to enable edit mode.

    Returns Promise<void>

  • Sets the measurement system.

    Parameters

    Returns Promise<void>

  • Sets the measurements state.

    Parameters

    Returns Promise<void>

  • Sets the models with URL state.

    Returns

    A promise that resolves when the state is set.

    Parameters

    • state: ModelsWithURLState

      The state to set.

    • unloadAllModelsWithURL: boolean = false

      Whether to unload all models with URL before setting the state.

    Returns Promise<void>

  • Sets the visibility of a normal arrow.

    Parameters

    • point: Vector3D

      The point of the arrow.

    • direction: Vector3D

      The direction of the arrow.

    • length: number

      The length of the arrow.

    • visible: boolean

      Whether to set the arrow visible or not.

    • rgb: RGB = ...

      The color of the arrow.

    Returns Promise<void>

  • Sets the RENDERER_PICK_MODE of the viewer

    Parameters

    Returns Promise<void>

  • Sets the pin state.

    Parameters

    Returns Promise<void>

  • Sets the pixel size of point clouds.

    Parameters

    • size: number

      The pixel size.

    Returns Promise<void>

  • Sets SSAO (Screen Space Ambient Occlusion) enabled or disabled.

    Parameters

    • enabled: boolean

      Whether to enable or disable SSAO.

    Returns Promise<void>

  • Sets the scene date and time.

    Parameters

    • dateAndTime: Date

      The date and time to set.

    • showDateTimePopup: boolean = true

      Whether to show the date and time popup.

    Returns Promise<void>

  • Sets the scene view.

    Parameters

    • view: SceneView

      The scene view to set.

    • transition: boolean

      Whether to transition to the view.

    • markupEditing: boolean = false

      Whether to enable markup editing.

    • showLoadingSplashscreen: boolean = true

      Whether to show the loading splashscreen.

    Returns Promise<void>

  • Sets whether the selection label is enabled.

    Parameters

    • val: boolean

      Whether to enable the selection label.

    Returns void

  • Sets the selection type.

    Parameters

    • type: BIM_SELECTION_TYPE

      The selection type to set.

    • sendStateChange: boolean = true

      Whether to send the state change event.

    Returns Promise<void>

  • Sets the sensors state.

    Parameters

    • state: SensorsState

      The state to set.

    Returns Promise<void>

  • Sets shadow maps enabled or disabled.

    Parameters

    • enabled: boolean

      Whether to enable or disable shadow maps.

    • Optional quality: BIM_SHADOWS_QUALITY

      The quality of the shadow maps.

    Returns Promise<void>

  • Sets sun flare enabled or disabled.

    Parameters

    • enabled: boolean

      Whether to enable or disable sun flare.

    Returns Promise<void>

  • Sets sun light enabled or disabled.

    Parameters

    • enabled: boolean

      Whether to enable or disable sun light.

    Returns Promise<void>

  • Sets the viewer settings state.

    Parameters

    Returns Promise<void>

  • Sets the visibility state.

    Parameters

    • state: VisibilityState

      The state to set.

    • recomputeSnapping: boolean = true

      Whether to recompute snapping points.

    Returns Promise<void>

  • Sets the XR preview to canvas state.

    Parameters

    • preview: boolean

    Returns void

  • Shows all elements.

    Parameters

    • show3D: boolean = true

      Whether to show 3D elements.

    • show2D: boolean = true

      Whether to show 2D elements.

    Returns Promise<void>

  • Shows elements by element ID.

    Parameters

    • ids: (number | Int64)[]

      The element IDs of the elements to show.

    Returns Promise<void>

  • Shows elements by global ID.

    Parameters

    • ids: string[]

      The global IDs of the elements to show.

    Returns Promise<void>

  • Shows the views window.

    Returns void

  • Pust the renderer in Area Measurement Pick Mode and starts addition of a Length Measurement You need to subscribe to measurementsPointPushBackEvent to Listen to measurement point changes

    Parameters

    • negative: boolean

      whether it is positive or negative Length Measurement

    Returns Promise<void>

  • Puts the renderer in Count Measurement Pick Mode and starts addition of a Length Measurement You need to subscribe to measurementsPointPushBackEvent to Listen to measurement point changes

    Returns Promise<void>

  • Puts the renderer into Pin Addition mode, the image used is in the image URL Original Width and Height of the image is required You need to subscribe to pinInsertEvent to listen to when and if an image will be actually added

    Returns Promise<void>

  • Starts isometric measurement.

    Parameters

    • negative: boolean

      Whether the measurement is negative.

    Returns Promise<void>

  • Pust the renderer in Length Measurement Pick Mode and starts addition of a Length Measurement You need to subscribe to measurementsPointPushBackEvent to Listen to measurement point changes

    Parameters

    • negative: boolean

      whether it is positive or negative Length Measurement

    Returns Promise<void>

  • Starts occlusion culling.

    Returns Promise<void>

  • Puts the renderer into Pin Addition mode, using inner pin SVG images that can change color You need to subscribe to pinInsertEvent to listen to when and if an image will be actually added

    Parameters

    • Optional color: string

      of the image in html color format

    • Optional userObject: unknown
    • Optional orientation: PinClickedPointOrientation

    Returns Promise<void>

  • Puts the renderer into Pin Addition mode, the image used is in the image URL Original Width and Height of the image is required You need to subscribe to pinInsertEvent to listen to when and if an image will be actually added

    Parameters

    Returns Promise<void>

  • Returns Promise<void>

  • Starts the VR session.

    Parameters

    • previewToCanvas: boolean = false

    Returns Promise<boolean>

  • Stops occlusion culling.

    Returns Promise<void>

  • Returns void

  • Stops the VR session.

    Returns Promise<boolean>

  • Returns the supported Languages

    Returns

    the supported Languages

    Returns Language[]

  • Takes a snapshot image and maintains aspect ratio.

    Returns

    A promise that resolves to a URI that contains the image to download or use.

    Parameters

    • Optional width: number

      The requested width.

    • Optional height: number

      The requested height.

    Returns Promise<string>

  • Unloads all models in the scene.

    Returns Promise<void>

  • Unloads a model by its ID.

    Parameters

    • modelId: number | Int64

      The ID of the model.

    • dispatchEvent: boolean = true

      Whether to dispatch the model removed event.

    Returns Promise<void>

  • Updates the selection by element IDs.

    Parameters

    • ids: (number | Int64)[]

      The element IDs to update the selection with.

    Returns Promise<void>

  • Manually update the selection.

    Parameters

    • localElementNodes: BimCTExpandableLevelVirtualRow[]

      The local element nodes to update the selection with.

    • internalIdsToSelection: boolean = true

      Whether to use internal IDs for selection.

    Returns Promise<void>

  • Updates the selection by global IDs.

    Parameters

    • ids: string[]

      The global IDs to update the selection with.

    Returns Promise<void>

  • Updates the selection by internal IDs.

    Parameters

    • ids: Int64[]

      The internal IDs to update the selection with.

    • highlight: boolean = true

      Whether to highlight the selection.

    Returns Promise<void>

  • Updates the selection from the highlight.

    Returns Promise<void>

  • Updates the selection label.

    Returns Promise<void>

  • Converts world coordinates to screen space position.

    Returns

    A promise that resolves to the screen space position and whether it is inside the frustum.

    Parameters

    • vector: Vector3D

      The world coordinates.

    Returns Promise<{ insideFrustum: boolean; point: Point2D }>

  • Zooms to the extents of the scene, 2D mode only

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Returns Promise<void>

  • Zooms to elements by internal IDs.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    • animate: boolean = true

      Whether to animate the transition.

    Returns Promise<boolean>

  • Zooms to elements by element IDs.

    Parameters

    • ids: (number | Int64)[]

      The element IDs of the elements.

    Returns Promise<void>

  • Zooms to elements by global IDs.

    Parameters

    • ids: string[]

      The global IDs of the elements.

    Returns Promise<void>

  • Zooms to the selected elements.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Returns Promise<boolean>

  • Zooms to the selection.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Returns Promise<boolean>