JPH04252382A - Graphic drawing system - Google Patents

Graphic drawing system

Info

Publication number
JPH04252382A
JPH04252382A JP892091A JP892091A JPH04252382A JP H04252382 A JPH04252382 A JP H04252382A JP 892091 A JP892091 A JP 892091A JP 892091 A JP892091 A JP 892091A JP H04252382 A JPH04252382 A JP H04252382A
Authority
JP
Japan
Prior art keywords
input
points
point
graphic
position information
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
JP892091A
Other languages
Japanese (ja)
Inventor
Atsuhiko Muramatsu
村松 淳彦
Chika Nakajima
中島 千佳
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP892091A priority Critical patent/JPH04252382A/en
Publication of JPH04252382A publication Critical patent/JPH04252382A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To reduce the inconvenience in a graphic drawing by switching the processings according to the number of times of consecutive position information inputs in the same area. CONSTITUTION:A position input part 2 inputting the position information, an end information input 3 inputting the end information indicating the segment of points constituting the graphic, and a processing part 1 drawing the graphic based on the end information and the graphic block point, are provided. In the processing part 1, according to the number of times of consecutive position information inputs in the same area, whether the input point is a graphic block point, or the graphic block point is set, or the position information is made invalid are decided and the processing is switched.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は図形を入出力、操作、記
憶するデータ処理装置においてデータ入力作業を簡略化
する技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for simplifying data input work in a data processing apparatus that inputs/outputs, manipulates, and stores figures.

【0002】0002

【従来の技術】従来は特開昭61−262884に示さ
れるように、座標を入力する装置で座標を入力した後に
、座標を入力する装置で作成済みの円が指定されたとき
はその円への接線を引き、作成済みの線分が指定された
ときは指定された点に近い方の端点への直線を引くとい
うものがあった。
[Prior Art] Conventionally, as shown in Japanese Patent Application Laid-open No. 61-262884, after inputting coordinates using a coordinate input device, when a circle that has already been created is designated by the coordinate input device, the coordinates are input to that circle. When a line segment that has already been created is specified, a straight line is drawn to the end point closest to the specified point.

【0003】0003

【発明が解決しようとする課題】上記従来技術では、あ
る点と作成済みの円上の点の接点以外の点を結ぶ直線を
描く場合や、ある点と作成済みの線分の端点以外の点に
線を引く場合はコマンドを別に入力してその旨を指示す
る必要があり、利用者にとっては不便であった。
[Problem to be Solved by the Invention] In the above-mentioned conventional technology, when drawing a straight line connecting a point and a point other than the point of contact between a point on a previously created circle, or when drawing a straight line connecting a certain point and a point other than the end point of a previously created line segment, When drawing a line, it is necessary to input a separate command to indicate this, which is inconvenient for the user.

【0004】本発明の目的は図形作画における不便さを
軽減することである。
An object of the present invention is to alleviate the inconveniences in drawing graphics.

【0005】[0005]

【課題を解決するための手段】本発明は、同一領域に連
続して位置情報が入力された回数に応じて、処理を切り
換えるものである。
[Means for Solving the Problems] The present invention switches processing depending on the number of consecutive inputs of position information in the same area.

【0006】[0006]

【作用】本発明によると、同一領域に連続して位置情報
が入力された回数に応じて、入力点を図形構成点とする
か、入力点と作成済みの図形を構成する点との位置関係
等を考慮して図形構成点を設定するか、一連の位置情報
を無効とするか決定することにより、処理を切り換える
作業が簡略化し、図形作画作業能率が向上する。
[Operation] According to the present invention, depending on the number of consecutive inputs of position information in the same area, the input point is set as a figure constituent point, or the positional relationship between the input point and the points forming the already created figure is determined. By determining whether to set figure constituent points or invalidate a series of position information by considering the above, the work of switching processes is simplified and the efficiency of figure drawing work is improved.

【0007】[0007]

【実施例】以下、本発明の一実施例を図面を用いて詳細
に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings.

【0008】図1は本発明の係る図形作画システムの構
成とデータの流れを示したものである。位置入力部2は
、利用者が位置を入力するもので、例えばマウスの1つ
のボタン、ファンクションキーの一つのキー、ディスプ
レイメニューの一つのメニュー要素などを用いる。この
位置入力部2で入力されたデータを以下「入力点」とす
る。次に、終了情報入力部3は図形作画の区切りを指示
するもので、例えば、ファンクションキーやキーボード
の回復キーやRETURNキー、或いはディスプレイメ
ニューの全パラメタ終了領域などを用いる。勿論、前記
位置入力部2に用いていないマウスのもう1つのボタン
等を用いてもよい。この終了情報入力部3を用いて入力
したデータを以下「終了情報」とする。表示部4は、グ
ラフィックディスプレイを用いた表示装置である。最後
に、処理部1は電子計算機の中央処理装置にソフトウェ
アを組み合わせたシステムである。
FIG. 1 shows the configuration and data flow of a graphic drawing system according to the present invention. The position input unit 2 is used by the user to input a position, and uses, for example, one button of a mouse, one key of a function key, one menu element of a display menu, or the like. The data input through the position input section 2 will be referred to as an "input point" hereinafter. Next, the end information input section 3 is used to instruct the division of graphics, and uses, for example, a function key, a recovery key on the keyboard, a RETURN key, or an all-parameter end area on the display menu. Of course, another button on the mouse that is not used for the position input section 2 may also be used. The data input using the termination information input section 3 will be referred to as "termination information" hereinafter. The display unit 4 is a display device using a graphic display. Finally, the processing unit 1 is a system that combines a central processing unit of an electronic computer with software.

【0009】図2は入力データの例であり、最初の2つ
の点で線分を作画し、後の4つの点で折線を作画するも
のである。
FIG. 2 is an example of input data, in which a line segment is drawn using the first two points, and a broken line is drawn using the last four points.

【0010】図3は図2のデータを用いて図形を構成し
た例である。
FIG. 3 is an example of a figure constructed using the data shown in FIG.

【0011】次に図4、図5、図6のフローチャートを
用いて図3の線分P1P2を作成する際の各部の動作を
説明する。先ず、システムは動作を開始すると、作成中
の図形を構成する点(以下これを「生成中図形の構成点
」とする)がまだ存在しないという表示をする(21)
。 即ち「生成中図形の構成点」の総数(以下Nで表す)を
0とする。
Next, the operation of each part when creating the line segment P1P2 in FIG. 3 will be explained using the flowcharts in FIGS. 4, 5, and 6. First, when the system starts operating, it displays a message indicating that the points that make up the figure being created (hereinafter referred to as "composition points of the figure being generated") do not yet exist (21).
. That is, the total number of "constituent points of the figure being generated" (hereinafter expressed as N) is set to zero.

【0012】次に図形の区切り、即ち、1つの図形のデ
ータ入力は終了という意味の「終了情報」の入力はまだ
ないという表示をする(22)。即ち「終了情報」の有
無(以下Kで表す)は無である(K=0)とする。
[0012] Next, a message is displayed indicating that there is no input of "end information" indicating that data input for one graphic is finished (22). That is, the presence or absence of "end information" (hereinafter referred to as K) is assumed to be null (K=0).

【0013】次にシステムはデータの入力待ちとなる(
23)。ここで利用者は位置入力部2を用いて位置を入
力するか或いは終了情報入力部3を用いて「終了情報」
を入力する。図2のデータ例では点P1が位置入力部2
から入力される。
Next, the system waits for data input (
23). Here, the user inputs the position using the position input section 2 or enters the "end information" using the end information input section 3.
Enter. In the data example of FIG. 2, point P1 is the position input part 2.
Input from

【0014】次に入力データが「入力点」か「終了情報
」か判断する(24)。図2の例では、P1は「入力点
」であるから、入力されたP1を第1の「入力点」とす
る(25)。
Next, it is determined whether the input data is an "input point" or "end information" (24). In the example of FIG. 2, since P1 is an "input point", the input P1 is set as the first "input point" (25).

【0015】次に「入力点」が第1の「入力点」なので
、所定の領域、例えば、第1の「入力点」を中心に上下
左右に各々2の長さを持つ矩形領域(以下これを同一点
領域とする)を設定する(26)。
Next, since the "input point" is the first "input point", a predetermined area, for example, a rectangular area (hereinafter referred to as "rectangular area") having a length of 2 each in the upper, lower, right and left directions, centering on the first "input point". is the same point area) (26).

【0016】次に「入力点」か「終了情報」を読み込む
(27)。図2の例ではP2を読み込んでいる。P2は
「入力点」なので、P2を第2の「入力点」とする(2
8、30)。
Next, the "input point" or "end information" is read (27). In the example of FIG. 2, P2 is read. Since P2 is an "input point", let P2 be the second "input point" (2
8, 30).

【0017】次にP2が設定された同一点領域内にある
か判断し(31)、例のP2は同一点領域内にはないの
で、第1の「入力点」となっているP1を「生成中図形
の構成点」とする(32)。これで図形を構成する点の
1つが確定されたことになる。
Next, it is determined whether P2 is within the set same point area (31), and since P2 in the example is not within the same point area, P1, which is the first "input point", is "constituent points of the figure being generated" (32). This means that one of the points that make up the figure has been determined.

【0018】図形を構成する点の1つが確定したので「
生成中図形の構成点」の総数を1つ増し、ここではN=
1となる(33)。
Now that one of the points composing the figure has been determined,
Increase the total number of "constituent points of the figure being generated" by one, and here N=
1 (33).

【0019】次に「生成中図形の構成点」を表示部4に
表示する(34)。図3の点P1の○印がその例である
Next, the "constituent points of the figure being generated" are displayed on the display section 4 (34). The circle mark at point P1 in FIG. 3 is an example.

【0020】そして、「生成中図形の構成点」の数が2
より小で(35)、「終了情報」が入力されたのではな
いので(37)、第2の「入力点」P2を第1の「入力
点」とし(38)、「入力点」P2を中心に同一点領域
を再設定する(26)。
[0020] Then, the number of "constituent points of the figure being generated" is 2.
Since it is smaller than (35) and the "end information" has not been input (37), the second "input point" P2 is set as the first "input point" (38), and the "input point" P2 is The same point area is reset at the center (26).

【0021】次に利用者が入力する図2の3番目のデー
タを読み込み(27)、「終了情報」なので(28)、
「終了情報」有り(K=1)の表示をし(29)、第1
の入力点となっているP2を新たに「生成中図形の構成
点」する(32)。
Next, the third data in FIG. 2 input by the user is read (27), and since it is "termination information" (28),
"End information" present (K=1) is displayed (29), and the first
P2, which is the input point of , is newly set as a "constituent point of the figure being generated" (32).

【0022】次に「生成中図形の構成点」の総数を1つ
増す(33)。ここではN=2となる。
Next, the total number of "constituent points of the figure being generated" is increased by one (33). Here, N=2.

【0023】そして作成した「生成中図形の構成点」を
P2の位置に表示する(34)。図3のP2の○印がそ
の例である。これで1つの図形のデータの入力が終了し
たことになる。
Then, the created "constituent points of the figure being generated" are displayed at the position P2 (34). The circle mark P2 in FIG. 3 is an example. This completes the input of data for one figure.

【0024】次に、「生成中図形の構成点」の総数(N
)が2以上となったので(35)、1つ前の繰り返して
作成した「生成中図形の構成点」P1と、今回の繰返し
で作成した「生成中図形の構成点」P2との間を線分で
結び表示部4に表示する(36)。図3の線分P1P2
を破線で表示しているのが、その表示例である。
Next, the total number (N
) has become 2 or more (35), so the distance between the "component point of the figure being generated" P1 created in the previous iteration and the "component point of the figure being generated" P2 created in the current iteration is The line segments are connected and displayed on the display section 4 (36). Line segment P1P2 in Figure 3
An example of the display is shown with a broken line.

【0025】次に、「終了情報」有の表示(K=1)な
ので新しい図形を作成する状態にする(21、22)。
Next, since the presence of "end information" is displayed (K=1), the state is set to create a new figure (21, 22).

【0026】次に図3の折線P3P2P6の作成の際の
各部の動作を説明する。
Next, the operation of each part when creating the broken line P3P2P6 in FIG. 3 will be explained.

【0027】先ず、図2のP3を読み込む(23)。以
後、前述のP1と同じ処理過程をたどり(25,26,
27,28,30,31,32,33,34,35,3
7,38,26)、P3が「生成中図形の構成点」とし
て表示され、P4が第1の「入力点」、K=0となった
状態になる。
First, P3 in FIG. 2 is read (23). After that, the same process as P1 described above is followed (25, 26,
27, 28, 30, 31, 32, 33, 34, 35, 3
7, 38, 26), P3 is displayed as a "constituent point of the figure being generated", P4 is the first "input point", and K=0.

【0028】次にP5を読み込む(27)。P5は「入
力点」であり(28、30)、第1の「入力点」P4の
同一点領域内にある(31)ので、「入力点」P4と作
成済みの図形を構成する点との位置関係等を考慮して図
形構成点を定める(39)。「入力点」と作成済みの図
形を構成する点との位置関係等を考慮して定めるという
ことは、例えば第1の「入力点」と全ての作成済みの図
形の構成点との距離を求め最小のものを「図形の構成点
」としたり、第1の「入力点」の水平線上又は垂直線上
に有る作成済みの図形の構成点の中から第1の「入力点
」との距離が最小のものを「図形の構成点」とする、等
が考えられる。また、作画する図形に応じて「図形の構
成点」の選択方法を変えても良い。図2、図3の例では
P1とP2とが既作成の図形の構成点であるからP4と
P1間の距離(例では√13)とP4とP2間の距離(
例では√2)とを計算比較し、その距離が最も近い、例
ではP2を選択している。
Next, P5 is read (27). P5 is an "input point" (28, 30) and is within the same point area as the first "input point" P4 (31), so the connection between "input point" P4 and the points forming the created figure is Figure constituent points are determined taking into account positional relationships, etc. (39). Determining by considering the positional relationship between the "input point" and the points composing the created figure means, for example, determining the distance between the first "input point" and the points composing all the created figures. The smallest one is set as the "constituent point of the figure", or the distance from the first "input point" to the first "input point" is the shortest among the constituent points of the created figure that are on the horizontal or vertical line of the first "input point". It is conceivable to consider things like "constituent points of a figure". Furthermore, the method for selecting "constituent points of a figure" may be changed depending on the figure to be drawn. In the examples of FIGS. 2 and 3, P1 and P2 are constituent points of the already created figure, so the distance between P4 and P1 (√13 in the example) and the distance between P4 and P2 (
In the example, √2) is calculated and compared, and the closest distance is selected, P2 in the example.

【0029】次に、図2のP6を読み込む(40)。こ
れは「入力点」であり(41、42)、同一点領域内に
ないので(43)、選択された図形の構成点P2を「生
成中図形の構成点」とする(44)。現在作成中の図形
では2番目の「生成中図形の構成点」である。
Next, P6 in FIG. 2 is read (40). Since these are "input points" (41, 42) and are not within the same point area (43), the constituent points P2 of the selected figure are set as "constituent points of the figure being generated" (44). This is the second "constituent point of the figure being generated" in the figure currently being created.

【0030】次に、「生成中図形の構成点」の総数を1
つ増し、ここではN=2となる(45)。
Next, the total number of "constituent points of the figure being generated" is set to 1.
In this case, N=2 (45).

【0031】次に、選択された「図形の構成点」(この
場合はP2)の位置に「生成中図形の構成点」を表示す
る(46)。図3のP2の○印がその例である。
Next, the ``constituent point of the figure being generated'' is displayed at the position of the selected ``constituent point of the figure'' (P2 in this case) (46). The circle mark P2 in FIG. 3 is an example.

【0032】次に、N=2なので(47)「生成中図形
の構成点」P3とP2との間を線分で結び、表示部4に
表示する(48)。図3のP3とP2を結ぶ実線の線分
がそうである。
Next, since N=2 (47), the "constituent points of the figure being generated" P3 and P2 are connected with a line segment and displayed on the display section 4 (48). This is the case with the solid line segment connecting P3 and P2 in FIG.

【0033】次に、K=0なので(49)、第3の「入
力点」P6を第1の「入力点」に変更する(50)。後
の動きは、前述の線分P1P2作成時のP2の入力過程
と同様である。結果としてP2とP6を結ぶ線分ができ
、図形(折線)P3P2P6が作成される。
Next, since K=0 (49), the third "input point" P6 is changed to the first "input point" (50). The subsequent movement is similar to the process of inputting P2 when creating the line segment P1P2 described above. As a result, a line segment connecting P2 and P6 is created, and a figure (broken line) P3P2P6 is created.

【0034】また、同一点領域に3回連続して入力され
た場合(43)は、第1の「入力点」、第2の「入力点
」、第3の「入力点」の全てを無効とし(51)、新し
く「生成中図形の構成点」の入力を受け付ける状態とな
る(23)。
[0034] Furthermore, if the same point area is input three times in a row (43), all of the first "input point", second "input point", and third "input point" are invalidated. (51), and enters a state in which new input of "constituent points of the figure being generated" is accepted (23).

【0035】この実施例では線分、折線の作画を取り上
げたが、本発明はその他の図形の作画にも適用可能であ
る。
Although this embodiment deals with drawing line segments and broken lines, the present invention is also applicable to drawing other figures.

【0036】例えば、直方体、円等の作画においては図
形を構成する点を2つ指定すれば良いので前記実施例の
ように終了情報の入力を待たないで図形を作画すれば良
い。その際の変更個所は図面の36と48で、目的とす
る図形を作画した後にK=1とすれば良い。
For example, when drawing a rectangular parallelepiped, a circle, etc., it is only necessary to specify two points constituting the figure, so the figure can be drawn without waiting for input of end information as in the above embodiment. The changes to be made in this case are 36 and 48 in the drawing, and K=1 can be set after drawing the desired figure.

【0037】[0037]

【発明の効果】本発明によれば、位置入力装置から入力
される位置情報が所定の領域に入力された回数に応じて
、位置情報が示す座標(以下、入力点)を図形構成点と
するか、入力点と作成済みの図形を構成する点との位置
関係等を考慮して図形構成点を設定するか、一連の位置
情報を無効とするか決定することにより、処理を切り換
える作業が簡略化し、図形作画作業能率が向上する。
According to the present invention, the coordinates indicated by the position information (hereinafter referred to as input points) are set as figure constituent points according to the number of times the position information input from the position input device is input into a predetermined area. The task of switching processes is simplified by determining whether to set the shape constituent points in consideration of the positional relationship between the input point and the points composing the already created shape, or to invalidate a series of position information. , and the efficiency of graphic drawing work is improved.

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

【図1】本発明の構成図[Figure 1] Configuration diagram of the present invention

【図2】入力データの例[Figure 2] Example of input data

【図3】作成結果の表示例[Figure 3] Example of display of creation results

【図4】処理部の動きを示すフローチャート(その1)
[Figure 4] Flowchart showing the operation of the processing unit (Part 1)

【図5】処理部の動きを示すフローチャート(その2)
[Figure 5] Flowchart showing the operation of the processing unit (Part 2)

【図6】処理部の動きを示すフローチャート(その3)
[Figure 6] Flowchart showing the operation of the processing unit (Part 3)

【符号の説明】[Explanation of symbols]

1…処理部、2…位置入力部、3…終了情報入力部、4
…表示部。
1... Processing section, 2... Position input section, 3... Termination information input section, 4
...Display section.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】図形を入出力、操作、記憶するデータ処理
装置において、位置情報の入力をする位置入力部と、図
形を構成する点(以下、図形構成点)の区切りを意味す
る終了情報の入力をする終了情報入力部と、同一領域に
連続して入力された位置情報の回数で、位置情報の示す
座標(以下、入力点)を図形構成点とするか、前記入力
点と作成済みの図形を構成する点との位置関係と作画す
る図形等を考慮して図形構成点を設定するか、連続して
入力された位置情報を無効とするかを決定し、終了情報
と図形構成点をもとに図形を作画する処理部と、作画し
た図形を表示する表示部とを有する事を特徴とする図形
作画システム。
Claims: 1. A data processing device for inputting/outputting, manipulating, and storing figures, comprising: a position input unit for inputting position information; and end information indicating delimitations between points composing a figure (hereinafter referred to as figure constituent points). Depending on the end information input section where input is made and the number of times the position information is input continuously in the same area, the coordinates indicated by the position information (hereinafter referred to as input points) are set as figure constituent points, or the input points and the created Decide whether to set the figure constituent points in consideration of the positional relationship with the points making up the figure and the figure to be drawn, or to invalidate the continuously input position information, and set the end information and figure constituent points. A graphic drawing system characterized by having a processing section that draws a graphic based on the drawing, and a display section that displays the drawn graphic.
JP892091A 1991-01-29 1991-01-29 Graphic drawing system Pending JPH04252382A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP892091A JPH04252382A (en) 1991-01-29 1991-01-29 Graphic drawing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP892091A JPH04252382A (en) 1991-01-29 1991-01-29 Graphic drawing system

Publications (1)

Publication Number Publication Date
JPH04252382A true JPH04252382A (en) 1992-09-08

Family

ID=11706096

Family Applications (1)

Application Number Title Priority Date Filing Date
JP892091A Pending JPH04252382A (en) 1991-01-29 1991-01-29 Graphic drawing system

Country Status (1)

Country Link
JP (1) JPH04252382A (en)

Similar Documents

Publication Publication Date Title
JPH03273113A (en) Trend graph power varying device
JPH06103013A (en) Method for enlarging/reducing window
JPH03219324A (en) Coordinate inputting method and data processor
JP3357760B2 (en) Character / graphic input editing device
JPH04252382A (en) Graphic drawing system
JPH04319775A (en) Cad system
JPH0580025B2 (en)
JP2518918B2 (en) Inquiry display method of figure size
JPH04186290A (en) Cursor display control method
JPH02250178A (en) Graphic generator
JP3000749B2 (en) Character editing device
JP2542527B2 (en) Graphic drawing method in graphic processing apparatus
JP2636014B2 (en) Figure connection control method
JPS6349883A (en) Graphic processor
JPH074951Y2 (en) Coordinate reading device
JP2667454B2 (en) Plotting device
JP2582298B2 (en) Graphic information creation method in graphic processing device
JPH06230762A (en) Coordinate designating method for plotting supporting tool
JP2669366B2 (en) Line-symmetric figure input device
JPH01191928A (en) Data input device
JPH04114269A (en) Document processor
JPH01263772A (en) Picking device controller
JPH06124106A (en) Method for setting screen output from digitizer
JPH09147000A (en) Cad device and drawing generating method
JPS613280A (en) Cad device