Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SelectionBox

Hierarchy

Index

Constructors

  • new SelectionBox(camera: PerspectiveCamera | OrthographicCamera, deep: number): SelectionBox
  • 构造

    Parameters

    • camera: PerspectiveCamera | OrthographicCamera
    • deep: number

    Returns SelectionBox

Properties

camera: PerspectiveCamera | OrthographicCamera
collection: DataNode[]
deep: number
endPoint: Vector3
startPoint: Vector3

Methods

  • dispose(): void
  • 注销

    Returns void

  • emit(event: string, ...args: any[]): void
  • 事件发送

    Parameters

    • event: string

      事件名

    • Rest ...args: any[]

      参数

    Returns void

  • off(event: string, callback: Function): void
  • 关闭事件

    Parameters

    • event: string

      事件名

    • callback: Function

      回调

    Returns void

  • on(event: string, callback: Function): void
  • 开启事件

    Parameters

    • event: string

      事件名

    • callback: Function

      回调

    Returns void

  • searchChildInFrustum(frustum1: Frustum, object: any): boolean
  • Parameters

    • frustum1: Frustum
    • object: any

    Returns boolean

  • searchChildInRaycaster(raycaster1: Raycaster, object: Object3D): { distance: number }[]
  • Parameters

    • raycaster1: Raycaster
    • object: Object3D

    Returns { distance: number }[]

  • searchMapInFrustum(frustum1: Frustum, map: Map<string, number | RenderEntity>): void
  • Parameters

    Returns void

  • searchMapInRaycaster(raycaster1: Raycaster, map: Map<string, number | RenderEntity>): void
  • Parameters

    • raycaster1: Raycaster
    • map: Map<string, number | RenderEntity>

    Returns void

  • select(entityMap: Map<string, number | RenderEntity>, startPoint?: Vector3, endPoint?: Vector3): DataNode[]
  • Parameters

    • entityMap: Map<string, number | RenderEntity>
    • Optional startPoint: Vector3
    • Optional endPoint: Vector3

    Returns DataNode[]

  • updateFrustum(startPoint: Vector3, endPoint: Vector3): void
  • Parameters

    • startPoint: Vector3
    • endPoint: Vector3

    Returns void

  • updateRaycaster(startPoint: Vector3, endPoint: Vector3, pointSelect: boolean): void
  • Parameters

    • startPoint: Vector3
    • endPoint: Vector3
    • pointSelect: boolean

    Returns void