Documentation
    Preparing search index...

    Class AssetAnnotationMeasurementRenderPlugin

    A renderer plugin for creating and managing measurement annotations in a 3D scene. It integrates with LuciadRIA's measurement tools to allow interactive placement, updating, hovering, and selection of measurement annotations.

    Hierarchy

    • RendererPlugin & DisposableManaged & EventBus<Events, this>
      • AssetAnnotationMeasurementRenderPlugin

    Implements

    • AssetRendererPlugin
    Index

    Constructors

    Properties

    PLUGIN_TOOLBOX_KEY: string = 'measurements'

    Methods

    • Adds an event listener for a specific event.

      Type Parameters

      • K extends keyof Events

        The type of the event key.

      Parameters

      • event: K

        The event to listen to.

      • listener: (eventData: Events[K]) => void

        The callback function to be invoked when the event is emitted.

      Returns EventHandle

      An EventHandle with a remove method to unsubscribe the listener.

    • Called when the plugin is registered in the system. The result of this hook determines whether the plugin is enabled.

      Parameters

      • context: unknown

        The context provided to the plugin.

      Returns boolean

      Whether the plugin should be enabled.

    • Updates the measurement annotations in the scene with new data, hovered states, and selected states.

      Parameters

      • annotations: MeasurementAnnotation[]

        The measurement annotations to display.

      • hoveredAnnotationIds: string[]

        The IDs of measurements currently hovered.

      • selectedAnnotationIds: string[]

        The IDs of measurements currently selected.

      Returns void