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

    Controller of the FloorPlans: their engine objects are in the engine scene's MeshController, which draws, bounds and picks them; their texts are added to the scene with them, shown with them. Registered in the scene by the FloorPlanPlugin.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _objects: Map<string, FloorPlan> = ...
    _viewer: Viewer
    ignoreViewportRenderMode: false

    Indicates whether the mesh controller should ignore the render mode changes of the viewport

    isFloorPlanController: true

    Tells a floor plan controller, without instanceof.

    isSceneMeshController: true
    isSceneObjectController: true
    signals: {
        onObjectAdded: Signal<(object: FloorPlan) => void>;
        onObjectRemoved: Signal<(object: FloorPlan) => void>;
        onObjectSelectedChanged: Signal<(object: FloorPlan) => void>;
        onObjectUpdated: Signal<(object: FloorPlan) => void>;
        onObjectVisibilityChanged: Signal<(object: FloorPlan) => void>;
        onVisibilityChanged: Signal<() => void>;
    } = ...

    Type Declaration

    • onObjectAdded: Signal<(object: FloorPlan) => void>
    • onObjectRemoved: Signal<(object: FloorPlan) => void>
    • onObjectSelectedChanged: Signal<(object: FloorPlan) => void>

      One of its objects is selected or unselected (SceneObject.selected).

    • onObjectUpdated: Signal<(object: FloorPlan) => void>
    • onObjectVisibilityChanged: Signal<(object: FloorPlan) => void>

      One of its objects is shown or hidden (SceneObject.visible).

    • onVisibilityChanged: Signal<() => void>

    Accessors

    • get count(): number

      Controller objects count

      Returns number

    • get firstObject(): TObject | null

      Returns TObject | null

    • get renderState(): MeshRenderState

      How all its objects are drawn, over each one's own state (see MeshRenderState).

      Returns MeshRenderState

    • get uuids(): MapIterator<string>

      Iterator over all the uuids contained in the controller.

      Returns MapIterator<string>

    • get visible(): boolean

      Returns boolean

    • set visible(value: boolean): void

      Controller visibility (independant from object own visibility).

      Hiding a controller will hide all its children without modifying their own visibility.

      Parameters

      • value: boolean

      Returns void

    Methods

    • Shows or hides the plans' engine objects and their texts.

      Parameters

      • value: boolean

      Returns void

    • Adds the plan and its texts to the scene.

      Parameters

      • floorPlan: FloorPlan
      • parentUuid: string | null

      Returns void

    • Whether count objects more can be added: always, but where a limit holds (e.g. planes).

      Parameters

      • count: number

      Returns boolean

    • Clears all objects from the controller

      Returns void

    • Makes a plan and its engine object: a part per shape of every layer, the layers of highest order first, each moved by LAYER_SPACING more along the plan's direction (towards the viewer), and the texts of each layer. Not added to the scene (see AddFloorPlanCommand).

      Parameters

      Returns FloorPlan

    • Removes its objects' engine objects from the engine scene, then disposes them.

      Returns void

    • Removes the object's engine objects from the engine scene, then disposes it.

      Parameters

      Returns void

    • The uuids of the hidden objects of this controller.

      Returns string[]

    • The uuids of the objects of this controller: the iterator of its map, no copy.

      Returns MapIterator<string>

    • The uuids of the visible objects of this controller.

      Returns string[]

    • The plan of a configuration; null when it is not in the scene.

      Parameters

      • configurationId: number

      Returns FloorPlan | null

    • Returns the object associated with the given uuid if found

      Parameters

      • uuid: string

      Returns FloorPlan | null

    • The objects of these uuids, in their order; the unknown uuids left out.

      Parameters

      • uuids: Iterable<string>

      Returns FloorPlan[]

    • Returns whether the controller has the given uuid

      Parameters

      • uuid: string

      Returns boolean

    • Appends where a ray hits its objects drawn outside the engine to target, those options.filter keeps; none by default. Its engine objects (meshes, sprites, planes) are hit by ViewerRaycaster.raycast, which calls it: a controller drawing objects of its own overrides it.

      Parameters

      • ray: Ray

        World frame.

      • camera: Camera

        The camera the ray goes through, its world matrices as last drawn.

      • options: ViewerRaycastOptions

        The query's options.

      • target: SceneIntersection[]

        The hits of the query, appended to (the raycaster sorts them).

      Returns void

    • Draws all its objects as renderState says, combined with each one's own state, kept (see MeshRenderState); nothing when it is unchanged.

      Parameters

      Returns void