JPS62154069A - Straight line input device using mouth - Google Patents

Straight line input device using mouth

Info

Publication number
JPS62154069A
JPS62154069A JP29629085A JP29629085A JPS62154069A JP S62154069 A JPS62154069 A JP S62154069A JP 29629085 A JP29629085 A JP 29629085A JP 29629085 A JP29629085 A JP 29629085A JP S62154069 A JPS62154069 A JP S62154069A
Authority
JP
Japan
Prior art keywords
straight line
data
mouth
starting point
start point
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
JP29629085A
Other languages
Japanese (ja)
Inventor
Takeshi Koda
幸田 剛
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP29629085A priority Critical patent/JPS62154069A/en
Publication of JPS62154069A publication Critical patent/JPS62154069A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To automatically draw a straight line by providing a direction designating means, a start point designating means and a mouth for inputting data to a straight line forming means. CONSTITUTION:A mouth cursor is removed, an automatic line drawing mode on a picture of a CRT 8 is selected and the mouth 6 is moved, and then, mouth moving data 63 is inputted to a start point arithmetic part 21 and the position of the mouth cursor is calculated. Subsequently, when a left button of the mouth 6 is pressed a left button input 61 is inputted to the start point arithmetic part 21 through a CPU5, the position of the mouth cursor at that time is set to a start point data memory 22 as the start point of the straight lien and at the same time, the left button input 61 is inputted to an automatic line drawing part 3. Thereby, the automatic line drawing part 3 fetches the contents of the start point data memory 22 and a direction data memory 12 through the CPU5, forms straight line data from the start point decided by start point data towards the direction decided by direction data and writes in a picture data storage part 7.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、マウスを使った直線の簡便な入力方式に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a simple linear input method using a mouse.

〔従来技術及びその問題点〕[Prior art and its problems]

パーソナルコンピュータとマウスを用いた図形作成装置
は、正確な図形を容易に作成できる手段として急速に普
及してきている。
2. Description of the Related Art Graphic creation devices using a personal computer and a mouse are rapidly becoming popular as a means for easily creating accurate graphics.

そのうち、従来マウスを使って直線を引く場合、マウス
の第1のボタンによりCRT画面上で始点と終点を指定
し、続いて同じく第2のボタンを押すことにより自動的
に直線を引く方式が一般的である。また、現在のカーソ
ル位置からマウスによって移動した通りに直線を引く方
式もある。
When drawing a straight line using a conventional mouse, the most common method is to specify the start and end points on the CRT screen using the first button of the mouse, and then press the second button to automatically draw the line. It is true. There is also a method of drawing a straight line from the current cursor position along the path moved by the mouse.

しかし、上記従来方式の場合、水平線や垂直線を正確に
引くことが難しく、同様に何本もの平行線を引くのが困
難であった。また、同じ方向の直線を何本も引くような
場合、前記第1の従来方式のように始点と終点を指定す
る方式は操作が煩わしく、また、前記第2の従来方式で
は直線そのものを引くのが困難であるという問題点を有
していた。
However, in the case of the conventional method described above, it is difficult to draw horizontal lines and vertical lines accurately, and similarly, it is difficult to draw many parallel lines. In addition, when drawing many straight lines in the same direction, the method of specifying the start and end points as in the first conventional method is cumbersome to operate, and the second conventional method requires drawing the straight lines themselves. The problem was that it was difficult.

〔発明の目的〕[Purpose of the invention]

本発明は上記問題点を除くために、直線の方向と始点を
マウスによって指定するだけで自動的に直線を引くこと
のできるマウスを使った直線入力装置を提供することを
目的とする。
SUMMARY OF THE INVENTION In order to eliminate the above-mentioned problems, it is an object of the present invention to provide a straight line input device using a mouse that can automatically draw a straight line simply by specifying the direction and starting point of the straight line using the mouse.

〔発明の要点〕[Key points of the invention]

本発明は上記目的を達成するために、直線の方向と始点
をマウス(6)によって指定する方向指定手段(1)及
び始点指定手段(2)と、それにより所定の始点から所
定の方向へ自動的に直線を引く直線作成手段(3,4>
とを有する。この時、第1の直線作成手段として、他の
直線データと交差するまで、又は画面の一端と接するま
で自動的に直線を引く自動線引き手段(3)を提供する
In order to achieve the above object, the present invention includes a direction specifying means (1) and a starting point specifying means (2) for specifying the direction and starting point of a straight line using a mouse (6), and thereby automatically moving from a predetermined starting point to a predetermined direction. Straight line creation method for drawing straight lines (3, 4>
and has. At this time, automatic line drawing means (3) that automatically draws a straight line until it intersects with other straight line data or touches one end of the screen is provided as the first straight line creation means.

又、第2の直線作成手段として、マウスの第1のボタン
を押している間一定速度で直線を引き、同じく第2のボ
タンを押している間一定速度で逆方向へ直線を削除して
ゆく線引き・線消し手段(4)を提供する。
In addition, as a second straight line creation method, a line drawing method that draws a straight line at a constant speed while holding down the first button of the mouse, and deletes the straight line in the opposite direction at a constant speed while holding down the second button. Line erasure means (4) are provided.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例につき詳細に説明を行う。 Hereinafter, embodiments of the present invention will be described in detail.

第1図は本発明による直線入力装置の構成図である。c
pusは、マウス6からの左ボタン人力61、右ボタン
人力62.及びマウス移動データ63を取り込み、選択
的に方向指定部1.始点指定部2.自動線引き部3、又
は線引き・線消し部4に出力する。方向指定部1は、方
向演算部11及び方向データメモリ12によって構成さ
れ、方向演算部11はCPU5を介したマウス入力によ
り方向データを作成し、方向データメモリ12に格納す
る。方向データメモリ12の内容は随時CPU5に出力
される。始点指定部2は、始点演算部21及び始点デー
タメモリ22によって構成され、始点演算部21はCP
U5を介してマウス入力により始点データを作成し、始
点データメモIJ22に格納する。始点データメモリ2
2の内容は随時CPU5に出力される。自動線引き部3
及び線引き・線消し部4は、CPU5を介して画面デー
タ記憶部7の内容を見ながら、直線データを作成し、同
記憶部に出力する。又、CPU5は画面データ記憶部7
の内容を、随時CRT8に表示する。
FIG. 1 is a block diagram of a linear input device according to the present invention. c.
pus is left button manual power 61 from mouse 6, right button manual power 62. and mouse movement data 63, and selectively selects the direction specifying unit 1. Starting point specification part 2. It is output to the automatic line drawing section 3 or the line drawing/erasing section 4. The direction specifying section 1 is constituted by a direction calculating section 11 and a direction data memory 12. The direction calculating section 11 creates direction data through mouse input via the CPU 5 and stores it in the direction data memory 12. The contents of the direction data memory 12 are output to the CPU 5 at any time. The starting point specifying section 2 is composed of a starting point calculating section 21 and a starting point data memory 22, and the starting point calculating section 21 is composed of a CP
Start point data is created by mouse input via U5 and stored in the start point data memo IJ22. Starting point data memory 2
The contents of 2 are output to the CPU 5 at any time. Automatic line drawing section 3
The line drawing/line erasing section 4 creates straight line data while checking the contents of the screen data storage section 7 via the CPU 5, and outputs it to the same storage section. Further, the CPU 5 has a screen data storage section 7.
The contents are displayed on the CRT 8 at any time.

次に、上記構成の直線入力装置の動作につき説明を行う
。先ず、直線の方向指定動作につき説明を行う。CRT
8の画面上には随時モード選択画面が表示されているの
で、マウスカーソルを移動して方向指定モードを選択す
る。これにより、CRT8の画面上には第2図(alに
示すように3時の方向を示す矢印が円内に表示される。
Next, the operation of the linear input device having the above configuration will be explained. First, the operation of specifying the direction of a straight line will be explained. CRT
Since a mode selection screen is displayed on the screen of 8 at any time, move the mouse cursor to select the direction designation mode. As a result, an arrow indicating the 3 o'clock direction is displayed in a circle on the screen of the CRT 8, as shown in FIG. 2 (al).

この方向をデフォルトとして、先ず、マウス6の左ボタ
ンを押すことにより、左ボタン人力61がCPU5を介
して方向演算部11に入力する。これにより、方向演算
部11は左ボタンを1回押す毎に時計回りに頒°ずつ矢
印が移動するように方向データを作成し、方向データメ
モリ12にセットする。方向データメモリ12の内容は
、cpusを介して随時CRT8の画面上に出力される
。すなわち、マウス6の左ボタンを押す毎に、画面上の
矢印は第2図(blに示すように時計回りに90°ずつ
回転する。次に、マウス6の右ボタンを押すことにより
、右ボタン人力62がCPU5を介して方向演算部11
に入力し、右ボタンを1回押す毎に時計回りに2〜3°
程度ずつ矢印が移動するように方向データを作成し、方
向データメモリ12にセットする。これにより、画面上
の矢印は第2図(C)に示すように微小角回転する。上
記動作により、任意の方向をマウス6によって迅速に指
定することができる。なお、矢印の方向が上下左右方向
以外の場所で、上記左ボタンが押された場合は、時計回
り方向に最も近い上下左右方向を指すように動作する。
With this direction as a default, by first pressing the left button of the mouse 6, the left button manual input 61 is input to the direction calculation unit 11 via the CPU 5. As a result, the direction calculation section 11 creates direction data such that the arrow moves clockwise by 5 degrees each time the left button is pressed once, and sets it in the direction data memory 12. The contents of the direction data memory 12 are output on the screen of the CRT 8 at any time via the CPU. That is, each time you press the left button of the mouse 6, the arrow on the screen rotates 90 degrees clockwise as shown in Figure 2 (bl).Next, by pressing the right button of the mouse 6, The human power 62 passes through the CPU 5 to the direction calculation section 11.
and move clockwise 2 to 3 degrees each time you press the right button.
Direction data is created so that the arrow moves in degrees, and is set in the direction data memory 12. As a result, the arrow on the screen rotates by a small angle as shown in FIG. 2(C). By the above operation, any direction can be quickly specified using the mouse 6. Note that if the left button is pressed in a location where the direction of the arrow is other than the up, down, left, or right direction, the arrow will move to point in the up, down, left, or right direction closest to the clockwise direction.

すなわち、例えば矢印が4時の方向を指している場合に
左ボタンを押すと、矢印は6時の方向を1旨す。
That is, for example, if the left button is pressed when the arrow is pointing in the 4 o'clock direction, the arrow will point in the 6 o'clock direction.

次に、直線を引く動作について説明を行う。先ず、マウ
スカーソルを移動して、CRT8の画面上の自動線引き
モードを選択したとする。この状態でマウス6を移動す
ると、マウス移動データ63がCPU5を介して始点演
算部21に入力し、マウスカーソルの位置が計算される
。続いてマウス6の左ボタンを押すと、左ボタン人力6
1がCPU5を介して始点演算部21に入力し、その時
のマウスカーソルの位置が直線の始点として始点データ
メモリ22にセットされる。この時、同時にマウス6か
らの左ボタン人力61がCPU5を介して自動線引き部
3に入力する。これにより、自動線引き部3はcpus
を介して始点データメモリ22、及び方向データメモリ
12の内容を取込み、始点データによって決る始点位置
から、方向データによって決る方向へ直線データを作成
し、画面データ記憶部7へ書き込んでゆく。この時、同
時にCPU5を介して画面データ記憶部7の内容を監視
し、作成された直線データが第3図(alのように他の
直線データと交差した位置、又は同図1b)のように画
面の一端に接した位置で終点自動セントを行い、直線の
作成を終了する。この動作は、画面データ記憶部7から
cpusを介して、CRT8に随時表示される。第4図
と上記直線作成機能を活用した例を示す。先ず、ボック
ス作成機能により、第4図(a)のAに示す枠をつくる
。その後、前記方向指定動作により直線の方向を同図(
b)に示すように3時の方向とする。続いて自動線引き
モードを選択し、マウス6により同図(a)の各点ア〜
工の位置で左ボタンを押すことにより、右端の直線まで
自動的に水平線が引かれ、簡単に表を作成することがで
きる。
Next, the operation of drawing a straight line will be explained. First, assume that the automatic line drawing mode on the screen of the CRT 8 is selected by moving the mouse cursor. When the mouse 6 is moved in this state, the mouse movement data 63 is input to the starting point calculation unit 21 via the CPU 5, and the position of the mouse cursor is calculated. Next, press the left button of mouse 6. Left button manual 6
1 is input to the starting point calculation unit 21 via the CPU 5, and the position of the mouse cursor at that time is set in the starting point data memory 22 as the starting point of the straight line. At this time, the left button 61 from the mouse 6 is simultaneously input to the automatic line drawing section 3 via the CPU 5. As a result, the automatic line drawing section 3
The contents of the starting point data memory 22 and the direction data memory 12 are taken in through the starting point data memory 22 and the direction data memory 12, and straight line data is created from the starting point position determined by the starting point data in the direction determined by the direction data, and is written into the screen data storage section 7. At this time, the contents of the screen data storage section 7 are monitored via the CPU 5, and the created straight line data is displayed at the position where it intersects with other straight line data as shown in Fig. 3 (al), or as shown in Fig. 1b. The end point is automatically set at the position touching one edge of the screen, and the creation of the straight line is finished. This operation is displayed on the CRT 8 from the screen data storage section 7 via the CPU at any time. FIG. 4 shows an example using the above straight line creation function. First, use the box creation function to create the frame shown at A in FIG. 4(a). After that, the direction of the straight line is set in the same figure (
The direction is 3 o'clock as shown in b). Next, select the automatic line drawing mode and use the mouse 6 to draw each point A to A in the figure (a).
By pressing the left button at the work position, a horizontal line is automatically drawn to the rightmost straight line, allowing you to easily create a table.

次に、前記方向指定動作の後、CRT8の画面上でマウ
スカーソルにより線引き・線消しモードを選択したとす
る。この状態でマウス6を移動すると、前記自動線引き
モードの時と同様に、マウス6の左ボタンを押した時点
のマウスカーソルの位置が、直線の始点として始点デー
タメモリ22にセットされる。この時、同時にマウス6
からの左ボタン人力61が、CPU5を介して線引き・
線消し部4に入力する。これにより、線引き・線消し部
4はCPU5を介して始点データメモリ22、及び方向
データメモリ12の内容を取り込み、始点データによっ
て決る始点位置から、方向データによって決る方向へ直
線データを一定速度で作成し画面データ記憶部7に書き
込んでゆく。
Next, suppose that after the direction specifying operation, the line drawing/erasing mode is selected with the mouse cursor on the screen of the CRT 8. When the mouse 6 is moved in this state, the position of the mouse cursor at the time the left button of the mouse 6 is pressed is set in the starting point data memory 22 as the starting point of the straight line, as in the automatic line drawing mode. At this time, mouse 6
The left button human power 61 from
Input it to the line eraser section 4. As a result, the line drawing/erasing unit 4 takes in the contents of the starting point data memory 22 and the direction data memory 12 via the CPU 5, and creates straight line data at a constant speed from the starting point position determined by the starting point data in the direction determined by the direction data. The screen data storage unit 7 then writes the data to the screen data storage unit 7.

この動作は、マウス6の左ボタンが押されている間続行
される。これに対して、マウス6の右ボタンを押すと、
線引き・線消し部4は画面データ記憶部7に書き込まれ
た直線データを、現在の終点位置から逆方向へ一定速度
で削除してゆく。この動作により、何本もの平行線を容
易かつ自由に引くことが可能となる。なお、上記動作は
、画面データ記憶部7からCPU5を介して、CRT8
に随時表示される。
This operation continues as long as the left button of mouse 6 is pressed. On the other hand, if you press the right button of mouse 6,
The line drawing/line erasing unit 4 deletes the straight line data written in the screen data storage unit 7 in the opposite direction from the current end point position at a constant speed. This action allows you to easily and freely draw many parallel lines. Note that the above operation is performed from the screen data storage section 7 to the CRT 8 via the CPU 5.
displayed from time to time.

以上、方向指定モードと、自動線引きモード又は線引き
・線消しモードとを組み合わせることにより、任意の方
向の何本もの直線を容易に引くことが可能となる。又、
本発明と従来の方式とを選択的に組み合わせて用いるこ
とにより、更に使い勝手のよい直線入力を行うことが可
能となる。
As described above, by combining the direction designation mode and the automatic line drawing mode or the line drawing/erasing mode, it becomes possible to easily draw many straight lines in any direction. or,
By selectively combining the present invention and the conventional method, it becomes possible to perform linear input that is even more user-friendly.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、始点を変更するだけで何本もの平行線
を容易に引くことが可能となる。又、方向を(資)°単
位でセットできるので、水平線、垂直線を正確に引くこ
とができる。更に任意の角度もセットできるので線引き
・線消しモードと組み合わせて立体図形が描きやすくな
る。加えて、自動線引きモードにおける終点自動セット
機能により、同じ長さの平行線が容易に美しく引は表作
成などに非常に有効である。
According to the present invention, it is possible to easily draw many parallel lines just by changing the starting point. Also, since the direction can be set in degrees, horizontal and vertical lines can be drawn accurately. Furthermore, since you can set any angle, you can combine it with the line drawing/erasing mode to make it easier to draw 3D figures. In addition, the automatic end point setting function in the automatic line drawing mode makes it easy to draw parallel lines of the same length beautifully, which is very effective for creating tables.

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

第1図は、本発明による直線入力装置の構成図、第2図
は、方向指定動作の説明図、 第3図及び第4図は、自動線引きモードの動作説明図で
ある。 1・・・方向指定部、 2・・・始点指定部、 3・・・自動線引き部、 4・・・線引き・線消し部、 5・・・cpu。 6・・・マウス、 7・・・画面データ記憶部、 8・・・CRT。 11・・・方向演算部、 12・・・方向データメモリ、 21・・・始点演算部、 22・・・始点データメモリ。 特許出願人   カシオ計算機株式会社第1図 (b) 第2図 (CI) 第3図
FIG. 1 is a block diagram of a linear input device according to the present invention, FIG. 2 is an explanatory diagram of direction designation operation, and FIGS. 3 and 4 are explanatory diagrams of operation in automatic line drawing mode. DESCRIPTION OF SYMBOLS 1...Direction specification part, 2...Start point specification part, 3...Automatic line drawing part, 4...Line drawing/line erasing part, 5...cpu. 6...Mouse, 7...Screen data storage section, 8...CRT. DESCRIPTION OF SYMBOLS 11... Direction calculation part, 12... Direction data memory, 21... Starting point calculation part, 22... Starting point data memory. Patent applicant: Casio Computer Co., Ltd. Figure 1 (b) Figure 2 (CI) Figure 3

Claims (1)

【特許請求の範囲】 1)直線の方向を指定する方向指定手段(1)と、直線
の始点を指定する始点指定手段(2)と、画面データ記
憶手段(7)と、該画面データ記憶手段上において前記
始点指定手段によって指定された位置を始点とし前記方
向指定手段によって指定された方向に向かって直線デー
タを作成する直線作成手段(3、4)と、前記方向指定
手段、始点指定手段、及び直線作成手段に対してデータ
の入力を行うマウス(6)とを有することを特徴とする
マウスを使った直線入力装置。 2)前記直線作成手段は、前記画面データ記憶手段上に
おいて前記始点位置から前記方向に向かって他の直線デ
ータと交差するまで又は画面の左右上下の幾れか一端と
接するまでの直線データを作成する自動線引き手段(3
)によって構成されることを特徴とする特許請求の範囲
第1項記載のマウスを使った直線入力装置。 3)前記直線作成手段は、前記マウスの第1のボタンが
押されている間前記画面データ記憶手段上において前記
始点位置から前記方向に向かって所定速度で直線データ
を作成し前記マウスの第2のボタンが押されている間同
じく現在の直線データの終点位置から前記方向とは逆方
向に向かって所定速度で直線データを削除する線引き・
線消し手段(4)によって構成されることを特徴とする
特許請求の範囲第1項記載のマウスを使った直線入力装
置。
[Claims] 1) Direction specifying means (1) for specifying the direction of the straight line, starting point specifying means (2) for specifying the starting point of the straight line, screen data storage means (7), and the screen data storage means Line creating means (3, 4) for creating straight line data starting from the position specified by the starting point specifying means and in the direction specified by the direction specifying means; the direction specifying means; the starting point specifying means; and a mouse (6) for inputting data to the straight line creation means. 2) The straight line creation means creates straight line data on the screen data storage means from the starting point position in the direction until it intersects with other straight line data or touches one of the left, right, top, and bottom edges of the screen. Automatic line drawing means (3
) A linear input device using a mouse according to claim 1. 3) The straight line creation means creates straight line data on the screen data storage means from the starting point position toward the direction at a predetermined speed while the first button of the mouse is pressed; While the button is pressed, draw a line to delete straight line data at a predetermined speed from the end point of the current straight line data in the opposite direction to the above direction.
A linear input device using a mouse according to claim 1, characterized in that it is constituted by line erasing means (4).
JP29629085A 1985-12-26 1985-12-26 Straight line input device using mouth Pending JPS62154069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29629085A JPS62154069A (en) 1985-12-26 1985-12-26 Straight line input device using mouth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29629085A JPS62154069A (en) 1985-12-26 1985-12-26 Straight line input device using mouth

Publications (1)

Publication Number Publication Date
JPS62154069A true JPS62154069A (en) 1987-07-09

Family

ID=17831643

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29629085A Pending JPS62154069A (en) 1985-12-26 1985-12-26 Straight line input device using mouth

Country Status (1)

Country Link
JP (1) JPS62154069A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04168504A (en) * 1990-11-01 1992-06-16 Fanuc Ltd Method for moving and copying shape

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04168504A (en) * 1990-11-01 1992-06-16 Fanuc Ltd Method for moving and copying shape

Similar Documents

Publication Publication Date Title
JPS61290525A (en) Facilitation of selection of graphic object
CN112799583B (en) Point location schematic drawing system based on android platform
JPS62154069A (en) Straight line input device using mouth
JP2662540B2 (en) 3D distance measuring device
JPH06301759A (en) Picture processor
JPH0546707A (en) Information processor
JPH0520422A (en) Information processor
JPH04320579A (en) Image processor
JPS6290720A (en) Menu displaying device
JPS63163676A (en) Inputting device for linear coordinate
JPH0525115B2 (en)
JPH05173703A (en) User interface device
JPH0546706A (en) Information processor
JP2616426B2 (en) String display device
JP2932487B2 (en) Chart editing device
JPH0435955Y2 (en)
JPS6125241A (en) Display and plotting method of pattern production terminal equipment
JPS6362023A (en) Drawing producing device using electronic equipment
Gingerich Computer graphics building definition system
JPH05135050A (en) Line segment attribute display method
JPS631588B2 (en)
JPH0696145A (en) Processing system for character string/graphic
JPS63178319A (en) Display device with multiwindow display function
JPH03111927A (en) Data processor
JPH02250154A (en) Listing device