JP3181956B2 - Graphic data storage method and apparatus - Google Patents

Graphic data storage method and apparatus

Info

Publication number
JP3181956B2
JP3181956B2 JP33143791A JP33143791A JP3181956B2 JP 3181956 B2 JP3181956 B2 JP 3181956B2 JP 33143791 A JP33143791 A JP 33143791A JP 33143791 A JP33143791 A JP 33143791A JP 3181956 B2 JP3181956 B2 JP 3181956B2
Authority
JP
Japan
Prior art keywords
graphic
basic
data
common
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 - Fee Related
Application number
JP33143791A
Other languages
Japanese (ja)
Other versions
JPH05143656A (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.)
Mutoh Industries Ltd
Original Assignee
Mutoh Industries 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 Mutoh Industries Ltd filed Critical Mutoh Industries Ltd
Priority to JP33143791A priority Critical patent/JP3181956B2/en
Publication of JPH05143656A publication Critical patent/JPH05143656A/en
Application granted granted Critical
Publication of JP3181956B2 publication Critical patent/JP3181956B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、いわゆるCAD(comp
uter aided design)システム等のように図形データを
処理するためのシステムにおいて、図形を表現する図形
データを格納するための図形データ格納方法および装置
に関する。
The present invention relates to a so-called CAD (computer).
The present invention relates to a graphic data storage method and apparatus for storing graphic data representing a graphic in a system for processing graphic data such as a uter aided design system.

【0002】[0002]

【従来の技術】従来のCADシステムにおいて、複数の
図形データは一般に個々の図形データ毎にデータが格納
されており、これら複数の図形データを編集する場合に
は、図形データ毎に個別に編集操作を行うことになる。
例えば線分図形の場合、図14に示すように同一の直線
SL上に2個の線分ABおよびCDがある場合を考え
る。従来のシステムでは、これらの線分ABおよびCD
の図形データは、線分毎に個別に格納され、同一の直線
SL上に存在するにもかかわらず特に関連付けられてい
なかった。
2. Description of the Related Art In a conventional CAD system, a plurality of graphic data are generally stored for each graphic data, and when editing the plurality of graphic data, an editing operation is performed individually for each graphic data. Will be done.
For example, in the case of a line segment figure, consider a case where there are two line segments AB and CD on the same straight line SL as shown in FIG. In a conventional system, these line segments AB and CD
Are stored individually for each line segment, and are not particularly associated even though they exist on the same straight line SL.

【0003】すなわち、線分ABおよびCDは、同一の
直線SL上に存在するが、従来のシステムでは、これら
線分ABおよびCDの図形データは、各々両端点AとB
およびCとDの座標データのみで構成されており、これ
ら両端点AとBおよびCとDの座標データからなる図形
データとして、例えば、記憶手段に格納されたり、編集
において取り扱われたりする。つまり、これら線分AB
およびCDのデータは、各々両端点AとBおよびCとD
の座標データで管理される。
[0003] That is, the line segments AB and CD exist on the same straight line SL, but in the conventional system, the graphic data of these line segments AB and CD are both end points A and B, respectively.
And only the coordinate data of C and D, and are stored, for example, in storage means or handled in editing as graphic data composed of the coordinate data of these end points A and B and C and D. That is, these line segments AB
And CD data are the end points A and B and C and D respectively.
Is managed by the coordinate data.

【0004】[0004]

【発明が解決しようとする課題】上述のような従来のシ
ステムでは、例えば、図14のように共通の直線SL上
にある2つの異なる線分ABおよびCDのような図形要
素の図形データも、単に両端点AとBおよびCとDの座
標データで管理される。このため、図示のように、例え
ば、直線SL上にある線分ABおよびCDを共に点Oを
中心として角度θだけ回転移動させて、線分A′B′お
よびC′D′としたいときには、各線分毎に線分を回転
移動させなければならない。すなわち、まず、第1の操
作R1により、線分ABを点Oを中心として角度θだけ
回転移動させて線分A′B′とし、次に第2の操作R2
により、線分CDを点Oを中心として角度θだけ回転移
動させて線分C′D′とする。したがって、2回の操作
が必要となる。
In the conventional system as described above, for example, graphic data of graphic elements such as two different line segments AB and CD on a common straight line SL as shown in FIG. It is managed simply by the coordinate data of the end points A and B and C and D. For this reason, as shown in the figure, for example, when it is desired to rotate the line segments AB and CD on the straight line SL by the angle θ about the point O to obtain the line segments A′B ′ and C′D ′, Each line segment must be rotated and moved. That is, first, the line segment AB is rotated by the angle θ about the point O by the first operation R1 to be a line segment A′B ′, and then the second operation R2
Thus, the line segment CD is rotated and moved about the point O by the angle θ to obtain a line segment C′D ′. Therefore, two operations are required.

【0005】上述において、実質的に線分ABおよびC
Dが共通の直線SL上にあるという点を考慮すると、直
線SLを点Oを中心として角度θだけ回転移動させて直
線SL′とするだけで、この直線SL上の線分ABおよ
びCDを直線SL′上の線分A′B′およびC′D′と
することが可能となるはずである。しかしながら、上述
のように、従来のシステムでは、線分ABおよびCDの
データは、各々両端点AとBおよびCとDの座標データ
のみで管理されており、直線SLとは関連付けられてい
なかったため、このような操作を簡単に行うことはでき
なかった。
In the above description, the line segments AB and C
Considering that D is on the common straight line SL, the straight line SL is simply rotated and moved around the point O by the angle θ to form a straight line SL ′. It should be possible to have line segments A'B 'and C'D' on SL '. However, as described above, in the conventional system, the data of the line segments AB and CD are managed only by the coordinate data of the end points A and B and C and D, respectively, and are not associated with the straight line SL. However, such an operation could not be easily performed.

【0006】本発明は、このような事情に鑑みてなされ
たもので、図形を表現する図形データを格納するにあた
り、共通の図形の一部からなる複数の図形要素の図形デ
ータを共通にしかも容易に変更修正することを可能とす
る図形データ格納方法および装置を提供することを目的
としている。
The present invention has been made in view of such circumstances, and in storing graphic data representing a graphic, graphic data of a plurality of graphic elements which are part of a common graphic is commonly and easily stored. It is an object of the present invention to provide a method and an apparatus for storing graphic data which can be changed and corrected.

【0007】[0007]

【課題を解決するための手段】本発明に係る第1の図形
データ格納方法は、図形を表現する図形データを格納す
るにあたり、新たに形成される新図形要素が以前に格納
されている図形データの図形要素のいずれかと共通の基
本図形上の異なる部分からなるか否かを判別するデータ
判別ステップと、このステップで新図形要素が以前に格
納されている図形データの図形要素のいずれかと共通の
図形上の異なる部分からなると判定された場合は、その
新図形要素およびそれに対応する以前に格納されている
図形データの図形要素を、前記共通の基本図形を表現す
る情報とその共通の基本図形上の有効範囲を示す情報と
の組み合わせに基づく図形データとして格納し直す再格
納ステップとを有することを特徴としている。
According to a first graphic data storage method according to the present invention, when storing graphic data representing a graphic, a graphic data in which a newly formed new graphic element is stored before is stored. A data discriminating step for discriminating whether or not it consists of a different part on the basic graphic common to any of the graphic elements, and in this step, the new graphic element is shared with any of the graphic elements of the graphic data stored previously. If it is determined that the figure consists of different parts on the figure, the new figure element and the figure element of the previously stored figure data corresponding to the new figure element are replaced with the information representing the common basic figure and the common basic figure. And restoring as graphic data based on a combination with the information indicating the effective range.

【0008】[0008]

【課題を解決するための手段】本発明に係る第2の図形
データ格納方法は、基本図形上の部分からなる図形要素
を表現する図形データを格納するにあたり、格納しよう
とする図形要素を一部として含むそれ自体単独の図形要
素を構成する基本図形を示す情報を入力する基本図形入
力ステップと、このステップで入力された基本図形上の
特定の部分を有効範囲として指定する範囲指定ステップ
と、これらのステップで得られる前記基本図形を示す情
報とその基本図形上の有効範囲を示す情報との組み合わ
せに基づく図形データを格納する格納ステップとを有す
ることを特徴としている。
The second graphic data storage method according to the present invention SUMMARY OF THE INVENTION may, upon storing the graphic data representing a graphic element consisting of a portion of the basic figure, some graphic elements to be stored The figure itself must be included , including
A basic figure input step of inputting information indicating a basic figure constituting a primitive, a range designating step of designating a specific portion on the basic figure inputted in this step as an effective range, and the basic form obtained in these steps. A storage step of storing graphic data based on a combination of information indicating a graphic and information indicating an effective range on the basic graphic.

【0009】本発明に係る第1の図形データ格納装置
は、図形を表現する図形データを格納する図形データ格
納装置において、新たに形成される新図形要素が以前に
格納されている図形データの図形要素のいずれかと共通
の基本図形上の異なる部分からなるか否かを判別するデ
ータ判別手段と、このデータ判別手段で新図形要素が以
前に格納されている図形データの図形要素のいずれかと
共通の図形上の異なる部分からなると判定された場合
は、その新図形要素およびそれに対応する以前に格納さ
れている図形データの図形要素を、前記共通の基本図形
を表現する情報とその共通の基本図形上の有効範囲を示
す情報との組み合わせに基づく図形データとして格納し
直す再格納手段とを具備することを特徴としている。
A first graphic data storage device according to the present invention is a graphic data storage device for storing graphic data representing a graphic. A data discriminating means for discriminating whether or not the element consists of a different part on the basic graphic common to any of the elements; If it is determined that the figure consists of different parts on the figure, the new figure element and the figure element of the previously stored figure data corresponding to the new figure element are replaced with the information representing the common basic figure and the common basic figure. And re-storing means for re-storing as graphic data based on a combination with the information indicating the effective range.

【0010】本発明に係る第2の図形データ格納装置
は、図形要素を表現する図形データを格納する図形デー
タ格納装置において、格納しようとする図形要素を一部
として含むそれ自体単独の図形要素を構成する基本図形
を示す情報を入力する基本図形入力手段と、この基本図
形入力手段で入力された基本図形上の特定の部分を有効
範囲として指定する範囲指定手段と、これらの手段で得
られる前記基本図形を示す情報とその基本図形上の有効
範囲を示す情報との組み合わせに基づく図形データを格
納する格納手段とを具備することを特徴としている。
[0010] The second graphic data storage apparatus according to the present invention, in the mark data storing unit for storing graphic data representing a graphic element, some graphic elements to be stored
Basic figures constituting the figure element itself alone, including a
The basic figure input means for inputting information indicating the above, a range designating means for designating a specific portion on the basic figure inputted by the basic figure input means as an effective range, and the basic figure obtained by these means are shown. Storage means for storing graphic data based on a combination of the information and information indicating an effective range on the basic graphic.

【0011】[0011]

【作用】本発明の図形データ格納方法および装置におい
ては、図形を表現する図形データを格納するにあたり、
新たに形成される新図形要素が以前に格納されている図
形データの図形要素のいずれかと共通の基本図形上の異
なる部分からなる場合には、その新図形要素およびそれ
に対応する以前に格納されている図形データの図形要素
を、前記共通の基本図形を表現する情報とその共通の基
本図形上の有効範囲を示す情報との組み合わせに基づく
図形データとして格納し直すか、あるいは基本図形上の
部分からなる図形要素を表現する図形データを格納する
にあたり、格納しようとする図形要素を含む基本図形を
入力し、この基本図形上の特定の部分を有効範囲として
指定して、前記基本図形を示す情報とその基本図形上の
有効範囲を示す情報との組み合わせに基づく図形データ
を格納することにより、共通の図形の一部からなる複数
の図形要素の図形データを共通にしかも容易に変更修正
することを可能とする。
In the method and apparatus for storing graphic data according to the present invention, when storing graphic data representing a graphic,
If the newly formed new graphic element consists of a different part on the basic graphic common to any of the previously stored graphic data graphic elements, the new graphic element and the previously stored corresponding The graphic element of the graphic data is stored again as graphic data based on a combination of the information representing the common basic graphic and the information indicating the effective range on the common basic graphic, In storing graphic data representing a graphic element, a basic graphic including a graphic element to be stored is input, and a specific portion on the basic graphic is designated as an effective range, and information indicating the basic graphic and By storing graphic data based on a combination with the information indicating the effective range on the basic graphic, a graphic of a plurality of graphic elements consisting of a part of a common graphic is stored. It makes it possible also to modify easily change only the over data in common.

【0012】[0012]

【実施例】以下、図面を参照して、本発明の実施例を説
明する。図1は、本発明の第1の実施例に係る図形デー
タ格納装置を組み込んだCADシステムの構成を示して
いる。本実施例のCADシステムでは、図形データが入
力される毎に、新たに入力された新図形要素が以前に格
納されている図形データの図形要素と共通の基本図形上
の異なる部分からなるか否かを判別し、新図形要素が以
前に格納されている図形データの図形要素のいずれかと
共通の図形上の異なる部分からなる場合は、その新図形
要素およびそれに対応する以前に格納されている図形デ
ータの図形要素を、前記共通の基本図形を表現する情報
とその共通の基本図形上の有効範囲を示す情報との組み
合わせに基づく図形データとして格納し直すことによっ
て、複数の図形要素を共通の基本図形に情報により一括
して取り扱うことを容易にしている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows the configuration of a CAD system incorporating a graphic data storage device according to a first embodiment of the present invention. In the CAD system according to the present embodiment, each time graphic data is input, it is determined whether the newly input new graphic element is composed of a different part on the common basic graphic from the graphic element of the previously stored graphic data. If the new graphic element consists of a different part on the common graphic from any of the previously stored graphic data graphic elements, the new graphic element and the corresponding previously stored graphic By storing the graphic elements of the data as graphic data based on a combination of the information expressing the common basic graphic and the information indicating the effective range on the common basic graphic, a plurality of graphic elements can be stored in the common basic graphic. It is easy to handle figures collectively with information.

【0013】図1に示すCADシステムは、CAD処理
部1、入力装置2、ディスプレイ3、出力装置4および
記憶装置5を備えている。CAD処理部1は、CPU
(中央処理装置)を含み、図形データ格納処理を含むC
AD処理を実行する。入力装置2は、キーボード等の操
作入力装置、マウス等のポインティングデバイスを含
み、オペレータによる操作入力情報およびCAD処理に
必要なその他の外部情報をCAD処理部1に入力する。
ディスプレイ3は、CAD処理部1による処理画像情
報、入力装置2による入力に関連した情報等の必要な情
報を表示する。出力装置4は、プロッタまたはプリンタ
等を含み、CAD処理部1による処理画像情報をハード
コピーとして出力する。記憶装置5は、例えばハードデ
ィスク装置のようなディスク装置等からなり、CAD処
理部1と関連して動作して、処理前、処理後および処理
中の画像情報等のデータを格納する。
The CAD system shown in FIG. 1 includes a CAD processing section 1, an input device 2, a display 3, an output device 4, and a storage device 5. CAD processing unit 1 includes a CPU
(Central processing unit) and C including graphic data storage processing
Execute AD processing. The input device 2 includes an operation input device such as a keyboard and a pointing device such as a mouse, and inputs operation input information by an operator and other external information necessary for CAD processing to the CAD processing unit 1.
The display 3 displays necessary information such as image information processed by the CAD processing unit 1 and information related to input by the input device 2. The output device 4 includes a plotter, a printer, or the like, and outputs image data processed by the CAD processing unit 1 as a hard copy. The storage device 5 includes a disk device such as a hard disk device, and operates in association with the CAD processing unit 1 to store data such as image information before, after, and during processing.

【0014】CAD処理部1は、この場合、通常のCA
D処理を実行するための構成に加えて、本発明実施例に
係る図形データ格納処理を実行するためのデータ判別部
11、再格納処理部12およびメモリ13を含んでい
る。データ判別部11は、入力装置2を介して新たに入
力される新図形要素が以前に入力されメモリ13に格納
されている図形データの図形要素のいずれかと共通の基
本図形上の異なる部分からなっているか否かを判別す
る。再格納処理部12は、前記新図形要素がメモリ13
に以前に格納されている図形データの図形要素のいずれ
かと共通の図形上の異なる部分からなっているとデータ
判別部11で判定された場合は、その新図形要素および
それに対応する以前に格納されている図形データの図形
要素を、前記共通の基本図形を表現する情報とその共通
の基本図形上の有効範囲を示す情報との組み合わせに基
づく図形データの形としてメモリ13に格納し直す。メ
モリ13は、データ判別部11および再格納処理部12
の処理に関連する情報を記憶する。このメモリ13の記
憶内容は必要に応じて記憶装置5に転送される。また、
このメモリ13の記憶内容は記憶装置5から転送された
データである場合もある。このメモリ13は、CAD処
理部1における通常のCAD処理において使用されるメ
モリを共用してもよい。
In this case, the CAD processing unit 1
In addition to the configuration for performing the D processing, the image processing apparatus includes a data determination unit 11, a re-storage processing unit 12, and a memory 13 for performing the graphic data storage processing according to the embodiment of the present invention. The data discriminating unit 11 is constituted by a different part on a basic graphic in which a new graphic element newly input via the input device 2 is shared with one of graphic elements of graphic data previously input and stored in the memory 13. It is determined whether or not there is. The re-storage processing unit 12 stores the new graphic element in the memory 13
If the data discriminating unit 11 determines that the data includes a different part on the common graphic with any of the graphic elements of the graphic data stored previously, the new graphic element and the previously stored graphic corresponding thereto are stored. The graphic element of the graphic data is stored in the memory 13 again as graphic data based on a combination of the information representing the common basic graphic and the information indicating the effective range on the common basic graphic. The memory 13 includes a data determination unit 11 and a re-storage processing unit 12
Is stored. The contents stored in the memory 13 are transferred to the storage device 5 as needed. Also,
The contents stored in the memory 13 may be data transferred from the storage device 5. The memory 13 may share a memory used in normal CAD processing in the CAD processing unit 1.

【0015】次に、このような構成のCADシステムに
おける特に図形データ格納に係る動作を、図2に示すフ
ローチャートを参照して、詳細に説明する。CAD処理
の実行が開始されると、まず、オペレータにより入力装
置2を介して新たな図形要素(説明の便宜上これを「新
図形要素」と称する)が入力される(ステップS1)。
次に、ステップS1で入力された新図形要素は、以前に
入力されメモリ13に格納されている図形データの図形
要素(説明の便宜上これを「格納図形要素」と称する)
と共通の基本図形上の異なる部分からなっているか否か
がデータ判別部11で判別される(ステップS2)。ス
テップS2で、新図形要素が格納図形要素のいずれかと
共通の基本図形上に存在するとデータ判別部11で判定
された場合は、再格納処理部12が、その新図形要素お
よびそれに対応する格納図形要素を、前記共通の基本図
形を表現する情報とその共通の基本図形上の有効範囲を
示す情報との組み合わせに基づく図形データの形として
メモリ13に格納し直す(ステップS3)。ステップS
2で、新図形要素が格納図形要素のいずれとも共通の基
本図形上にないと判断された場合には、通常の図形要素
として通常の図形データの形でメモリ13に格納される
(ステップS4)。これら、ステップS3またはS4の
処理の後、さらに図形要素を入力するか否かが確認され
(ステップS5)、さらに図形要素を入力する場合はス
テップ1に戻り、さらに図形要素を入力しない場合は処
理を終了して次の処理に移行する。次にこのような処理
における図形データの格納について具体的に説明する。
線分図形の場合、図3に示すような線分A00 が既に
入力され、あるいは記憶装置5から転送されて、メモリ
13に格納されているとする。この状態で、ステップS
1で図示線分C00 を入力すると、線分C00 が既
に格納されている図形データのいずれかと同一図形上に
あるか否かがステップS2で判別される。線分CDは、
線分A00 と共通の直線SL0上にあるので、処理は
ステップS3に進み、線分A00 とC00 は、共通
の直線SL0を示す情報とその直線SL0中の線分A0
0 とC00 にそれぞれ相当する範囲を有効、つまり
アクティブとすることを示す情報との組み合わせとして
格納され、線分A00 のもとの図形データは削除され
る。したがって、線分A00 とC00 は、共通の直
線SL0上のそれぞれの範囲をアクティブとする情報と
して関連付けられて格納される。同様に円弧図形の場
合、図4に示すような円弧E00 がステップS1で入
力されると、円弧E00 が既に格納されている図形デ
ータのいずれかと同一図形上にあるか否かがステップS
2で判別される。この場合、既に格納されている図形デ
ータはないとすると、円弧E00 は、ステップS4で
通常の円弧データとして格納される。さらに円弧G0
0 を入力する場合、ステップS5からステップS1に戻
り、円弧G00 が入力される。円弧G00 は円弧E
00 と共通の円CC0上にあるので、処理はステップ
S3に進み、円弧E00 とG00は、共通の円CC
0を示す情報とその円CC0中の円弧E00 とG0
0 にそれぞれ相当する範囲を有効、つまりアクティブと
することを示す情報との組み合わせとして格納され、円
弧E00 のもとの図形データは削除される。さらに円
弧I00 を入力する場合、ステップS5からステップ
S1に戻り、円弧I00 が入力される。円弧I00
は円弧E00 およびG00 と共通の円CC0上にあ
るので、処理はステップS3に進み、円弧I00 とE
00 とG00は、共通の円CC0を示す情報とその
円CC0中の円弧I00 とE00 とG00 にそれ
ぞれ相当する範囲を有効、つまりアクティブとすること
を示す情報との組み合わせとして格納される。この場
合、円弧E00 およびG00 のもとの図形データは
削除または変更される。
Next, the operation related to the storage of graphic data in the CAD system having such a configuration will be described in detail with reference to the flowchart shown in FIG. When the execution of the CAD processing is started, first, a new graphic element (this is referred to as a “new graphic element” for convenience of explanation) is input by the operator via the input device 2 (step S1).
Next, the new graphic element input in step S1 is the graphic element of the graphic data previously input and stored in the memory 13 (this is called "storage graphic element" for convenience of explanation).
The data discriminating unit 11 discriminates whether or not it consists of different parts on the same basic graphic (step S2). In step S2, if the data discriminating unit 11 determines that the new graphic element exists on the common basic graphic with any of the stored graphic elements, the re-storage processing unit 12 sets the new graphic element and the corresponding stored graphic The elements are stored back in the memory 13 as graphic data based on a combination of the information representing the common basic graphic and the information indicating the effective range on the common basic graphic (step S3). Step S
If it is determined in step 2 that the new graphic element is not on the common basic graphic with any of the stored graphic elements, it is stored in the memory 13 as normal graphic data in the form of normal graphic data (step S4). . After the processing in step S3 or S4, it is confirmed whether or not a graphic element is to be further input (step S5). If a further graphic element is to be input, the process returns to step 1; Is completed and the process proceeds to the next process. Next, the storage of graphic data in such processing will be specifically described.
In the case of a line segment figure, it is assumed that a line segment A 0 B 0 as shown in FIG. 3 has already been input or transferred from the storage device 5 and stored in the memory 13. In this state, step S
When the illustrated line segment C 0 D 0 is input in step 1, it is determined in step S 2 whether the line segment C 0 D 0 is on the same graphic as any of the already stored graphic data. The line segment CD is
Since it is on the straight line SL0 common to the line segment A 0 B 0 , the process proceeds to step S3, where the line segments A 0 B 0 and C 0 D 0 are information indicating the common line SL0 and the line in the straight line SL0. Minute A 0
The ranges corresponding to B 0 and C 0 D 0 are stored as a combination with information indicating that the ranges are valid, that is, active, and the graphic data under the line segment A 0 B 0 is deleted. Therefore, the line segments A 0 B 0 and C 0 D 0 are stored in association with each other as information for activating each range on the common straight line SL0. Similarly, in the case of an arc graphic, when an arc E 0 F 0 as shown in FIG. 4 is input in step S1, it is determined whether the arc E 0 F 0 is on the same graphic as any of the already stored graphic data. Is the step S
2 is determined. In this case, if there is no graphic data already stored, the arc E 0 F 0 is stored as normal arc data in step S4. Furthermore, the arc G 0 H
When 0 is input, the process returns from step S5 to step S1, and the arc G 0 H 0 is input. Arc G 0 H 0 is arc E
Since it is on the common circle CC0 with 0 F 0 , the process proceeds to step S3, where the arcs E 0 F 0 and G 0 H 0 form the common circle CC 0.
0 and the arcs E 0 F 0 and G 0 H in the circle CC0
The range corresponding to 0 is stored as a combination with information indicating that the range is valid, that is, active, and the graphic data under the arc E 0 F 0 is deleted. When further inputting the arc I 0 J 0 , the process returns from step S5 to step S1, and the arc I 0 J 0 is input. Arc I 0 J 0
Is on the common circle CC0 with the arcs E 0 F 0 and G 0 H 0 , the process proceeds to step S3, where the arcs I 0 J 0 and E
0 F 0 and G 0 H 0 are valid, that is, active, that is, information indicating the common circle CC 0 and ranges respectively corresponding to the arcs I 0 J 0 , E 0 F 0 and G 0 H 0 in the circle CC 0. Is stored as a combination with the information indicating the fact. In this case, the graphic data under the arcs E 0 F 0 and G 0 H 0 is deleted or changed.

【0016】このようにして図形データが格納されてい
れば、次のようにして図形データを修正することが可能
となる。この場合、CADシステムでは、共通の図形上
にある複数の図形データから所望に応じて複数の図形デ
ータを予め選択してグループ化し、前記図形データの共
通の図形情報の属性パラメータを変更修正することによ
って、グループ化した複数の図形データを一括して修正
することができる。
If the graphic data is stored as described above, the graphic data can be corrected as follows. In this case, in the CAD system, a plurality of graphic data items are selected in advance from a plurality of graphic data items on a common graphic and grouped as required, and the attribute parameters of the common graphic information of the graphic data are changed and corrected. Thus, a plurality of grouped graphic data can be collectively corrected.

【0017】すなわちCADシステムのCAD処理部1
は、図形修正処理を含むCAD処理を実行する。CAD
処理部1はグループ化機能およびグループ編集機能を有
している。グループ化機能は、CAD処理部1で取扱い
中の画像情報に含まれる図形データ中で、共通の図形上
に存在する複数の図形データの少なくとも一部により構
成されるグループを定義する機能である。この場合、C
AD処理部1で取扱い中でディスプレイ3に表示されて
いる画像情報に含まれる図形データより、共通の図形上
に存在する複数の図形データのうちの所望の図形データ
を入力装置2を介してオペレータが指示することにより
選択的にグループが定義される。グループ編集機能は、
グループとして定義されたグループの共通図形の属性パ
ラメータを変更することにより、当該グループの図形デ
ータをその属性パラメータについて共通に変更修正する
機能である。
That is, the CAD processing unit 1 of the CAD system
Executes CAD processing including graphic correction processing. CAD
The processing unit 1 has a grouping function and a group editing function. The grouping function is a function for defining a group constituted by at least a part of a plurality of graphic data existing on a common graphic in graphic data included in image information being handled by the CAD processing unit 1. In this case, C
From the graphic data included in the image information displayed on the display 3 being handled by the AD processing unit 1, desired graphic data among a plurality of graphic data existing on a common graphic is input by the operator via the input device 2. Indicate that a group is selectively defined. The group editing function
By changing the attribute parameter of the common graphic of the group defined as the group, this function is to change and correct the graphic data of the group in common with respect to the attribute parameter.

【0018】次に、このような図形修正に係る動作を、
図5に示すフローチャートを参照して、詳細に説明す
る。図形修正処理の実行が開始されると、まず、「グル
ープ化モード」を使用するか否かが判定され(ステップ
S11)、「グループ化モード」を使用しない場合は、
「通常モード」処理(ステップS12)に移行し、「グ
ループ化モード」の図形修正処理を伴わない従来通りの
通常CAD処理が行われる。「グループ化モード」を使
用するか否かは、予めオペレータにより入力される処理
モード情報により設定されている。
Next, the operation relating to such a figure correction will be described.
This will be described in detail with reference to the flowchart shown in FIG. When the execution of the graphic correction process is started, it is first determined whether or not to use the “grouping mode” (step S11).
The process shifts to the “normal mode” process (step S12), and the usual normal CAD process without the graphic correction process in the “grouping mode” is performed. Whether to use the “grouping mode” is set in advance by processing mode information input by the operator.

【0019】ステップS11で、「グループ化モード」
を使用すると判定されると、図形要素グループ化設定処
理が開始されて、ディスプレイ3に表示されている図形
データからグループ化しようとする複数の図形要素が選
択され(ステップS13)、選択された図形要素をグル
ープとして認識してよいかの確認をするために、図形要
素のグループを他の部分と異なる表示属性(例えば、他
の部分と異なる表示色、あるいは他の部分と異なる表示
輝度等)により表示させる(ステップS14)。選択さ
れた図形要素をグループとして認識設定するか否かにつ
いては、オペレータにより入力装置2を介して情報が入
力されてから、その入力内容、すなわちグループ認識の
是非が判定される(ステップS15)。ステップS15
で、選択されている図形要素をグループとして認識する
と判定された場合は、グループ認識設定処理が行われる
(ステップS16)。このステップS16では、グルー
プを構成する図形要素の変更等を行うことも可能であ
る。次にステップS16で設定されたグループの図形要
素が共通の図形上に存在するか否かが判定され(ステッ
プS17)、ステップS16で設定されたグループの図
形要素が共通の図形上に存在していない場合は、同一グ
ループ化はできない旨のエラー表示がされ(ステップS
18)、ステップS15に戻る。ステップS16で設定
されたグループの図形要素が共通の図形上に存在してい
る場合は、グループ化を完了した旨がディスプレイ3に
表示される。以上で、図形要素グループ化設定処理が完
了する。
In step S11, "grouping mode"
Is determined to be used, a graphic element grouping setting process is started, and a plurality of graphic elements to be grouped are selected from the graphic data displayed on the display 3 (step S13), and the selected graphic In order to confirm whether an element can be recognized as a group, a group of graphic elements is represented by a display attribute different from other parts (for example, a display color different from other parts or a display luminance different from other parts). It is displayed (step S14). As to whether or not the selected graphic element is to be recognized and set as a group, information is input through the input device 2 by the operator, and then the input content, that is, whether or not the group is recognized is determined (step S15). Step S15
If it is determined that the selected graphic element is recognized as a group, a group recognition setting process is performed (step S16). In this step S16, it is also possible to change the graphic elements constituting the group. Next, it is determined whether the graphic element of the group set in step S16 exists on the common graphic (step S17), and the graphic element of the group set in step S16 exists on the common graphic. If not, an error message is displayed indicating that grouping cannot be performed (step S
18), and return to step S15. If the graphic elements of the group set in step S16 exist on the common graphic, the display 3 indicates that the grouping has been completed. Thus, the graphic element grouping setting processing is completed.

【0020】次に、図形要素グループ編集処理に移り、
図形要素編集を行うか否かについて入力装置2を介して
オペレータによる入力が行われてから、その入力内容が
判定される(ステップS20)。上述のステップS15
で、選択図形要素をグループとして認識しないと判定さ
れた場合は、処理はこのステップS20に移る。ステッ
プS20で、図形要素編集を行うと判定された場合は、
オペレータが入力装置2を介してグループの図形要素の
共通図形の属性パラメータの所望の一部または全部を共
通に変更設定する(ステップS21)。ステップS21
でグループの図形要素の共通図形の属性パラメータの一
部または全部が共通に変更設定されると、それに従って
同一グループの図形要素が共通に変更される(ステップ
S22)。そして、図形要素グループ編集処理を終了
し、システムは次の処理へ移行する。ステップS20
で、図形要素編集をしないと判定された場合は、その時
点で直ちに図形要素グループ編集処理を中止し、システ
ムは次の処理へ移行する。
Next, the process proceeds to a graphic element group editing process.
After input by the operator via the input device 2 as to whether or not to perform graphic element editing, the input content is determined (step S20). Step S15 described above
If it is determined that the selected graphic element is not recognized as a group, the process proceeds to step S20. If it is determined in step S20 that graphic element editing is to be performed,
The operator commonly changes and sets a desired part or all of the attribute parameters of the common graphic of the graphic elements of the group via the input device 2 (step S21). Step S21
When some or all of the attribute parameters of the common graphic of the group of graphic elements are changed and set in common, the graphic elements of the same group are commonly changed accordingly (step S22). Then, the graphic element group editing processing ends, and the system proceeds to the next processing. Step S20
If it is determined that the graphic element editing is not performed, the graphic element group editing processing is immediately stopped at that point, and the system proceeds to the next processing.

【0021】次に、上述の動作を具体的な例について説
明する。例えば、対象図形が線分である場合、図6に示
すように、同一の直線SL1上に3個の線分A11
11 、およびE11 がある場合を考える。 (1) オペレータは、線分A11 およびC11 を同一
グループにするために、ステップS13において、線分
11 およびC11 を同一グループとして選択す
る。 (2) ステップS15およびS16において線分A11
およびC11 を同一グループとして設定することが確
認されると、システムは、ステップS17で、線分A1
1 およびC11 の図形データをそれぞれ確認し、共
通の直線SL1上に存在することを認識すれば、同一の
グループとしてグループ化することが可能であると判断
し、グループ化の完了を表示する。 このとき、共通の図形上に存在しなければ、ステップS
18において、それらの図形データを“同一グループに
することができない”旨のエラー表示がされる。
Next, a specific example of the above operation will be described. For example, if the target graphic is a line segment, as shown in FIG. 6, three line segments A 1 B 1 ,
Consider the case where there are C 1 D 1 and E 1 F 1 . (1) In step S13, the operator selects the line segments A 1 B 1 and C 1 D 1 as the same group in order to make the line segments A 1 B 1 and C 1 D 1 into the same group. (2) In steps S15 and S16, the line segment A 1 B 1
And if it is confirmed that setting the C 1 D 1 as the same group, the system, at step S17, the line segment A 1
The graphic data of B 1 and C 1 D 1 are respectively confirmed, and if it is recognized that they exist on the common straight line SL1, it is determined that they can be grouped as the same group, and the completion of the grouping is determined. indicate. At this time, if they do not exist on the common figure, step S
At 18, an error message is displayed to the effect that these graphic data cannot be placed in the same group.

【0022】(3) 同一グループとしてのグループ化が完
了した時点では、線分A11 およびC11 は、共通
の図形上に存在する同一のグループとしてシステムに認
識設定されている。 以上により、図形要素グループ化設定処理が終了する。 (4) そして、線分A11 およびC11 を点Oを中心
として角度θだけ回転移動させたいときは、上述のよう
にしてグループ化された線分A11 およびC11
共通の直線SL1の属性パラメータをオペレータが修正
することにより、線分A11 およびC11 を一度に
変更修正することができる。 例えば、グループ修正として、線分A11 を選択し
て、属性パラメータとしての角度θを修正すれば、同一
グループに属する線分C11 も同時に修正され、図6
に示すように直線SL1′上に移動して線分A1 ′B
1 ′およびC1 ′D1 ′となる。このとき、線分A1
1 およびC11 と同一の直線SL1上に存在する線分
11 は、同一のグループとしてグループ化して選択
していないため、グループ編集の対象外となり、線分E
11 は移動しない。この場合、必要に応じて線分EF
のデータは変更あるいは再格納される。
(3) When the grouping as the same group is completed, the line segments A 1 B 1 and C 1 D 1 are recognized and set in the system as the same group existing on the common graphic. Thus, the graphic element grouping setting processing ends. (4) When it is desired to rotate the line segments A 1 B 1 and C 1 D 1 around the point O by the angle θ, the line segments A 1 B 1 and C 1 the attribute parameter of common straight line SL1 of D 1 by an operator to correct, it is possible to change modifying the line a 1 B 1 and C 1 D 1 at a time. For example, if the line segment A 1 B 1 is selected as a group correction and the angle θ as the attribute parameter is corrected, the line segments C 1 D 1 belonging to the same group are also corrected at the same time.
'Move on segment A 1' linearly SL1 as shown in B
The 1 'and C 1' D 1 '. At this time, the line segment A 1 B
The line segments E 1 F 1 existing on the same straight line SL1 as the line segments 1 and C 1 D 1 are not grouped and selected as the same group.
1 F 1 does not move. In this case, if necessary, the line segment EF
Is changed or re-stored.

【0023】ここで、上述の属性パラメータの一例につ
いて説明する。例えば、図7に示すような線分G11
は、2点G1 およびH1 を通る直線SL2上に存在す
る。このような直線SL2の属性パラメータは、例えば
直線SL2上の1点の座標および直線SL2の角度基準
に対する角度θ等のパラメータである。また、図8に示
すような円弧I11 は、2点I1 およびJ1 を通り、
中心をOとする円CC1上に存在する。円CC1の属性
パラメータは、例えば中心Oの座標および円CC1の半
径r等のパラメータである。これらの属性パラメータの
変更によって、線分図形では、その移動(X、Y座標変
更)、回転(θ変更)が可能であり、円弧図形では移動
(中心座標変更)、半径の変更(r変更)が可能であ
る。
Here, an example of the above attribute parameter will be described. For example, a line segment G 1 H 1 as shown in FIG.
Exists on a straight line SL2 passing through the two points G 1 and H 1 . Such attribute parameters of the straight line SL2 are, for example, parameters such as the coordinates of one point on the straight line SL2 and the angle θ of the straight line SL2 with respect to the angle reference. An arc I 1 J 1 as shown in FIG. 8 passes through two points I 1 and J 1 ,
It exists on a circle CC1 whose center is O. The attribute parameters of the circle CC1 are, for example, parameters such as the coordinates of the center O and the radius r of the circle CC1. By changing these attribute parameters, it is possible to move (change X and Y coordinates) and rotate (change θ) a line segment figure, and to move (change center coordinates) and change a radius (change r) for an arc figure. Is possible.

【0024】次に、円弧図形の変更の場合について具体
的に説明する。例えば、図9に示す円CC2上の円弧M
NおよびPQが同一のグループにグループ化されたとす
る。この場合、円弧図形である図形要素MNについて、
円CC2の中心OのXY座標を点O′へ移動し、円の中
心に対して角度θだけ回転移動し、円CC2の半径Rを
半径R′へ変更すると、一度に図示のような円CC2′
上の円弧MN′およびPQ′が得られる。上述のよう
に、共通の図形上の複数の図形データをグループ化させ
ることにより、属性パラメータを共通に変更させる一度
の操作で同一グループにグループ化された図形要素を一
括して編集することができる。もちろん、共通の図形上
の複数の図形データの一部を選択的にグループ化する代
わりに、共通の図形上の複数の図形データを全て同一の
グループとしてグループ化するようにしてもよい。
Next, the case of changing the arc figure will be specifically described. For example, an arc M on a circle CC2 shown in FIG.
Suppose N and PQ are grouped into the same group. In this case, for the graphic element MN which is an arc graphic,
When the XY coordinate of the center O of the circle CC2 is moved to the point O ', the circle is rotated by an angle θ with respect to the center of the circle, and the radius R of the circle CC2 is changed to the radius R', the circle CC2 shown in FIG. ′
The upper arcs MN 'and PQ' are obtained. As described above, by grouping a plurality of graphic data on a common graphic, graphic elements grouped into the same group can be edited collectively by a single operation for changing attribute parameters in common. . Of course, instead of selectively grouping a part of a plurality of pieces of graphic data on a common figure, a plurality of pieces of graphic data on a common figure may all be grouped as the same group.

【0025】図2は、本発明の第2の実施例に係る図形
データ格納装置を組み込んだCADシステムの構成を示
している。本実施例のCADシステムでは、基本図形上
の部分からなる図形要素を表現する図形データを入力す
る際に、格納しようとする図形要素を含む基本図形を入
力し、この基本図形上の特定の部分を有効範囲として指
定し、前記基本図形を示す情報とその基本図形上の有効
範囲を示す情報との組み合わせに基づく図形データを格
納することによって、複数の図形要素を共通の基本図形
に情報により一括して取り扱うことを容易にしている。
FIG. 2 shows the configuration of a CAD system incorporating a graphic data storage device according to a second embodiment of the present invention. In the CAD system of this embodiment, when inputting graphic data representing a graphic element composed of a part on the basic graphic, a basic graphic including the graphic element to be stored is input, and a specific part on the basic graphic is input. Is designated as an effective range, and the graphic data based on a combination of the information indicating the basic figure and the information indicating the effective range on the basic figure is stored. It is easy to handle.

【0026】図10に示すCADシステムは、入力装置
2、ディスプレイ3、出力装置4、記憶装置5およびC
AD処理部6を備えている。CAD処理部6は、CPU
(中央処理装置)を含み、図形データ格納処理を含むC
AD処理を実行する。入力装置2、ディスプレイ3、出
力装置4および記憶装置5は図1の場合と同様である。
CAD処理部6は、この場合、通常のCAD処理を実行
するための構成に加えて、本発明実施例に係る図形デー
タ格納処理を実行するための基本図形入力部6、範囲指
定部62、格納処理部63およびメモリ64を含んでい
る。基本図形入力部61は、新たに入力しようとする図
形要素の基本図形を入力装置2を介して入力する。範囲
指定部62は、基本図形入力部61で入力された基本図
形上の所望の1個以上の範囲を入力装置2を介して指定
入力する。格納処理部63は、前記共通の基本図形を表
現する情報とその共通の基本図形上の有効範囲を示す情
報との組み合わせに基づく図形データの形としてメモリ
64に格納する。メモリ64は、基本図形入力部61お
よび範囲指定部62の処理に関連する情報を記憶する。
このメモリ64の記憶内容は必要に応じて記憶装置5に
転送される。また、このメモリ64の記憶内容は記憶装
置5から転送されたデータである場合もある。このメモ
リ64は、CAD処理部6における通常のCAD処理に
おいて使用されるメモリを共用してもよい。
The CAD system shown in FIG. 10 has an input device 2, a display 3, an output device 4, a storage device 5 and a C
An AD processing unit 6 is provided. The CAD processing unit 6 includes a CPU
(Central processing unit) and C including graphic data storage processing
Execute AD processing. The input device 2, the display 3, the output device 4, and the storage device 5 are the same as those in FIG.
In this case, in addition to the configuration for executing the normal CAD processing, the CAD processing section 6 includes a basic graphic input section 6, a range designating section 62, and a storage section for executing the graphic data storage processing according to the embodiment of the present invention. It includes a processing unit 63 and a memory 64. The basic figure input unit 61 inputs, via the input device 2, a basic figure of a graphic element to be newly input. The range designating section 62 designates and inputs one or more desired ranges on the basic graphic input by the basic graphic inputting section 61 via the input device 2. The storage processing unit 63 stores in the memory 64 a form of graphic data based on a combination of the information representing the common basic graphic and the information indicating the effective range on the common basic graphic. The memory 64 stores information related to the processing of the basic graphic input unit 61 and the range designating unit 62.
The contents stored in the memory 64 are transferred to the storage device 5 as needed. The contents stored in the memory 64 may be data transferred from the storage device 5 in some cases. The memory 64 may share a memory used in normal CAD processing in the CAD processing unit 6.

【0027】次に、このような構成のCADシステムに
おける特に図形データ格納に係る動作を、図11に示す
フローチャートを参照して、詳細に説明する。CAD処
理の実行が開始されると、まず、オペレータにより入力
装置2を介して基本図形が入力される(ステップS3
1)。次に、オペレータにより入力装置2を介して前記
基本図形上の指定範囲が入力される(ステップS3
2)。ステップS32で入力された範囲以外にさらに入
力すべき範囲があるか否かが判定され(ステップS3
3)、ステップS32で入力された範囲以外にさらに入
力すべき範囲がある場合は、ステップS32に戻り、さ
らに入力すべき範囲がない場合は、格納処理部63が、
前記共通の基本図形を表現する情報とその共通の基本図
形上の有効範囲を示す情報との組み合わせに基づく図形
データの形としてメモリ64に格納する(ステップS3
4)。
Next, the operation of the CAD system having such a configuration, particularly for storing graphic data, will be described in detail with reference to the flowchart shown in FIG. When the execution of the CAD processing is started, first, a basic figure is input by the operator via the input device 2 (step S3).
1). Next, a designated range on the basic figure is input by the operator via the input device 2 (step S3).
2). It is determined whether there is a range to be further input other than the range input in step S32 (step S3).
3) If there is a range to be further input other than the range input in step S32, the process returns to step S32. If there is no further range to be input, the storage processing unit 63
It is stored in the memory 64 as a form of graphic data based on a combination of the information expressing the common basic graphic and the information indicating the effective range on the common basic graphic (step S3).
4).

【0028】次にこのような処理における図形データの
格納について具体的に説明する。線分図形の場合、ステ
ップS31で、図12に示すような直線SL3を入力
し、ステップS32で図示のように直線SL3上に線分
22 の範囲をアクティブ範囲として指定し、ステッ
プS33から再びステップS32に戻って図示のように
直線SL3上に線分C22の範囲を有効とすべくこれ
らをアクティブ範囲として指定する。線分A22 とC
22 は、共通の直線SL3を示す情報とその直線SL
3中の線分A22 とC22 にそれぞれ相当する範囲
をアクティブとすることを示す情報との組み合わせとし
て格納される。したがって、線分A22 とC22
は、共通の直線SL3上のそれぞれの範囲をアクティブ
とする情報として関連付けられて格納される。この場
合、直線SL3上の非アクティブ部をアクティブ範囲と
は異なる色および線種の少なくとも一方で表示するよう
にするとわかりやすい。そこで、必要に応じて、直線S
L3上の非アクティブ部の表示色および表示線種の少な
くとも一方を任意に指定することができるようにする。
Next, the storage of graphic data in such processing will be specifically described. In the case of a line segment figure, in step S31, a straight line SL3 as shown in FIG. 12 is inputted, and in step S32, the range of the line segment A 2 B 2 is designated as an active range on the straight line SL3 as shown in FIG. Then, the process returns to step S32 to designate the range of the line segment C 2 D 2 on the straight line SL3 as shown in FIG. Line segment A 2 B 2 and C
2 D 2 is the information indicating the common straight line SL3 and the straight line SL
3 are stored as a combination with information indicating that ranges corresponding to the line segments A 2 B 2 and C 2 D 2 are active. Therefore, the line segments A 2 B 2 and C 2 D 2
Are associated and stored as information that activates each range on the common straight line SL3. In this case, it is easy to understand that the inactive portion on the straight line SL3 is displayed in at least one of a color and a line type different from the active range. Therefore, if necessary, the straight line S
At least one of the display color and the display line type of the inactive portion on L3 can be arbitrarily specified.

【0029】円弧図形の場合は、図13に示すような円
CC3を入力し、さらにこの円CC3上の円弧E2
2 、G22 およびI22 に対応する部分をアクティ
ブ範囲として指定する。その結果、円弧E22 とG2
2 とI22 とは、共通の円CC3を示す情報とその
円CC3中の円弧E22 とG22 とI22 とにそ
れぞれ相当する範囲をアクティブとすることを示す情報
との組み合わせとして格納される。この場合も、円CC
3上の非アクティブ部をアクティブ範囲とは異なる色お
よび線種の少なくとも一方で表示するようにするとわか
りやすい。そこで、必要に応じて、円CC3上の非アク
ティブ部の表示色および表示線種の少なくとも一方を任
意に指定することができるようにする。このようにして
図形データが格納されていれば、上述と同様にして図形
データを容易に修正することが可能となる。
In the case of an arc figure, a circle CC3 as shown in FIG. 13 is input, and an arc E 2 F on this circle CC3 is further inputted.
2 , the part corresponding to G 2 H 2 and I 2 J 2 is designated as the active range. As a result, the arcs E 2 F 2 and G 2
That The H 2 and I 2 J 2, and activates the range corresponding respectively to the information indicating the common circle CC3 and the arc E 2 F 2 and G 2 H 2 of the circle in the CC3 and I 2 J 2 It is stored as a combination with the indicated information. Also in this case, the yen CC
It is easy to understand that the non-active portion on 3 is displayed in at least one of a color and a line type different from the active range. Therefore, if necessary, at least one of the display color and the display line type of the inactive portion on the circle CC3 can be arbitrarily designated. If the graphic data is stored in this manner, the graphic data can be easily corrected in the same manner as described above.

【0030】[0030]

【発明の効果】以上述べたように、本発明によれば、図
形を表現する図形データを格納するにあたり、新たに形
成される新図形要素が以前に格納されている図形データ
の図形要素のいずれかと共通の基本図形上の異なる部分
からなる場合には、その新図形要素およびそれに対応す
る以前に格納されている図形データの図形要素を、前記
共通の基本図形を表現する情報とその共通の基本図形上
の有効範囲を示す情報との組み合わせに基づく図形デー
タとして格納し直すか、あるいは基本図形上の部分から
なる図形要素を表現する図形データを格納するにあた
り、格納しようとする図形要素を含む基本図形を入力
し、この基本図形上の特定の部分を有効範囲として指定
して、前記基本図形を示す情報とその基本図形上の有効
範囲を示す情報との組み合わせに基づく図形データを格
納するようにして、共通の図形の一部からなる複数の図
形要素の図形データを共通にしかも容易に変更修正する
ことを可能とする図形データ格納方法および装置を提供
することができる。
As described above, according to the present invention, when storing graphic data representing a graphic, a new graphic element to be newly formed is selected from the graphic elements of the previously stored graphic data. In the case where the new graphic element and the graphic element of the previously stored graphic data corresponding to the new graphic element are different from each other, the new graphic element and the graphic element of the previously stored graphic data are replaced with the information expressing the common basic graphic and the common basic graphic. When storing graphic data based on a combination with information indicating the effective range on a graphic, or storing graphic data representing a graphic element consisting of parts on the basic graphic, the basic data including the graphic element to be stored A figure is input, a specific part on the basic figure is designated as an effective range, and a set of information indicating the basic figure and information indicating an effective range on the basic figure Provided is a graphic data storage method and apparatus which store graphic data based on matching and enable common and easy change and correction of graphic data of a plurality of graphic elements which are part of a common graphic. be able to.

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

【図1】 本発明の第1の実施例に係る図形データ格納
装置を組み込んだCADシステムの構成を説明するブロ
ック図である。
FIG. 1 is a block diagram illustrating a configuration of a CAD system incorporating a graphic data storage device according to a first embodiment of the present invention.

【図2】 図1の実施例の動作を説明するためのフロー
チャートである。
FIG. 2 is a flowchart for explaining the operation of the embodiment of FIG. 1;

【図3】 図1の実施例の動作を説明するための模式的
説明図である。
FIG. 3 is a schematic explanatory diagram for explaining the operation of the embodiment of FIG. 1;

【図4】 図1の実施例の動作を説明するための模式的
説明図である。
FIG. 4 is a schematic explanatory diagram for explaining the operation of the embodiment of FIG. 1;

【図5】 図1の実施例により格納された図形データを
有効に利用し得る図形データ修正方法を説明するための
フローチャートである。
FIG. 5 is a flowchart for explaining a graphic data correction method that can effectively use stored graphic data according to the embodiment of FIG. 1;

【図6】 図5のフローチャートによる動作を説明する
ための模式的説明図である。
FIG. 6 is a schematic explanatory diagram for explaining an operation according to the flowchart of FIG. 5;

【図7】 図5のフローチャートによる動作を説明する
ための模式的説明図である。
FIG. 7 is a schematic explanatory diagram for explaining an operation according to the flowchart of FIG. 5;

【図8】 図5のフローチャートによる動作を説明する
ための模式的説明図である。
FIG. 8 is a schematic explanatory diagram for explaining an operation according to the flowchart of FIG. 5;

【図9】 図5のフローチャートによる動作を説明する
ための模式的説明図である。
FIG. 9 is a schematic explanatory diagram for explaining an operation according to the flowchart of FIG. 5;

【図10】 本発明の第2の実施例に係る図形データ格
納装置を組み込んだCADシステムの構成を説明するブ
ロック図である。
FIG. 10 is a block diagram illustrating a configuration of a CAD system incorporating a graphic data storage device according to a second embodiment of the present invention.

【図11】 図10の実施例の動作を説明するためのフ
ローチャートである。
FIG. 11 is a flowchart for explaining the operation of the embodiment in FIG. 10;

【図12】 図10の実施例の動作を説明するための模
式的説明図である。
FIG. 12 is a schematic explanatory diagram for explaining the operation of the embodiment in FIG. 10;

【図13】 図10の実施例の動作を説明するための模
式的説明図である。
FIG. 13 is a schematic explanatory diagram for explaining the operation of the embodiment in FIG. 10;

【図14】 従来のCADシステムにおける図形格納お
よび修正処理を説明するための図である。
FIG. 14 is a diagram for explaining graphic storage and correction processing in a conventional CAD system.

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

1,10…CAD処理部、2…入力装置、3…ディスプ
レイ、4…出力装置、5…記憶装置、11…データ判別
部、12…再格納処理部、13,64…メモリ、61…
基本図形入力部、62…範囲指定部、63…格納処理
部。
1, 10 CAD processing unit, 2 input device, 3 display, 4 output device, 5 storage device, 11 data determination unit, 12 re-storage processing unit, 13, 64 memory, 61
Basic figure input unit, 62: range designating unit, 63: storage processing unit.

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 図形を表現する図形データを格納するに
あたり、 新たに形成される新図形要素が以前に格納されている図
形データの図形要素のいずれかと共通の基本図形上の異
なる部分からなるか否かを判別するデータ判別ステップ
と、 このステップで新図形要素が以前に格納されている図形
データの図形要素のいずれかと共通の図形上の異なる部
分からなると判定された場合は、その新図形要素および
それに対応する以前に格納されている図形データの図形
要素を、前記共通の基本図形を表現する情報とその共通
の基本図形上の有効範囲を示す情報との組み合わせに基
づく図形データとして格納し直す再格納ステップとを有
することを特徴とする図形データ格納方法。
When storing graphic data representing a graphic, a newly formed new graphic element is composed of a different part on a basic graphic common to any of graphic elements of previously stored graphic data. A data discriminating step of discriminating whether the new graphic element is composed of a different part on the graphic common to any of the graphic elements of the previously stored graphic data. And correspondingly stored graphic elements of previously stored graphic data as graphic data based on a combination of the information representing the common basic graphic and the information indicating the effective range on the common basic graphic. And a restoring step.
【請求項2】 基本図形上の部分からなる図形要素を表
現する図形データを格納するにあたり、 格納しようとする図形要素を一部として含むそれ自体単
独の図形要素を構成する基本図形を示す情報を入力する
基本図形入力ステップと、 このステップで入力された基本図形上の特定の部分を有
効範囲として指定する範囲指定ステップと、 これらのステップで得られる前記基本図形を示す情報と
その基本図形上の有効範囲を示す情報との組み合わせに
基づく図形データを格納する格納ステップとを有するこ
とを特徴とする図形データ格納方法。
Wherein Upon storing graphic data representing a graphic element consisting of a portion of the basic figure, themselves single including graphic elements to be stored as part
A basic figure input step of inputting information indicating a basic figure constituting a German graphic element, a range designating step of designating a specific portion on the basic figure inputted in this step as an effective range, Storing a graphic data based on a combination of the information indicating the basic graphic and information indicating an effective range on the basic graphic.
【請求項3】 図形を表現する図形データを格納する図
形データ格納装置において、 新たに形成される新図形要素が以前に格納されている図
形データの図形要素のいずれかと共通の基本図形上の異
なる部分からなるか否かを判別するデータ判別手段と、 このデータ判別手段で新図形要素が以前に格納されてい
る図形データの図形要素のいずれかと共通の図形上の異
なる部分からなると判定された場合は、その新図形要素
およびそれに対応する以前に格納されている図形データ
の図形要素を、前記共通の基本図形を表現する情報とそ
の共通の基本図形上の有効範囲を示す情報との組み合わ
せに基づく図形データとして格納し直す再格納手段とを
具備することを特徴とする図形データ格納装置。
3. A graphic data storage device for storing graphic data representing a graphic, wherein a newly formed new graphic element is different from any of the previously stored graphic data on a basic basic graphic. A data discriminating means for discriminating whether or not the graphic element is composed of a part; and a case where the data discriminating means determines that the new graphic element is composed of a different part on a common graphic with any of the graphic elements of the graphic data stored previously The new graphic element and the graphic element of the previously stored graphic data corresponding to the new graphic element are based on a combination of the information representing the common basic graphic and the information indicating the effective range on the common basic graphic. A graphic data storage device, comprising: re-storing means for storing data as graphic data again.
【請求項4】 図形要素を表現する図形データを格納す
る図形データ格納装置において、 格納しようとする図形要素を一部として含むそれ自体単
独の図形要素を構成する基本図形を示す情報を入力する
基本図形入力手段と、 この基本図形入力手段で入力された基本図形上の特定の
部分を有効範囲として指定する範囲指定手段と、 これらの手段で得られる前記基本図形を示す情報とその
基本図形上の有効範囲を示す情報との組み合わせに基づ
く図形データを格納する格納手段とを具備することを特
徴とする図形データ格納装置。
4. The graphic data storage unit for storing graphic data representing a graphic element itself single including graphic elements to be stored as part
Basic figure input means for inputting information indicating a basic figure constituting a German graphic element; range designating means for designating a specific portion on the basic figure inputted by the basic figure input means as an effective range; Storage means for storing graphic data based on a combination of information indicating the basic graphic obtained by means and information indicating an effective range on the basic graphic.
JP33143791A 1991-11-20 1991-11-20 Graphic data storage method and apparatus Expired - Fee Related JP3181956B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33143791A JP3181956B2 (en) 1991-11-20 1991-11-20 Graphic data storage method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33143791A JP3181956B2 (en) 1991-11-20 1991-11-20 Graphic data storage method and apparatus

Publications (2)

Publication Number Publication Date
JPH05143656A JPH05143656A (en) 1993-06-11
JP3181956B2 true JP3181956B2 (en) 2001-07-03

Family

ID=18243657

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33143791A Expired - Fee Related JP3181956B2 (en) 1991-11-20 1991-11-20 Graphic data storage method and apparatus

Country Status (1)

Country Link
JP (1) JP3181956B2 (en)

Also Published As

Publication number Publication date
JPH05143656A (en) 1993-06-11

Similar Documents

Publication Publication Date Title
EP0684333B1 (en) Method and apparatus for inputting embroidery lines
JP3181956B2 (en) Graphic data storage method and apparatus
JPH05143706A (en) Method and device for correcting graphic
JP3763383B2 (en) Polygon drawing apparatus, polygon drawing method, and computer-readable recording medium recording a polygon drawing program
JP2002169843A (en) Design support system
JPS63118820A (en) Menu display device
JP3083552B2 (en) Hierarchy editing processor
JP3814308B2 (en) Document file management system and document file management method
JP2911667B2 (en) Programming device for programmable controller
JP4664534B2 (en) Symbol rotation device
JPH11249876A (en) Screen transition control system, program development support device, program developing method and recording medium
JPH052617A (en) Circuit diagram generation device
JPH08263652A (en) Graphic editing device
JPH07271992A (en) Hatching correcting method
JPH07271991A (en) Hatching correcting method
JPH0283671A (en) System for selecting graphic element of display device
JPH05266159A (en) Method for automatically evading duplicate coordinate input
JPH08180096A (en) Drawing preparing device
JPH0793396A (en) Method for altering and registering component figure information
JPH04330568A (en) Cad for pattern layout
JPH02236679A (en) Picture editing device
JPH07146794A (en) Fuzzy rule display method
JPH06251039A (en) Form design system
JPH0749893A (en) Method for managing measure of cad drawing and cad device
JPH03158940A (en) Data dump control system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees