API / geotoolkit3d / picking / pickingrenderer / BasicPickingMaterial / BasicPickingMaterial
pickingrenderer.BasicPickingMaterial.BasicPickingMaterial
Basic implementation of a picking material.<br> This material assumes that the material used for rendering is using the common features of THREEJS (common uniforms).<br> This class combines the features provided by AbstractShaderPickingMaterial to create a working picking material.<br> However, even if this material is fully operational, it's not used directly.<br> It's inherited by default implementations of picking materials which are used in place of this raw/basic class.<br>
See
- AbstractShaderPickingMaterial For details about picking-material.
- RendererPicking For details about picking-renderer.
↳
BasicPickingMaterial
Constructors
- [new BasicPickingMaterial(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.picking.pickingrenderer.basicpickingmaterial.basicpickingmaterial.md#new basicpickingmaterial(options))
Constructors
• new BasicPickingMaterial(options)
| Name | Type |
|---|---|
options | Options |
AbstractShaderPickingMaterial.constructor
Methods
▸ getOptions(): OptionsOut
Get abstract shader picking material options, for internal use only.
options
AbstractShaderPickingMaterial.getOptions
▸ setOptions(options): BasicPickingMaterial
Set picking options, note that this setOptions expects all mandatory parameters to be set
| Name | Type | Description |
|---|---|---|
options | Options | The picking options |
this
AbstractShaderPickingMaterial.setOptions
▸ Static computePlotNormInvMatrix(plot): Matrix4
Computes a matrix to transform coordinates contained in [0...1] to a plot model space.<br> This is used to un-normalize coordinates returned by the GPU.<br>
| Name | Type | Description |
|---|---|---|
plot | Plot | The Plot to compute the inverse normalization matrix for |
Matrix4
The matrix to un-normalize coordinates
AbstractShaderPickingMaterial.computePlotNormInvMatrix
▸ Static computePlotNormMatrix(plot): Matrix4
Computes a matrix to transform coordinates contained in the plot model space to ]0...1[.<br> This is used to normalize coordinates during picking so that the GPU will only handle normalized coordinates.<br>
| Name | Type | Description |
|---|---|---|
plot | Plot | The plot to compute the normalization matrix for |
Matrix4
The matrix to normalize coordinates