Last updated

API / geotoolkit3d / picking / PickingMaterialRegistrar / PickingMaterialRegistrar

Class: PickingMaterialRegistrar

picking.PickingMaterialRegistrar.PickingMaterialRegistrar

Table of contents

Constructors
Methods

Contents

Constructors

new PickingMaterialRegistrar()

new PickingMaterialRegistrar()

Methods

getClassName

Static getClassName(): string

Returns

string


setPickingMaterial

Static setPickingMaterial(materialClassName, pickingMaterialConstructor): void

Register the picking material class to be used for picking for a given material.
The picking renderer requires custom implementation of materials that write information instead of pixels.
To customize the picking for a given object, one should implement the corresponding material and register it.

See

AbstractShaderPickingMaterial

Parameters

Name Type Description
materialClassNamestringThe picked material's classname to replace
pickingMaterialConstructorMaterialClassThe picking material's constructor

Returns

void