Last updated

API / geotoolkit3d / picking / AbstractPicking / AbstractPicking

Namespace: AbstractPicking

picking.AbstractPicking.AbstractPicking

Table of contents

Type Aliases

Contents

Type Aliases

FilterFunction

Ƭ FilterFunction: (object: ThreeObject3D, pickable: boolean) => boolean

Type declaration

▸ (object, pickable): boolean

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, if an object A is hidden by an object B, object A can still be picked if a filter is set to exclude object B. (see filtering documentation)

Parameters
Name Type Description
objectThreeObject3DThe object the filter should decide if it can be picked or not.
pickablebooleanDefine if the object to filter is currently pickable.
Returns

boolean

True if the object can be picked, or false if the object (and its children) cannot be picked.


PickingResult

Ƭ PickingResult: { object: ThreeObject3D ; point: Vector3 ; pointdevice?: Vector2 ; root?: ThreeObject3D } & Record<string, any>

PickingResult can be expanded by ExtraPickingModeCallback