Documentation - v20.0.0-dev
    Preparing search index...

    A chain of MeasureLineAnchors joined by segments, showing its total length on its MeasureLineGlobalSprite. Not drawn itself: its anchors are the objects of the MeasureLineController. Hovered, it is drawn in the hover colour; selected, its anchors are.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    children: SceneObject[] = ...
    controller: SceneObjectController<SceneObject> | null = null

    The controller handling it while it is in the scene, set when that controller adds it (see SceneObjectController.addObject); null out of the scene.

    isMeasureLine: true
    isRaycastable: boolean = true

    Whether the viewport's picking may hit it.

    isSceneObject: true
    isSelectable: boolean = true

    Indicates whether the object is selectable in the scene

    isTransformable: boolean = true
    name: string = ''
    parent: SceneObject | null = null

    The sprite showing the total length of the line.

    userData: Record<string, any> = {}
    uuid: string

    Unique identifier of the object

    Accessors

    • get active(): boolean

      Returns boolean

    • get anchorsLength(): number

      Returns number

    • get hover(): boolean

      Returns boolean

    • set hover(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    • get layer(): MeshLayer

      The layer it is drawn in (the engine's MeshLayer, Layer1 by default): a layer is drawn over the layers below it, whatever their depth. Given to its engine objects; kept only by an object without.

      Returns MeshLayer

    • set layer(value: MeshLayer): void

      Parameters

      Returns void

    • get selected(): boolean

      Whether it is selected; its controller's onObjectSelectedChanged tells a change.

      Returns boolean

    • set selected(value: boolean): void

      Whether it is selected; its controller's onObjectSelectedChanged tells a change.

      Parameters

      • value: boolean

      Returns void

    • get type(): string

      Returns string

    • get visible(): boolean

      Whether it is shown; its controller's onObjectVisibilityChanged tells a change.

      Returns boolean

    • set visible(value: boolean): void

      Whether it is shown; its controller's onObjectVisibilityChanged tells a change.

      Parameters

      • value: boolean

      Returns void

    Methods

    • Its state for toJson: a subclass adds its own after these.

      Returns Record<string, unknown>

    • The sections of its type for toJson, after its transform: none here.

      Returns Record<string, unknown>

    • Returns void

    • The anchor at index (negative: from the end, -1 the last); null when there is none.

      Parameters

      • index: number

      Returns MeasureLineAnchor | null

    • Its bounds in the world, written to target; empty when it has none.

      Parameters

      Returns Box3

    • Hides its total length (e.g. while it is drawn), or shows it again.

      Parameters

      • value: boolean

      Returns void

    • Parameters

      Returns void

    • Moves the whole line by matrix.

      Parameters

      Returns void

    • Everything about it for a debug view (the infobox's 3D data), in sections and in this order: identity, state, transform, its type's own sections (_getTypeJson: a mesh's material, edges and engine objects), userData, and its children by name, uuid and type. Not a persistence format.

      Returns Record<string, any>

    • Draws its anchors in its colour: the hover one while hovered.

      Returns void

    • Places the sprite of its total length, near its last anchor.

      Returns void