@twinfinity/core
    Preparing search index...

    Class BimCamera

    Index

    Constructors

    Accessors

    Methods

    • Attaches a behavior to the camera.

      Parameters

      Returns boolean

      true if the behavior was successfully attached to the camera, otherwise false.

    • Resets the camera to the default view. Camera is positioned to view entire building

      Parameters

      • Optionaldirection: CameraDirection

        Optional. Direction camera should look at building from. Default is a angled top position.

      Returns void

    • Detaches a behavior from the camera.

      Parameters

      Returns boolean

      true if the behavior was successfully detached to the camera, otherwise false.

    • Returns camera forward vector.

      Returns Vector3

    • Returns the current camera position and target as a string

      Returns string

    • Returns void

      Use cameraOptions instead Locks camera to prevent user interaction.

    • Sets camera position at eye and rotation to look towards target.

      Parameters

      • eye: Vector3

        Point to look from.

      • target: Vector3

        Point to look towards.

      Returns void

    • Sets camera rotation to look towards the specified direction and zooms to extent of visible objects.

      Parameters

      • direction: CameraDirection

        The direction to look from (top = -Z, bottom = +Z, front = +Y, back = -Y, left = +X, right = -X).

      Returns void

    • Parameters

      • locked: boolean

        Whether camera should be locked or not.

      Returns void

      Use cameraOptions instead Sets whether camera should prevent user interaction or not.

    • Parameters

      Returns void

      Use the mode property instead Sets camera mode.

    • Sets the pivot point to use a (mouse, touch) cursor-based pivot point (Auto).

      Parameters

      • mode: Auto

        Should be PivotMode.Auto

      Returns void

    • Sets the pivot point to a fixed point.

      Parameters

      • mode: Fixed

        Should be PivotMode.Fixed

      • pivot: Vector3 | BimIfcObject

        The object or point that the camera should pivot around.

      Returns void

    • Sets the camera's position and target from given string

      Parameters

      Returns void

    • Returns void

      Use Use cameraOptions instead Unlocks camera to allow for user interaction.

    • Zooms camera to the extent of the specified bounding box.

      Parameters

      • extent: Bound

        Bounding box in format [minX, minY, minZ, maxX, maxY, maxZ].

      • Optionaldirection: CameraDirection

        [Optional]. If set, the camera is positioned according to the direction during zoom. Otherwise, the current direction is kept.

      Returns void