@stereograph/teiaviewer - v17.8.0-dev
    Preparing search index...

    Class ZoneController

    Hierarchy

    • SceneMeshController<Zone>
      • ZoneController
    Index

    Constructors

    • Parameters

      Returns ZoneController

    Properties

    ignoreViewportRenderMode: false

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

    isSceneMeshController: true
    isSceneObjectController: true
    isZoneController: true
    signals: {
        onObjectAdded: ViewerSignal<(object: Zone) => void>;
        onObjectRemoved: ViewerSignal<(object: Zone) => void>;
        onObjectUpdated: ViewerSignal<(object: Zone) => void>;
        onVisibilityChanged: ViewerSignal<(...args: any[]) => any>;
    } = ...

    Accessors

    • get count(): number

      Controller objects count

      Returns number

    • get firstObject(): null | TObject

      Returns null | TObject

    • 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

    • Indicates whether the controller accepts the SceneObject as a potential child.

      Parameters

      Returns boolean

    • Adds the given object to the controller. Controllers may not support object hierarchy.

      Parameters

      • object: Zone

        The object to add.

      • parentUuid: null | string

        The parent uuid of the object if the controller supports it.

      Returns void

    • Callback to clean the controller from the scene

      Parameters

      Returns void

    • Clears all objects from the controller

      Returns void

    • Returns Generator<
          BatchedLineContainer
          | BatchedMeshContainer
          | InstancedMeshContainer,
          void,
          any,
      >

    • Parameters

      • box: Box3

      Returns Zone

    • Disposes the controller and destroy its data

      Returns void

    • Returns Generator<BatchedLineContainer, void, unknown>

    • Returns a generator of hidden objects of this controller

      Returns Generator<Zone>

    • Returns a generator of hidden object uuids of this controller

      Returns Generator<string>

    • Returns a generator of objects of this controller

      Returns Generator<Zone>

    • Returns a generator of object uuids of this controller

      Returns Generator<string>

    • Returns a generator of visible objects of this controller

      Returns Generator<Zone>

    • Returns a generator if visible object uuids of this controller

      Returns Generator<string>

    • Returns null | Zone

    • Returns the object associated with the given uuid if found

      Parameters

      • uuid: string

      Returns null | Zone

    • Returns a generator of objects with the given uuids

      Parameters

      • uuids: Iterable<string>

      Returns Generator<Zone>

    • Returns whether the controller has the given uuid

      Parameters

      • uuid: string

      Returns boolean

    • Returns Generator<never, void, unknown>

    • Returns Generator<BatchedMeshContainer, void, unknown>

    • Removes the given object from the controller.

      Parameters

      Returns void

    • Parameters

      • planes: Plane[]

      Returns void

    • Parameters

      • value: boolean

      Returns void

    • Parameters

      • value: boolean

      Returns void

    • Callback to setup the controller into the scene

      Parameters

      Returns void