Method and apparatus for dynamically interpreting drawing commands

Abstract: A method for resolving ambiguities in user input to a computer-aided drawing package. The number of necessary commands is therefore reduced. To draw an element, the user selects a particular drawing command. The user then manipulates a pointing device to select points that further define the position and shape. In accordance with the invention, the point selections can be interpreted in more than one way. A region surrounding at least one of the selected points is divided into so-called intent zones. After this point is selected, the drawing package monitors cursor movement through this region. The particular intent zone that the cursor traverses determines the interpretation of the point selections following the command.

Description: BACKGROUND OF THE INVENTION The present invention relates to a computer-aided drawing system according to the preamble of claim 1 and to a method for drawing an element in a computer system according to the preamble of claim 4. More particularly, the present invention relates to a system and method for reducing the number of different user commands needed to define an element to be drawn. Computer-aided drawing packages are known in which a user interactively draws an object on a screen using a series of cursor manipulations and/or keyboard commands to define the shape and size of the object. Typically, one creates an illustration by combining basic geometric objects such as arcs, lines, circles etc. These packages find application in computer-aided design (CAD), for example. Typically, the process of drawing an object begins with the user selecting a particular drawing command either via the keyboard or by use of a pointing device to access pull-down menus or a toolbar. The choice of initial command selects a basic geometric object to be drawn, whether it be a line, arc, or some other element. After the initial command, the user employs a pointing device, moving a cursor to specify a series of points that determine the size and shape of the object. The computer-aided drawing system interprets the point selections based on the initially selected command and draws the specified object accordingly. The above description of the computer-aided drawing process will be made clearer with reference to a simple example. To draw a line segment, the user might begin by selecting a line drawing command by using a mouse to position a cursor over a line icon on a toolbar and then depressing a mouse button. The user would then position the cursor at a first point and again depress the mouse button. The drawing package would interpret this first selected point as the first endpoint of the line. The user would continue by positioning the cursor at a second point and depress the mouse button again. The computer-aided drawing package would interpret the second point as the second end of the line segment and draw the line segment to connect the first and second points. In the above example, the user's actions may be interpreted by the drawing package unambiguously. The two points identified by the user clearly denote the endpoints of the line. Indeed, using the mouse in the above-described fashion is probably the most natural approach to line drawing for a user experienced with graphical user interfaces. However, for other basic geometric objects, ambiguities may arise in interpreting user input. Consider the steps of drawing an arc. The user would begin by selecting an arc icon from the toolbar. The first point selected by the user is interpreted as a first end of the arc. Some drawing packages then interpret a second selected point as a midpoint of the arc and a third selected point as the endpoint of the arc. Others interpret the second point to be the endpoint and the third point to be the midpoint. A problem thus arises in that users will bring their previous experience with arc drawing to a new drawing package and expect their cursor movements to be interpreted in accordance with a particular one of these alternative methods. Users will become confused if, e.g., the point they thought was selected to be an endpoint instead becomes a midpoint of the arc. A possible solution is to present two distinct initial commands corresponding to the different methods of interpreting the second and third points. The user could select the preferred command at the outset, removing any ambiguities. Increasing the number of commands in this way carries serious drawbacks. The arc example given above is but one example of the ambiguities that can arise in drawing objects. Thus, numerous extra commands would need to be added to pull-down menus and toolbars, increasing system complexity. The user would further need to be trained to consider the possible ways his actions could be interpreted and select a particular command accordingly. Kurtenbach G et al: "Issues in combining marking and direct manipulation techniques", Proceedings of the symposium on user interface software and technology (UIST), Hilton Head, S. Carolina, Nov. 11-13, 1991, no. Symp. 4, 11 November 1991, Association for computing machinery, pp 137-144, XP000315074, describe a computer-aided drawing system and a method for operation thereof in which an element to be drawn is chosen by means of a pie-menu having four sections, each associated with a different object, i.e., a triangle, square or circle. The pie-menu pops up at a cursor location after a specified time delay following detection of the cursor location and allows selection of an object by moving the cursor into the corresponding section. The object is complete and the orientation of each object is fixed. The pie-menu is thus analogous to a pull-down menu having labelled sections, each associated with a different command. Here, the menu is a pie-menu that can be hidden, and the command is to place an element on the screen. SUMMARY OF THE INVENTION The invention is defined in claims 1 and 4. The invention provides a method for resolving ambiguities in user input to a computer-aided drawing package. The number of necessary commands is therefore reduced. To draw an element, the user selects a particular drawing command. The user then manipulates a pointing device to select points that further define the position and shape. In accordance with the invention, the point selections can be interpreted in more than one way. A region surrounding at least one of the selected points is divided into so-called intent zones. After this point is selected, the drawing package monitors cursor movement through this region. The particular intent zone traversed by the cursor determines the interpretation of the point selections following the command. In accordance with the invention, the geometric arrangement of the intent zones may be varied to provide the most plausible interpretation of the user's actions. In accordance with a first embodiment of the invention, a user draws an arc by first selecting an arc command. The user then moves a cursor to a first desired endpoint of the arc and selects the point by depressing a mouse button or in some other way. The user then similarly selects a second point and a third point of the arc. A small circular region surrounding the second point is divided into two intent zones. A first intent zone may comprise the side of the circle facing toward the first point. A second intent zone may comprise the side of the circle facing away from the first intent zone. If after defining the second point, the user moved the cursor through the first intent zone, the second point is interpreted to be an endpoint of the arc. If, on the other hand, the user had moved the cursor through the second intent zone, the third point is understood to be an endpoint. This response corresponds to the most plausible interpretation of the user's actions. In accordance with a second embodiment of the invention, a user draws an arc either tangent or perpendicular to an existing line. The user first selects an arc command. The user then selects a point on the existing line as a first endpoint of the arc. A second point and/or keyboard input further define the arc. A small circular region surrounding the first point is divided into four wedge shaped intent zones. First and second intent zones oppose one another, touching at the center of the circle, and are traversed by the existing line. Third and fourth intent zones occupy the gaps between the first and second intent zones. If after the defining the first point, the user moved the cursor through either the first or second intent zones, the arc will be drawn tangent to the existing line. If on the other hand, the user had moved the cursor through one of the third or fourth intent zones, the arc will be drawn perpendicular to the existing line. Thus, through the use of intent zones, the invention combines two arc drawing commands into one without the use of special modes. In accordance with a third embodiment of the invention, a user draws an arc by first selecting an arc command, wherein a first point selected by the user defines the center of the arc. The user selects a second point to be a first endpoint of the arc. A third point selected by the user and/or keyboard input further defines the shape and/or extent of the arc. A region surrounding an imaginary line extending from the first point through the second point is divided into two intent zones. A first intent zone is the portion of the region above the imaginary line and the second intent zone lies below the imaginary line. If after defining the second point, the user moved the cursor through the first intent zone, the arc will be drawn to extend from the second point in the direction of the first intent zone. If on the other hand, the user moved the cursor through the second intent zone, the arc will be drawn to extend from the second point in the direction of the second intent zone. Thus, two possible arc orientations can be determined with a single command. In accordance with a fourth embodiment of the invention, the user draws a line perpendicular to an existing arc or circle. The user selects a line drawing command. The user then selects a first point on the line or circle as a first endpoint of the line. A second point selected by the user and/or keyboard input further defines the line. A circular region surrounding the first selected point is divided into four wedge-shaped intent zones. First and second intent zones oppose one another, touching at the center of the circle, and are traversed by an imaginary line tangent to the existing circle or arc. Third and fourth intent zones occupy the gaps between the first and second intent zones. If after defining the first point, the user moved the cursor through either the first or second intent zones, the line will be drawn tangent to the existing circle or arc. If on the other hand, the user had moved the cursor through the third or fourth intent zones, the line will be drawn perpendicular to the existing circle or arc. Thus, through the use of intent zones, the invention combines two arc drawing commands into one. In accordance with the invention, the geometric arrangement of the intent zones may be varied. The invention will be better understood by reference to the following detailed description in connection with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1A is a block diagram of an exemplary hardware configuration for a computer system in which the present invention may be implemented. Fig. 1B is a system architecture block diagram of the computer system of Fig. 1A. Fig. 2 illustrates how cursor movement through a region surrounding a point selected by a user is monitored in accordance with the invention. Figs. 3A-3D depict how arcs may be drawn by specifying points along the arc, wherein a second specified point may be intended to be a midpoint or an endpoint of the arc and the user's intent is interpreted in accordance with the invention. Fig. 4 is a flowchart describing steps of interpreting user input to draw arcs as shown in Figs. 3A-3D in accordance with the invention. Figs. 5A-5C depict intermediate displays during the course of drawing an arc according to the procedure of Fig. 4. Fig. 6 depicts how an arc may be drawn to be connected to an existing line, wherein the arc may be intended to be perpendicular or tangent to the existing line, and the user's intent is interpreted in accordance with the invention. Fig. 7 is a flowchart describing steps of interpreting user input to draw arcs as shown in Fig. 6 in accordance with the invention. Fig. 8 depicts how an arc may be drawn by specifying a center point of the arc, wherein the arc may be intended to be drawn clockwise or counterclockwise from another specified point, and the user's intent is interpreted in accordance with the invention. Fig. 9 is a flowchart describing steps of interpreting user input to draw arcs as shown in Fig. 8 in accordance with the invention. Fig. 10 depicts how a line may be drawn to be connected to an existing arc or circle, wherein the line may be intended to be perpendicular or tangent to the existing line, and the user's intent is interpreted in accordance with the invention. Fig. 11 is a flowchart describing steps of interpreting user input to draw a line as shown in Fig. 10 in accordance with the invention. DESCRIPTION OF SPECIFIC EMBODIMENTS Fig. 1A shows a preferred computer system 100 in which the present invention may be implemented. A processing unit 102 contains the control elements of the computer system 100. Keyboard 104 and mouse 106 are coupled to processing unit 102 and enable the system user to input commands and data to computer system 100. Display device 108 serves as the final element of the user interface, where the user can see the results of the inputs to keyboard 104 and mouse 106 and the effect of those inputs in an application program. Fig. 1B shows a system architecture block diagram of the computer system of Fig. 1A. The system elements are interconnected by system bus 110. In addition to keyboard 104, mouse 106 and display 108, the control elements included in processing unit 102 are shown. Central processor (CPU) 112 and controller 114 control operation of computer system 100. Program and data information are stored in system memory 116 and disk memory 118. A computer-aided drawing package of the present invention which allows the user to create and manipulate objects on a simulated drawing sheet depicted on display device 108 is operably disposed in system memory 116 and disk memory 118. A user draws on the simulated drawing sheet by interactively constructing a series of simple geometric elements and combining them. During the interaction, the user may employ mouse 106 and/or keyboard 104 to specify the location and characteristics of each geometric object. Of course, these input devices are merely representative of hardware usable for input to the system of the present invention. Joysticks, digitizing pads, voice recognition, and other devices could also be used for pointing and data entry. An alternative implementation would be a pen-based computer system with an integral screen and writing tablet. Interaction between the user and drawing package consists of various user actions and responses by the package. Cumulatively, the user actions can be understood as a language of geometric construction and manipulation. The package understands this language and responds appropriately to instructions. Construction of a basic geometric object typically begins with the user selecting a particular command. The user can employ mouse 106 to select the command from a pull-down menu or from a toolbar. Another alternative is use of a key combination on keyboard 104. Examples of commands in the preferred embodiment include "line", "arc by 3 points", and "arc by center." The selected command provides a context for interpreting the user actions that follow. A large part of the user-computer interaction centers around display and movement of a cursor. The drawing package displays an image of a cursor on the simulated drawing sheet. The user controls the position of the cursor by manipulating mouse 106 or by use of some other pointing device. To specify a point, the user may place the cursor at a desired location and then depress a button on mouse 106 or a key on keyboard 104. The drawing package may then display the point. A refinement of this point placement provision would be provision of a grid. Instead of displaying the point at the exact cursor location, the point may instead be located at the nearest gridpoint on an imaginary or displayed grid. Other ways of constraining point location may also be provided depending on the geometric object that is being constructed. Keyboard entry is another form of user input. The drawing package provides displayed data fields for numerical entry of line lengths, arc sweep angles, arc radii, etc. The user can simply type in the desired parameter. The typical sequence for construction of a geometric object consists of selection of a command followed by point selection and/or data entry. For example, for a line, the user could begin by selecting a line icon from the toolbar. The user would then select the two endpoints of the line segment in sequence. The drawing package would respond by drawing a line segment between the two endpoints. An alternative procedure would be to select the first endpoint, and then use the keyboard to enter a line length and an angle. If a grid mode is set, both points may be restricted to the gridpoints. It is also possible to constrain the second endpoint to restrict the angle of the line to a limited set of values. If a pre-existing geometric object is near, the second endpoint can also be constrained to coincide with the pre-existing object. The drawing package of the preferred embodiment also displays intermediate graphical images to aid the user. For example, after selection of the first point of a line segment, the drawing package displays a line segment in dotted-line form between the current cursor position and the first point. If grid mode is set, the drawing package would display a dotted-line line segment between the gridpoint nearest the current cursor position and the first selected point. Other constraints would be handled similarly. The invention provides an additional technique for interpreting user movement of the cursor when constructing geometric objects. The technique of the invention will first be discussed generally. A discussion of the application of the technique to specific examples of object construction and combination follows. In accordance with the present invention, one or more points selected by the user during the course of object construction are surrounded by a region divided into two or more intent zones as hereinafter defined. Fig. 2 depicts such a point 200 surrounded by a region 202 divided into two intent zones 204 and 206. A cursor 208 is depicted within intent zone 204. After point 200 has been selected by the user, the drawing package monitors movement of cursor 208 through region 202. As the user moves cursor 208 away from point 200, the cursor passes through one or both of intent zones 204 prior to a next point selection. The drawing package records the identity of the last intent zone traversed by cursor 208 prior to the next point selection. As will be made clear with reference to specific examples, the identity of this last intent zone is used to interpret the sequence of user actions that specify the location and characteristics of a geometric object to be drawn. Region 202 is shown as being circular but other shapes are possible in accordance with the invention. In the preferred embodiment, region 202 is ten pixels in circumference but other sizes are possible. Two intent zones are shown in Fig. 2 but this number may vary depending on the application. The size and shapes of the intent zones themselves may also vary. Also, the intent zones may or may not be displayed. The movement of cursor 208 through region 202 thus becomes another part of the language of interaction understood by the drawing package of the invention. In the context of arc drawing for example, the choice of intent zone may signify whether an arc is to be drawn with the second selected point as a midpoint and the third point as an end point or vice versa. If an arc is to be combined with an existing line, the choice of intent zone may determine whether the arc is to be drawn tangent or perpendicular to the existing line. These are but representative examples and the intent zones have numerous possible applications. In general, one particularly beneficial effect provided by the intent zone feature of the present invention is a reduction in the number of commands needed to achieve the same flexibility in user control. As in spoken or written language, where the same word may have different meanings in different contexts, movement of the cursor 208 through region 202 provides a context for interpretation of commands. A single command can thus take on more than one meaning. This results in a more compact toolbar, easier training of users, and a generally less cumbersome drawing system. Figs. 3A-3D depicts how arcs may be drawn by specifying points along the arc, wherein a second specified point may be intended to be a midpoint or an endpoint of the arc and the user's intent is interpreted in accordance with the invention. Figs. 3A-3D show first and second selected points 302 and 304 for determining an arc. Figs. 3A-3B show a third point 306 as a possible location for a third selected point that determines the arc. Figs. 3C-3D show a third point 308 as another possible location for a third selected point that determines the arc. A first region 320 surrounding first selected point 302 is divided into left and right intent zones 324 and 326. A second region 328 surrounding second selected point 304 is divided into left and right intent zones 332 and 334. The terms "left" and "right" as applied to the intent zones refer to the arrangement of Figs. 3A-3D. In the preferred embodiment, the regions 320 and 328 are circular and the intent zones 324, 326, 330, and 332 are semicircular. For each of regions 320 and 328, the line dividing the intent zones is perpendicular to an imaginary line 336 between the first and second selected points 302 and 304. Fig. 3A depicts an arc 338, wherein the endpoints of the arc are first selected point 302, and third selected point 306, and a midpoint of the arc is second selected point 304. To draw arc 338 in accordance with the invention, the user would begin by selecting an arc command via a toolbar, a pulldown menu, or in some other way. The user would then select first point 302 and second point 304 in sequence. As the cursor was being moved away from second point 304, it should be moved through right intent zone 334. Movement of the cursor through right intent zone 334 signifies that second selected point 304 is to be the midpoint of the arc. Finally, the user selects third point 306 which becomes the second endpoint. Fig. 3B depicts an arc 340 designated by the same points 302, 304, and 306. However, here second selected point 304 is an endpoint and third selected point 306 is a midpoint. The procedure to construct this arc 340 in accordance with the invention is similar to what was discussed in reference to Fig. 3A. The difference is that instead of moving the cursor away from second selected point 304 through right intent zone 334, the cursor is instead moved through left intent zone 332 to indicate that second selected point 304 is to be an endpoint. Third selected point 306 will be a midpoint so long as region 320 is not retraversed as will be discussed in reference to Fig. 3D. Fig. 3C depicts an arc 342, wherein first selected point 302 is a first endpoint, second selected point 304 is an endpoint, and third selected point 308 is a midpoint. To draw arc 342 in accordance with the invention, the user would first select the same arc command utilize to construct the arcs of Figs. 3A-3B. The user would then specify first and second points 302 and 304 in order. In moving the cursor away from second selected point 304, the user would move the cursor through left intent zone 332. As in Fig. 3B, the drawing package interprets the cursor movement through this intent zone to indicate that second selected point 304 is to be an endpoint. Finally, the user selects third point 308. Fig. 3D depicts an arc 344, designated by the same points 302, 304, and 308 that designate arc 344 of Fig. 3C. Here, first selected point 302 is a midpoint, second selected point 304, is a first endpoint, and third selected point 308 is a second endpoint. To draw arc 344 in accordance with the invention, the user would first select the arc command discussed in reference to Figs. 3A-3C. The user would then select first point 302 and second point 304 in order. In moving the cursor away from second selected point 304, the user would move the cursor through left intent zone 332. In further moving the cursor toward third selected point 308, the cursor moves through region 320 surrounding first selected point 302. In exiting region 320, the cursor last traverses left intent zone 324. This sequence of cursor movement indicates that first selected point 302 is to be a midpoint, second selected point 304 is to be an endpoint, and third selected point 306 is to be an endpoint. It is clear from the above that selecting the same arc command and specifying the same three points can result in completely different arcs depending on how regions 320 and/or 328 are traversed. The use of intent zones in accordance with the invention corresponds to an intuitive method of drawing arcs. Those users accustomed to specifying the third point to be an endpoint will naturally move the cursor beyond second selected point 304 and through right intent zone 334. On the other hand, those users accustomed to specifying the third point to be a midpoint will naturally return the cursor toward first selected point 302 and through left intent zone 332. If the first point is desired to be a midpoint, it will be natural to bring the cursor back through the area of the first point after exiting the left intent zone of the second point. Thus, several different arc drawing commands are effectively combined into one. Fig. 4 is a flowchart describing steps of interpreting user input to draw the arcs shown in Figs. 3A-3D in accordance with a preferred embodiment of the invention. At step 402, the computer drawing package accepts a command input specifying a three-point arc. The command may be specified via a pull-down menu, by selection from a toolbar, via the keyboard or by other means. At step 404, the computer drawing package accepts first point 302 specified by the user and displays it. At step 406, the drawing package accepts second point 304 specified by the user and displays it. The user is also free to specify a radius of the arc at any time by way of keyboard entry into a displayed radius field. However, this capability is not important to explaining the intent zone feature of the present invention and the remainder of the discussion will assume that no radius value has been entered. At step 408, after placement of the second point 304, the drawing package monitors movement of the cursor through second region 328. As the cursor is moved further, the arc is displayed in dashed line form corresponding to its final shape and position if the third point were to be selected at the current cursor location. At step 412, the drawing package determines the identity of the last intent zone of second region 328 traversed by the cursor. If right intent zone 334 was traversed last, the drawing package prepares for the third selected point to be identified as an endpoint and draws the arc in dotted-line form at step 414 accordingly. On the other hand, if left intent zone 336 was traversed last, the drawing package prepares for the third selected point to be identified as a midpoint and draws the arc in dotted-line form at step 415 accordingly. Figs. 5A-5C depict arcs in dotted line form for particular patterns of cursor movement in accordance with the invention. First point 502 corresponds to first point 302 of Figs. 3A-3D. Second point 504 corresponds to second point 304 of Figs. 3A-3D. The different geometric relationship between the first and second points in Figs. 3A-3D as compared to Figs. 5A-5C is not important to an understanding of the invention. Fig. 5A depicts the display generated at step 414 where the current cursor location is on the far side of the second selected point as compared to the first selected point. Fig. 5A shows that a first selected point 502 is shown as a first endpoint, a second selected point 504 is shown as a midpoint, and the cursor marks the projected location of the third selected point as a second endpoint. Two possible cursor locations 506 and 508 and accompanying arcs 510 and 512 are shown. Fig. 5B depicts the display generated at step 415, with arcs 514 and 516 defined by cursor locations 518 and 520. If left intent zone 336 around the second point was last traversed, step 415 is followed by step 416. At step 416, the drawing package monitors movement of the cursor to test for movement through region 320 surrounding first selected point 302. At step 418, the drawing package determines if region 320 has been traversed. If region 320 has been traversed (after selection of second point 304), the drawing package then determines which intent zone was traversed at step 420. If left intent zone 324 was the last portion of region 320 traversed, the situation of Fig. 5C results at step 422. Fig. 5C shows that first selected point 502 is shown as a midpoint, second selected point 504 is shown as a first endpoint, and the cursor marks the projected location of the third selected point as a second endpoint. Two possible cursor locations 522 and 524 and accompanying arcs 526 and 528 are shown. If right intent zone 326 was traversed, an arc is drawn in dotted line form with first point 502 as an endpoint, second point 504 as an endpoint, and the cursor location as an endpoint. For all of Figs. 5A-5C, the radius, sweep, center, and direction of the dotted-line arc are modified continually as the cursor is moved. Once the third point is specified at step 424, the dotted line form of the arc is confirmed at step 426. Fig. 6 depicts how an arc 602, 604, 606, or 608 may be drawn to be connected to an existing line 609, wherein the arc may be intended to be perpendicular (arc 602 or 604) or tangent (arc 606 or 608) to existing line 609, and the user's intent is interpreted in accordance with the invention. Fig. 6 depicts the displayed situation after a first point 610 has been selected for a number of possible current cursor locations. First selected point 610 is surrounded by a circular region 612 divided into four wedge-shaped equally sized intent zones 614, 616, 618, and 620. Intent zones 614 and 616 face one another and are bisected by existing line 609. Intent zones 618 and 620 also face one another and would be bisected by a line perpendicular to existing line 608. In Fig. 6, the arcs are connected to an endpoint of existing line 609 but connection could also be made to any point along existing line 609. Fig. 7 is a flowchart describing steps of interpreting user input to draw arcs as shown in Fig. 6 in accordance with the invention. At step 702, the computer drawing package accepts a command input specifying that a tangent or perpendicular arc is to be drawn. The command may be specified via a pull-down menu, by selection from a toolbar, via the keyboard, or by other means. At step 704, the computer drawing package accepts first point 610 specified by the user and displays it. This point must be on, or on the end of an existing line such as existing line 608. At step 706, after placement of the first point 304, the drawing package monitors movement of the cursor through first region 612. As the cursor is moved further, the arc is displayed in dashed line form corresponding to its final shape and position if the second point were to be selected at the current cursor location. At any point during the construction of the arc, the user may numerically specify the radius and/or sweep angle. The discussion here will assume that no such entry has been made since this capability is not important to an explanation of the intent zone feature of the present invention. At step 708, the drawing package determines which intent zone was last traversed by the cursor. At step 710, if intent zone 618 or intent zone 620 were last traversed (the "perpendicular" intent zone), the arc is drawn in dotted line form as a perpendicular arc leading from existing line 609 to the cursor. At step 712, if intent zone 614 or intent zone 616 (the "tangent" intent zone) were last traversed, the arc is drawn in dotted line form as a tangent arc leading from existing line 608 to the cursor. Once the second point is specified at step 714, the arc is drawn at step 716, confirming the dotted line form of the arc displayed at step 710 or step 712. Referring again to Fig. 6, from the above discussion it is clear how the depicted arcs can be constructed. The user first specifies the tangent/perpendicular arc command and then specifies first point 610. To draw either of tangent arcs 606 or 608, the user moves the cursor away from selected first point 610 and through intent zone 614 toward the second endpoint of the arc. To draw either of perpendicular arcs 602 or 604, the user draws through intent zone 618 or 620 toward the location of the second endpoint of the arc. In the preferred embodiment, if the user changes his mind after exiting an intent zone, he can change the interpretation of the points by moving the cursor through the correct intent zone. The same command is shared between the two ways of combining an arc with an existing line. Another way of drawing an arc is to specify a center point of the arc and then the start and the end. Fig. 8 depicts how an arc may be drawn by specifying a center point 802 of the arc, wherein the arc may be intended to be drawn clockwise or counterclockwise from another specified point 804, and the user's intent is interpreted in accordance with the invention. A substantially rectangular region 806 extends from first selected center point 802 beyond second selected point 804 and indefinitely onward. An imaginary line from first selected point 802 through second selected point 804 divides the region into an upper intent zone 808 and a lower intent zone 810. Two possible cursor locations 812 and 814 are also shown. To draw an arc extending counterclockwise from second selected point 804 to cursor location 812, the user proceeds as follows. The user first selects an arc-by-center command via the toolbar, a pulldown menu or by other means. The user then selects first point 802 as the center and second point 804 as a first endpoint of the arc. To show that the arc is to be drawn counterclockwise, the user moves the cursor away from second selected point 804 through top intent zone 808 toward cursor position 812. At cursor position 812, the user selects the third point. If the user desires a clockwise arc with the same endpoints, he moves the cursor through bottom intent zone 810 on its way toward cursor position 814. To draw an arc extending clockwise from second selected point 804 to cursor location 814, a similar procedure is followed. The user first selects the same arc-by-center command. The user then selects first point 802 as the center and second point 804 as a first endpoint of the arc. To show that the arc is to be drawn clockwise, the user moves the cursor away from second selected point 804 through bottom intent zone 810 toward cursor location 814. At cursor location 814, the user selects the third point. If the user desires a counterclockwise arc, he moves the cursor through top intent zone 808 on its way toward cursor position 814. Thus, the drawing of clockwise and counterclockwise arcs with specified center points is combined into a single command. The use of depicted intent zones 808 and 810 to interpret the user's commands in accordance with the invention corresponds to the natural way of drawing them since the user will likely move the cursor to roughly trace the path of the desired arc. Fig. 9 is a flowchart describing steps of interpreting user input to draw arcs as shown in Fig. 8 in accordance with the invention. At step 902, the computer drawing package accepts a command input specifying that an arc is to be drawn by specifying the center point. The command may be specified via a pull-down menu, by selection from a toolbar, via the keyboard, or by other means. At step 904, the computer drawing package accepts first point 802 specified by the user and displays it. At step 906, the drawing package of the preferred embodiment accepts second point 804 specified by the user and displays it. At any point during the construction of the arc, the user may numerically specify the radius and/or sweep angle. The discussion here will assume that no such entry has been made since this capability is not important to an explanation of the intent zone feature of the present invention. The preferred embodiment then monitors cursor movement away from second selected point 804 at step 908. At step 910, the preferred embodiment determines which intent zone was traversed last. If top intent zone 808 was traversed last, then, at step 912, an arc is drawn in dotted line form counterclockwise from second selected point 804 to the current cursor location. If bottom intent zone 810 was traversed last, then, at step 914, an arc is drawn in dotted line form clockwise from second selected point 804 to the current cursor location. Once the third point is specified at step 916, the arc is drawn at step 918, confirming the dotted line form of the arc displayed at step 912 or step 914. Fig. 10 depicts how a line may be drawn to be connected to an existing arc or circle, wherein the line may be intended to be perpendicular or tangent to the existing line, and the user's intent is interpreted in accordance with the invention. Fig. 10 shows an existing circle 1002. A line 1006 is shown, perpendicular to circle 1002, and extending from a point 1008 on circle 1002 to a point 1010. A line 1012 is also shown, tangent to circle 1002, and extending from point 1008 to a point 1014. A circular region 1016 surrounding point 1008 is divided into four wedge-shaped equally-sized intent zones 1018, 1020, 1022, and 1024. Intent zones 1018 and 1020 face one another and are traversed by an infinite line that would include line 1006. Intent zones 1022 and 1024 also face one another and are traversed by an infinite line including tangent line 1014. Any arc or curve could substitute for circle 1002. Fig. 11 is a flowchart describing steps of interpreting user input to draw a line as shown in Fig. 10 in accordance with the invention. To draw line 1006 or 1012 in accordance with the invention, the procedure begins by accepting a user line drawing command input at step 1102, whether by pulldown menu, toolbar selection or in some other way. At step 1104, the drawing package accepts as an input a selection of a first point on circle 1002. If the first point were not located on circle 1002, a conventional line drawing interaction would begin. Initially, the location of displayed point 1008 coincides with the location of the initial selection. At step 1106, the drawing package monitors cursor movement away from the first selected point to determine which intent zone was last traversed. At step 1108, the drawing package determines which intent zone was last traversed. If intent zones 1018 or 1020 were last traversed (the "perpendicular" intent zones), the drawing package draws a dotted line from the cursor to displayed point 1006 perpendicular to circle 1002 at step 1110. If intent zone 1022 or 1024 were last traversed (the "tangent" intent zones), the drawing package draws a dotted line from the cursor to displayed point 1008 tangent to circle 1002 at step 1112. As the cursor moves, displayed point 1008 floats so that the dotted line leading from the cursor to displayed point 1008 is always perpendicular or tangent to circle 1002 depending on the cursor position. Once the second point is specified at step 1114, the line is drawn at step 1116, confirming the dotted line form of the arc displayed at step 1110 or step 1112. Again, the cursor movement away from the selected point provides a cue as to the user's intentions. Two commands, a tangent line drawing command, and a perpendicular line drawing command are beneficially consolidated into the conventional line drawing command. The Appendix includes a source code listing suitable for implementing one instantiation of the invention. The source code of the Appendix is written in Visual C++ suitable for compilation and execution on an IBM-compatible computer running Windows NT or Windows95. "Visual C++", "Windows NT", and "Windows95" are trademarks of Microsoft Corporation. The Appendix includes the implementation files, "SkArcCmd.cpp", "SkLineCmd.cpp", "SkTanprepzone.cpp", "Zonehelp.cpp", and corresponding header files, "SkArcCmd.h", "SkLineCmd.h", "SkTanprepzone.h" and "Zonehelp.h." The source code contained in these files represents the drawing commands described in the present application within the context of a drawing package. The "SkArcCmd" files implement the arc drawing commands. The "SkLineCmd" files implement the line drawing commands. The "SkTanprepzone" and "Zonehlp" files include code for implementing the intent zone feature of the present invention.

Claims: A computer-aided drawing system for a computer system (100) having a graphical display (108) for displaying images, a pointing device (106) for moving a cursor (208, 506, 508, 518, 520, 522, 524, 812, 814) within a displayed drawing sheet, and an input key for accepting user key depressions, comprising: means for determining the location of the cursor (208, 506, 508, 518, 520, 522, 524, 812, 814) responsive to operation of said pointing device (106); means for dividing a region (202, 320, 328, 612, 806, 1016) into a plurality of intent zones (204, 206, 324, 326, 332, 334, 614, 616, 618, 620, 808, 810, 1018, 1020, 1022, 1024); means for detecting movement of said cursor (208, 506, 508, 518, 520, 522, 524, 812, 814) through said region (202, 320, 328, 612, 806, 1016) and identifying a particular intent zone (204, 206, 324, 326, 332, 334, 614, 616, 618, 620, 808, 810, 1018, 1020, 1022, 1024) that was traversed; and means for drawing an element (338, 340, 342, 344, 510, 512, 514, 516, 526, 528, 602, 604, 606, 608, 1006, 1012) on said displayed drawing sheet responsive to said particular intent zone (204, 206, 324, 326, 332, 334, 614, 616, 618, 620, 808, 810, 1018, 1020, 1022, 1024); characterized by means for accepting a user command specifying an element (338, 340, 342, 344, 510, 512, 514, 516, 526, 528, 602, 604, 606, 608, 1006, 1012) to be drawn; means for placing a series of points (200, 302, 304, 502, 504, 610, 802, 804, 1008, 1010, 1014) to be drawn on said displayed drawing sheet responsive to locations of said cursor (208, 506, 508, 518, 520, 522, 524, 812, 814) simultaneous with depressions of said key; the region (202, 320, 328, 612, 806, 1016) surrounding one of said points (200, 302, 304, 502, 504, 610, 802, 804, 1008, 1010, 1014); means for determining an orientation for the element (338, 340, 342, 344, 510, 512, 514, 516, 526, 528, 602, 604, 606, 608, 1006, 1012); and by the means for drawing being configured for drawing the element (338, 340, 342, 344, 510, 512, 514, 516, 526, 528, 602, 604, 606, 608, 1006, 1012) at the orientation on said displayed drawing sheet responsive to said user command; to locations of said series of points (200, 302, 304, 502, 504, 610, 802, 804, 1008, 1010, 1014), and to said particular intent zone (204, 206, 324, 326, 332, 334, 614, 616, 618, 620, 808, 810, 1018, 1020, 1022, 1024). The drawing system of claim 1, characterised in that said element is an arc (338), said region (328) surrounds a second selected point (304) of said series (302, 304, 306) and includes exactly two intent zones (332, 334), and said means for drawing an element comprises: means for drawing an arc (338) having a second selected point (304) of said series (302, 304, 306) as a midpoint if said particular intent zone is a first (334), of said exactly two intent zones (332, 334); and means for drawing an arc (340) having said second selected point (304) as an endpoint if said particular intent zone is a second (332) of said exactly two intent zones (332, 334). The drawing system of claim 1, characterised in that said element is an arc (602, 604, 606, 608) to be connected to an existing line (609), a first selected point (610) of said series (610, 2) is on said existing line (609), said region (612) surrounds said first selected point (610), is circular and divided into four intent zones (614, 616, 618, 620) with the first and second intent zones (614, 616) being traversed by said existing line (609) and third and fourth intent zones (618, 620) being traversed by a line perpendicular to said existing line (609), and said means for drawing an element comprises: means for drawing an arc (602, 604) perpendicular to said existing line (609) if said particular intent zone is one of said third or fourth intent zones (618, 620); and means for drawing an arc (606, 608) tangent to said existing line (609) if said particular intent zone is one of said first or second intent zones (614, 616). A method for drawing an element in a computer system (100) having a graphical display (108) for displaying images, a pointing device (106) for moving a cursor (208, 506, 508, 518, 520, 522, 524, 812, 814) within a displayed drawing sheet, and an input key for accepting user key depressions, comprising the steps of: determining the location of the cursor (208, 506, 508, 518, 520, 522, 524, 812, 814) responsive to operation of said pointing device (106); dividing a region (202, 320, 328, 612, 806, 1016) into a plurality of intent zones (204, 206, 324, 326, 332, 334, 614, 616, 618, 620, 808, 810, 1018, 1020, 1022, 1024); detecting movement of said cursor (208, 506, 508, 518, 520, 522, 524, 812, 814) through said region (202, 320, 328, 612, 806, 1016) and identifying a particular intent zone (204, 206, 324, 326, 332, 334, 614, 616, 618, 620, 808, 810, 1018, 1020, 1022, 1024) that was traversed; and drawing an element (338, 340, 342, 344, 510, 512, 514, 516, 526, 528, 602, 604, 606, 608, 1006, 1012) on said displayed drawing sheet responsive to said particular intent zone (204, 206, 324, 326, 332, 334, 614, 616, 618, 620, 808, 810, 1018, 1020, 1022, 1024); characterized by accepting a user command specifying an element (338, 340, 342, 344, 510, 512, 514, 516, 526, 528, 602, 604, 606, 608, 1006, 1012) to be drawn; placing a series of points (200, 302, 304, 502, 504, 610, 802, 804, 1008, 1010, 1014) to be drawn on said displayed drawing sheet responsive to locations of said cursor (208, 506, 508, 518, 520, 522, 524, 812, 814) simultaneous with depressions of said key; defining the region (202, 320, 328, 612, 806, 1016) to surround one of said points (200, 302, 304, 502, 504, 610, 802, 804, 1008, 1010, 1014); determining an orientation for the element (338, 340, 342, 344, 510, 512, 514, 516, 526, 528, 602, 604, 606, 608, 1006, 1012); and drawing the element (338, 340, 342, 344, 510, 512, 514, 516, 526, 528, 602, 604, 606, 608, 1006, 1012) at the orientation on said displayed drawing sheet responsive to said user command, to locations of said series of points (200, 302, 304, 502, 504, 610, 802, 804, 1008, 1010, 1014), and to said particular intent zone (204, 206, 324, 326, 332, 334, 614, 616, 618, 620, 808, 810, 1018, 1020, 1022, 1024). The method according to claim 4, characterized by accepting a user command specifying an arc (338, 340) to be drawn; monitoring movement of the cursor (208) until a first key depression is detected; thereafter displaying a first selected point (302) responsive to a current location of said cursor (208) upon said first key depression; thereafter monitoring movement of the cursor (208) until a second key depression is detected; thereafter displaying a second selected point (304) responsive to a current location of said cursor (208) upon said second key depression; defining the region (328) to surround said second selected point (304); monitoring movement of the cursor (208) through said region (328) comprising first and second intent zones (332, 334), said first intent zone (332) facing towards said first selected point (302) and said second intend zone (334) facing away from said first selected point (302); monitoring movement of the cursor (208) until a third key depression is detected; thereafter if a last cursor movement through said surrounding region (328), prior to said third key depression, traversed said first intent zone (332), drawing the arc (340) on said drawing screen, wherein a current location of said cursor upon said second key depression determines a midpoint (306) of said arc (340); if a last cursor movement through said surrounding region (328), prior to said third key depression, traversed said second intent zone (334), drawing the arc (338) on said drawing screen, wherein said current location of said cursor upon said second key depression determines an endpoint (306) of said arc (338). The method according to claim 4, characterized by accepting a user command specifying an arc (602, 604, 606, 608) to be drawn; monitoring movement of the cursor until a first key depression is detected, said cursor being positioned at an existing line (609) upon said first key depression; thereafter displaying a first selected point (610) responsive to a current location of said cursor upon said first key depression; thereafter defining the region (612) to surround said first selected point (610); monitoring movement of the cursor through said region (612) comprising at least first and second indent zones (614, 616; 618, 620), said first intent zone (614, 616) being traversed by said existing line (609) and said second intend zone (618, 620) being traversed by a line perpendicular to said existing line (609); thereafter monitoring movement of the cursor until a second key depression is detected; thereafter if a last cursor movement through said surrounding region (612), prior to said second key depression, traversed said first intent zone (614, 616), drawing the arc (606, 608) on said drawing screen, wherein a first endpoint (610) of said arc (606, 608) is along said existing line (609) and a second endpoint (2) of said arc (606, 608) is determined responsive to a current location of said cursor upon said second key depression, and wherein said arc (606, 608) is tangent to said existing line (609); and if a last cursor movement through said surrounding region (612), prior to said second key depression, traversed said second intent zone (618, 620), drawing the arc (602, 604) on said drawing screen, wherein said first endpoint (610) of said arc (602, 604) is along said existing line (609) and a second endpoint (2) of said arc (602, 604) is determined responsive to a current location of said cursor upon said second key depression, and wherein said arc (602, 604) is perpendicular to said existing line (609). The method according to claim 4, characterized by accepting a user command specifying an arc to be drawn; monitoring movement of the cursor (812, 814) until a first key depression is detected; thereafter displaying a first selected point (802) responsive to a current location of said cursor (812, 814) upon said first key depression; thereafter monitoring movement of the cursor (812, 814) until a second key depression is detected; thereafter displaying a second selected point (804) responsive to a current location of said cursor (812, 814) upon said second key depression; defining the region (806) to surround an imaginary line extending from said first selected point (802) through said second selected point (804), said imaginary line dividing said region (806) into first and second intent zones (808, 810); monitoring movement of the cursor (812, 814) through said region (806); monitoring movement of the cursor (812, 814) until a third key depression is detected; thereafter if a last cursor movement through said surrounding region (806), prior to said third key depression, traversed said first intent zone (808), drawing the arc on said drawing screen, wherein said first point (802) defines a centre of the arc, said second point (804) defines a first endpoint of said arc, a second endpoint of said arc is determined responsive to a current location of said cursor (812) upon said third key depression, and the arc extends through said first intent zone (808); and if a last cursor movement through said surrounding region (806), prior to said third key depression, traversed said second intent zone (810), drawing the arc on said drawing screen, wherein said first point (802) defines a centre of the arc, said second point (804) defines a first endpoint of said arc, a second endpoint of said arc is determined responsive to a current location of said cursor (814) upon said third key depression, and the arc extends through said second intend zone (810). The method according to claim 4, characterized by accepting a user command specifying a line (1006, 1012) to be drawn; monitoring movement of the cursor until a first key depression is detected, said cursor being positioned at an existing curve (1002) upon said first key depression; thereafter displaying a first selected point (1008) responsive to a current location of said cursor upon said first key depression; thereafter defining the region (1016) to surround said first selected point (1008); monitoring, until a second key depression, movement of the cursor through said region (1016) comprising at least first and second intent zones (1022, 1024; 1018, 1020), said first intent zone (1022, 1024) being traversed by a line (1012) tangent to said existing curve (1002) and said second intent zone (1018, 1020) being traversed by a line (1006) perpendicular to said existing curve (1002); thereafter if a last cursor movement through said surrounding region (1016), prior to said second key depression, traversed said first intent zone (1022, 1024), drawing the line (1012) on said drawing screen, wherein a first endpoint of the line (1012) is the point (1008) on said existing curve (1002), a second endpoint (1014) of the line (1012) is determined responsive to a location of said cursor upon said second key depression, and the line (1012) is tangent to said existing curve (1002); and if a last cursor movement through said surrounding region (1016), prior to said second key depression, traversed said second intent zone (1018, 1020), drawing the line (1006) on said drawing screen, wherein a first endpoint of the line (1006) is the.point (1008) on said existing curve (1002), a second endpoint (1010) of the line (1006) is determined responsive to a location of said cursor upon said second key depression, and the line (1006) is perpendicular to said existing curve (1002).

Inventors: BLOMQVIST PER, EVANS CHARLES, MAWBY ERIC, SCHWARTZ JOHN, BLOMQVIST, PER, EVANS, CHARLES, MAWBY, ERIC, SCHWARTZ, JOHN
Applicants: INTERGRAPH CORP, INTERGRAPH CORPORATION
Application year: 1996
Main classification: G06T11
IPC codes: G06F3, G06T11