rgl.select: Switch to select mode, and return the mouse position...

Description Usage Arguments Value Author(s) See Also

View source: R/scene.R

Description

Mostly for internal use, this function temporarily installs a handler on a button of the mouse that will return the mouse coordinates of one click and drag rectangle.

Usage

1
2
rgl.select(button = c("left", "middle", "right"),
           dev = cur3d(), subscene = currentSubscene3d(dev))

Arguments

button

Which button to use?

dev, subscene

The rgl device and subscene to work with

Value

A vector of four coordinates: the X and Y coordinates of the start and end of the dragged rectangle.

Author(s)

Duncan Murdoch

See Also

rgl.select3d, a version that allows the selection region to be used to select points in the scene.


rgl documentation built on Feb. 1, 2021, 3:01 a.m.