Class RedGPUContextViewContainer

Represents a container class for managing a list of View3D objects in RedGPUContext.

Hierarchy (View Summary)

Constructors

Accessors

Methods

  • Checks if the given child View3D is contained within the current View3D.

    Parameters

    • child: View3D

      The child View3D to check for containment.

    Returns boolean

    • Returns true if the child View3D is contained, otherwise false.
  • Removes the view at the specified index from the view list.

    Parameters

    • index: number

      The index of the view to remove.

    Returns void

    • Throws an error if the index is out of range.
  • Sets the view at the specified index in the viewList of the RedGPUContext instance.

    Parameters

    • view: View3D

      The View3D instance to set at the specified index.

    • index: number

      The index at which to set the view.

    Returns void

    If the input view is not registered in the RedGPUContext instance.

    If the index is out of bounds, i.e., greater than or equal to the length of viewList.

  • Swaps the positions of two views in the view list of the RedGPUContext instance.

    Parameters

    • view1: View3D

      The first view to be swapped.

    • view2: View3D

      The second view to be swapped.

    Returns void

    If either view1 or view2 is not an instance of the View3D class.

    If either view1 or view2 is not a child of this RedGPUContext instance.

  • Swaps two views at the specified indices in the view list.

    Parameters

    • index1: number

      The index of the first view to swap.

    • index2: number

      The index of the second view to swap.

    Returns void

    • If either index1 or index2 is not a positive integer. If either index1 or index2 is larger than or equal to the length of the view list.