JPH03188573A - Drawing device - Google Patents

Drawing device

Info

Publication number
JPH03188573A
JPH03188573A JP1329291A JP32929189A JPH03188573A JP H03188573 A JPH03188573 A JP H03188573A JP 1329291 A JP1329291 A JP 1329291A JP 32929189 A JP32929189 A JP 32929189A JP H03188573 A JPH03188573 A JP H03188573A
Authority
JP
Japan
Prior art keywords
line
drawn
cursor
movement
mouse
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1329291A
Other languages
Japanese (ja)
Inventor
Takashi Ono
小野 孝志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP1329291A priority Critical patent/JPH03188573A/en
Publication of JPH03188573A publication Critical patent/JPH03188573A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To simply and quickly secure the connection between straight lines by stopping the movement of a cursor if a drawing line crosses an existing drawn line or spot owing to the movement of a position input means and then drawing a straight line going over the crossing point with a prescribed operation of the position input means. CONSTITUTION:When a start point is inputted by a mouse 5, a line is drawn along a locus of a cursor which connects the start point and the cursor moved with operation of the mouse 5. An input interface 6 detects the moved variable of the mouse 5 and decides it to give this deciding result to a display control circuit 3. If the drawn line crosses an existing drawn line or spot, the movement of the cursor is stopped and a line is drawn between the start point and the crossing point to the existing drawn line or spot. Then the straight lines going over the drawn line are not drawn and no line gets out of the drawn line or spot. Then the movement of the cursor is granted after the mouse 5 carried out a prescribed out a prescribed operation, and a line going over the crossing point is drawn. Thus the connection is secured between the straight lines in a simple and quick operation.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、マウス、トラックボール等の位置入力手段に
より線を描画する装置に関し、特に先に描画した線又は
点と接続させる線の描画装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a device for drawing lines using a position input means such as a mouse or a trackball, and particularly to a device for drawing lines connecting previously drawn lines or points. Regarding.

〔従来の技術〕[Conventional technology]

マウス、トラックボール等の位置入力装置を用いた直線
描画装置はCAD(Computer Aided D
esign)、図形プロセッサ等の図形入力装置で広く
用いられている。マウスを用いて直線を描画し、既に描
画された直線と接続する場合、従来はその接続部分を拡
大して、視認しやすくし、新たに描画する直線が、既に
描画された直線からはみ出さないようにマウスで終点の
位置を調節して直線の終点を定めていた。
A straight line drawing device using a position input device such as a mouse or trackball is called CAD (Computer Aided D).
It is widely used in graphic input devices such as graphics processors and graphics processors. When drawing a straight line using a mouse and connecting it to an already drawn line, conventionally the connected part is enlarged to make it easier to see and the newly drawn line does not protrude from the already drawn line. The end point of the straight line was determined by adjusting the end point position with the mouse.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら上述の如(の方法で直線の接続を行う場合
は、直線を接続する都度、画面の拡大及び縮小の操作を
行わなければならず、操作が複雑となり、誤操作が生じ
る原因となる。
However, when connecting straight lines using the method described above, it is necessary to enlarge and reduce the screen each time the straight lines are connected, which complicates the operation and causes erroneous operations.

本発明は斯かる事情に鑑みなされたものであり、既に描
画された線又は点に描画する線を接続するとき、始点か
ら描画された線又は点との接続を判定し、接続したとき
にカーソルの移動を禁止し、交点を越える線は描画しな
いようにし、描画された線と交差する線を描画する場合
は位置入力手段の所定の操作にて描画することにより、
簡単な操作で素早く直線を接続できる描画装置を提供す
ることを目的にする。
The present invention was made in view of the above circumstances, and when connecting a line to be drawn to a line or point that has already been drawn, the connection with the line or point drawn from the starting point is determined, and when the connection is made, the cursor is The movement of the line is prohibited, lines that cross the intersection are not drawn, and when drawing a line that intersects with the drawn line, the line is drawn using a predetermined operation of the position input means.
To provide a drawing device that can quickly connect straight lines with simple operation.

〔課題を解決するための手段〕[Means to solve the problem]

本発明に係る描画装置は、画面に表示されたカーソルを
位置入力手段の操作により移動させ、移動したカーソル
の軌跡に従い線を描画する描画装置において、前記位置
入力手段の操作量を検出する検出手段と、該検出手段の
検出結果に基づき、描画している線と既に描画された描
画点又は描画線との接続を判定する接続判定手段と、該
接続判定手段が前記接続を判定したとき、前記カーソル
の移動を停止させる停止手段と、前記カーソルの移動が
停止したとき、前記位置入力手段の所定の操作により前
記カーソルの移動を許可する移動許可手段とを備えるこ
とを特徴とする。
A drawing device according to the present invention is a drawing device that moves a cursor displayed on a screen by operating a position input means and draws a line according to the trajectory of the moved cursor, and a detection means that detects the amount of operation of the position input means. and connection determining means for determining the connection between the drawn line and the already drawn drawing point or drawing line based on the detection result of the detecting means; and when the connection determining means determines the connection, the The present invention is characterized by comprising a stopping means for stopping the movement of the cursor, and a movement permitting means for permitting movement of the cursor by a predetermined operation of the position input means when the movement of the cursor is stopped.

〔作用〕[Effect]

本発明においては、位置入力手段により始点を入力する
と、始点とその後に位置入力手段の操作により移動した
カーソルとを結ぶカーソルの軌跡に従う線が描画され、
それが既に描画された描画線又は描画点と交差すると、
カーソルの移動が停止し、始点から描画線又は描画点と
の交点までが描画され、それを越える直線は描画されず
、描画線又は描画点から線がはみ出さない。そして位置
入力手段で所定の操作がなされるとカーソルの移動が許
可され、交点を越える線が描画される。
In the present invention, when a starting point is input by the position input means, a line is drawn following the trajectory of the cursor connecting the start point and the cursor subsequently moved by operation of the position input means,
When it intersects with an already drawn drawing line or drawing point,
The movement of the cursor is stopped, and the line from the starting point to the intersection with the drawing line or drawing point is drawn, and no straight line beyond that point is drawn, and no line protrudes from the drawing line or drawing point. When a predetermined operation is performed using the position input means, movement of the cursor is permitted, and a line crossing the intersection is drawn.

〔実施例〕〔Example〕

以下、本発明をその実施例を示す図面に基づいて説明す
る。
Hereinafter, the present invention will be explained based on drawings showing embodiments thereof.

第1図は本発明に係る描画装置(以下本発明装置という
)の概略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a drawing device according to the present invention (hereinafter referred to as the device of the present invention).

図において1は液晶パネル、 CRT等の表示画面を用
いた表示手段としてのデイスプレィであり、該デイスプ
レィ1は後述するビデオメモリ2に記憶された表示デー
タにより表示制御する表示制御回路3に接続されている
。表示制御回路3にはウィンドウ表示のための記憶領域
を含み、デイスプレィ1の表示画面に対応したビットマ
ツプ形式のビデオメモリ2が接続されている。表示制御
回路3は装置全体の制御を司る制御回路7により制御さ
れ、入力手段として制御回路7に対する動作指令及びデ
ータ入力を行うキーボード4及びクリックボタン51を
有するマウス5が入力インクフェイス6を介して制御回
路7及び表示制御回路3に接続されている。また制御回
路7には描画されている図形を記憶する表示メモリ8が
接続され、キーボード4及びマウス5より入力されたデ
ータが制御回路7を経て表示メモリ8に記憶される。
In the figure, 1 is a display as a display means using a display screen such as a liquid crystal panel or CRT, and the display 1 is connected to a display control circuit 3 that controls the display based on display data stored in a video memory 2, which will be described later. There is. The display control circuit 3 includes a storage area for window display and is connected to a bitmap video memory 2 corresponding to the display screen of the display 1. The display control circuit 3 is controlled by a control circuit 7 that controls the entire device, and a keyboard 4 and a mouse 5 having a click button 51 are used as input means to input operation commands and data to the control circuit 7 via an input ink face 6. It is connected to the control circuit 7 and the display control circuit 3. Further, a display memory 8 for storing drawn figures is connected to the control circuit 7, and data input from the keyboard 4 and mouse 5 is stored in the display memory 8 via the control circuit 7.

次に本発明装置の描画手順について説明する。Next, the drawing procedure of the apparatus of the present invention will be explained.

第2〜第6図はデイスプレィ1上の表示画面への直線の
描画状態を示す図であり、第7図は描画手順を示すフロ
ーチャートである。いま第2図に示す直線11が描かれ
ており、直線r、上の点すに直線12及び同13を接続
する場合を例に描画手順を説明する。まず第3図に示す
如くマウス5により始点上にカーソルを移動させ、そこ
でクリックボタン51をクリックし、始点aを定める(
ステップl11)。次にマウス5によりカーソルを右方
向に移動すると(ステップ112) 、始点aとカーソ
ルとを結ぶラバーバンディングな直線が描画される(ス
テップ#3)。そしてカーソルが直線11を越えるとカ
ーソルの移動が交点すで止まり、始点aと交点すとの間
の直線が描画され、第2図に破線で示す交点すを越える
直線は描画されない。これはマウス5の移動量を入力イ
ンクフェイス6が検出してそれを判断しくステップl1
4)、これを表示制御回路3に与え、表示制御回路3は
マウス5によりカーソルが移動した先に線又は点があり
、そこに接続したか否かを判定しくステップ#5)、線
又は点に接続した場合は、そこでカーソルの移動を停止
させ、描画を停止する(ステップ#6)。また接続して
いない場合はステップI2に戻る。また第3図のb点か
らC点まで直線11を越える描画を行いたいときは、−
度マウス5の移動を停止し、その移動量をOにし、再度
移動させる(ステップ17)。移動量は入力インクフェ
イス6により判断され、それが0になるとそのことが表
示制御回路3に伝えられ、第4図に示す如くカーソルが
再移動しくステップ#8)、直線12の描画が続けられ
る。即ち、直線の描画を続ける許可を、マウス5の移動
量Oをもって表示制御回路3に与えるわけである。
2 to 6 are diagrams showing how a straight line is drawn on the display screen of the display 1, and FIG. 7 is a flowchart showing the drawing procedure. A straight line 11 shown in FIG. 2 is now drawn, and the drawing procedure will be explained using an example in which straight lines 12 and 13 are connected to the straight line r and the points above. First, as shown in Fig. 3, move the cursor to the starting point using the mouse 5, click the click button 51 there, and set the starting point a (
Step l11). Next, when the cursor is moved to the right using the mouse 5 (step 112), a rubber banding straight line connecting the starting point a and the cursor is drawn (step #3). When the cursor crosses the straight line 11, the movement of the cursor stops at the intersection point, and the straight line between the starting point a and the intersection point A is drawn, and the straight line that crosses the intersection point A shown by the broken line in FIG. 2 is not drawn. This is step l1 in which the input ink face 6 detects the amount of movement of the mouse 5 and judges it.
4), This is given to the display control circuit 3, and the display control circuit 3 detects a line or point where the cursor is moved by the mouse 5, and determines whether or not it is connected there.Step #5), the line or point If connected, the cursor movement is stopped there and drawing is stopped (step #6). If there is no connection, the process returns to step I2. Also, if you want to draw beyond the straight line 11 from point b to point C in Figure 3, -
The mouse 5 is then stopped moving, the amount of movement is set to O, and the mouse 5 is moved again (step 17). The amount of movement is determined by the input ink face 6, and when it becomes 0, this is communicated to the display control circuit 3, and as shown in FIG. 4, the cursor is moved again (Step #8), and drawing of the straight line 12 is continued. . That is, permission to continue drawing a straight line is given to the display control circuit 3 by the amount of movement O of the mouse 5.

次に斜め線を描く場合を考える。この場合まず始点eに
カーソルを移動させ、マウス5のクリックボタン51を
クリックし、始点eを定める。次にマウス5の操作によ
りカーソルを直線β1を斜めに交差する点まで移動させ
、第5図に示す如く始点eと交点dとを結ぶ直線13を
描画する。このときも前述の直線12の場合と同様に、
カーソルの移動先に線又は点がある場合はマウス5の移
動量に関係なく点dで直線13は止まる。そして第6図
に示す如くマウス5を下方に移動し、点dを直線11に
沿って矢符で示す下方に移動させ、点すに一致させるこ
とにより所望の直線を描画することができる。以上のマ
ウス5の操作において直線の決定はマウス5のクリック
ボタン51をクリックすることにより行われる。
Next, consider drawing a diagonal line. In this case, first move the cursor to the starting point e and click the click button 51 of the mouse 5 to define the starting point e. Next, by operating the mouse 5, the cursor is moved to a point where the straight line β1 diagonally intersects, and a straight line 13 connecting the starting point e and the intersection d is drawn as shown in FIG. At this time, as in the case of the straight line 12 described above,
If there is a line or point at the destination of the cursor movement, the straight line 13 stops at the point d regardless of the amount of movement of the mouse 5. Then, as shown in FIG. 6, a desired straight line can be drawn by moving the mouse 5 downward, moving the point d downward along the straight line 11 as indicated by the arrow, and aligning it with the dot. In the above operations of the mouse 5, the straight line is determined by clicking the click button 51 of the mouse 5.

第8図はマウス5が示すカーソルの一例であり、例えば
マウス5が画面上において右から左へ移動するときは右
方向の矢符が表示され、逆の場合は左方向、下から上へ
移動するときは上方向、逆の場合は下方向の矢符が夫々
表示されるようにする。
Figure 8 is an example of the cursor shown by the mouse 5. For example, when the mouse 5 moves from right to left on the screen, a right arrow is displayed, and in the opposite case, it moves to the left, from bottom to top. When doing so, an arrow pointing upwards will be displayed, and when vice versa, an arrow pointing downwards will be displayed.

また直線が接続されると矢符の先端に破線で示す2方向
の斜線が表れ、移動の方向を視認できるようにする。ま
たそれらで仕切られるA−Dの4つの範囲にカーソルを
移動させることにより、直線との接続、交差、非接続を
判断する。例えば前述の場合、直線11に点dで接続後
、カーソルを範囲りの方向に移動させることにより直線
l、上を接続したまま点dを点すに一致させることがで
きる。またこのとき範囲Aの方向にカーソルを移動させ
ると、直線I13は直線6.から離れ、非接続状態とな
る。またマウス5を停止後カーソルを範囲Cの方向に再
度移動させると、直線13は直線11と交差し通過する
ことになる。なお直線l。
Furthermore, when straight lines are connected, diagonal lines in two directions (broken lines) appear at the tips of the arrows, allowing the direction of movement to be visually recognized. Furthermore, by moving the cursor to the four ranges A-D partitioned by these, connection, intersection, and non-connection with a straight line are determined. For example, in the above case, after connecting the straight line 11 at the point d, by moving the cursor in the direction of the range, it is possible to match the point d with the straight line 11 while keeping the top connected. Also, if you move the cursor in the direction of range A at this time, the straight line I13 will change to the straight line 6. It becomes disconnected and becomes disconnected. Furthermore, when the cursor is moved again in the direction of range C after stopping the mouse 5, the straight line 13 intersects and passes through the straight line 11. Note that the straight line l.

を移動中に交点dがその端に達したときは、さらに移動
させると、その直線からカーソルは離れるものとする。
When the intersection point d reaches its end while moving the cursor, the cursor will move away from the straight line if the cursor is moved further.

またこのときは上述の破線は消滅し、矢符だけのカーソ
ルとなる。
Also, at this time, the above-mentioned broken line disappears, and the cursor becomes only an arrow mark.

なお本実施例では位置入力手段としてマウスを用いたが
、本発明はこれに限るものではなく、マウスの他にトラ
ックボール、ジョイスティック等の他の位置入力手段を
用いることができることは言うまでもない。
Although a mouse is used as the position input means in this embodiment, the present invention is not limited to this, and it goes without saying that other position input means such as a trackball or joystick can be used in addition to the mouse.

また、本実施例では直線を描画直線に接続させる場合を
例に説明したが、本発明はこれに限るものではなく、曲
線を描画曲線、描画点等に接続させる場合にも適用でき
ることは言うまでもない。
Further, in this embodiment, the case where a straight line is connected to a drawn straight line has been explained as an example, but the present invention is not limited to this, and it goes without saying that it can be applied to cases where a curved line is connected to a drawn curve, a drawn point, etc. .

〔効果〕〔effect〕

以上説明したとおり本発明においては、位置入力手段の
移動量により描画している直線が既に描画された線又は
点と交差することが判定された場合、始点から交点まで
でカーソルの移動が停止され、交点を越える描画が行わ
れない。そして位置入力手段の所定の操作により、それ
を越える直線が描画されるので、描画する直線の既に描
画された線又は点への接続が拡大、縮小等の複雑な操作
を行うことなく、描画線又は描画点からはみ出ることな
く簡単に、迅速に行うことができる等価れた効果を奏す
る。
As explained above, in the present invention, when it is determined based on the amount of movement of the position input means that the straight line being drawn intersects with an already drawn line or point, the movement of the cursor is stopped from the starting point to the intersection. , drawing beyond the intersection point is not performed. Then, by a predetermined operation of the position input means, a straight line that crosses the line is drawn, so that the connection of the straight line to be drawn to the already drawn line or point can be confirmed without performing complicated operations such as enlarging or reducing the drawn line. Alternatively, an equivalent effect can be achieved that can be easily and quickly performed without going beyond the drawing point.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明装置の概略構成を示すブロック図、第2
図〜第6図は直線の描画状態を示す図、第7図は描画手
順を示すフローチャート、第8図はマウスが示すカーソ
ルの一例を示す図である。 ■・・・デイスプレィ 3・・・表示制御回路5・・・
マウス 6・・・入力インクフェイス 51・・・クリ
ックボタン 特 許 出願人  三洋電機株式会社
FIG. 1 is a block diagram showing the schematic configuration of the device of the present invention, and FIG.
6 to 6 are diagrams showing the state of drawing a straight line, FIG. 7 is a flowchart showing a drawing procedure, and FIG. 8 is a diagram showing an example of a cursor indicated by a mouse. ■...Display 3...Display control circuit 5...
Mouse 6...Input ink face 51...Click button patent Applicant: Sanyo Electric Co., Ltd.

Claims (1)

【特許請求の範囲】 1、画面に表示されたカーソルを位置入力手段の操作に
より移動させ、移動したカーソルの軌跡に従い線を描画
する描画装置において、前記位置入力手段の操作量を検
出する検出 手段と、 該検出手段の検出結果に基づき、描画して いる線と既に描画された描画点又は描画線との接続を判
定する接続判定手段と、 該接続判定手段が前記接続を判定したとき、前記カーソ
ルの移動を停止させる停止手段と、前記カーソルの移動
が停止したとき、前記 位置入力手段の所定の操作により前記カーソルの移動を
許可する移動許可手段と を備えることを特徴とする描画装置。
[Claims] 1. In a drawing device that moves a cursor displayed on a screen by operating a position input means and draws a line according to the trajectory of the moved cursor, a detection means for detecting the amount of operation of the position input means. and a connection determining means for determining a connection between a drawn line and an already drawn drawing point or drawn line based on the detection result of the detecting means; and when the connection determining means determines the connection, the A drawing device comprising: a stopping means for stopping the movement of a cursor; and a movement permitting means for permitting movement of the cursor by a predetermined operation of the position input means when the movement of the cursor is stopped.
JP1329291A 1989-12-18 1989-12-18 Drawing device Pending JPH03188573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1329291A JPH03188573A (en) 1989-12-18 1989-12-18 Drawing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1329291A JPH03188573A (en) 1989-12-18 1989-12-18 Drawing device

Publications (1)

Publication Number Publication Date
JPH03188573A true JPH03188573A (en) 1991-08-16

Family

ID=18219817

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1329291A Pending JPH03188573A (en) 1989-12-18 1989-12-18 Drawing device

Country Status (1)

Country Link
JP (1) JPH03188573A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0506102A2 (en) * 1991-03-29 1992-09-30 Kabushiki Kaisha Toshiba Drawing preparing system in a data processing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0506102A2 (en) * 1991-03-29 1992-09-30 Kabushiki Kaisha Toshiba Drawing preparing system in a data processing apparatus

Similar Documents

Publication Publication Date Title
US7451408B2 (en) Selecting moving objects on a system
JP2759700B2 (en) How to run an image editor
US4831556A (en) Device capable of displaying window size and position
JPH01250129A (en) Display screen operating system
JPH03273113A (en) Trend graph power varying device
JPH08234913A (en) Cursor movement controller
JP3585357B2 (en) Information processing apparatus and method, and recording medium recording information processing program
JP2000020207A (en) Window controller and recording medium
JP3015264B2 (en) Information processing apparatus and method
JPH07295782A (en) Screen display controlling method
JP2000148350A (en) Information processor, cursor display controlling method and storage medium
JPH03188573A (en) Drawing device
JPH11194870A (en) Mouse cursor managing method, and data processor
JP3050281B2 (en) Map information retrieval device
JPS62150423A (en) Coordinate input device
JPH0580025B2 (en)
JPH09244858A (en) Control method for window system and information processor
JPH06149464A (en) Screen scroll method in stylus
JP3038691B2 (en) Window moving device
JPH0330011A (en) Display controller
JPH0561608A (en) Method and device for controlling cursor and document processor
JPS62150422A (en) Coordinate input device
JPS6029832A (en) Controller for object movement
JPH08147105A (en) Mouse indication display control system
JPH08335277A (en) Graphic processor