PickHelper

class cee.ug.PickHelper()

A simple utility class for handling picking.

This class performs picking in the view and returns the result in the callback specified with setPickResultCallback. It also provides support for pick to hide parts, where hit parts are hidden if the user holds down the Shift key while picking; and pick to set rotation point, where the rotation point is set to the picked point if the user holds down the Ctrl key (Cmd on Mac) while picking.

This class is meant for simple applications and would probably not meet the needs of more complex apps. In such cases you would have to create your own picking handler.

Constructors


Constructors

PickHelper.constructor(viewer)
Arguments:
  • viewer (Viewer) – None

Creates a pick handler and sets it as the pick handler for the given viewer.

Return type:

PickHelper

Methods

setPickResultCallback

PickHelper.setPickResultCallback(pickResultCallback)
Arguments:

Specifies the callback that will be invoked when the pick result is ready.

See RayIntersectCallback for more information.

Return type:

void