Correlation of cursor position to shapes displayed on a video display screen
First Claim
1. A method of correlating a cursor position with displayed shapes in a computer system including storage means, means for displaying the shapes and a cursor, and user input means for moving the cursor and selecting a cursor position, said method comprising the steps of:
- displaying one or more shapes on the display means;
determining a bounding rectangle of each displayed shape, and storing information representative of the shape and bounding rectangle;
responsive to a user selecting a cursor position, determining a select region for said cursor position, said select region comprising a rectangle of picture elements surrounding said cursor position;
examining the bounding rectangle of each displayed shape to determine whether it overlaps the select region;
creating a bit map in the storage means corresponding to the select region;
drawing each shape whose bounding rectangle overlaps the select region into the bit map; and
examining the bit map to determine whether any shape has been written into the select region of the bit map, and if so correlating that shape with the cursor position selected by the user, wherein said steps of examining the bounding rectangle, drawing each shape, and examining the bit map are performed in succession for each shape.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer system (10) comprises a processor unit (14), a keyboard (16), a screen (12) and a mouse (18). A user uses the mouse to control the position of a cursor (20) on the screen, and also to indicate a selected cursor position. To correlate this position with shapes (40, 42) on the display, to determine which if any shapes have been selected, the computer first determines whether a pick rectangle around the selected cursor position overlaps a bounding rectangle (40, 42) around a shape. Those shapes for which an overlap is found are re-drawn into a bit map in memory, which is then examined to see if this drawing process has resulted in a change to the bit map. Any shapes which produce a change in the bit map must overlap the pick rectangle, and so are correlated with the cursor position.
16 Citations
3 Claims
-
1. A method of correlating a cursor position with displayed shapes in a computer system including storage means, means for displaying the shapes and a cursor, and user input means for moving the cursor and selecting a cursor position, said method comprising the steps of:
-
displaying one or more shapes on the display means; determining a bounding rectangle of each displayed shape, and storing information representative of the shape and bounding rectangle; responsive to a user selecting a cursor position, determining a select region for said cursor position, said select region comprising a rectangle of picture elements surrounding said cursor position; examining the bounding rectangle of each displayed shape to determine whether it overlaps the select region; creating a bit map in the storage means corresponding to the select region; drawing each shape whose bounding rectangle overlaps the select region into the bit map; and examining the bit map to determine whether any shape has been written into the select region of the bit map, and if so correlating that shape with the cursor position selected by the user, wherein said steps of examining the bounding rectangle, drawing each shape, and examining the bit map are performed in succession for each shape. - View Dependent Claims (2, 3)
-
Specification