Class SymbolModule

符号symbol模块,用来绘制批量符号点

Hierarchy (view full)

Implements

Constructors

Properties

_app?: App
_destroyed: boolean = false
_symbolData: SymbolItemData[]
appRenderIndex: number = 0
data: ShallowReactive<{
    [key: string]: any;
}> = ...

Type declaration

  • [key: string]: any
entity: Entity
extData: {
    [key: string]: any;
} = {}

Type declaration

  • [key: string]: any
geometry: BufferGeometry<NormalBufferAttributes>
instanceId: number = ++AppObject._instanceIdCounter
material: PointsMaterial
onSetApp: Signal = ...
symbol: Points<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
useBvh: boolean
moduleName: string = "SymbolModule"

Accessors

  • get app(): App
  • Returns App

  • set app(value): void
  • Parameters

    Returns void

  • get destroyed(): boolean
  • Whether it has been destroyed.

    Returns boolean

  • get enabled(): boolean
  • Indicates whether the component is enabled.

    Returns boolean

  • set enabled(value): void
  • Parameters

    • value: boolean

    Returns void

  • get symbolObject(): Points<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
  • Returns Points<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>

Methods

  • Parameters

    • toClassInst: any
    • Optional methodNames: string[]
    • Optional addMethods: string[]
    • Optional filterName: string[]

    Returns void

  • 触发指定事件名称.

    Parameters

    • event: string

      Event name

    • Rest ...data: any

      Data

    Returns boolean

    • Whether the dispatching is successful
  • 通过pointIndex获取

    Parameters

    • pointIndex: number

      点索引

    • Optional isRefData: boolean

      返回的是否是数据引用的对象,默认false,将克隆新的数据

    Returns SymbolItemData

  • 确定是否存在事件侦听

    Parameters

    • event: string

      事件名

    Returns boolean

    返回是否存在相应的事件

  • 返回具有指定事件名称的侦听总数.

    Parameters

    • event: string

      Event name

    Returns number

    The count of listeners

  • 通过事件名移除所有监听.

    Parameters

    • Optional event: string

      Event name, delete all events if not passed

    Returns void

  • Parameters

    Returns void