cranvas (version 0.8.5)

identify_rect: Create a rectangle to be used in identifying

Description

To identify cases under the mouse, we need a small rectangle to look for cases in this rectangle. This function creates such a rectangle using meta$pos (mouse position) and meta$limits (layer limits).

Usage

identify_rect(meta)

Arguments

meta
the meta data containing at least meta$pos and meta$limits

Value

A Qt rectangle object (see qrect)

Details

Currently the size of the rectangle is 1% of the layer limits.

Examples

Run this code
## see source code of, e.g., qparallel()

Run the code above in your browser using DataLab