Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ColorRenderPass

TODO: 兼容2d\3d colorPass 配合fbp使用

export

Hierarchy

Index

Constructors

Properties

_context: RenderContext3D
_listeners: Map<string, TinoeEventListener[]>
_passContext: {}

Type declaration

    _renderNode: any

    渲染每一个element

    param element
    coreData: CoreData
    enabled: boolean
    mode: FBPMode
    name: string
    onPick: ((...args: any) => void)

    Type declaration

      • (...args: any): void
      • Parameters

        • Rest ...args: any

        Returns void

    parent: EventEmitter
    pickPos: number[]
    priority: number
    renderTarget: <internal>.default
    replaceMaterial: ColorMaterial

    Methods

    • addEventListener(type: string, handler: ((data: any) => any), once?: boolean): void
    • 注册handler

      memberof

      EventEmitter

      Parameters

      • type: string
      • handler: ((data: any) => any)
          • (data: any): any
          • Parameters

            • data: any

            Returns any

      • Optional once: boolean

      Returns void

    • dispatch(type: string, data?: any): void
    • 派发事件

      memberof

      EventEmitter

      Parameters

      • type: string
      • Optional data: any

      Returns void

    • off(type?: string, handler?: ((data: any) => any)): void
    • 注销事件

      memberof

      EventEmitter

      Parameters

      • Optional type: string
      • Optional handler: ((data: any) => any)
          • (data: any): any
          • Parameters

            • data: any

            Returns any

      Returns void

      {void}

    • on(type: string, handler: ((data: any) => any), once?: boolean): void
    • 注册handler

      memberof

      EventEmitter

      Parameters

      • type: string
      • handler: ((data: any) => any)
          • (data: any): any
          • Parameters

            • data: any

            Returns any

      • Optional once: boolean

      Returns void

    • pick(): any
    • 拾取 动态模式在postRender阶段执行 静态模式在pick时执行

      memberof

      ColorRenderPass

      Returns any

    • postRender(): void
    • post渲染 静态模式: 只做disable 动态模式: 调用拾取函数 + disable

      memberof

      ColorRenderPass

      Returns void

    • preRender(): void
    • pre渲染

      memberof

      ColorRenderPass

      Returns void

    • readColorFromRenderTarget(): Uint8Array
    • 根据交互坐标从texture获取颜色值

      Returns Uint8Array

    • removeEventListener(type?: string, handler?: ((data: any) => any), once?: boolean): void
    • 注销handler

      memberof

      EventEmitter

      Parameters

      • Optional type: string
      • Optional handler: ((data: any) => any)
          • (data: any): any
          • Parameters

            • data: any

            Returns any

      • Optional once: boolean

      Returns void

    • render(): void
    • 渲染阶段

      memberof

      ColorRenderPass

      Returns void

    Generated using TypeDoc