RemoteModelPickHelper
- class cee.ug.RemoteModelPickHelper()
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
Methods
Constructors
constructor
- cee.ug.RemoteModelPickHelper.constructor(viewer)
Creates a pick handler and sets it as the pick handler for the given viewer.
- Arguments
viewer (
cee.Viewer
) –
- Return type
cee.ug.RemoteModelPickHelper
Methods
setPickResultCallback
- cee.ug.RemoteModelPickHelper.setPickResultCallback(pickResultCallback)
Specifies the callback that will be invoked when the pick result is ready.
- Arguments
pickResultCallback (
cee.ug.RayIntersectCallback
) –
- Return type
void
See
RayIntersectCallback
for more information.