JPH0495171A - Graphic editing device - Google Patents

Graphic editing device

Info

Publication number
JPH0495171A
JPH0495171A JP20873790A JP20873790A JPH0495171A JP H0495171 A JPH0495171 A JP H0495171A JP 20873790 A JP20873790 A JP 20873790A JP 20873790 A JP20873790 A JP 20873790A JP H0495171 A JPH0495171 A JP H0495171A
Authority
JP
Japan
Prior art keywords
graphic
condition
storage means
graphic information
information storage
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
JP20873790A
Other languages
Japanese (ja)
Inventor
Miki Watanabe
美樹 渡辺
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP20873790A priority Critical patent/JPH0495171A/en
Publication of JPH0495171A publication Critical patent/JPH0495171A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To point out the error of a graphic and to execute various information exchange with device at the time of editing the graphic by discriminating whether graphic information in a graphic information storage means satisfies a condition in a condition storage means or not. CONSTITUTION:A graphic information storage means 4 stores graphic information for showing a shape and a size of a graphic displayed on a graphic display means 1, and a position of the graphic, etc., on a display screen, a coordinate designating means 2 inputs the position of he graphic, and the position of this graphic is stored as a part of the graphic information in a graphic information storage means 4. A condition input means 3 inputs a condition to the graphic on the display screen as a logical expression, and the inputted condition is stored in a condition storage means 5. Subsequently, whether the graphic information in the graphic information storage means 4 satisfies the condition in the condition storage means 5 or not is decided, and a result of this discrimination is displayed on the display means 1. In such a way, various information exchange with device can be executed, and an error can be pointed out and corrected.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は図形を表示する機能を有する対話型計算機シス
テムに関し、特に表示される図形を編集するための図形
編集装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an interactive computer system having a function of displaying figures, and particularly to a figure editing device for editing displayed figures.

[従来の技術] 近年において、各種業務を対話形式で遂行する対話形計
算機システムが広く使用されている。この対話型計算機
システムはパーソナルコンピュタ、ワークステーション
等を利用して構成され、データを記憶す名とともに必要
な処理を行う中央処理装置、処理結果を表示画面に表示
する表示装置、データ処理に必要なデータや命令等を入
力するキーボードおよびマウス(ポインティング入力装
置)、必要に応じてデータのハードコピーを出力する印
字装置、データを保存する外部記憶装置等を備える。こ
のような対話形データシステムにおいてはキーボードあ
るいはマウスによって必要な指示を行うと、この指示に
対する応答が表示装置画面の表示に直ち゛に反映され、
この応答に対して新たな指示を次々に繰返して行うこと
により、利用者が求めようとしている処理結果が得られ
る。
[Background Art] In recent years, interactive computer systems that perform various tasks in an interactive manner have been widely used. This interactive computer system is configured using personal computers, workstations, etc., and includes a central processing unit that stores data, a central processing unit that performs necessary processing, a display device that displays processing results on a display screen, and a It is equipped with a keyboard and mouse (pointing input device) for inputting data, commands, etc., a printing device for outputting a hard copy of data as needed, an external storage device for storing data, etc. In such an interactive data system, when a necessary instruction is given using the keyboard or mouse, the response to this instruction is immediately reflected on the display screen.
By repeatedly issuing new instructions in response to this response, the processing result desired by the user can be obtained.

このような対話型計算機システムには表示画面に図形を
表示する機能を有するものがあり、種々の図形を所望の
位置に所望の大きさで表示することができる。しかしな
がら、種々の図形を自在に編集することができるという
ものの、図形の配置、大きさ等を誤って入力しても、こ
の誤りを指摘したり、自動的に修正するまでには至らず
、図形の作成中に十分な対話がなされているとは言えな
かった。
Some of these interactive computer systems have a function of displaying figures on a display screen, and various figures can be displayed at desired positions and in desired sizes. However, although various shapes can be edited freely, even if you make a mistake in inputting the placement, size, etc. of a shape, this error cannot be pointed out or automatically corrected, and the shape It could not be said that there was sufficient dialogue during the preparation of the project.

[発明か解決しようとする課題] このように従来の対話型計算機システムでは種々の図形
を表示画面上で自在に編集することができるというもの
の、図形の作成中に十分な対話かなされておらず、この
ため図形の配置、大きさ等を誤って入力しても、この誤
りを指摘したり、自動的に修正することができないとい
う問題点があった。
[Problem to be solved by the invention] As described above, although conventional interactive computer systems allow various shapes to be freely edited on the display screen, there is insufficient interaction during the creation of shapes. Therefore, even if the layout, size, etc. of a figure are incorrectly input, there is a problem in that the error cannot be pointed out or corrected automatically.

そこで、本発明は図形の配置、大きさ等を誤って人力す
ると、この誤りを指摘したり、自動的に修正したりする
ことが可能な図形編集装置を提供することを目的とする
SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to provide a graphic editing device that can point out and automatically correct errors that occur manually when erroneously arranging or sizing a graphic.

[課題を解決するための手段] 本発明では表示される図形を示す図形情報を図形情報記
憶手段に記憶するとともに、この図形に対する条件を条
件記憶手段に記憶し、条件記憶手段内の条件を図形情報
記憶手段内の図形情報が満たすか否かを条件判定手段に
て判定し、この判定結果を表示手段に表示するようにし
ている。
[Means for Solving the Problems] In the present invention, graphic information indicating a graphic to be displayed is stored in a graphic information storage means, a condition for this graphic is stored in a condition storage means, and the conditions in the condition storage means are stored in a graphic information storage means. The condition determining means determines whether the graphic information in the information storage means satisfies the condition, and the result of this determination is displayed on the display means.

ま、た、他の本発明では表示される図形を示す図形情報
を図形情報記憶手段に記憶するとともに、この図形に対
する条件を条件記憶手段に記憶し、条件記憶手段内の条
件を図形情報記憶手段内の図形情報が満たすか否かを条
件判定手段にて判定し、この条件判定手段により条件を
満たさないと判定されたならば、この条件を満たすよう
に図形情報記憶手段内の図形情報を図形情報修正手段に
て修正するようにしている。
In addition, in another aspect of the present invention, graphic information indicating a graphic to be displayed is stored in the graphic information storage means, and conditions for this graphic are stored in the condition storage means, and the conditions in the condition storage means are stored in the graphic information storage means. The condition determining means determines whether the graphic information in the graphic information storage means satisfies the condition, and if the condition determining means determines that the condition is not satisfied, the graphic information in the graphic information storage means is The information will be corrected using the information correction means.

C作用コ、 本発明によれば、条件記憶手段内の条件を図形情報記憶
手段内の図形情報が満たすか否かを判定し、この判定結
、果を表示手段に表示するようにして0るため、種々の
対話をなすことが可能とな、る。
C. According to the present invention, it is determined whether the graphic information in the graphic information storage means satisfies the condition in the condition storage means, and the result of this determination is displayed on the display means. Therefore, it is possible to have various kinds of dialogue.

また、他の本発明によれば、条件記憶手段内の条件を図
形情報記憶手段内の図形情報が満たすか否かを判定し、
条件を満たさないと判定された場合に、条件を満たすよ
うに図形情報が修正されるので、図形の編集処理が容易
となる。
According to another aspect of the present invention, it is determined whether the graphic information in the graphic information storage means satisfies the condition in the condition storage means,
If it is determined that the condition is not met, the graphic information is modified so that the condition is met, which facilitates the graphic editing process.

[実施例] 以下、本発明の実施例を添付図面を参照して詳細に説明
する。
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第1図は本発明に係わる図形編集装置の一実施例を示す
ブロック図であり、この実施例の装置は対話型計算機シ
ステムに適用される。すなわち、同図における図形表示
手段1はCRT等の表示装置に該当し、座標指定手段2
および条件入力手段3はキーボード、マウス等に該当し
、図形情報記憶手段4および条件記憶手段5は中央処理
装置に付設の記憶装置、外部記憶装置等に該当し、条件
判定手段6は中央処理装置に該当する。
FIG. 1 is a block diagram showing an embodiment of a graphic editing device according to the present invention, and the device of this embodiment is applied to an interactive computer system. That is, the figure display means 1 in the figure corresponds to a display device such as a CRT, and the coordinate designation means 2 corresponds to a display device such as a CRT.
The condition input means 3 corresponds to a keyboard, a mouse, etc., the graphic information storage means 4 and the condition storage means 5 correspond to a storage device attached to the central processing unit, an external storage device, etc., and the condition determination means 6 corresponds to the central processing unit. Applies to.

図形情報記憶手段4は図形表示手段1に表示される図形
の形並びにび大きさ、表示画面上における図形の位置等
を示す図形情報を記憶する。座標指定手段2は図形の位
置を入力するものであり、この図形の位置が図形情報の
一部として図形情報記憶手段4に記憶される。図形表示
手段1は図形情報記憶手段4内の図形情報に基づいて図
形を表示したり、メツセージ等を表示する。条件入力手
段3は表示画面上の図形に対する条件を論理式として入
力するためのものであり、入力された条件は条件記憶手
段5に記憶される。
The graphic information storage means 4 stores graphic information indicating the shape and size of the graphic displayed on the graphic display means 1, the position of the graphic on the display screen, etc. The coordinate specifying means 2 is for inputting the position of a figure, and this position of the figure is stored in the figure information storage means 4 as part of the figure information. The graphic display means 1 displays figures, messages, etc. based on the graphic information in the graphic information storage means 4. The condition input means 3 is for inputting a condition for a figure on the display screen as a logical formula, and the input condition is stored in the condition storage means 5.

条件入力手段3から入力され、条件記憶手段5に記憶さ
れる条件は、例えば第2図の図表に示されるよう・なも
のである。ここでは、表示画面上で1つの図形が他の図
形に重なってないことを確認するための条件を例示して
おり、判定の対象となる主体図形が矩形であるときの条
件(1)、および判定の対象となる主体図形が線分であ
るときの条件(2)がある。
The conditions input from the condition input means 3 and stored in the condition storage means 5 are, for example, as shown in the diagram of FIG. Here, conditions for confirming that one figure does not overlap with another figure on the display screen are exemplified, including condition (1) when the main figure to be determined is a rectangle; Condition (2) exists when the main figure to be determined is a line segment.

主体図形が矩形であるときの、条件(1)は第3図に示
すような表示画面上において表示画面の左上隅を原点と
し、水平方向をX軸、垂直方向をy軸とする座標系を設
定すると、次の様なものである。
Condition (1) when the main figure is a rectangle is a coordinate system on the display screen as shown in Figure 3, with the origin at the upper left corner of the display screen, the horizontal direction as the X axis, and the vertical direction as the y axis. Once set, it will look like this:

まず、相手図形が矩形である場合は、(主体図形Aの左
上角a1の座標位置と相手図形Bの左上角b1の座標位
置のうちの大きい方の座標位W)〉(主体図形Aの右下
角a2の座標位置と相手図形Bの右下角b2の座標位置
のうちの小さいほうの座標位置)という条件が適用され
、この条件をX軸およびy軸共にそれぞれ満さなければ
、主体図形Aと相手図形Bとは重なっている。
First, if the opponent figure is a rectangle, (coordinate position W of the larger of the coordinate position of the upper left corner a1 of the main figure A and the coordinate position of the upper left corner b1 of the opponent figure B)> (the right side of the main figure A) The following condition is applied: the smaller of the coordinate position of the lower corner a2 and the coordinate position of the lower right corner b2 of the other figure B), and if this condition is not satisfied for both the X-axis and the y-axis, the main figure A and It overlaps with opponent figure B.

また、相手図形が線分である場合は、主体図形A内に相
手図形Cの開始点clおよび終了点c2が含まれておら
ず、がっ主体図形Aの各辺に相手図形Cが交わっていな
いという条件が適用され、この条件を満さなければ、主
体図形Aと相手図形Cとは重なっている。
In addition, if the opponent figure is a line segment, the start point cl and end point c2 of the opponent figure C are not included in the main figure A, and the opponent figure C intersects each side of the main figure A. If this condition is not met, the subject figure A and the opponent figure C overlap.

一方、主体図形か線分であるときの条゛件(2)は次の
ようなものである。
On the other hand, when the main figure is a line segment, condition (2) is as follows.

まず、相手図形が矩形である場合は、相手図形E内に主
体図形りの開始点d1および終了点d2が含まれておら
す、がっ相手図形Eの各辺に主体図形りが交わっていな
いという条件が適用され、この条件を満さなければ、主
体図形りと相手図形Eとは重なっている。
First, if the opponent figure is a rectangle, the start point d1 and end point d2 of the main figure are included in the opponent figure E, but the main figure does not intersect with each side of the opponent figure E. This condition is applied, and if this condition is not satisfied, the subject figure and the opponent figure E overlap.

また、相手図形が線分である場合は、相手図形Fと主体
図形りとが交わっていないという条件が適用され、この
条件を満さなければ、主体図形りと相手図形Fとは重な
っている。
In addition, if the opponent figure is a line segment, the condition that the opponent figure F and the subject figure F do not intersect is applied, and if this condition is not met, the subject figure and the opponent figure F overlap. .

次に、図形表示手段1に表示されている図形を編集する
ための動作を第4図のフローチャートに従って述べる。
Next, the operation for editing a figure displayed on the figure display means 1 will be described according to the flowchart of FIG.

いま、第5図(a)に示すように表示画面上に矩形の図
形Gおよび矩形の図形Hが表示されているとする。ここ
で、座標指定手段2を操作することにより、図形Hの位
置として座標位置h2を入力すると(ステップ401)
、図形情報記憶手段4は図形Hの位置として既に記憶し
ている座標位置h1を座標位置h2に更新する(ステッ
プ4゜2)。このとき、条件判定手段6は図形情報記憶
手段4内の図形Hについての図形情報(座標位置h2)
が条件記憶手段5内の条件を満すが否がを判定し、満さ
なければエラーメツセージを図形表示手段1に表示する
(ステップ403)。ここで、エラーメツセージが表示
されなければ、座標指定手段2を操作することにより編
集処理を終了としくステップ404.yes)、この編
集動作を終了する。また、エラーメツセージが表示され
れば、編集処理を継続して(ステップ404.n o)
、前記ステップ401からの動作を繰返すことにより図
形Hの座標位置をエラーメツセージが表示されないよう
に更新することができる。
It is now assumed that a rectangular figure G and a rectangular figure H are displayed on the display screen as shown in FIG. 5(a). Here, by operating the coordinate specifying means 2, the coordinate position h2 is input as the position of the figure H (step 401).
, the graphic information storage means 4 updates the coordinate position h1 already stored as the position of the graphic H to the coordinate position h2 (step 4.2). At this time, the condition determining means 6 determines the graphic information (coordinate position h2) regarding the graphic H in the graphic information storage means 4.
It is determined whether the condition in the condition storage means 5 is satisfied or not, and if the condition is not satisfied, an error message is displayed on the graphic display means 1 (step 403). Here, if the error message is not displayed, the editing process is ended by operating the coordinate specifying means 2, step 404. yes), this editing operation ends. Also, if an error message is displayed, continue the editing process (step 404.no).
By repeating the operations from step 401, the coordinate position of figure H can be updated so that no error message is displayed.

前記ステップ403での条件判定手段6による判定を第
6図のフローチャートに従って更に詳細に述べる。
The determination by the condition determining means 6 in step 403 will be described in more detail with reference to the flowchart of FIG.

条件判定手段6は編集の対象となった図形Hを主体図形
とし、この主体図形Hが矩形であるので、条件記憶手段
5から前記条件(1)を読出す。さらに、条件判定手段
6は該条件(1)における相手図形Gが矩形である場合
の条件、つまり(主体図形Hの左上角の座標位置と相手
図形Gの左上角の座標位置のうちの大きい方の座標位置
)〉(主体図形Hの右下角の座標位置と相手図形Gの右
下角の座標位置のうちの小さいほうの座標位置)という
条件を選択しくステップ601 )、この条件に基づい
て主体図形Hと相手図形Gとが重なるが否かを判定する
(ステップ602)。この判定17)結果、主体図形H
と相手図形Gとが重ならなければ(ステップ603.y
es)、条件判定手段6による処理を終了する。また、
主体図形Hと相手図形Gとが重なれば(ステップ603
.no)、条件判定手1段6は第5図(b)に示すよう
に「警告二図形が重なっています」というエラーメツセ
ージを図形表示手段1に表示する(ステップ604)。
The condition determining means 6 takes the figure H to be edited as the main figure, and since the main figure H is a rectangle, the condition (1) is read out from the condition storage means 5. Furthermore, the condition determining means 6 determines the condition (1) when the opponent figure G is a rectangle, that is, the larger of the coordinate position of the upper left corner of the main figure H and the coordinate position of the upper left corner of the opponent figure G. Step 601) Select the condition (coordinate position of the lower right corner of the main figure H and the coordinate position of the lower right corner of the partner figure G) (step 601), and based on this condition, select the condition It is determined whether or not H and the opponent figure G overlap (step 602). This judgment 17) As a result, the main figure H
and the opponent figure G do not overlap (step 603.y
es), the processing by the condition determining means 6 is ended. Also,
If the subject figure H and the opponent figure G overlap (step 603
.. No), the condition determining means 1 6 displays an error message "Two warning figures overlap" on the figure display means 1 as shown in FIG. 5(b) (step 604).

このように表示画面に表示されている図形を移動するに
際し、該図形が予め定めておいた条件を満すか否かを判
定し、条件を満さなければエラーメツセージを表示する
ようにしているので、有効な対話をなすことができる。
When moving a figure displayed on the display screen in this way, it is determined whether the figure satisfies predetermined conditions, and if the condition is not met, an error message is displayed. , can hold effective dialogues.

第7図は他の本発明に係わる図形編集装置の一実施例を
示すブロック図であり、第1図に示した装置に図形情報
修正手段7を付設して構成される。
FIG. 7 is a block diagram showing another embodiment of a graphic editing device according to the present invention, which is constructed by adding graphic information modifying means 7 to the device shown in FIG.

この実施例では図形を編集するための動作が第4図のフ
ローチャートと同様であり、このフローチャートにおけ
るステップ403の処理は第8図のフローチャートに従
って行われる。
In this embodiment, the operation for editing a figure is similar to that in the flowchart of FIG. 4, and the process of step 403 in this flowchart is performed according to the flowchart of FIG.

すなわち、条件判定手段6は編集の対象となった図形H
を主体図形とし、この主体図形Hが矩形であるので、条
件記憶手段5から前記条件(1)を読出す。さらに、条
件判定手段6は該条件(1)における相手図形Gが矩形
である場合の条件を選択しくステップ801)、この条
件に基づいて主体図形Hと相手図形Gとが重なるが否か
を判定する(ステップ802)。この判定の結果、主体
図形Hと相手図形Gとが重ならなければ(ステップ80
3、yes)、条件判定手段6による処理を終了する。
In other words, the condition determining means 6 determines the shape H to be edited.
Since the main figure H is a rectangle, the condition (1) is read from the condition storage means 5. Furthermore, the condition determining means 6 selects a condition in which the opponent figure G is a rectangle in the condition (1) (step 801), and determines whether or not the subject figure H and the opponent figure G overlap based on this condition. (step 802). As a result of this determination, if the subject figure H and the opponent figure G do not overlap (step 80
3, yes), the processing by the condition determining means 6 is ended.

また、主体図形Hと相手図形Gとが重なれば(ステップ
80B、no) 、条件判定手段6は両者か重なる旨を
図形情報修正手段7に通知する。図形情報修正手段7は
条件判定手段6がらの通知があると、図形情報記憶手段
4がら得られる図形情報を所定の手順で修正し、修正し
た図形情報を図形記憶手段4に記憶して記憶内容を更新
する(ステップ804)。
Further, if the subject figure H and the opponent figure G overlap (step 80B, no), the condition determining means 6 notifies the figure information correcting means 7 that they overlap. When the graphic information modifying means 7 receives the notification from the condition determining means 6, it modifies the graphic information obtained from the graphic information storage means 4 according to a predetermined procedure, stores the modified graphic information in the graphic storage means 4, and stores the stored content. is updated (step 804).

このステップ804ての図形情報の修正処理を次に詳細
に述べる。
The graphic information correction process in step 804 will be described in detail below.

まず、第4図に示したフローチャートの編集処理に際し
、図形情報修正手段7は図形情報記憶手段4内の図形情
報を監視しており、例えば第9図に示すような図形Hの
位置の更新時に元の座標位置h1と更新後の座標位置h
2を取込んでおく。
First, when editing the flowchart shown in FIG. 4, the graphic information modifying means 7 monitors the graphic information in the graphic information storage means 4, and for example, when updating the position of the graphic H as shown in FIG. Original coordinate position h1 and updated coordinate position h
Take in 2.

一方、図形情報修正手段7は条件判定手段6からの判定
通知を待機し、主体図形Hと相手図形Gとが重なる旨の
通知を受けなければ、図形情報記憶手段4内の図形情報
の修正処理を行うことがない。また、両者の図形が重な
る旨の通知を受けると、図形情報修正手段7は元の座標
位置h1と更新後の座標位置62間を2分割する座標位
置h3を求め、この座標位1fh3を座標位置h2の代
りに図形Hの図形情報として図形情報記憶手段4に記憶
する。
On the other hand, the graphic information modifying means 7 waits for a determination notification from the condition determining means 6, and if it does not receive a notification that the subject graphic H and the opponent graphic G overlap, it processes the modification of the graphic information in the graphic information storage means 4. There is nothing to do. Further, upon receiving a notification that the two figures overlap, the figure information correction means 7 calculates a coordinate position h3 that divides the space between the original coordinate position h1 and the updated coordinate position 62 into two, and converts this coordinate position 1fh3 into the coordinate position It is stored in the graphic information storage means 4 as graphic information of the graphic H instead of h2.

この後、位置を座標位置h3に改められた主体図形Hと
相手図形Gとが重ならないかの判定が条件判定手段6で
行われ、両者の図形が重ならなければれば、結果として
第9図に示されるように座標位置h3に主体図形Hが表
示される。
Thereafter, the condition determining means 6 determines whether the subject figure H whose position has been changed to the coordinate position h3 and the partner figure G do not overlap, and if the two figures do not overlap, the result is shown in FIG. As shown in , the main figure H is displayed at the coordinate position h3.

また、座標位置h3に改められた主体図形Hと相手図形
Gとが重なると判定された場合は、この旨が条件判定手
段6から図形情報修正手段7に通知される。図形情報修
正手段7は両者の図形が重なる旨の通知を受けたときに
のみ図形情報の修正処理を再び行い、第9図に示すよう
に元の座標位置h1と更新後の座標位置63間を2分割
する座標位置h4を求め、この座標位置h4を座標位置
h3の代りに図形Hの図形情報として図形情報記憶手段
4に記憶する。
Further, if it is determined that the subject figure H whose coordinate position h3 has been changed overlaps with the partner figure G, this fact is notified from the condition determining means 6 to the figure information correcting means 7. The figure information correction means 7 performs the figure information correction process again only when it receives a notification that the two figures overlap, and as shown in FIG. A coordinate position h4 for dividing into two is determined, and this coordinate position h4 is stored in the graphic information storage means 4 as graphic information of the graphic H instead of the coordinate position h3.

以降同様に、両者の図形が重ならなくなるまで、元の座
標位置h1と更新後の座標位置間を2分割する新たな座
標位置が求められ、両者の図形が重ならなくなったとき
の新たな座標位置が図形Hの位置として図形情報記憶手
段4に記憶され、残される。これにより、主体図形Hと
相手図形Gが重ならないようにし、かつ主体図形Hを最
初に指定した座標位置h2の方向に相手図形の近傍まで
移動することができる。
Thereafter, a new coordinate position that divides the original coordinate position h1 and the updated coordinate position into two is calculated until the two figures no longer overlap, and the new coordinate position when the two figures no longer overlap is calculated. The position is stored in the graphic information storage means 4 as the position of the graphic H and remains. Thereby, the main figure H and the opponent figure G can be prevented from overlapping, and the main figure H can be moved in the direction of the initially specified coordinate position h2 to the vicinity of the opponent figure.

ただし、座標位置の更新を予め定められた回数まで行っ
ても両者の図形が重なるのであれば、座標位置の更新を
中止し、元の座標位置h1を主体図形Hの図形情報とし
て図形情報記憶手段4に記憶することにより、主体図形
Hを元の位置から移動させないようにする。
However, if the two figures overlap even after updating the coordinate position a predetermined number of times, the update of the coordinate position is stopped and the original coordinate position h1 is used as the figure information of the main figure H in the figure information storage means. 4, the main figure H is not moved from its original position.

なお、ここでは元の座標位置と更新後の座標位置間を2
分割して新たな座標位置を求めることを繰返し、これに
より主体図形Hと相手図形Gか重ならないような主体図
形Hの位置を求めているが、これに限らず元の座標位置
hlから最初に指定した座標位置h2の方向に主体図形
Hを徐々に移動した場合に主体図形Hと相手図形Gとが
接する位置に主体図形Hを移動するようにしても良い。
Note that here, the distance between the original coordinate position and the updated coordinate position is 2.
By repeating dividing and finding new coordinate positions, we can find the position of the main figure H such that the main figure H and the other figure G do not overlap, but this is not limited to this. When the main figure H is gradually moved in the direction of the designated coordinate position h2, the main figure H may be moved to a position where the main figure H and the counterpart figure G are in contact with each other.

このように図形情報が予め定められた条件を満たさなけ
れば、この条件を満すように図形情報を修正するように
してるので、図形の編集を容易に行うことができる。
In this way, if the graphic information does not satisfy a predetermined condition, the graphic information is modified so that it satisfies the condition, so that the graphic can be easily edited.

なお、上記2つの実施例においては2つの図形か重なら
ないようにするための条件を例示しているが、これに限
定されるものでなく1つの図形の大きさを規定するため
の条件、線分の角度を規定するための条件、線分の長さ
を規定するための条件等であってもよい。また、種々の
条件をそれぞれの図形毎に割当て、1つの図形は割当て
られた条件を満さなければならないようにしても良い。
Note that in the above two examples, conditions for preventing two figures from overlapping are illustrated, but the present invention is not limited to this, and conditions for defining the size of one figure, lines, etc. The condition may be a condition for specifying the angle of a minute, a condition for specifying the length of a line segment, or the like. Alternatively, various conditions may be assigned to each figure so that one figure must satisfy the assigned conditions.

さらに、図形として矩形、線分を例示しているか、円形
、楕円形、多角形等であっても勿論良い。
Further, the figure may be a rectangle or a line segment, but it may of course be a circle, an ellipse, a polygon, or the like.

[発明の効果コ 以上説明したように本発明に係わる図形編集装置によれ
ば、条件記憶手段内の条件を図形情報記憶手段内の図形
情報が満たすか否かを判定するようにしてるので、この
判定に基づいて図形の誤りを指摘することかでき、図形
の編集に際して種々の対話をなすことが可能となる。
[Effects of the Invention] As explained above, according to the graphic editing device according to the present invention, it is determined whether or not the graphic information in the graphic information storage unit satisfies the condition in the condition storage unit. Based on the determination, it is possible to point out errors in the figure, and it becomes possible to have various conversations when editing the figure.

また、他の本発明に係わる図形編集装置によれば、条件
を満たさないと判定された場合に、条件を満たすように
図形情報を修正するようにしているので、図形の編集処
理が容易になる。
Further, according to another figure editing device according to the present invention, when it is determined that the condition is not satisfied, the figure information is modified so that the condition is satisfied, so that the figure editing process is facilitated. .

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

第1図は本発明に係わる図形編集装置の一実施例を示す
ブロック図、第2図は第1図に示した条件記憶手段に記
憶されている条件を示す図表、第3図は第2図に示した
条件を説明するために用いられた図、第4図は第1図に
示した装置における図形の編集動作を説明するために用
いられたフローチャート、第5図は第1図に示した装置
による図形の編集に際しての表示態様を例示する図、第
6図は第1図に示した装置における判定処理を説明する
ために用いられたフローチャート、第7図は他の本発明
に係わる図形編集装置の一実施例を示すブロック図、第
8図は第7図に示した装置における判定処理を説明する
ために用いられたフローチャート、第9図は第7図に示
した装置における図形情報の修正処理を説明するために
用いられた図である。 1・・・図形表示手段、2・・座標指定手段、3・・・
条件入力手段、4・・・図形情報記憶手段、5・・・条
件記憶手段、6・・・条件判定手段、7・・・図形情報
修正手段。
FIG. 1 is a block diagram showing an embodiment of a graphic editing device according to the present invention, FIG. 2 is a chart showing conditions stored in the condition storage means shown in FIG. 1, and FIG. 3 is a diagram showing conditions stored in the condition storage means shown in FIG. Figure 4 is a flowchart used to explain the graphic editing operation in the device shown in Figure 1, and Figure 5 is a flowchart used to explain the conditions shown in Figure 1. FIG. 6 is a flowchart used to explain the determination process in the device shown in FIG. 1. FIG. 7 is a diagram illustrating a display mode when editing a figure by the device, and FIG. 7 is a diagram illustrating another figure editing method according to the present invention. A block diagram showing an embodiment of the device, FIG. 8 is a flowchart used to explain the determination process in the device shown in FIG. 7, and FIG. 9 is a diagram for modifying graphic information in the device shown in FIG. 7. FIG. 3 is a diagram used to explain processing. 1... Graphic display means, 2... Coordinate designation means, 3...
Condition input means, 4... Graphic information storage means, 5... Condition storage means, 6... Condition determination means, 7... Graphic information modification means.

Claims (2)

【特許請求の範囲】[Claims] (1)図形を示す図形情報を記憶する図形情報記憶手段
と、 この図形情報記憶手段内の前記図形情報に基づいて前記
図形を表示する表示手段と、 前記図形に対する条件を記憶する条件記憶手段と、 この条件記憶手段内の条件を前記図形情報記憶手段内の
図形情報が満たすか否かを判定する条件判定手段と、 この条件判定手段による判定結果を表示する表示手段と を備えたことを特徴とする図形編集装置。
(1) Graphic information storage means for storing graphic information indicating a graphic; display means for displaying the graphic based on the graphic information in the graphic information storage means; and condition storage means for storing conditions for the graphic. , characterized by comprising: condition determining means for determining whether or not the graphic information in the graphic information storing means satisfies the condition in the condition storing means; and display means for displaying the determination result by the condition determining means. A figure editing device that does.
(2)図形を示す図形情報を記憶する図形情報記憶手段
と、 この図形情報記憶手段内の前記図形情報に基づいて前記
図形を表示する表示手段と、 前記図形に対する条件を記憶する条件記憶手段と、 この条件記憶手段内の条件を前記図形情報記憶手段内の
図形情報が満たすか否かを判定する条件判定手段と、 この条件判定手段により条件を満さないと判定された場
合は、該条件を満すように前記図形情報記憶手段内の図
形情報を修正する図形情報修正手段と を備えたことを特徴とする図形編集装置。
(2) a graphic information storage means for storing graphic information indicating a graphic; a display means for displaying the graphic based on the graphic information in the graphic information storage means; and a condition storage means for storing conditions for the graphic. , a condition determining means for determining whether or not the graphic information in the graphic information storage means satisfies the condition in the condition storage means; and when the condition determining means determines that the condition is not satisfied, the condition is A graphic editing device comprising: graphic information modifying means for modifying graphic information in the graphic information storage means so as to satisfy the following.
JP20873790A 1990-08-07 1990-08-07 Graphic editing device Pending JPH0495171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20873790A JPH0495171A (en) 1990-08-07 1990-08-07 Graphic editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20873790A JPH0495171A (en) 1990-08-07 1990-08-07 Graphic editing device

Publications (1)

Publication Number Publication Date
JPH0495171A true JPH0495171A (en) 1992-03-27

Family

ID=16561248

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20873790A Pending JPH0495171A (en) 1990-08-07 1990-08-07 Graphic editing device

Country Status (1)

Country Link
JP (1) JPH0495171A (en)

Similar Documents

Publication Publication Date Title
US7401297B2 (en) Method of and device for controlling display of window, and computer product
JP3138390B2 (en) Graphic drawing device
JP2689433B2 (en) Graphic drawing method and graphic drawing system
JP2828271B2 (en) Shape generation method in CAD system
JPH01133112A (en) Graphic element correction system
JPH0495171A (en) Graphic editing device
JPH05242213A (en) Line graphic drawing device
JP3763383B2 (en) Polygon drawing apparatus, polygon drawing method, and computer-readable recording medium recording a polygon drawing program
JPH01106201A (en) Graphic element correcting system
US5093796A (en) Automatic programming definition of a machining configuration for a numerical control device
JPH05143706A (en) Method and device for correcting graphic
JPH0822553A (en) Method and system for setting entry condition
JPH01200481A (en) Picking method for three-dimensional graphic
JPH07320077A (en) Area specifying device
JP3275277B2 (en) Graphic drawing creation apparatus and method
JP3443840B2 (en) Ruled line output method and ruled line output device
JP2721344B2 (en) Image processing method
JPH08221401A (en) System and method for managing document file
JPH08287265A (en) Segment display method
JPS63205774A (en) Picture correcting system
JPH0561608A (en) Method and device for controlling cursor and document processor
JPH08221589A (en) Device and method for preparing graphic frame
JPH02297673A (en) Graphic processor
JPH07200789A (en) Switching device for display screen
JPH03202970A (en) Graphic processing method