JP2655643B2 - Graphic processing unit - Google Patents

Graphic processing unit

Info

Publication number
JP2655643B2
JP2655643B2 JP62125941A JP12594187A JP2655643B2 JP 2655643 B2 JP2655643 B2 JP 2655643B2 JP 62125941 A JP62125941 A JP 62125941A JP 12594187 A JP12594187 A JP 12594187A JP 2655643 B2 JP2655643 B2 JP 2655643B2
Authority
JP
Japan
Prior art keywords
graphic
information
individual
data
graphic data
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.)
Expired - Lifetime
Application number
JP62125941A
Other languages
Japanese (ja)
Other versions
JPS63292272A (en
Inventor
幸男 増田
伸一 田中
修 吉崎
秀行 田村
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP62125941A priority Critical patent/JP2655643B2/en
Publication of JPS63292272A publication Critical patent/JPS63292272A/en
Application granted granted Critical
Publication of JP2655643B2 publication Critical patent/JP2655643B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は図形処理装置に関し、特にCADシステム、図
形作成装置、図面制御装置等の図形処理システムにおい
て、図形(図形データ)の編集操作を効率的に行えるよ
うにした図形処理装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic processing device, and more particularly, to a graphic processing system such as a CAD system, a graphic creation device, and a drawing control device that efficiently edits a graphic (graphic data). The present invention relates to a graphic processing device which can be performed in a general manner.

[従来の技術] 従来、この種の図形処理装置の記憶手段は、図形デー
タを線分、円弧、矩形等で特定する種別コード及び該図
形データに付随する所定の情報(線幅、線種、各情報
等)を記憶するのみであつた。これでは、ある図形デー
タを編集操作する場合に以下のような問題を生じる。
2. Description of the Related Art Conventionally, a storage unit of a graphic processing apparatus of this type includes a type code for specifying graphic data by a line segment, an arc, a rectangle, and the like, and predetermined information (line width, line type, Information, etc.). This causes the following problem when editing certain graphic data.

第6図(A)〜(C)は従来技術の問題点を説明する
ための図である。尚、この第6図(A)〜(C)を通し
て、61及び63は矩形シンボル(矩形シンボルデータ)、
62は接線線分(接続線分データ)を示す。例えば、操作
者が、第6図(A)の矩形シンボルデータ61に変更を加
え、これを第6図(B)の矩形シンボル61の如く拡大さ
せたとする。しかし、従来技術によると、変更操作は第
6図(A)の矩形シンボルデータ61のみに及ぶので、そ
の接続線分データ62には何の変更も加えられない。その
結果、第6図(B)に示すように、矩形シンボル61に接
続線分62の左先端部が食い込んだ形になる。そのため、
操作者は、次にこのような不整合を解消しなくてはなら
ない。また、この際には、不整合を生じている接続線分
62を特定する操作が必要であり、かつ例えば第6図
(c)に示す如く、他の短い接続線分62を選択し、矩形
シンボル61の右辺に整合させるように変更処理をしなく
てはならない。しかも、一般の図面は複雑な接続関係を
有しているから、1の図形データの変更はこれと関係す
る多大の図形データ(接続線分データを含む)の変更を
必要とし、頻に耐えない。
6 (A) to 6 (C) are diagrams for explaining the problems of the prior art. 6 (A) to 6 (C), reference numerals 61 and 63 denote rectangular symbols (rectangular symbol data),
62 indicates a tangent segment (connection segment data). For example, it is assumed that the operator makes a change to the rectangular symbol data 61 in FIG. 6 (A) and enlarges it like the rectangular symbol 61 in FIG. 6 (B). However, according to the prior art, since the change operation extends only to the rectangular symbol data 61 in FIG. 6A, no change is made to the connection line segment data 62. As a result, as shown in FIG. 6 (B), the left end portion of the connection line segment 62 bites into the rectangular symbol 61. for that reason,
The operator must then resolve such inconsistencies. In this case, the connection line
It is necessary to perform an operation for specifying 62 and, for example, as shown in FIG. 6C, another short connecting line segment 62 must be selected and changed so as to match the right side of the rectangular symbol 61. No. Moreover, since a general drawing has a complicated connection relationship, a change of one graphic data requires a great deal of change of graphic data (including connection line segment data) related thereto, and is frequently unbearable. .

第7図(A)〜(C)は従来技術の他の問題点を説明
するための図である。尚、第7図(A)〜(C)を通し
て、71〜73は矩形シンボルを示す。今、矩形シンボル71
〜73は第7図(A)に示すような配置にあるとする。操
作者は、矩形シンボル71及び72を移動させて、第7図
(C)に示すような配置にしたい。しかし、これを従来
技術によると、操作者は、まず矩形シンボル71及び72を
包含するような領域74{第7図(B)}を設定し、次に
矩形シンボル71及び72の相対位置を保つたままこれらを
1グループとして操作することを宣言し、次にこのグル
ープ位置を移動させることにより、第7図(C)に示す
ような配置を実現する操作が必要である。そして、最後
にこのグループ化の宣言を取り消して作業を修了する。
7 (A) to 7 (C) are diagrams for explaining another problem of the prior art. 7A to 7C, reference numerals 71 to 73 indicate rectangular symbols. Now the rectangular symbol 71
To 73 are arranged as shown in FIG. 7 (A). The operator wants to move the rectangular symbols 71 and 72 so that they are arranged as shown in FIG. 7 (C). However, according to the prior art, the operator first sets an area 74 (FIG. 7B) that includes the rectangular symbols 71 and 72, and then maintains the relative positions of the rectangular symbols 71 and 72. It is necessary to declare that they are to be operated as a group while keeping them, and then to move the group position to realize an arrangement as shown in FIG. 7 (C). Finally, the grouping declaration is canceled and the work is completed.

このように、従来は、ある図形シンボル等に対して操
作を加えると、それ以外の部分にも影響が生じ、操作者
は、予めこの影響を予想して対処しておくか、あるいは
操作後にめんどうな補正をしなければならない。従つ
て、図形(図形データ)の編集操作を効率的に行えなか
つた。
As described above, conventionally, when an operation is performed on a certain graphic symbol or the like, the other parts are also affected, and the operator has to anticipate the influence in advance and take measures, or troublesome after the operation. Must be corrected. Therefore, the editing operation of the figure (graphic data) cannot be performed efficiently.

[発明が解決しようとする問題点] 本発明は上述した従来技術の問題点を除去するもので
あり、その目的とする所は、CADシステム、図形作成装
置、図面制御装置等の図形処理システムにおいて、図形
(図形データ)の編集操作を効率的に行える図形処理装
置を提供することにある。
[Problems to be Solved by the Invention] The present invention is to eliminate the above-mentioned problems of the prior art, and is intended for a CAD system, a graphic creation device, a drawing control device and other graphic processing systems. Another object of the present invention is to provide a graphic processing apparatus capable of efficiently performing a graphic (graphic data) editing operation.

[問題点を解決するための手段] 上記の目的を達成するための本発明の図形処理装置は
以下の構成を備える。すなわち、 複数の個別図形の夫々に対応する複数の図形情報を記
憶する記憶手段と、 前記複数の個別図形の相互関係を規定する情報を記憶
する相互関係記憶手段と、 前記相互関係記憶手段に記憶された情報と前記複数の
図形情報とに基づいて前記複数の個別図形を表示する表
示手段と、 前記表示手段によって表示された複数の個別図形の中
から所望の1つの個別図形を指示する指示手段と、 前記指示手段で指示された個別図形に対応する図形情
報を編集する編集手段と、 前記編集手段による編集の結果、前記表示手段に表示
されている複数の個別図形の中で不整合になるものがあ
るか否かを前記相互関係記憶手段に記憶された情報に基
づいて判断する判断手段と、 前記判断手段により不整合状態になると判断された個
別図形の図形情報を、その不整合状態が解消されるよう
に変更する変更手段とを備える。
[Means for Solving the Problems] The graphic processing apparatus of the present invention for achieving the above object has the following configuration. That is, a storage unit that stores a plurality of pieces of graphic information corresponding to each of the plurality of individual figures, an interrelationship storage unit that stores information that defines the interrelationship of the plurality of individual figures, and a storage unit that stores the information in the interrelationship storage unit. Display means for displaying the plurality of individual figures based on the received information and the plurality of pieces of graphic information, and instructing means for designating one desired individual figure from among the plurality of individual figures displayed by the display means Editing means for editing the graphic information corresponding to the individual graphic designated by the instruction means; and as a result of editing by the editing means, inconsistency among a plurality of individual graphics displayed on the display means. Determining means for determining whether there is an object based on information stored in the correlation storage means; and determining the graphic information of the individual graphic determined to be in an inconsistent state by the determining means. Changing means for changing the inconsistent state to be eliminated.

また、好ましくは、前記図形情報中に前記変更手段に
よる変更の形態を示す変更形態情報を設定する設定手段
を更に備え、 前記変更手段は、前記判断手段により不整合状態にな
ると判断された個別図形の図形情報中に前記設定手段に
よる変更形態情報が設定されている場合、該不整合状態
が解消されるように該変更形態情報に基づいて当該図形
情報を変更する。
Preferably, the apparatus further comprises setting means for setting change form information indicating a change form by the change means in the graphic information, wherein the change means determines the individual graphic determined to be in an inconsistent state by the judgment means. If the change form information is set by the setting means in the graphic form information, the figure information is changed based on the change form information so that the inconsistent state is eliminated.

また、好ましくは、前記複数の個別図形の1つが2つ
の個別図形を結ぶ線分図形である場合に、該線分図形に
対応する図形情報として当該線分図形が可変長か否かを
設定する設定手段を更に備え、 前記変更手段は、前記編集手段によって前記線分図形
に不整合が生じた場合に、該線分図形に対応する図形情
報に可変長が設定されていれば、該線分図形の長さを変
更して当該不整合を解消するべく対応する図形情報を変
更する。
Preferably, when one of the plurality of individual figures is a line figure connecting two individual figures, whether or not the line figure has a variable length is set as graphic information corresponding to the line figure. Setting means, further comprising: when the editing means causes a mismatch in the line segment graphic, if the graphic information corresponding to the line segment graphic has a variable length set, The length of the graphic is changed and the corresponding graphic information is changed to eliminate the mismatch.

また、好ましくは、前記複数の個別図形の一つが2つ
の個別図形を結ぶ線分図形である場合に、該線分図形に
対応する図形情報の一つとして当該線分図形が固定長か
否かを設定する設定手段を更に備え、 前記変更手段は、前記編集手段によって前記線分図形に
不整合が生じた場合に、該線分図形に対応する図形情報
に固定長が設定されていれば、当該不整合を解消するべ
く該線分図形と相互関係を有する個別図形の図形情報を
変更する。
Preferably, when one of the plurality of individual figures is a line figure connecting two individual figures, it is determined whether the line figure has a fixed length as one of graphic information corresponding to the line figure. Further comprising setting means for setting, when the editing means has a mismatch in the line segment graphic, if a fixed length is set in the graphic information corresponding to the line segment graphic, The graphic information of an individual graphic having a mutual relationship with the line segment graphic is changed to eliminate the inconsistency.

なお、本発明において、個別図形とは、一つまたは複
数の図形によって構成される完結した図形であり、例え
ば、シンボルを表す矩形図形(第6図の矩形シンボル6
1、63、接続線分62等)があげられる。
In the present invention, an individual figure is a complete figure composed of one or more figures, and is, for example, a rectangular figure (a rectangular symbol 6 in FIG. 6) representing a symbol.
1, 63, connecting line segment 62, etc.).

[作用] 以上のような構成によれば、表示された複数の個別図
形の内の所望の一つを指示してこれに対応する図形情報
を編集すると、相互関係記憶手段に記憶された相互関係
を規定する情報に基づいて、不整合を生じる個別図形が
あるか否かが判断される。そして、不整合が生じると判
断された個別図形に対しては、その不整合状態を解消す
べく対応する図形情報が変更される。
[Operation] According to the above-described configuration, when a desired one of a plurality of displayed individual figures is designated and graphic information corresponding to the desired one is edited, the mutual relation stored in the mutual relation storage unit is edited. Is determined on the basis of the information defining the above. The graphic information corresponding to the individual graphic determined to be inconsistent is changed to eliminate the inconsistent state.

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

第1図は本発明による実施例の図形処理装置のブロツ
ク構成図である。図において、1は図形データ等の入力
部であり、該入力部1を介して図形データ(図形シンボ
ルデータ、接続線データ及びこれらに付随する属性デー
タ等)及び図形相互間の関係を規定した図形相互関係デ
ータ等を入力する。2は図形データの操作部であり、後
術する図形データ記憶部4が記憶している図形データに
対して図形の拡大、縮小、移動、削除、追加、変形等の
指示を与えると共に、該指示に基づく図形データの変更
処理を行う。またその際に、変更した図形データの図形
データ更新フラグPfをONにする。3は図形相互関係デー
タ記憶部であり、入力部1を介して入力した図形相互関
係データを記憶する。4は入力部1を介して入力した図
形データを記憶する図形データ記憶部であり、該図形デ
ータ記憶部4の図形データは操作部2による更新処理を
受ける他、後述する図形データ補正部5によつても更新
処理を受ける。5は図形データ補正部であり、該図形デ
ータ補正部5は図形データ記憶部4の記憶内容を走査す
ることにより、図形データ更新フラグPfをONにされた図
形データが存在するときは、当該図形データを特定する
識別番号に基づき、図形相互関係データ記憶部3より当
該図形データが関係する他の図形データの識別番号を読
み出して、その関係に従い、例えば最初の図形データが
変更を受けた結果、不整合状態に陥つた他の関係図形デ
ータ(例えば接続線分データ等)を自動的に補正する。
ここで、不整合状態とは、例えば第6図(B)に示すよ
うな接続線分の矩形シンボルへの食い込みの状態等を言
う。また、関係図形データとは、操作部2により最初の
図形データが変更を受けた結果、不整合状態に陥つた他
の関係図形データのみならず、図形データ補正部5によ
り前記の関係図形データが補正された結果、不整合状態
に陥つた更に他の関係図形データをも含む。更に、6は
図形データ記憶部4の図形データに基づく図形を表示す
る表示部であり、7は同じく図形をプリント出力し、若
しくは他の接続機器に出力する出力部である。
FIG. 1 is a block diagram of a graphic processing apparatus according to an embodiment of the present invention. In the drawing, reference numeral 1 denotes an input unit for graphic data and the like, and graphic data (graphic symbol data, connection line data and attribute data associated therewith) and a graphic defining a relationship between the graphics via the input unit 1 Enter the interrelation data. Reference numeral 2 denotes an operation unit for graphic data, which gives instructions such as enlargement, reduction, movement, deletion, addition, and deformation of graphics to the graphic data stored in the graphic data storage unit 4 to be described later. To change the graphic data based on the. Also at that time, turns ON the graphic data update flag P f of the changed graphic data. Reference numeral 3 denotes a graphic interrelation data storage unit which stores graphic interrelation data input via the input unit 1. Reference numeral 4 denotes a graphic data storage unit for storing graphic data input via the input unit 1. The graphic data in the graphic data storage unit 4 is updated by the operation unit 2 and is transmitted to a graphic data correction unit 5 described later. Update process. 5 is a graphic data correction unit, the figure type data correcting unit 5 by scanning the contents stored in the graphic data storage unit 4, when the graphic data of the graphic data update flag P f to ON is present, the Based on the identification number specifying the graphic data, the identification numbers of other graphic data related to the graphic data are read out from the graphic correlation data storage unit 3, and, for example, the result of the first graphic data being changed according to the relation Automatically corrects other related graphic data (for example, connection line data, etc.) that has fallen into an inconsistent state.
Here, the inconsistent state refers to, for example, a state in which a connection line segment cuts into a rectangular symbol as shown in FIG. 6B. The related graphic data includes not only the other related graphic data that has fallen into an inconsistent state as a result of the first graphic data being changed by the operating unit 2, but also the related graphic data by the graphic data correcting unit 5. As a result of the correction, it also includes other related graphic data that has fallen into an inconsistent state. Further, reference numeral 6 denotes a display unit for displaying a graphic based on the graphic data in the graphic data storage unit 4, and reference numeral 7 denotes an output unit for printing out the graphic or outputting the graphic to another connected device.

第2図(A)は図形相互関係データ記憶部3のデータ
記憶構造を示す図である。図において、1組の図形相互
関係データ8は1レコードを構成する。該1レコードに
おいて、 Rno:1組の図形相互関係データに付した固有の識別番号 Rk:相互関係の種類を記述するフイールドであり、例え
ば、 Rk=1:固定長実接続関係(図形データが実在の線分で接
続され、かつ線分長は固定) Rk=2:可変長実接続関係(図形データが実在の線分で接
続され、かつ線分長は可変) Rk=3:固定長仮想接続関係(図形データが仮想線分で接
続され、かつ線分長は固定) Rk=4:包含関係(図形データが他の図形データに包含さ
れ、かつ被包含図形データの包含図形データに対する相
対位置は一定) 等の内容が規定されている。
FIG. 2A is a diagram showing a data storage structure of the graphic correlation data storage unit 3. In the figure, one set of graphic correlation data 8 forms one record. In the one record, R no : a unique identification number assigned to one set of graphic correlation data R k : a field describing the type of correlation, for example, R k = 1: fixed-length real connection relation (graphic R k = 2: Variable-length real connection relationship (graphic data is connected by real line segments and line length is variable) R k = 3 : Fixed-length virtual connection relationship (graphic data is connected by virtual line segments and line segment length is fixed) R k = 4: Inclusion relationship (graphic data is included in other graphic data and included graphic data included) (The relative position with respect to the figure data is fixed.)

Rn:特定の相互関係に属する図形データの数 RP1〜RPn:特定の相互関係に属する図形データの識別番
号 RC1〜RCn:特定の相互関係に属する図形データの接続位
置情報 である。
R n : Number of graphic data belonging to a specific mutual relationship R P1 to R Pn : Identification number of graphic data belonging to a specific mutual relationship R C1 to R Cn : Connection position information of graphic data belonging to a specific mutual relationship .

第2図(B)は図形データ記憶部4のデータ記憶構造
を示す図である。図において、1組の図形データ9は1
レコードを構成する。該1レコードにおいて、 Pf:図形データが更新されたことを示す更新フラグ Pn0:図形データに固有の識別番号 Pk:図形データの種類を記述するフイールドであり、例
えば、 Pk=1:矩形 Pk=2:楕円 Pk=3:線分 等の内容が規定されている。
FIG. 2 (B) is a diagram showing a data storage structure of the graphic data storage unit 4. In the figure, one set of graphic data 9 is 1
Configure records. In the one record, P f : an update flag indicating that the graphic data has been updated P n0 : an identification number unique to the graphic data P k : a field describing the type of the graphic data, for example, P k = 1: The contents such as rectangle P k = 2: ellipse P k = 3: line segment are specified.

Pox,oy:図形データに外接する矩形の中心座標 Pwx,wy:図形データに外接する矩形の幅、高さ である。P ox , oy : Center coordinates of the rectangle circumscribing the figure data P wx , wy : Width and height of the rectangle circumscribing the figure data.

また、続くフイールドには図形データの種別Pkにより
異なる形式で情報が記録されており、例えばPk=3(線
分)の場合には、該線分の始端座標、終端座標、始端に
おける矢印の有無、終端における矢印の有無等の情報が
記憶される。
In the following field, information is recorded in different formats depending on the type P k of the graphic data. For example, when P k = 3 (line segment), the start coordinate, end coordinate, and arrow at the start end of the line segment And information such as the presence or absence of an arrow at the end.

第3図(A)は図形データの更新に基づく関連図形デ
ータの整合化処理手順を示すフローチヤートである。ス
トツプS31では、図形データ及び図形相互関係データの
情報フアイルの入力を行なう。この情報フアイルは、例
えば本実施例装置で予め作成し又は編集した結果の情報
フアイルでもよいし、あるいは他の図形処理装置で生成
された情報フアイルでもよいし、更には、このような情
報フアイルの入力を行なう代りに本実施例装置で新規に
作成した情報フアイルでもよい。その際に、図形データ
は図形データ記憶部4に、図形相互関係データは図形相
互関係データ記憶部3に格納される。ステツプS32で
は、操作者は、操作部2を介して図形データの指定、操
作コマンド等を入力し、指定した図形データに所望の操
作を加えることを指示する。更に操作部2は、ステツプ
S33において、指示された図形データを図形データ記憶
部4より読み出し、これに指示された操作を施し、再び
図形データ記憶部4に格納する。その際に、変更を加え
た図形データの更新フラグPfをONにする。こうして、指
定された図形データの変更処理が終了するとステツプS3
4に進む。尚、この図形データの変更は複数であつても
よい。ステツプS34において、図形データ補正部5は、
図形データ記憶部4の内容を走査し、もし更新された図
形データ(更新フラグPfがON)が存在すれば、その図形
データの識別番号Pnoをキー情報とする。ステツプS35で
は、前記のキー情報に基づいて、当該図形データと相互
関係にある他の図形データの整合化処理を行う。
FIG. 3 (A) is a flowchart showing a procedure for matching related graphic data based on updating of graphic data. In step S31, an information file of graphic data and graphic correlation data is input. This information file may be, for example, an information file created or edited in advance by the apparatus of the present embodiment, or may be an information file generated by another graphic processing apparatus. Instead of inputting, an information file newly created by the apparatus of this embodiment may be used. At this time, the graphic data is stored in the graphic data storage unit 4 and the graphic correlation data is stored in the graphic correlation data storage unit 3. In step S32, the operator inputs designation of graphic data, an operation command, and the like via the operation unit 2, and instructs to perform a desired operation on the specified graphic data. Further, the operation unit 2 includes a step
In S33, the designated graphic data is read from the graphic data storage unit 4, the designated operation is performed, and the graphic data is stored in the graphic data storage unit 4 again. At that time, turns ON the update flag P f of graphic data modified. In this manner, when the change processing of the designated graphic data is completed, step S3
Proceed to 4. The graphic data may be changed plurally. In step S34, the graphic data correction unit 5
Scanning the contents of the graphic data storage unit 4, if the updated figure data (update flag P f is ON) if there is, the identification number P no of the graphic data and the key information. In step S35, based on the key information, a matching process is performed on other graphic data that is interrelated with the graphic data.

こうして、ステツプS35の処理が終了すると、ステツ
プS36に進み、前記ステツプS34でキー情報を特定した図
形データの更新フラグPfをOFFにする。そして、他に更
新された図形データがあるか否かを探す。もし、他の更
新された図形データが存在すればステツプS34に戻り、
他の更新された図形データに対して前記の処理を行う。
また、他の更新された図形データが存在しなければ、ス
テツプS32に戻る。
Thus, the processing of step S35 is completed, the process proceeds to step S36, the OFF the update flag P f of graphic data identifying the key information in the step S34. Then, it is searched whether there is any other updated graphic data. If another updated graphic data exists, return to step S34,
The above processing is performed on other updated graphic data.
If there is no other updated graphic data, the process returns to step S32.

第3図(B)は相互関係にある図形データの整合化処
理手順(ステツプS35)の詳細を示すフローチヤートで
ある。このフローの構造は再帰モジユールとして構成さ
れており、与えられたキー情報若しくは自分で更新した
キー情報で特定する図形データを基準にして、それと相
互関係を持つ他の図形データが不整合状態に陥つている
場合は順々にこれを補正するものである。ステツプS352
では、与えられたキー情報Pniにより、まず図形相互関
係データの第1レコードに着目し、その中に対応する図
形データの識別番号RPiがあるか否かを検索する。即
ち、ステツプS353では与えられたキー情報Pniと図形デ
ータ識別番号RPiとが一致するか否かを調べ、もし一致
するときはそのレコードの相互関係識別番号Rnoを得て
ステツプS356に制御する。ステツプS356では、相互関係
識別番号Rnoをもとに相互関係種別Pkを得、これにより
キー情報Pniとしている図形データと相互関係にある他
の図形データRPmが不整合状態に陥つているか否かを判
定し、もし当該図形データRPmが不整合状態に陥つてい
れば図形データ記憶部4の当該図形データを補正する。
該補正にあたつては接続関係種別Pkにより、補正の対象
とすべき他の図形データの識別番号及び補正方法を決定
できる。例えば、接続関係種別Pkが可変長実接続であれ
ば、補正の対象とすべき他の図形データは当該図形デー
タRPmであり、その接続線分データの長さを変えて不整
合を解消する。また当該図形データRPmが固定長実接続
であれば当該接続線分の長さは一定に保つたまま、それ
に接続する他の図形データRPnの位置を移動させる等に
より不整合を解消する。
FIG. 3B is a flowchart showing the details of the procedure (step S35) for matching graphic data having mutual relations. The structure of this flow is configured as a recursive module, and based on the given key information or the figure data specified by the key information updated by the user, other figure data that has a correlation with the figure falls into an inconsistent state. If so, this is corrected in order. Step S352
Then, based on the given key information Pni , first, the first record of the graphic correlation data is focused on, and it is searched whether or not there is an identification number R Pi of the corresponding graphic data. That is, in step S353, it is checked whether or not the given key information P ni matches the graphic data identification number R Pi . If the key information P ni matches, the mutual relation identification number R no of the record is obtained and control is passed to step S356. I do. In step S356, to obtain a correlation type P k on the basis of the correlation identification number R no, thereby other graphic data R Pm in graphic data and relationships that are the key information P ni is Recessed an inconsistent state connexion It is determined whether or not the figure data R Pm is in an inconsistent state, and the figure data in the figure data storage unit 4 is corrected.
In the correction, the identification number and the correction method of other graphic data to be corrected can be determined based on the connection relationship type Pk . For example, if the connection relation type Pk is a variable length real connection, the other graphic data to be corrected is the graphic data R Pm , and the length of the connection line data is changed to eliminate the mismatch. I do. If the graphic data R Pm is a fixed-length real connection, the mismatch is eliminated by moving the position of another graphic data R Pn connected thereto while keeping the length of the connection line constant.

さて、ステツプS356における不整合解消処理の結果、
ある関係図形データが更新されると、このために新たに
不整合状態が発生することが考えられる。そこで、ステ
ツプS357では更新された図形データの識別番号を新たな
キー情報とし、ステツプS358で再び相互関係にある図形
データの処理(ステツプS351)に回帰入力し、新たに生
じた不整合を順次解消する。
Now, as a result of the inconsistency solving process in step S356,
When certain relational graphic data is updated, a new inconsistency state may occur due to this. Then, in step S357, the updated identification number of the graphic data is used as new key information, and in step S358, the process is returned to the processing of the graphic data having mutual relations (step S351), and the newly generated mismatch is sequentially eliminated. I do.

また、ステツプS353の判別で一致しないときは着目す
べき相互関係データのレコード番号を次に進め、ステツ
プS354では全部の相互関係データ(レコード)について
検査し終えたか否かを判定する。そして全部の相互関係
データを検査し終えたときは、ステツプS355に進み、こ
の処理をリターンする。また全部の相互関係データを検
査し終えていないときはステツプS352の処理に戻る。
If they do not match in the determination in step S353, the record number of the interrelation data to be focused on is advanced to the next, and in step S354, it is determined whether or not all the interrelation data (records) have been inspected. When all the interrelation data have been inspected, the process proceeds to step S355, and the process returns. If all the interrelation data have not been checked, the process returns to step S352.

[他の実施例] 第4図は本発明による他の実施例の図形処理装置を示
すブロツク構成図である。この実施例では、第1図のよ
うな図形データ補正部5を採用しておらず、その代りに
操作部2と図形相互関係データ記憶部3が直接に接続し
ている。これは、この実施例が不整合状態に陥つた状態
に陥つた図形データの図形相互関係データによる自動的
な補正を目的としないからである。従つて、図形データ
に不整合部分が生じた場合でも、その調整をするか否か
については操作者の指示を待つ。しかし、操作者の指示
があれば、図形相互関係データ記憶部3の記憶内容を効
率的に利用できるから、操作者は整合化の処理を容易に
行える。また、これにより第1図の実施例に比較して装
置構成を簡単にできる。
[Other Embodiments] FIG. 4 is a block diagram showing a graphic processing apparatus according to another embodiment of the present invention. In this embodiment, the graphic data correction unit 5 as shown in FIG. 1 is not employed, and instead, the operation unit 2 and the graphic correlation data storage unit 3 are directly connected. This is because this embodiment does not aim at automatic correction of graphic data falling into a mismatched state by graphic correlation data. Therefore, even when an inconsistency occurs in the graphic data, the operator waits for an instruction from the operator as to whether or not to perform the adjustment. However, if there is an instruction from the operator, the contents stored in the graphic interrelation data storage unit 3 can be efficiently used, so that the operator can easily perform the matching process. In addition, the configuration of the apparatus can be simplified as compared with the embodiment shown in FIG.

第5図は他の実施例装置の図形データ処理手順を示す
フローチヤートである。ステツプS51では入力部1を介
して図形データ及び図形最後関係データの入力を行う。
ステツプS52では操作者による操作コマンドの入力を待
つ。ステツプS53では入力した操作コマンドが不整合調
整コマンドか否かを調べ、不整合調整コマンドでなけれ
ば図形データの更新コマンドであるからステツプS54に
進み、指定図形データの更新処理を行う。
FIG. 5 is a flowchart showing a graphic data processing procedure of another embodiment apparatus. In step S51, graphic data and graphic last relation data are input via the input unit 1.
In step S52, input of an operation command by the operator is waited. In step S53, it is checked whether or not the input operation command is an inconsistent adjustment command. If the input operation command is not an inconsistent adjustment command, the command is a graphic data update command.

また、不整合調整コマンドのときはステツプS55に進
み、指定図形データの識別番号をキー情報にして図形相
互関係データ記憶部3の内容を参照し、例えば関連図形
データの識別番号及び相互関係種別等の情報を得る。操
作者は、かようにして関連情報を容易に得られるので、
再びステツプS52からの処理で容易に関係図形データの
整合化処理を行える。
If the command is an inconsistency adjustment command, the flow advances to step S55 to refer to the contents of the graphic correlation data storage unit 3 using the identification number of the designated graphic data as key information, for example, the identification number of the related graphic data and the correlation type. Get the information. The operator can thus easily obtain the relevant information,
The matching processing of the related graphic data can be easily performed by the processing from step S52 again.

[発明の効果] 以上述べた如く本発明によれば、各図形データの相互
関係を規定する図形相互関係データを利用するので、図
形データの更新に続く相互関係にある図形データの整合
化処理が格段に効率化される。
[Effects of the Invention] As described above, according to the present invention, since the graphic interrelation data defining the interrelation of each graphic data is used, the process of matching the interrelated graphic data following the update of the graphic data is performed. It is much more efficient.

また、例えば、シンボルを表す矩形図形等(第6図の
矩形シンボル61、63、接続線分62等)のような、一つま
たは複数の図形によって構成される完結した図形(個別
図形)が複数表示されている場合において、ある個別図
形の編集によって他の個別図形に不整合が生じても、こ
れを自動的に解消することができ、操作性が向上する。
In addition, for example, a plurality of complete figures (individual figures) composed of one or a plurality of figures such as rectangular figures representing symbols (rectangular symbols 61 and 63, connection line segments 62 and the like in FIG. 6) are provided. When displayed, even if inconsistency arises in another individual figure due to editing of a certain individual figure, this can be automatically resolved, and operability is improved.

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

第1図は本発明による実施例の図形処理装置のブロツク
構成図、 第2図(A)は図形相互関係データ記憶部3のデータ記
憶構造を示す図、 第2図(B)は図形データ記憶部4のデータ記憶構造を
示す図、 第3図(A)は図形データの更新に基づく関連図形デー
タの整合化処理手順を示すフローチヤート、 第3図(B)は相互関係にある図形データの整合化処理
手順の詳細を示すフローチヤート、 第4図は本発明による他の実施例の図形処理装置を示す
ブロツク構成図、 第5図は他の実施例装置の図形データ処理手順を示すフ
ローチヤート、 第6図(A)〜(C)は従来技術の問題点を説明するた
めの図、 第7図(A)〜(C)は従来技術の他の問題点を説明す
るための図である。 図中、1……図形データ等の入力部、2……図形データ
を処理するための操作部、3……図形相互関係データ記
憶部、4……図形データ記憶部、5……図形データ補正
部、6……図形データの表示部、7……図形データの出
力部である。
FIG. 1 is a block diagram of a graphic processing apparatus according to an embodiment of the present invention, FIG. 2 (A) is a diagram showing a data storage structure of a graphic correlation data storage unit 3, and FIG. 2 (B) is graphic data storage. FIG. 3 (A) is a flowchart showing a data storage structure of a part 4, FIG. 3 (A) is a flowchart showing a procedure for matching related graphic data based on updating of graphic data, and FIG. FIG. 4 is a block diagram showing a graphic processing apparatus of another embodiment according to the present invention, and FIG. 5 is a flowchart showing a graphic data processing procedure of another embodiment apparatus according to the present invention. FIGS. 6 (A) to 6 (C) are diagrams for explaining the problems of the conventional technology, and FIGS. 7 (A) to 7 (C) are diagrams for explaining other problems of the conventional technology. . In the drawing, 1 ... an input unit for graphic data, etc., 2 ... an operation unit for processing graphic data, 3 ... a graphic correlation data storage unit, 4 ... a graphic data storage unit, 5 ... a graphic data correction ..., A display unit for graphic data, and an output unit for graphic data.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 田村 秀行 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (56)参考文献 特開 昭59−125468(JP,A) 情報処理学会「グラフィクスとCAD シンポジウム論文集(昭和61年11月18日 〜19日)」、VOL.1986(1986)p 167−174 精密工学会誌VOL.52,NO.6 (1986)p.1037−1042 ────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Hideyuki Tamura 3-30-2 Shimomaruko, Ota-ku, Tokyo Inside Canon Inc. (56) References JP-A-59-125468 (JP, A) Proceedings of Graphics and CAD Symposium (November 18-19, 1986) ", Vol. 1986 (1986) pp. 167-174, Journal of the Japan Society for Precision Engineering, Vol. 52, NO. 6 (1986) p. 1037−1042

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数の個別図形の夫々に対応する複数の図
形情報を記憶する記憶手段と、 前記複数の個別図形の相互関係を規定する情報を記憶す
る相互関係記憶手段と、 前記相互関係記憶手段に記憶された情報と前記複数の図
形情報とに基づいて前記複数の個別図形を表示する表示
手段と、 前記表示手段によって表示された複数の個別図形の中か
ら所望の1つの個別図形を指示する指示手段と、 前記指示手段で指示された個別図形に対応する図形情報
を編集する編集手段と、 前記編集手段による編集の結果、前記表示手段に表示さ
れている複数の個別図形の中で不整合になるものがある
か否かを前記相互関係記憶手段に記憶された情報に基づ
いて判断する判断手段と、 前記判断手段により不整合状態になると判断された個別
図形の図形情報を、その不整合状態が解消されるように
変更する変更手段と を備えることを特徴とする図形処理装置。
1. A storage means for storing a plurality of graphic information corresponding to each of a plurality of individual graphics; an interrelationship storage means for storing information defining an interrelationship between the plurality of individual graphics; Display means for displaying the plurality of individual figures based on the information stored in the means and the plurality of figure information; and indicating a desired one individual figure from the plurality of individual figures displayed by the display means Instruction means for editing the graphic information corresponding to the individual figure designated by the instruction means; and a result of editing by the editing means, the plurality of individual figures displayed on the display means are not included. Determining means for determining whether there is a match based on information stored in the mutual storage means; and graphic information of the individual graphic determined to be in an inconsistent state by the determining means , Graphics processing apparatus, characterized in that it comprises a changing means for changing to its inconsistent condition is removed.
【請求項2】前記図形情報中に前記変更手段による変更
の形態を示す変更形態情報を設定する設定手段を更に備
え、 前記変更手段は、前記判断手段により不整合状態になる
と判断された個別図形の図形情報中に前記設定手段によ
る変更形態情報が設定されている場合、該不整合状態が
解消されるように該変更形態情報に基づいて当該図形情
報を変更することを特徴とする請求項1に記載の図形処
理装置。
2. The apparatus according to claim 1, further comprising setting means for setting change form information indicating a change form by said change means in said graphic information, wherein said change means determines said individual figure to be in an inconsistent state by said judgment means. 2. When the change form information is set by the setting means in the graphic form information, the graphic information is changed based on the change form information so that the inconsistent state is eliminated. The graphic processing device according to 1.
【請求項3】前記複数の個別図形の1つが2つの個別図
形を結ぶ線分図形である場合に、該線分図形に対応する
図形情報として当該線分図形が可変長か否かを設定する
設定手段を更に備え、 前記変更手段は、前記編集手段によって前記線分図形に
不整合が生じた場合に、該線分図形に対応する図形情報
に可変長が設定されていれば、該線分図形の長さを変更
して当該不整合を解消するべく対応する図形情報を変更
する ことを特徴とする特許請求の範囲第1項記載の図形処理
装置。
3. When one of the plurality of individual figures is a line figure connecting two individual figures, whether or not the line figure has a variable length is set as graphic information corresponding to the line figure. Setting means, further comprising: when the editing means causes a mismatch in the line segment graphic, if the graphic information corresponding to the line segment graphic has a variable length set, 2. The graphic processing device according to claim 1, wherein the graphic information corresponding to the graphic length is changed by changing the length of the graphic to eliminate the mismatch.
【請求項4】前記複数の個別図形の一つが2つの個別図
形を結ぶ線分図形である場合に、該線分図形に対応する
図形情報の一つとして当該線分図形が固定長か否かを設
定する設定手段を更に備え、 前記変更手段は、前記編集手段によって前記線分図形に
不整合が生じた場合に、該線分図形に対応する図形情報
に固定長が設定されていれば、当該不整合を解消するべ
く該線分図形と相互関係を有する個別図形の図形情報を
変更する ことを特徴とする特許請求の範囲第1項記載の図形処理
装置。
4. When one of said plurality of individual figures is a line segment figure connecting two individual figures, whether or not said line figure has a fixed length is one of graphic information corresponding to said line figure. Further comprising setting means for setting, when the editing means has a mismatch in the line segment graphic, if a fixed length is set in the graphic information corresponding to the line segment graphic, 2. The graphic processing apparatus according to claim 1, wherein graphic information of an individual graphic having a mutual relationship with said line segment graphic is changed to eliminate said inconsistency.
JP62125941A 1987-05-25 1987-05-25 Graphic processing unit Expired - Lifetime JP2655643B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62125941A JP2655643B2 (en) 1987-05-25 1987-05-25 Graphic processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62125941A JP2655643B2 (en) 1987-05-25 1987-05-25 Graphic processing unit

Publications (2)

Publication Number Publication Date
JPS63292272A JPS63292272A (en) 1988-11-29
JP2655643B2 true JP2655643B2 (en) 1997-09-24

Family

ID=14922760

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62125941A Expired - Lifetime JP2655643B2 (en) 1987-05-25 1987-05-25 Graphic processing unit

Country Status (1)

Country Link
JP (1) JP2655643B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0490058A (en) * 1990-08-01 1992-03-24 Daikin Ind Ltd Mutual interference processing or automatic envelope processing method for body constitution graphic on architectural drawing or the like

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59125468A (en) * 1982-12-30 1984-07-19 Fujitsu Ltd Cad system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
情報処理学会「グラフィクスとCADシンポジウム論文集(昭和61年11月18日〜19日)」、VOL.1986(1986)p167−174
精密工学会誌VOL.52,NO.6(1986)p.1037−1042

Also Published As

Publication number Publication date
JPS63292272A (en) 1988-11-29

Similar Documents

Publication Publication Date Title
EP0682324B1 (en) Image processing apparatus and method
US5432897A (en) Method and an apparatus for editing tree structures in display
US4905185A (en) Apparatus for transferring block data in original form and editing the block data
JP2002091523A (en) Automatic programming simulation device
JP2655643B2 (en) Graphic processing unit
JP3124342B2 (en) Annotation element creation and editing method in CAD system
JPH07296004A (en) Information management retrieval device
JPH0417002A (en) Sequence program searching system
JPH11250039A (en) Editing supporting method using database and recording medium storing program for the same
JPH05100831A (en) Source program alteration history generation utility
JP2510967B2 (en) Custom table creation device
JPH0628442A (en) Graphic processor
JPH09259296A (en) Grouping device for element of cad system
JP3593637B2 (en) Drawing editing system
JPH05307589A (en) System for data transfer between cad systems
JPH0816834B2 (en) Curve generation method
JP2836217B2 (en) Parametric figure registration processing method
JP3144792B2 (en) Table editing device
JPH08221265A (en) Supporting device for developing software
JP2792148B2 (en) Equipment management system data creation device
JPH0765186A (en) Graphic editing device
JPH0589103A (en) Document editing processor
JP2969707B2 (en) Image editing device
JP2990701B2 (en) File editing method
JPH08263652A (en) Graphic editing device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term