Last updated

API / geotoolkit3d / picking / RendererMultiPicking / RendererMultiPicking

Class: RendererMultiPicking

picking.RendererMultiPicking.RendererMultiPicking

Picking using GPU.

This selection strategy is to determine what objects are at the requested location.

  • Use a distance-based criteria
  • Can be slow if there are a lot of objects at plot device point
  • Returns all objects at the given location that match the criteria

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new RendererMultiPicking()

new RendererMultiPicking()

Overrides

AbstractPicking.constructor

Methods

getClassName

getClassName(): string

Returns

string

Inherited from

AbstractPicking.getClassName


getClassName

Static getClassName(): string

Returns

string

Inherited from

AbstractPicking.getClassName


pick

Static pick(plot, x, y, width?, height?, filter?): PickingResult[]

Pick objects at the given pixel location (relative to the plot).

Parameters

Name Type Description
plotPlotThe target plot
xnumberThe x coordinate in device space (pixels)
ynumberThe x coordinate in device space (pixels)
Optional widthnumberThe amount of pixels to consider on the left and right side of the given x (effective width will be 2 times given width, plus 1 (the center pixel))
Optional heightnumberThe amount of pixels to consider on the top and bottom side of the given y (effective height will be 2 times given height, plus 1 (the center pixel))
Optional filterFilterFunctionA function that can filter the pickable shape, takes the object to filter and it's current pickable status as parameter. Note that this filtering occurs prior to picking. As a result, an object can be picked through a filtered object. (see filtering documentation)

Returns

PickingResult[]

An array of PickingResult containing the intersecting shapes

Overrides

AbstractPicking.pick