API / geotoolkit3d / picking / RendererMultiPicking / 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
↳
RendererMultiPicking
Constructors
Methods
Constructors
• new RendererMultiPicking()
AbstractPicking.constructor
Methods
▸ getClassName(): string
string
▸ Static getClassName(): string
string
▸ Static pick(plot, x, y, width?, height?, filter?): PickingResult[]
Pick objects at the given pixel location (relative to the plot).
| Name | Type | Description |
|---|---|---|
plot | Plot | The target plot |
x | number | The x coordinate in device space (pixels) |
y | number | The x coordinate in device space (pixels) |
Optional width | number | The 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 height | number | The 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 filter | FilterFunction | A 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) |
An array of PickingResult containing the intersecting shapes