JPH08249481A - Drawing processor - Google Patents

Drawing processor

Info

Publication number
JPH08249481A
JPH08249481A JP7052247A JP5224795A JPH08249481A JP H08249481 A JPH08249481 A JP H08249481A JP 7052247 A JP7052247 A JP 7052247A JP 5224795 A JP5224795 A JP 5224795A JP H08249481 A JPH08249481 A JP H08249481A
Authority
JP
Japan
Prior art keywords
area
data
graphic
display
changed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7052247A
Other languages
Japanese (ja)
Inventor
Masaru Abei
大 安部井
Yasuo Kurosu
康雄 黒須
Kazuyuki Kodama
和行 児玉
Noboru Kashiwabara
登 柏原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP7052247A priority Critical patent/JPH08249481A/en
Publication of JPH08249481A publication Critical patent/JPH08249481A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE: To re-display a drawing under an edition processing at a high speed without changing inter-graphic superimposing order by reading graphic data of whole graphics existing in a converted area from a place corresponding to a graphic dat division storage area at the time of converting display contents and plotting them in a storage device in order. CONSTITUTION: In a re-display processing, areas which have changed, is retrieved from a conversion area sotorage part 103c and a graphic is plotted in a plotting part 103d based on whole graphic data which are stored in the area corresponding to one of the areas which have changed, in an area division graphic data sotrage part 103d. Moreover, a part corresponding to the area in the graphic which is plotted in the plotting part 103d is transferred to a display control part 104 so as to displayed at a position corresponding to the area in a display screen and the plotting part 103d is finally ceeared. Thus, by execution in the whole areas in which the change of a processing has occurred, only the area which has changed, is re-displayed so that re-display can be executed in a short time.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はCAD装置など計算機上
で図形或いは文字等を編集する図面処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drawing processing apparatus for editing a figure or a character on a computer such as a CAD apparatus.

【0002】[0002]

【従来の技術】従来、CAD装置などの図面処理装置に
おいて、図面の中の一部の図形、或いは、文字(以後文
字も図形に含めて図形と呼ぶ)を削除或いは移動などの
変更を行った場合、変更する元の図形を背景色で描画す
ることで表示画面から消去するという処理を行う。その
ため、図2に示すように消去する図形と一部で重なった
り、交差している他の図形の重なったり、交差している
部分が表示画面から消えてしまうことがあった。また、
他にも図面の編集をする途中で図形の一部が消えたり、
余計な線や点などの図形が表示画面に残ることがある。
2. Description of the Related Art Conventionally, in a drawing processing apparatus such as a CAD apparatus, a part of a figure or a character in a drawing (hereinafter, the character is also referred to as a figure) is deleted or moved. In this case, the original figure to be changed is drawn in the background color to erase it from the display screen. Therefore, as shown in FIG. 2, there is a case where the figure to be erased partially overlaps with another figure that intersects, or the intersecting portion disappears from the display screen. Also,
In addition, part of the figure disappears while editing the drawing,
Shapes such as extra lines and dots may remain on the display screen.

【0003】このような場合、ユーザの指示により或い
はCAD装置が自動的に再表示を行う。再表示は現在表
示している画面をクリアして、CAD装置内にある各図
形の座標などのデータを基に描画を行う。再表示によ
り、編集処理の途中で消えてしまった部分は表示し、不
必要な図形は消去する。
In such a case, the CAD device automatically redisplays the image according to a user's instruction. In the redisplay, the currently displayed screen is cleared and drawing is performed based on the data such as the coordinates of each figure in the CAD device. By the re-display, the part which disappeared in the middle of the editing process is displayed and the unnecessary figure is deleted.

【0004】また、表示装置に表示する図面上の位置を
変更したり、表示する倍率を変更する処理を行った場合
にも、新たに設定した表示位置や倍率で表示をし直す。
Further, even when the position on the drawing to be displayed on the display device is changed or the processing for changing the display magnification is performed, the display is performed again at the newly set display position or magnification.

【0005】[0005]

【発明が解決しようとする課題】上記再表示の処理は図
面の編集処理において頻繁に発生する。一般に、再表示
は図面上の図形数或いは表示装置に表示する図形数が多
くなればなるほど処理に時間がかかるため、複雑な図面
の編集処理中に再表示処理を行うと長い時間待たされる
ことになる。
The above-mentioned re-display processing frequently occurs in the drawing editing processing. In general, redisplaying takes longer as the number of figures on the drawing or the number of figures displayed on the display device increases. Therefore, if the redisplay processing is performed during a complicated drawing editing process, a long time is required. Become.

【0006】上記のような再表示処理を早くする為にイ
メージデータの処理では特開昭63−206878号公
報に記載ようにイメージデータを複数の領域に分割し、
変更があった領域のイメージデータを表示処理すること
で高速化を図っている。
In order to speed up the re-display processing as described above, in the processing of image data, the image data is divided into a plurality of areas as described in JP-A-63-206878.
The image data of the changed area is displayed to speed up the process.

【0007】しかし、CAD装置などでは大本のデータ
はイメージデータではなく、座標などの情報で構成され
ている図形データの集合である。図面を複数の領域に分
割しても個々の図形は必ずしも一つの領域だけに存在せ
ず、複数の領域にまたがって存在する場合もある。従っ
て、イメージデータのように単純に分割して高速化を計
ることが困難である。また、一部の図形のみを既に描画
した図面に上書きすると、図形間の前後の重なりの関係
が変わってしまう可能性がある。
However, in a CAD device or the like, most data is not image data but a set of graphic data composed of information such as coordinates. Even if the drawing is divided into a plurality of areas, each figure does not necessarily exist in only one area, and may exist in a plurality of areas. Therefore, it is difficult to simply divide the image data to increase the speed. In addition, if only some of the figures are overwritten on a drawing that has already been drawn, there is a possibility that the overlapping relationship between the figures will change.

【0008】本発明の目的はCAD装置などの図面処理
装置において、編集処理中の図面を図形間の重なり合い
の順番を変えずに高速に再表示することにある。
It is an object of the present invention to redisplay a drawing being edited at high speed in a drawing processing device such as a CAD device without changing the order of overlapping of figures.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、中央処理装置と記憶装置と表示装置と表示制御装置
を備えた図面処理装置において、図面を複数領域に分割
定義し、上記記憶装置に上記各領域に対応してそれぞれ
の領域に存在する図形の図形データを記憶する図形デー
タ分割記憶エリアと、編集時に変更した図形が存在する
領域を記憶する変更領域記憶エリアを設け、上記中央処
理装置は図面表示時に図面中の各図形が存在する領域を
検出して、上記図形データ分割記憶エリア中の各図形が
存在する領域に対応する個所に図形データを描画順に記
憶し、図面編集時に変更された図形が存在する領域を検
出して、上記変更領域記憶エリアの変更した領域に対応
する個所に記録し、表示内容更新時には上記変更領域記
憶エリアから変更領域を検出して、上記図形データ分割
記憶エリア中の変更領域に対応する図形データに基づい
て上記記憶装置上に図形を描画し、描画した上記変更し
た領域を上記表示制御装置に送り上記表示装置に表示す
る。
In order to achieve the above object, in a drawing processing apparatus having a central processing unit, a storage unit, a display unit and a display control unit, a drawing is divided into a plurality of areas and defined, and the storage unit is defined. A graphic data division storage area for storing the graphic data of the graphic existing in each area corresponding to each area and a change area storage area for storing the area where the graphic changed at the time of editing are provided, and the central processing is performed. The device detects the area where each figure exists in the drawing when displaying the drawing, stores the figure data in the drawing data division storage area at the location corresponding to the area where each figure exists, and changes it when editing the drawing. The area in which the displayed figure is present is detected and recorded at the location corresponding to the changed area in the above-mentioned changed area storage area, and changed from the above-mentioned changed area storage area when the display contents are updated. Area is detected, a graphic is drawn on the storage device based on the graphic data corresponding to the changed area in the graphic data division storage area, and the drawn changed area is sent to the display control device. To display.

【0010】[0010]

【作用】図面処理装置において、中央処理装置が図面上
の各図形データが存在する領域を判定し、図形データ分
割記憶エリアの各領域に対応する個所にその領域に一部
でも存在する図形の図形データを描画順に記憶すること
で、各領域の表示情報を管理し、図面編集により変更し
た図形が存在する領域を検出し、変更領域記憶エリアの
変更した領域に対応した個所に記録しておくことで、表
示内容の更新時に変更領域記憶エリアから変更した全て
の領域を検出し、変更した領域に存在する全ての図形の
図形データを図形データ分割記憶エリアの対応する個所
から読みだし、記憶装置に順番に描画し、変更した領域
を表示制御装置に送り表示装置に表示することで、表示
内容の更新する場合に、変更した領域のみを処理すれば
済むことになり、処理量を削減することで高速に再表示
を行うことが可能になる。更に、図形を描画する順番に
記憶し、記憶した順番に描画することで、図形間の重な
り合いの順番を変えることなく再表示が出来る。
In the drawing processing apparatus, the central processing unit determines the area where each figure data in the drawing exists, and the figure of the figure which exists even at a part in the area corresponding to each area of the figure data division storage area. By storing the data in the drawing order, the display information of each area is managed, the area in which the figure changed by drawing editing exists is detected, and it is recorded in the changed area storage area at the location corresponding to the changed area. Then, when the display contents are updated, all the changed areas are detected from the changed area storage area, the figure data of all figures existing in the changed area are read from the corresponding locations in the figure data division storage area, and stored in the storage device. By drawing in order and sending the changed area to the display control device and displaying it on the display device, when updating the display content, it suffices to process only the changed area, It is possible to re-display at a high speed by reducing the physical quantities. Further, by storing the figures in the drawing order and drawing in the stored order, it is possible to redisplay without changing the overlapping order of the figures.

【0011】[0011]

【実施例】次に本発明の実施例の説明をする。図1は本
発明の一実施例であるCAD装置の構成図である。同図
において、101は装置全体を制御する中央処理装置
(CPU)、102はキーボード、マウス、タブレット
等の入力装置、103は書き込み及び読みだし可能な記
憶装置、104は表示装置105を制御し表示を行う表
示制御部、105は表示装置である。また、記憶装置1
03の中に図形データを記憶する主図形データ記憶部1
03a、図面の領域毎の図形データを記憶する領域分割
図形データ記憶部103b、変更があった領域を記憶す
る変更領域記憶部103c、表示のために図形を描画す
る描画部103dのそれぞれの領域を設ける。
EXAMPLES Examples of the present invention will be described below. FIG. 1 is a block diagram of a CAD device according to an embodiment of the present invention. In the figure, 101 is a central processing unit (CPU) that controls the entire apparatus, 102 is an input device such as a keyboard, mouse, tablet, 103 is a writable and readable storage device, and 104 is a display device 105 that controls and displays. A display control unit 105 for performing the above is a display device. In addition, the storage device 1
Main graphic data storage unit 1 for storing graphic data in 03
03a, an area division graphic data storage unit 103b that stores graphic data for each area of the drawing, a changed area storage unit 103c that stores a changed area, and a drawing unit 103d that draws a graphic for display. Set up.

【0012】CAD装置において図面の編集を行う場
合、図には記していないがフロッピーディスク装置やハ
ードディスク装置等の外部記憶装置に保存してある図形
データを転送するか或いは入力装置102を用いて入力
した図形の図形データを主図形データ記憶部103aに
記憶する。図面表示は、主図形データ記憶部103aに
記憶してある図面全体の図形データをもとに描画部10
3cに各図形を描画し、更に描画したデータを表示制御
部104に転送し、表示装置105に表示する。或い
は、表示制御部104に直接描画する。
When a drawing is edited in a CAD device, although not shown in the drawing, graphic data stored in an external storage device such as a floppy disk device or a hard disk device is transferred or input using the input device 102. The graphic data of the selected graphic is stored in the main graphic data storage unit 103a. The drawing display is based on the graphic data of the entire drawing stored in the main graphic data storage unit 103a.
Each figure is drawn on 3c, and the drawn data is transferred to the display control unit 104 and displayed on the display device 105. Alternatively, it is directly drawn on the display control unit 104.

【0013】更に、図形を縦及び横方向に等分に任意の
数に分割することで、領域を定義する。各図形が存在す
る領域を検出し、領域分割図形データ記憶部103bの
図形が存在する領域に対応するエリアに図形データを書
き込む。
Further, the area is defined by dividing the figure into an arbitrary number in the vertical and horizontal directions. The area where each figure exists is detected, and the figure data is written in the area corresponding to the area where the figure exists in the area division figure data storage unit 103b.

【0014】主図形データ記憶部103aに記憶してあ
る図形データは図3に示すように、その図形データのデ
ータ長、ID番号、図形の種類、図形の位置及び大きさ
等の情報、線の種類、太さ、色などの属性及びその図形
が存在する図面上の範囲をその図形を包括する矩形の対
角の座標で持たせている。図形データをもとに図形描画
し、更に図形が存在する矩形の対角の座標と図面を領域
に分割した各領域の対角の座標とを比較しすることで、
対角がどの領域に存在するかを求める。図4に楕円図形
の例を示す。楕円の図形データは楕円に接する存在領域
の矩形の対角の座標(Xmin,Ymin)及び(Xm
ax,Ymax)を存在領域のデータとして持ってい
る。持っていない場合には、図形の座標、或いは大きさ
等のデータから求めることが可能である。図4の例で横
方向(X方向)、縦方向(Y方向)の順で存在する領域
を検出方法を説明すると、まずXminとX1を比較
し、Xminのほうが小さいため、そこでXminの比
較を止める。次に、XmaxとX1の比較し、Xmax
のほうが大きいため、XmaxとX2の比較をし、X2
のほうが大きいため、そこでX方向の比較を終える。処
理から図形はX0とX2の間に存在することが判る。更
に、YminとY1を比較し、Yminのほうが大きい
ため、YminとY2を比較し、Y2のほうが大きいの
でYminの比較を止める。次に、YmaxとY2を比
較し、Ymaxのほうが大きいため、YmaxとY3を
比較し、Y3のほうが大きいのでY方向の比較を終え
る。処理から図形はY1とY3の間に存在することが判
る。従って、図形は領域(0,1)、(1,1)、
(0,2)、(1,2)に存在することが判る。
As shown in FIG. 3, the graphic data stored in the main graphic data storage unit 103a includes information such as the data length of the graphic data, the ID number, the type of the graphic, the position and size of the graphic, and the line. Attributes such as type, thickness, and color, and a range on the drawing in which the figure exists are given by diagonal coordinates of a rectangle that includes the figure. By drawing a figure based on the figure data, and by comparing the diagonal coordinates of the rectangle in which the figure exists and the diagonal coordinates of each area where the drawing is divided into areas,
Find in which region the diagonal lies. FIG. 4 shows an example of an elliptical figure. The ellipse graphic data includes the diagonal coordinates (Xmin, Ymin) and (Xm of the rectangle of the existing area in contact with the ellipse.
ax, Ymax) as the data of the existing area. If not, it can be obtained from data such as the coordinates of the figure or the size. In the example of FIG. 4, a method of detecting a region existing in the order of the horizontal direction (X direction) and the vertical direction (Y direction) will be described. First, Xmin and X1 are compared, and Xmin is smaller, so Xmin is compared. stop. Next, compare Xmax and X1, and obtain Xmax
Is larger, Xmax and X2 are compared, and X2
Is larger, the comparison in the X direction ends there. From the processing, it can be seen that the figure exists between X0 and X2. Further, Ymin is compared with Y1, and Ymin is larger, so Ymin is compared with Y2. Since Y2 is larger, Ymin comparison is stopped. Next, Ymax and Y2 are compared, and since Ymax is larger, Ymax and Y3 are compared. Since Y3 is larger, the comparison in the Y direction ends. From the processing, it can be seen that the figure exists between Y1 and Y3. Therefore, the figure has regions (0,1), (1,1),
It can be seen that they exist in (0, 2) and (1, 2).

【0015】この処理を全ての図形に対して行うことに
より、領域分割図形データ記憶部103bの各領域に対
応するエリアには、その領域に一部でも存在する全ての
図形のデータを記憶する。
By performing this processing for all the figures, the data of all the figures which are partially present in the area are stored in the area corresponding to each area of the area division figure data storage unit 103b.

【0016】この図面の編集において、入力装置102
からの操作により任意に一つの図形を削除した場合、最
初に削除した図形を背景色で描画することで表示画面か
ら削除する。また、図形表示時と同様に主図形データ記
憶部103aに記憶してある図形の図形データの存在す
る矩形の座標から存在する領域を求め、領域分割図形デ
ータ記憶部103bの中で図形が存在する領域に対応し
たエリアから図形のデータを削除すと共に変更領域記憶
部103cの図形が存在する領域に対応する箇所にフラ
グを立てる。更に、主図形データ記憶部103aから図
形のデータを削除する。
In editing this drawing, the input device 102
When one figure is arbitrarily deleted by the operation from, the first deleted figure is deleted from the display screen by drawing with the background color. Further, similarly to the case of displaying a figure, the existing area is obtained from the coordinates of the rectangle in which the figure data of the figure stored in the main figure data storage section 103a is found, and the figure exists in the area division figure data storage section 103b. The graphic data is deleted from the area corresponding to the area, and a flag is set in the changed area storage unit 103c corresponding to the area where the graphic exists. Further, the graphic data is deleted from the main graphic data storage unit 103a.

【0017】図形の削除、更新といった編集処理によっ
て、図形の一部が消えたり、余計な線や点などの図形が
表示画面に残るこがある。そこで正しい表示を行うため
には再表示処理をする必要がある。再表示処理におい
て、変更領域記憶部103cから変更のあった領域を検
索し、領域分割図形データ記憶部103bの中で変更の
あった領域の一つに対応するエリアに記憶されている全
ての図形データをもとに描画部103dに図形を描画す
る。更に、描画部103dに描画した図形の中で領域に
対応する部分を表示制御部104に転送し、表示画面の
領域に対応する位置に表示し、最後に描画部103dを
クリアする。処理を変更のあった全ての領域に対して行
うことで、変更のあった領域のみを再表示することにな
り、再表示を短時間に行うことが可能である。
Due to editing processing such as deletion and updating of graphics, some graphics may disappear or graphics such as extra lines and dots may remain on the display screen. Therefore, it is necessary to perform redisplay processing in order to display the correct display. In the redisplay processing, the changed area is searched from the changed area storage unit 103c, and all the figures stored in the area corresponding to one of the changed areas in the area division figure data storage unit 103b are searched. A graphic is drawn on the drawing unit 103d based on the data. Further, the portion corresponding to the area in the figure drawn by the drawing unit 103d is transferred to the display control unit 104, displayed at the position corresponding to the area on the display screen, and finally the drawing unit 103d is cleared. By performing the process on all the changed areas, only the changed areas are redisplayed, and the redisplay can be performed in a short time.

【0018】尚、実施例では図面に関して縦及び横の分
割を行ったが、表示した画面に対して分割を行う方式も
考えられる。
In the embodiment, the drawing is divided vertically and horizontally, but a method of dividing the displayed screen may be considered.

【0019】実施例では、各領域に存在する図形の図形
データを各領域に対応させて主の図形データとは別に記
憶したが、図形データそのものは領域毎に分けずに一括
して記憶し、領域毎に対応する図形を指し示すポインタ
列を持つ方法も考えられる。図5はその構成図を示した
ものである。同図において、501は各領域毎にその領
域に存在する図形を示すポインタを記憶するポインタ記
憶部である。第一の実施例では各図形が存在する領域を
検出して、領域分割図形データ記憶部103bの中の各
領域に対応するエリアに図形データを記憶させたが、本
方式ではポインタ記憶部501の各領域に対応するエリ
アに主図形データ記憶部103aの中の図形データを示
すポインタを記憶させ、再表示を行う場合には、ポイン
タ記憶部501の中の変更のあった領域に対応するエリ
アに記憶されたポインタを用いて、主図形データ記憶部
103aに記憶してある図形データの中から領域に存在
する図形の図形データを得て、描画部103dに描画を
行うことで再表示をする。
In the embodiment, the graphic data of the graphic existing in each area is stored separately from the main graphic data in association with each area, but the graphic data itself is stored collectively without being divided into each area. A method of having a pointer string that points to a corresponding figure for each area is also conceivable. FIG. 5 shows the configuration diagram. In the figure, reference numeral 501 denotes a pointer storage unit that stores, for each area, a pointer indicating a graphic existing in the area. In the first embodiment, the area in which each figure exists is detected and the figure data is stored in the area corresponding to each area in the area division figure data storage section 103b. When the pointer indicating the graphic data in the main graphic data storage unit 103a is stored in the area corresponding to each area and is displayed again, the area corresponding to the changed area in the pointer storage unit 501 is displayed. The stored pointer is used to obtain the graphic data of the graphic existing in the area from the graphic data stored in the main graphic data storage unit 103a, and the graphic data is drawn in the drawing unit 103d for redisplay.

【0020】尚、ポインタは各図形データが記憶されて
いるアドレス、或いは唯一つに判別できるよう付加され
たID番号等を用いることが考えられる。
As the pointer, it is conceivable to use an address at which each figure data is stored, or an ID number added so that it can be uniquely identified.

【0021】また、例では主図形データ記憶部103a
の中の図形データをポインタで示す方式を用いたが、主
図形データ記憶部103aとは別に図面の一部或いは全
ての図形の図形データを記憶したエリアを記憶装置上に
設け、主図形データ記憶部103aではなく、図形デー
タの記憶エリア中の図形データをポインタで示す方法も
考えられる。
In the example, the main figure data storage unit 103a
Although the method of indicating the graphic data in the figure by a pointer is used, an area for storing the graphic data of some or all of the drawings in the drawing is provided on the storage device separately from the main graphic data storage unit 103a. A method of indicating the graphic data in the graphic data storage area by the pointer instead of the unit 103a is also conceivable.

【0022】二つの実施例では主図形データ記憶部とは
別に各領域に存在する図形を示すための領域を設けた
が、主図形データ記憶部に各図形が存在する領域を示す
情報を持たせる方式も考えられる。この場合、二つの実
施例に示した領域分割図形データ記憶部及びポインタ記
憶部は設けず、図6に示すように主図形データ記憶部1
03aに各図形が存在する領域を示すため、図形データ
毎に全ての領域に対応したフラグを設ける。そして、実
施例と同様に各図形が存在する領域を検出し、各図形の
存在する領域に対応するフラグを立てておく。再表示を
行う場合には、主図形データ記憶部を検索し、再表示す
る領域に対応するフラグが立っている図形データを検出
して、図形を描画することでその領域に存在する全ての
図形を描画することが可能となる。
In the two embodiments, an area for indicating the graphic existing in each area is provided separately from the main graphic data storage section, but the main graphic data storage section is provided with information indicating the area where each graphic exists. A method is also conceivable. In this case, the area-divided graphic data storage unit and the pointer storage unit shown in the two embodiments are not provided, and the main graphic data storage unit 1 is used as shown in FIG.
In order to indicate the area where each figure exists in 03a, flags corresponding to all areas are provided for each figure data. Then, similarly to the embodiment, the area where each figure exists is detected, and the flag corresponding to the area where each figure exists is set. When redisplaying, the main graphic data storage unit is searched, the graphic data with the flag corresponding to the area to be redisplayed is detected, and all the graphics existing in the area are drawn by drawing the graphic. Can be drawn.

【0023】この実施例では全て、図形データを加工せ
ずに各図形が存在する領域に割り当てている。そのため
再表示において、再表示を行う領域に存在する図形は、
その領域を外れた部分も描画するか、或いはその領域の
周辺境界でクリッピング処理を行い、領域の外には描画
しないようにする。
In this embodiment, all graphic data are assigned to the area where each graphic exists without being processed. Therefore, in the redisplay, the figure existing in the area to be redisplayed is
A portion outside the area is also drawn, or clipping processing is performed at the peripheral boundary of the area so that it is not drawn outside the area.

【0024】しかし、各領域毎にその領域に存在する図
形の図形データを記憶する際に、各領域の境界で図形を
切り、実際にその領域に入っている部分のみを図形デー
タとして記憶する方式が考えられる。本方式における全
体構成は第一の実施例と同様である。
However, when storing the graphic data of the graphic existing in each area for each area, the graphic is cut at the boundary of each area and only the portion actually included in the area is stored as the graphic data. Can be considered. The overall configuration of this system is similar to that of the first embodiment.

【0025】はじめに、図面上の図形を描画して、領域
分割図形データ記憶部103bの各領域に対応するエリ
アにその領域に存在する図形データを記憶する際に、そ
の領域からはみ出す図形に関しては領域の境界で図形を
分割して領域内部の部分の図形のデータを記憶する。図
7に示すように、座標(X1,Y1)、(X1,Y
2)、(X2,Y1)、(X2,Y2)の矩形領域に座
標(Xa,Ya)−(Xb,Yb)の線分が領域の境界
を越えて存在する場合には、線分とブロックの境界線
(X2,Y1)−(X2,Y2)との交点の座標(X
c,Yc)を求め、領域分割図形データ記憶部103b
の領域に対応するエリアに線分(Xa,Ya)−(X
c,Yc)の図形データを記憶させる。また、線分(X
c,Yc)−(Xb,Yb)は隣の領域に対応するエリ
アに記憶させる。尚、線分(Xs,Ys)−(Xt,Y
t)のようにブロックの境界内に全て入っている図形に
関しては、そのままの図形データを記憶させる。
First, when a figure on a drawing is drawn and the figure data existing in that area is stored in the area corresponding to each area of the area division figure data storage unit 103b, the area that is out of the area is the area. The figure is divided at the boundary of and the data of the figure inside the area is stored. As shown in FIG. 7, coordinates (X1, Y1), (X1, Y1
2), (X2, Y1), (X2, Y2) in the rectangular area, if the line segment of coordinates (Xa, Ya)-(Xb, Yb) exists beyond the boundary of the area, the line segment and the block Coordinates (X, Y1)-(X2, Y2)
c, Yc), and the area division graphic data storage unit 103b
The line segment (Xa, Ya)-(X
The graphic data of c, Yc) is stored. Also, the line segment (X
c, Yc)-(Xb, Yb) is stored in the area corresponding to the adjacent area. In addition, the line segment (Xs, Ys)-(Xt, Y
As for the figure which is entirely within the boundary of the block as in t), the figure data is stored as it is.

【0026】本方式では、領域の図形を再表示する場
合、領域分割図形データ記憶部103bの各領域に対応
するエリアには、領域内部の図形データのみが記憶され
ているため、クリッピング処理を行う必要がない。その
ため、既に図面全体が描画されている領域などに対して
も、直接領域単位で描画を行うことが可能である。
In the present method, when the graphic of the area is displayed again, only the graphic data inside the area is stored in the area corresponding to each area of the area-divided graphic data storage unit 103b, and therefore clipping processing is performed. No need. Therefore, it is possible to directly perform drawing on a region-by-region basis even in a region where the entire drawing has already been drawn.

【0027】以上説明した全ての実施例において、各領
域毎に各図形を描画する順番を保存し、独立に描画する
ため、図形間の重なり合いの順番を変えないように表示
することが可能となる。
In all the embodiments described above, the drawing order of each figure is saved for each area and drawn independently, so that it is possible to display without changing the overlapping order of figures. .

【0028】[0028]

【発明の効果】本発明によれば、CAD装置などの図面
処理装置において、編集処理中の図面を図形間の重なり
合いの順番を変えないように高速に再表示することが可
能となる。
According to the present invention, in a drawing processing device such as a CAD device, a drawing being edited can be redisplayed at high speed without changing the order of overlapping of figures.

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

【図1】本発明の一実施例である図面処理装置のブロッ
ク図。
FIG. 1 is a block diagram of a drawing processing apparatus that is an embodiment of the present invention.

【図2】図面編集の説明図。FIG. 2 is an explanatory diagram of drawing editing.

【図3】本発明の一実施例の図形データ形式の説明図。FIG. 3 is an explanatory diagram of a graphic data format according to an embodiment of the present invention.

【図4】本発明の図面のブロック分割の説明図。FIG. 4 is an explanatory diagram of block division in the drawing of the present invention.

【図5】本発明の一実施例である図面処理装置のブロッ
ク図。
FIG. 5 is a block diagram of a drawing processing apparatus that is an embodiment of the present invention.

【図6】本発明の一実施例の図形データ形式の説明図。FIG. 6 is an explanatory diagram of a graphic data format according to an embodiment of the present invention.

【図7】本発明の図面のブロック分割の説明図。FIG. 7 is an explanatory diagram of block division of the drawing of the present invention.

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

101…中央処理装置、 102…入力装置、 103…記憶装置、 103a…主図形データ記憶部、 103b…領域分割図形データ記憶部、 103c…変更領域記憶部、 103d…描画部、 501…ポインタ記憶部。 101 ... Central processing unit, 102 ... Input device, 103 ... Storage device, 103a ... Main figure data storage section, 103b ... Area division figure data storage section, 103c ... Change area storage section, 103d ... Drawing section, 501 ... Pointer storage section .

───────────────────────────────────────────────────── フロントページの続き (72)発明者 柏原 登 神奈川県横浜市戸塚区吉田町292番地株式 会社日立製作所情報映像事業部内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Noboru Kashihara 292 Yoshida-cho, Totsuka-ku, Yokohama-shi, Kanagawa Stock Company Hitachi Information & Video Division

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】装置全体を制御し図面処理を行う中央処理
装置と、上記中央処理装置を動作するためのプログラム
及び編集する図面中の図形データ等のデータを記憶する
記憶装置と、図形及び文字を表示する表示装置と、上記
表示装置に表示を行う表示制御装置と、図面編集の指示
等を入力する入力装置を備えた図面処理装置において、
編集する図面を複数の領域に分割定義し、上記記憶装置
に上記各領域に対応し各領域に一部でも入る図形の図形
データを記憶する図形データ分割記憶エリアと、図面編
集により領域内の図形を変更した場合に変更したことを
記憶する変更領域記憶エリアを設け、図面の表示時には
上記中央処理装置及び表示制御装置により上記図面の各
図形データを描画して表示装置に表示すると共に、中央
処理装置により上記分割した複数領域中で上記図面中の
各図形が存在する領域を検出し、上記図形の図形データ
を存在する領域に対応する上記図形データ分割記憶エリ
アに記憶し、図面編集時には中央処理装置が入力装置か
らの指示により変更した図形のデータを更新し、上記変
更した図形が存在する領域を検出し、上記変更領域記憶
エリアの上記変更した領域に対応する個所に記録し、上
記表示装置の表示内容更新時には上記中央処理装置が上
記変更領域記憶エリアから変更のあった領域を検出し、
上記図形データ分割記憶エリア中の上記変更した領域に
該当する部分に記憶してある図形データを基に上記記憶
装置内に図形の描画を行い、更に描画したエリアから上
記変更があった領域に該当する部分を上記表示制御部に
転送することを特徴とする図面処理装置。
1. A central processing unit for controlling the entire apparatus to perform drawing processing, a storage device for storing a program for operating the central processing unit and data such as figure data in a drawing to be edited, and figures and characters. In a drawing processing device including a display device for displaying, a display control device for displaying on the display device, and an input device for inputting a drawing editing instruction,
A figure data division storage area for defining the drawing to be edited by dividing it into a plurality of areas and storing the figure data of figures corresponding to the areas and partially entering each area in the storage device, and figures in the area by drawing editing When a drawing is displayed, a change area storage area for storing the change is provided, and when the drawing is displayed, each of the graphic data of the drawing is drawn and displayed on the display device by the central processing unit and the display control unit. The apparatus detects the area in which each figure in the drawing exists in the divided plural areas, stores the figure data of the figure in the figure data division storage area corresponding to the existing area, and performs central processing during drawing editing. The device updates the data of the figure changed by the instruction from the input device, detects the area in which the changed figure exists, and changes the change area storage area. Area to record the locations corresponding, at the time of display content update of the display device detects an area where the central processing unit has changed since the change area storage area,
A figure is drawn in the storage device based on the figure data stored in the part corresponding to the changed area in the figure data division storage area, and the area is changed from the drawn area. The drawing processing apparatus, wherein the part to be transferred is transferred to the display control unit.
【請求項2】請求項1において、上記図形データ分割記
憶エリアの代わりに上記各領域に対応して、それぞれの
領域に存在する図形を上記図形の図形データが記憶され
た位置或いは図形データに付けられた唯一つに特定でき
る番号等で指定するデータ列を上記記憶装置に記憶する
図面処理装置。
2. The method according to claim 1, wherein instead of the graphic data division storage area, a graphic existing in each area is attached to the position where the graphic data of the graphic is stored or the graphic data corresponding to each area. A drawing processing apparatus for storing in the storage device a data string designated by a uniquely specified number.
【請求項3】請求項1において、上記図形データ分割記
憶エリアを設ける代わりに各図形データにが存在する領
域を示す情報を付加した図面処理装置。
3. A drawing processing apparatus according to claim 1, wherein, instead of providing the graphic data division storage area, information indicating an area where each graphic data exists is added.
【請求項4】請求項1において、上記図形データ分割記
憶エリアに記憶する図形の中で複数の領域に存在する図
形に関しては、領域の境界で分割し、各領域に分配して
記憶する図面処理装置。
4. A drawing process according to claim 1, wherein a figure existing in a plurality of areas among the figures stored in said figure data division storage area is divided at the boundary of the areas and distributed and stored in each area. apparatus.
【請求項5】請求項1において、図面或いは表示画面の
縦座標或いは横座標を複数に分割して、それぞれ閉領域
を定義する図面処理装置。
5. The drawing processing apparatus according to claim 1, wherein the ordinate or abscissa of the drawing or display screen is divided into a plurality of parts to define closed areas.
JP7052247A 1995-03-13 1995-03-13 Drawing processor Pending JPH08249481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7052247A JPH08249481A (en) 1995-03-13 1995-03-13 Drawing processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7052247A JPH08249481A (en) 1995-03-13 1995-03-13 Drawing processor

Publications (1)

Publication Number Publication Date
JPH08249481A true JPH08249481A (en) 1996-09-27

Family

ID=12909407

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7052247A Pending JPH08249481A (en) 1995-03-13 1995-03-13 Drawing processor

Country Status (1)

Country Link
JP (1) JPH08249481A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008152429A (en) * 2006-12-15 2008-07-03 Ricoh Co Ltd Image processor, image processing method, program and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008152429A (en) * 2006-12-15 2008-07-03 Ricoh Co Ltd Image processor, image processing method, program and storage medium

Similar Documents

Publication Publication Date Title
US4819189A (en) Computer system with multiwindow presentation manager
JPH0421198B2 (en)
JPH0516039B2 (en)
JPH08249481A (en) Drawing processor
JPH06149533A (en) Segment quick plotting system for reducing plotting processing for segment outside display area
JP2663967B2 (en) Information storage control method
JP3028543B2 (en) Shape redisplay method
JP2690925B2 (en) Display control method and display control method
JP3238188B2 (en) Frame memory control device and frame memory control method
JP2595884B2 (en) Rubber band frame display device
JPH02271424A (en) Full graphic picture display system
JPH0540592A (en) Drawing system for multiwindow display system
JPH04342019A (en) Window displaying method
JPS6159484A (en) Segment control system
JPH05250123A (en) Multiwindow system
JPH0521249B2 (en)
JPH08137839A (en) Document processor
JPH0550782B2 (en)
JPH05334285A (en) Document preparing device
JPH01246673A (en) Graphic processor
JPS63245514A (en) Display control system
JPH0764537A (en) Information processor
JPH0830599A (en) Device and method for processing document
JPH0281262A (en) Document layout recovering system
JPH01231087A (en) Multi-window display device