JPH03189877A - Bit map managing system - Google Patents

Bit map managing system

Info

Publication number
JPH03189877A
JPH03189877A JP33024089A JP33024089A JPH03189877A JP H03189877 A JPH03189877 A JP H03189877A JP 33024089 A JP33024089 A JP 33024089A JP 33024089 A JP33024089 A JP 33024089A JP H03189877 A JPH03189877 A JP H03189877A
Authority
JP
Japan
Prior art keywords
bitmap
graphic
graphic element
display
bit map
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
JP33024089A
Other languages
Japanese (ja)
Inventor
Mitsutoshi Sano
佐野 光利
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP33024089A priority Critical patent/JPH03189877A/en
Publication of JPH03189877A publication Critical patent/JPH03189877A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To accelerate display when a graphic is added or deleted by changing only a second bit map conforming to directly superimposed graphic elements, and rewriting a first bit map corresponding to a change result. CONSTITUTION:A display device 111 displays plural graphic elements by superimposing, and such display is performed based on the first bit map 121. Also, the second bit map 131 is prepared at every graphic element, and the names of the graphic elements superimposed just on and under a corresponding graphic element are stored in each element of the second bit map 131. When a new graphic is added on the graphic being displayed by superimposing, or one of the graphic being displayed by superimposing is deleted on the display device 111, the second bit map 131 conforming to the graphic elements superimposed just on and under a remarked graphic element is changed, and the rewrite of the first bit map 121 is performed corresponding to the change result. In such a way, it is possible to accelerate the display when adding or deleting the graphic.

Description

【発明の詳細な説明】 〔目 次〕 概要 産業上の利用分野 従来の技術 発明が解決しようとする課題 課題を解決するための手段 作用 実施例 発明の効果 〔概 要〕 ビック入力を行う会話型図形処理システムにおいて、表
示画面上での図形の追加、削除を効率良く行うようにし
たビットマツプ管理方式に関し、図形の追加、削除をす
る際の表示の高速化を目的とし、 複数の図形要素を重ねて表示する場合のビットマツプ管
理方式において、図形要素の表示を行う表示装置と、表
示装置の表示画面を構成する各画素の表示情報を格納す
る第1のビットマツプと、複数の図形要素のそれぞれに
対応し、各要素毎に、対応する図形要素と直接重なり合
った図形要素名を格納する複数の第2のビットマツプと
、表示装置の表示に対して図形要素の追加、削除を行う
場合に、この図形要素と直接重なり合った図形要素に対
応する第2のビットマツプを変更すると共に、この変更
結果に応じて第1のビットマツプの書き換えを行うビッ
トマップ管理手段とを備えるように構成する。
[Detailed Description of the Invention] [Table of Contents] Overview Industrial Field of Use Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems Action Examples Effects of the Invention [Summary] Conversational type that performs big input Regarding the bitmap management method that efficiently adds and deletes figures on the display screen in a figure processing system, it is possible to overlap multiple figure elements with the aim of speeding up the display when adding or deleting figures. In a bitmap management method for displaying graphical elements, a display device that displays graphical elements, a first bitmap that stores display information for each pixel that makes up the display screen of the display device, and a bitmap that corresponds to each of the plurality of graphical elements. For each element, there are a plurality of second bitmaps that store graphic element names that directly overlap with the corresponding graphic element, and when adding or deleting a graphic element to the display on the display device, this graphic element is stored. The bitmap management means changes the second bitmap corresponding to a graphic element that directly overlaps with the first bitmap, and rewrites the first bitmap in accordance with the result of this change.

〔産業上の利用分野〕[Industrial application field]

本発明は、ピック入力を行う会話型図形処理システムに
おいて、表示画面上での図形の追加、削除を効率良く行
うようにしたビットマツプ管理方式に関するものである
The present invention relates to a bitmap management method for efficiently adding and deleting graphics on a display screen in an interactive graphics processing system that performs pick input.

(従来の技術〕 一般に、CADに代表されるような文字や図形の作成/
更新をオペレータが直接操作する会話型処理システムに
おいては、マウス等によるピック入力に対して高速で図
形等を表示する必要がある。
(Prior art) In general, characters and figures are created using CAD.
In an interactive processing system in which updates are directly operated by an operator, it is necessary to display figures and the like at high speed in response to pick input using a mouse or the like.

従来、表示装置の画面上に図形や文字を表示する方式と
して、表示画素のそれぞれに1ビツトあるいは数ビット
の画像データを対応させたビットマツプを用いる方式が
汎用されている。
Conventionally, as a method for displaying figures and characters on the screen of a display device, a method using a bitmap in which each display pixel corresponds to one bit or several bits of image data has been widely used.

例えば、ビデオRAMと称されるメモリに、各画素単位
の色情報(例えばRGBで表現された20ビツトデータ
)を書き込む。表示制御装置ではこのディジタルデータ
である色情報をR(赤)。
For example, color information for each pixel (for example, 20-bit data expressed in RGB) is written into a memory called a video RAM. In the display control device, this digital data color information is R (red).

G(緑)、B(青)毎にアナログデータに変換して陰極
線管(CRT)等の表示装置に各画素の表示を行う。従
って、画面に表示されている図形等に新たな図形を上書
きする場合には、上述したビットマツプを書き換えるだ
けでよく、表示の高速処理が可能であり、しかも比較的
簡単な制御で実現できる利点がある。
Each pixel of G (green) and B (blue) is converted into analog data and displayed on a display device such as a cathode ray tube (CRT). Therefore, when overwriting a new figure on a figure displayed on the screen, it is only necessary to rewrite the above-mentioned bitmap, which enables high-speed display processing and has the advantage that it can be achieved with relatively simple control. be.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところで、上述した従来方式にあっては、図形等を重ね
書きした際にその中間に位置する図形等を削除あるいは
追加する場合、全図形を最初からビットマツプ上に書き
込む処理をその都度行う必要があり、図形の追加、削除
に時間がかかるという問題点があった。
By the way, in the conventional method described above, when deleting or adding a figure located in the middle when overwriting figures etc., it is necessary to perform the process of writing all the figures on the bitmap from the beginning each time. , there was a problem that it took time to add and delete shapes.

例えば、第6図に示した表示画面において、先ず四角形
図形Aを表示し、次にこの図形に三角形図形Bを上書き
し、次にこの四角形図形Aと三角形図形Bの間に四角形
図形Cを挿入する場合を考える。この場合は、単にビッ
トマツプ上のデータを参照しただけではこれらの図形間
の優先度を判断することができないので、四角形図形A
、四角形図形C3三角形図形Bの順でビットマツプを作
成しなおす必要があり、図形要素の増加に伴い処理時間
がかかることになる。図形処理に時間がかかると会話型
処理システムにおける応答の遅れを生じるので操作上好
ましくなく、処理の高速化が可能な方式が望まれていた
For example, on the display screen shown in Figure 6, first display a rectangle A, then overwrite this figure with a triangle B, and then insert a rectangle C between the rectangle A and the triangle B. Consider a case where In this case, it is not possible to determine the priority among these shapes simply by referring to the data on the bitmap, so rectangular shape A
, quadrilateral figure C3, triangle figure B, and so on. Therefore, as the number of graphic elements increases, processing time increases. If graphic processing takes a long time, it causes a delay in response in an interactive processing system, which is not favorable for operation, and a system that can speed up processing has been desired.

本発明は、このような点にかんがみて創作されたもので
あり、図形を追加、削除する際の表示を高速化するよう
にしたビットマツプ管理方式を提供することを目的とし
ている。
The present invention was created in view of these points, and an object of the present invention is to provide a bitmap management system that speeds up the display when adding or deleting figures.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は、本発明のビットマツプ管理方式の原理ブロッ
ク図である。
FIG. 1 is a block diagram of the principle of the bitmap management method of the present invention.

図において、複数の図形要素を重ねて表示する場合のビ
ットマツプ管理方式における表示装置111は、図形要
素の表示を行う。
In the figure, a display device 111 in a bitmap management method in which a plurality of graphical elements are displayed in an overlapping manner displays graphical elements.

第1のビットマツプ121は、表示装置111の表示画
面を構成する各画素の表示情報を格納する。
The first bitmap 121 stores display information of each pixel forming the display screen of the display device 111.

複数の第2のビットマツプ131のそれぞれは、複数の
図形要素のそれぞれに対応し、各要素毎に、対応する図
形要素と直接重なり合った図形要素名を格納する。
Each of the plurality of second bitmaps 131 corresponds to a plurality of graphic elements, and stores, for each element, a graphic element name that directly overlaps with the corresponding graphic element.

ビットマップ管理手段141は、表示装置111の表示
に対して図形要素の追加、削除を行う場合に、この図形
要素と直接重なり合った図形要素に対応する第2のビッ
トマツプ131を変更すると共に、この変更結果に応じ
て第1のビットマツプ121の書き換えを行う。
When adding or deleting a graphical element to the display of the display device 111, the bitmap management means 141 changes the second bitmap 131 corresponding to the graphical element that directly overlaps this graphical element, and also changes the second bitmap 131 corresponding to the graphical element that directly overlaps this graphical element. The first bitmap 121 is rewritten according to the result.

従って、全体として、直接重なり合った図形要素に対応
した第2のビットマツプ131のみを変更し、この変更
結果に応じて第1のビットマツプ121を書き換えるこ
とにより図形要素の追加。
Therefore, as a whole, only the second bitmap 131 corresponding to directly overlapping graphic elements is changed, and the first bitmap 121 is rewritten according to the result of this change, thereby adding a graphic element.

変更を行うように構成されている。Configured to make changes.

〔作 用〕[For production]

表示装置Illは複数の図形要素を重ねて表示しており
、この表示は第1のビットマツプ121に基づいて行う
。また、各図形要素毎に第2のビットマツプ131を用
意し、この第2のビットマツプ131の各要素には、対
応する図形要素の1つ上及び1つ下に重なっている図形
要素名を格納しておく。
The display device Ill displays a plurality of graphical elements in an overlapping manner, and this display is performed based on the first bitmap 121. In addition, a second bitmap 131 is prepared for each graphical element, and each element of this second bitmap 131 stores the name of the graphical element that is one layer above and one layer below the corresponding graphical element. I'll keep it.

表示装置111において重ねて表示された図形の上に新
たな図形を追加したり、重ねて表示された図形の中の1
つを削除したりする場合、着目図形要素の1つ上及び1
つ下に重なり合った図形要素に対応する第2のビットマ
ツプ131を変更し、この変更結果に応じて第1のビッ
トマツプ121の書き換えを行う。以後、この書き換え
られた第1のビットマツプ121に基づいて表示装置1
11による表示が行われる。
A new figure can be added on top of a figure that is displayed in an overlapping manner on the display device 111, or one of the figures that are displayed in an overlapping manner.
If you want to delete one element, the one above and one above the graphic element of interest.
The second bitmap 131 corresponding to the graphic elements that overlap one another is changed, and the first bitmap 121 is rewritten according to the result of this change. Thereafter, the display device 1 is displayed based on this rewritten first bitmap 121.
11 is displayed.

本発明にあっては、図形要素の追加、削除を行う場合に
直接重なり合った図形要素に対応した第2のビットマツ
プ131のみを変更することで表示に対応した第1のビ
ットマツプ121の書き換えを行うことができるので、
追加、削除の際に優先度に従って全図形に関する第1の
ビットマツプ121の書き換えの必要はなくなる。
In the present invention, when adding or deleting a graphical element, the first bitmap 121 corresponding to the display can be rewritten by changing only the second bitmap 131 corresponding to directly overlapping graphical elements. Because it is possible to
There is no need to rewrite the first bitmap 121 for all graphics according to the priority when adding or deleting.

(実施例〕 以下、図面に基づいて本発明の実施例について詳細に説
明する。
(Example) Hereinafter, an example of the present invention will be described in detail based on the drawings.

第2図は、本発明の会話型図形処理における属性設定方
式を適用した一実施例の構成を示す。
FIG. 2 shows the configuration of an embodiment to which the attribute setting method in interactive graphic processing of the present invention is applied.

第2図において、211は表示部を、213は表示制御
部を、221はビック入力部を、223は指示入力部を
、231はビットマツプ管理部を、241は入出力制御
部を、251はデータ処理部を、261は主ビットマツ
プを、271は要素ビットマップをそれぞれ示している
In FIG. 2, 211 is a display section, 213 is a display control section, 221 is a big input section, 223 is an instruction input section, 231 is a bitmap management section, 241 is an input/output control section, and 251 is a data 261 represents a main bitmap, and 271 represents an element bitmap.

ビック入力部221は、ライトペン、入力タブレット、
マウス等で構成されており、表示部211の表示画面内
の任意の要素を簡単な操作で指定することができる。指
示入力部223は、動作指示の入力や、各種データのキ
ー操作による人力を行うものであり、例えば上述した表
示画面内の任意座標の水平、垂直座標を数値で入力する
ことも可能である。表示制御部213は、主ビットマツ
プ261 (詳細は後述する)に基づいて表示部211
による文字や図形の表示を制御する。
The BIC input unit 221 includes a light pen, an input tablet,
It is composed of a mouse or the like, and can specify any element on the display screen of the display unit 211 with a simple operation. The instruction input unit 223 is used for inputting operation instructions and manually inputting various data through key operations. For example, it is also possible to input numerical values of the horizontal and vertical coordinates of arbitrary coordinates within the display screen described above. The display control unit 213 controls the display unit 211 based on the main bitmap 261 (details will be described later).
Controls the display of characters and figures.

主ビットマツプ261は、表示部211の表示画面に対
応した全画素データを格納するものであり、同一画素に
表示する図形要素が複数ある場合には、その中で最も優
先度の高いすなわち上書きされた最上部の図形要素の画
素データを格納している。
The main bitmap 261 stores all pixel data corresponding to the display screen of the display unit 211, and when there are multiple graphical elements to be displayed on the same pixel, the main bitmap 261 stores the data of all the pixels corresponding to the display screen of the display unit 211. Stores the pixel data of the top graphic element.

要素ビットマツプ271のそれぞれは、図形要素にl対
lに対応しており、着目図形の画素データと、この着目
図形の範囲を示す座標データ、サイズデータとを格納し
ている。
Each of the element bitmaps 271 corresponds to graphic elements in an l-to-l ratio, and stores pixel data of a graphic of interest, coordinate data indicating the range of the graphic of interest, and size data.

また、ビットマツプ管理部231は、内部に管理表23
31図形要素管理テーブルアドレス−覧表2352図形
要素管理テーブル237を有しており、表示画面の各画
素毎のデータを格納した主ビットマツプ261及び所定
単位の表示要素毎の画素データを格納した複数の要素ビ
ットマツプ271を作成する。
Further, the bitmap management section 231 has a management table 23 internally.
31 Graphic element management table address-list 2352 Graphic element management table 237 is included, as well as a main bitmap 261 that stores data for each pixel on the display screen and multiple bitmaps that store pixel data for each display element in a predetermined unit. An element bitmap 271 is created.

管理表233は、実施例の会話型処理システムの表示に
関するアドレス管理を行うためのものであり、その具体
例を第1表に示す。
The management table 233 is for managing addresses regarding the display of the interactive processing system of the embodiment, and a specific example thereof is shown in Table 1.

類アドレスも含まれている。その−例を第2表に示す。Also includes class addresses. Examples are shown in Table 2.

第2表において、rPIC−1,2Jは表示された図形
要素のそれぞれを示しており、1対1に対応する要素ビ
ットマツプ271の先頭アドレスを含んでいる格納状態
を示している。なお、この図形要素管理テーブル237
は、図形要素の優先順に基づいて配列をしなおして、常
に優先順位の高い順番に検索可能な状態にしておく。
In Table 2, rPIC-1 and rPIC-2J indicate each of the displayed graphic elements, and indicate a storage state including the start address of the element bitmap 271 in one-to-one correspondence. Note that this graphic element management table 237
rearranges the arrangement based on the priority order of graphic elements so that they can always be searched in the order of highest priority.

図形要素管理テーブルアドレス−覧表235は、図形要
素管理テーブル237内に格納された各図形要素情報の
アドレスを格納しているものであり、その−例を第3表
に示す。
The graphic element management table address list 235 stores the addresses of each graphic element information stored in the graphic element management table 237, and an example thereof is shown in Table 3.

第3表 図形要素管理テーブル237は、複数の表示図形のそれ
ぞれに対応した領域を有し、各領域には対応する図形要
素に関する情報が格納されており、この中には対応する
要素ビットマツプ271の先筒3表において、「要素名
」は各図形要素に付された識別符号であり、システム内
部で管理して表示図形との対応をとるために使用する。
The third graphical element management table 237 has areas corresponding to each of a plurality of display figures, each area stores information regarding the corresponding graphical element, and this includes the corresponding element bitmap 271. In the front cylinder 3 table, the "element name" is an identification code given to each graphic element, and is used for management within the system and correspondence with displayed graphics.

また、rPIc−1のポインタ」等は第2表に示した各
図形要素に対応した領域(PIC−1,PIC−2等)
の先頭アドレスを指し示すポインタである。
In addition, "rPIc-1 pointer" etc. are areas corresponding to each graphical element shown in Table 2 (PIC-1, PIC-2, etc.)
This is a pointer pointing to the start address of .

人出力制御部251は、各構成部間のデータや指示の入
出力を制御するものである。例えばピック入力部221
あるいは指示入力部223によって図形の作図指示が入
力されると、この指示をビ・ントマップ管理部231に
送るようになっている。
The human output control unit 251 controls input and output of data and instructions between each component. For example, the pick input section 221
Alternatively, when a figure drawing instruction is inputted by the instruction input section 223, this instruction is sent to the bin map management section 231.

データ処理部251は、入力データに対して所定の演算
処理、あるいは表示図形の拡大、縮小。
The data processing unit 251 performs predetermined arithmetic processing on input data or enlarges or reduces displayed figures.

移動等の各種図形処理を行うものであり、この処理結果
は主ビットマツプ261に書き込まれた後、表示制御部
213を介して表示部211に表示される。
It performs various graphic processing such as movement, and the results of this processing are written to the main bitmap 261 and then displayed on the display section 211 via the display control section 213.

次に、上述した本発明実施例の動作を説明する。Next, the operation of the embodiment of the present invention described above will be explained.

第3図に、主ビットマツプ261及び各要素ビットマツ
プ271の格納データの具体例を示す。
FIG. 3 shows a specific example of data stored in the main bitmap 261 and each element bitmap 271.

同図(a)は例えば縦8画素、横9画素の大きさを有す
る主ビットマツプの格納内容を示しており、各画素に対
応した数字が優先度の最も高い図形要素を示している。
FIG. 5A shows the stored contents of a main bitmap having a size of, for example, 8 pixels in the vertical direction and 9 pixels in the horizontal direction, and the number corresponding to each pixel indicates the graphic element with the highest priority.

なお、「0」は表示する図形要素がない場合に対応して
いる。
Note that "0" corresponds to the case where there is no graphic element to be displayed.

同図ら)は要素1に対応した要素ビットマツプ271の
格納内容を示しており、着目図形を表現するために必要
な最小限の大きさを有し、その開始位置X、 Y及び横
方向のサイズX(=3)、縦方向のサイズY(=5>を
付加情報として有している。主ビットマツプの左上の座
標を(0,0)とすると、開始値if X ” 2、開
始位置Y=3となる。
) shows the stored contents of the element bitmap 271 corresponding to element 1, which has the minimum size necessary to express the figure of interest, its starting position X, Y, and horizontal size X. (=3), vertical size Y (=5>) as additional information.If the upper left coordinates of the main bitmap are (0,0), the start value if X '' 2, the start position Y=3 becomes.

また、同図(b)に示したビットマツプは、本図形要素
が存在しない要素には「0」を格納し、存在する要素で
はそのビット上の要素で本図形より優先度の高い図形が
ある場合には1つ上位の図形要素名(要素番号)を上位
2バイトに、本図形要素より優先度の低い図形要素があ
る場合には1つ以下図形要素名を下位2ハイドに設定す
る。なお、本図形要素の優先度が最も高い場合は上位2
バイトに本図形要素名を、本図形要素の優先度が最も低
い場合は下位2バイトに本図形要素名をそれぞれ格納す
る。図中A/BのAは上位2バイトをBは下位2バイト
をそれぞれ示している。
In addition, the bitmap shown in Figure (b) stores "0" in elements where this graphic element does not exist, and if there is an element on that bit that has a higher priority than this graphic element. The graphic element name (element number) of the next higher order is set in the upper 2 bytes, and if there is a graphic element with a lower priority than this graphic element, the name of one or less graphic elements is set in the lower 2 bytes. In addition, if this graphical element has the highest priority, the top 2
The name of this graphic element is stored in the byte, and if the priority of this graphic element is the lowest, the name of this graphic element is stored in the lower two bytes. In the figure, A of A/B indicates the upper two bytes, and B indicates the lower two bytes.

同図(C)は要素2に対応した要素ビットマツプ271
の格納内容を示しており、格納内容の詳細については同
図(b)に示した図形要素1の場合と同様である。
(C) is an element bitmap 271 corresponding to element 2.
The details of the stored contents are the same as in the case of the graphic element 1 shown in FIG.

第4図に、新たな図形要素4を追加する場合の動作手順
を示す。オペレータがピック入力部22Iあるいは指示
入力部223を操作して新たな図形の作成指示を行い、
その旨の指示及び座標データ等がビットマツプ管理部2
31に送られた状態にあるものとする。
FIG. 4 shows the operating procedure when adding a new graphic element 4. The operator operates the pick input section 22I or the instruction input section 223 to instruct the creation of a new figure,
Instructions to that effect, coordinate data, etc. are sent to the bitmap management section 2.
31.

先ず、ビットマツプ管理部231は、図形要素4に対応
した図形要素管理テーブル237を作成し、優先順のリ
ンク構造に組み込むと共に(ステップ411)、その図
形要素管理テーブル237内の図形要素4に対応した領
域の先頭アドレスを図形要素管理テーブルアドレス−覧
表235に格納する(ステップ412)。
First, the bitmap management unit 231 creates the graphic element management table 237 corresponding to the graphic element 4, incorporates it into the link structure in priority order (step 411), and also creates the graphic element management table 237 corresponding to the graphic element 4 in the graphic element management table 237. The start address of the area is stored in the graphic element management table address list 235 (step 412).

次に、ビットマツプ管理部231は、図形要素4が展開
するビットマツプの範囲を求め、それを格納できる要素
ビットマツプ271を用意すると共に(ステップ413
)、主ビットマツプ261上の図形要素4が描かれる要
素(画素位置)を求める(ステップ414)。
Next, the bitmap management unit 231 determines the range of the bitmap in which the graphic element 4 is developed, prepares the element bitmap 271 that can store it, and (step 413
), the element (pixel position) at which graphic element 4 is drawn on the main bitmap 261 is determined (step 414).

次に、図形要素4に対応した要素ビットマツプ271内
で図形要素4を描く要素の下位2バイトを求める(ステ
ップ415)。具体的には、主ビットマツプ261上の
図形要素4を描く各要素に設定されている図形要素名(
第3図(a)に示した例では図形要素1〜3の何れかで
あり、以下既存図形要素と称する)に基づいて、この設
定された図形要素と本図形要素4との優先度の比較を行
って、以下の■〜■のそれぞれの場合に応じた処理を行
つ。
Next, the lower two bytes of the element that depicts the graphic element 4 in the element bitmap 271 corresponding to the graphic element 4 are obtained (step 415). Specifically, the graphic element name (
In the example shown in FIG. 3(a), this is one of the graphic elements 1 to 3 (hereinafter referred to as the existing graphic element), and the priority is compared between this set graphic element and the present graphic element 4. , and perform the processing according to each of the following cases.

■既存図形要素がない場合(主ビットマツプ261上に
「0」が設定されている場合)は、図形要素4の要素ビ
ットマツプ271中の着目要素の下位2バイトに本図形
要素4を設定する。
(2) If there is no existing graphic element (if "0" is set on the main bitmap 261), this graphic element 4 is set in the lower two bytes of the element of interest in the element bitmap 271 of the graphic element 4.

■既存図形要素の方が優先度が低い場合は、図形要素4
の要素ビットマツプ271中の着目要素の下位2バイト
にその優先度の低い図形要素名を設定すると共に、その
優先度の低い図形要素の要素ビットマツプ271の対応
する要素の上位2バイトに図形要素4を設定する。
■If the existing graphic element has a lower priority, then the graphic element 4
The lower priority graphic element name is set in the lower two bytes of the element of interest in the element bitmap 271, and the graphic element 4 is set in the upper two bytes of the corresponding element in the element bitmap 271 of the lower priority graphic element. Set.

■既存図形要素の方が優先度が高く、この着目要素に図
形要素4より優先度が低い図形要素が存在する場合は、
図形要素4の要素ビットマツプ271中の着目要素の下
位2バイトにその優先度の低い図形要素名を設定すると
共に、その優先度の低い図形要素の要素ビットマツプ2
71の対応する要素の上位2バイトに図形要素4を設定
する。
■If the existing graphic element has a higher priority and there is a graphic element with a lower priority than graphic element 4 in this focused element,
The name of the lower priority graphic element is set in the lower two bytes of the element of interest in the element bitmap 271 of graphic element 4, and the element bitmap 2 of the lower priority graphic element is set.
Graphic element 4 is set in the upper two bytes of the corresponding element of 71.

■既存図形要素の方が優先度が高く、この着目要素に図
形要素4より優先度が低い図形要素が存在しない場合は
、図形要素4の要素ビットマツプ271中の着目要素の
下位2バイトに本図形要素4を設定する。
■If the existing graphic element has a higher priority and there is no graphic element with a lower priority than graphic element 4 in this element of interest, the lower two bytes of the element of interest in the element bitmap 271 of graphic element 4 are Set element 4.

次に、図形要素4に対応した要素ビットマツプ271内
で図形要素4を描く要素の上位2バイトを求める(ステ
ップ416)。具体的には、以下の■〜■のそれぞれの
場合に応じた処理を行う。
Next, the upper two bytes of the element that depicts the graphic element 4 in the element bitmap 271 corresponding to the graphic element 4 are obtained (step 416). Specifically, processing is performed according to each of the following cases.

■既存図形要素がない場合(主ビットマツプ261上に
「0」が設定されている場合)は、図形要素4の要素ビ
ットマツプ271中の着目要素の上位2バイトに本図形
要素4を設定する。
(2) If there is no existing graphic element (if "0" is set on the main bitmap 261), this graphic element 4 is set in the upper two bytes of the element of interest in the element bitmap 271 of the graphic element 4.

■既存図形要素の方が優先度が低い場合は、図形要素4
の要素ビットマツプ271中の着目要素の上位2バイト
に本図形要素4を設定する。
■If the existing graphic element has a lower priority, then the graphic element 4
This graphical element 4 is set in the upper two bytes of the element of interest in the element bitmap 271 of .

■既存図形要素の方が優先度が高い場合は、図形要素4
の1つ上に重なっている図形要素を図形要素管理テーブ
ルアドレス−覧表235及び図形要素管理テーブル23
7を参照することにより検索し、図形要素4の要素ビッ
トマツプ271中の着目要素の上位2バイトにその1つ
上に重なった図形要素名を設定すると共に、その1つ上
に重なった図形要素の要素ビットマツプ271の対応す
る要素の下位2バイトに図形要素4を設定する。
■If the existing graphic element has a higher priority, the graphic element 4
The graphic elements that overlap one above are displayed in the graphic element management table address table 235 and the graphic element management table 23.
7, and set the name of the graphic element that overlaps one above in the upper two bytes of the element of interest in the element bitmap 271 of graphic element 4, and also set the name of the graphic element that overlaps one above it. Graphic element 4 is set in the lower two bytes of the corresponding element in element bitmap 271.

次に、ビットマツプ管理部231は、ステップ416で
求めた図形要素4の要素ビットマツプ271内の上位2
バイトの中で本図形要素4が設定されている要素(図形
要素4の優先度が最も高い要素)を抽出し、対応する主
ビットマツプ261上の要素に本図形要素名4を設定す
る。(ステップ417)。
Next, the bitmap management unit 231 selects the top two elements in the element bitmap 271 of the graphic element 4 obtained in step 416.
The element to which this graphic element 4 is set (the element with the highest priority of graphic element 4) is extracted from the bytes, and this graphic element name 4 is set to the corresponding element on the main bitmap 261. (Step 417).

また、図形要素4に対応した要素ビットマツプ271内
で、図形要素4を描く要素以外の要素にrQJを設定し
て、図形の追加処理を終了する。
Furthermore, in the element bitmap 271 corresponding to the graphic element 4, rQJ is set to elements other than the element drawing the graphic element 4, and the graphic addition process is completed.

また、第5図に既存の図形要素(例えば図形要素2)を
削除する場合の動作手順を示す。
Further, FIG. 5 shows the operating procedure when deleting an existing graphic element (for example, graphic element 2).

先ず、ビットマツプ管理部231は、図形要素管理テー
ブルアドレス−覧表235を検出して図形要素管理テー
ブル237の図形要素2に対応した領域のアドレスを求
める(ステップ511)。
First, the bitmap management unit 231 detects the graphic element management table address list 235 and obtains the address of the area corresponding to graphic element 2 in the graphic element management table 237 (step 511).

更に、図形要素管理テーブル237を参照して図形要素
2の要素ビットマツプ271を求めると共に(ステップ
512)、この要素ビットマツプ271中の図形要素2
が展開している要素を求める(ステップ513)。
Furthermore, the element bitmap 271 of the graphic element 2 is obtained with reference to the graphic element management table 237 (step 512), and the element bitmap 271 of the graphic element 2 in this element bitmap 271 is obtained.
Find the element in which is expanded (step 513).

次に、ビットマップ管理部231は、ステップ513で
求めた要素の上位2バイトが本図形要素2であるか否か
を判定しくステップ514)、上位2バイトが本図形要
素2を示しているとき(肯定判断)は、同要素の下位2
バイトが「2」であるか否かに応じて以下の■あるいは
■の処理を行って、主ビットマツプ261の設定を行う
(ステップ515)。
Next, the bitmap management unit 231 determines whether the upper two bytes of the element obtained in step 513 are the main graphic element 2 (step 514), and if the upper two bytes indicate the main graphic element 2, (affirmative judgment) is the lower 2 of the same element
Depending on whether the byte is "2" or not, the following process (1) or (2) is performed to set the main bitmap 261 (step 515).

■下位2バイトが本図形要素2であるときは、本図形要
素の下に図形要素がないものと判断して、主ビットマツ
プ261の同要素に「0」を書き込む。
(2) When the lower two bytes are this graphic element 2, it is determined that there is no graphic element below this graphic element, and "0" is written to the same element in the main bitmap 261.

■下位2バイトが本図形要素2以外であるときは、主ビ
ットマツプ261の同要素に上述した下位2バイトで示
された図形要素名を設定し、かつその下位の図形要素の
要素ビットマツプ271の同要素に下位の図形要素自身
を設定する。
■If the lower 2 bytes are other than this graphic element 2, set the graphic element name indicated by the lower 2 bytes above in the same element of the main bitmap 261, and set the same element bitmap 271 of the lower graphic element. Set the lower graphical element itself to the element.

また、ビットマツプ管理部231は、ステップ513で
求めた要素の上位2バイトが本図形要素2以外である場
合には(ステップ514で否定判断)、その上位図形要
素の要素ビットマツプ271を図形要素管理テーブルア
ドレス−覧表235から求める(ステップ516)。
Further, if the upper two bytes of the element obtained in step 513 are other than the present graphic element 2 (negative determination in step 514), the bitmap management unit 231 stores the element bitmap 271 of the upper graphic element in the graphic element management table. It is obtained from the address list 235 (step 516).

次に、ビットマツプ管理部231は、図形要素2の要素
ビットマツプ271の同要素の下位2バイトが「2」で
あるか否かに応じて以下の■あるいは■の処理を行って
、上位あるいは下位図形の要素ビットマツプ271の変
更を行う(ステップ517)。
Next, the bitmap management unit 231 performs the following process ■ or ■ depending on whether the lower two bytes of the element bitmap 271 of the graphic element 2 are "2", and The element bitmap 271 of is changed (step 517).

■下位2バイトが「2」の場合、ステップ516で求め
た上位図形の要素ビットマツプ217の同要素の下位2
バイトに自身の図形要素名を設定する)。
■If the lower 2 bytes are "2", the lower 2 bytes of the same element in the element bitmap 217 of the upper figure obtained in step 516
(Set the own graphic element name in the byte).

■下位2バイトが「2」以外である場合、その値をステ
ップ516で求めた上位図形の要素ビットマツプ217
の下位2バイトに設定し、かつ下位図形の要素ビットマ
ツプ217を図形要素管理テーブルアドレス−覧表23
5から求め、求めた要素ビットマツプ271の同要素の
上位2バイトに上位図形の図形要素名を設定する(ステ
ップ517)。
■If the lower two bytes are other than "2", the value is the element bit map 217 of the upper figure obtained in step 516.
and set the element bitmap 217 of the lower figure to the lower 2 bytes of the figure element management table address table 23.
5 and sets the graphic element name of the higher-order graphic in the upper two bytes of the same element in the element bitmap 271 that has been found (step 517).

次に、ビットマツプ管理部231は、図形要素2の要素
ビットマツプ271を削除すると共に、図形要素管理テ
ーブルアドレス−覧表235及び図形要素管理テーブル
237から図形要素2に関する部分を削除して(ステッ
プ518L図形要素2の削除処理を終了する。
Next, the bitmap management unit 231 deletes the element bitmap 271 of the graphic element 2, and also deletes the portion related to the graphic element 2 from the graphic element management table address list 235 and the graphic element management table 237 (step 518L) The deletion process for element 2 ends.

このように、複数の図形要素が重なっている場合に、着
目要素において重なり合った図形要素の情報を各図形要
素毎の要素ビットマツプ271に設定しておき、図形要
素の追加、削除を行う場合に、重なり合った隣接図形の
要素ビットマツプ271を図形要素管理テーブルアドレ
ス−覧表235及び図形要素管理テーブル237から求
めて変更する。また、ここで追加あるいは削除する図形
要素が最上位にある場合には、主ビットマツプ261を
変更する。
In this way, when multiple graphical elements overlap, information on the graphical elements that overlap in the element of interest is set in the element bitmap 271 for each graphical element, and when adding or deleting graphical elements, The element bitmap 271 of the overlapping adjacent figures is obtained from the figure element management table address list 235 and the figure element management table 237 and is changed. Furthermore, if the graphical element to be added or deleted here is at the top level, the main bitmap 261 is changed.

従って、図形を追加、削除する場合に、本図形の1つ上
位あるいは下位の図形要素の要素ビットマツプ271を
変更するだけでよく、処理の高速化が可能になる。特に
、図形要素管理テーブルアドレス−覧表235及び図形
要素管理テーブル237を辿っていくことにより該当す
る要素ビットマツプ271を求めることができるので、
要素ビットマツプ271の全部を検索して求めずに直接
求めることができるので、作成された図形要素の数に関
係なく高速なビック入力を実現することができるように
なる。
Therefore, when adding or deleting a figure, it is only necessary to change the element bitmap 271 of the figure element one above or below the present figure, and processing speed can be increased. In particular, by tracing the graphic element management table address table 235 and the graphic element management table 237, the corresponding element bitmap 271 can be obtained.
Since the element bitmap 271 can be directly determined without searching and determining the entire element bitmap 271, high-speed big input can be realized regardless of the number of graphic elements created.

なお、本発明の実施例では、図形要素管理テーブル23
7に要素ビットマツプ271のアドレスを格納しておく
ようにしたが、図形要素管理テーブルアドレス−覧表2
35に要素ビットマツプ271のアドレスそのものを格
納して該当する要素ピノ]・マツプ2゛71を一度に求
めるようにしてもよい。
In addition, in the embodiment of the present invention, the graphic element management table 23
7 stores the address of the element bitmap 271, but the graphic element management table address list 2
The address itself of the element bitmap 271 may be stored in 35, and the corresponding element bitmap 271 may be obtained at once.

〔発明の効果〕〔Effect of the invention〕

上述したように、本発明によれば、直接型なり合った図
形要素に対応した第2のビットマツプのみを変更し、こ
の変更結果に応じて第1のビットマツプを書き換えるこ
とにより図形要素の追加。
As described above, according to the present invention, a graphic element can be added by directly changing only the second bitmap corresponding to a graphic element that matches the type, and rewriting the first bitmap according to the result of this change.

変更を行っており、変更する情報量を減らして図形を追
加、削除する際の表示の高速化を実現することができる
ので、実用的には極めて有用である。
It is extremely useful in practical terms because it reduces the amount of information to be changed and speeds up the display when adding or deleting figures.

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

第1図は本発明のビットマツプ管理方式の原理ブロック
図、 第2図は本発明のビットマツプ管理方式を適用した一実
施例の構成図、 第3図は一実施例のビットマツプの説明図、第4図及び
第5図は一実施例の動作説明図、第6図は図形表示の具
体例の説明図である。 図において、 111は表示装置、 121は第1のビットマツプ、 131は第2のビットマツプ、 141はビットマツプ管理手段、 211は表示部、 213は表示制御部、 221はビック入力部、 223は指示入力部、 231はビットマツプ管理部、 233は管理表、 235は図形要素管理テーブルアドレス−覧表、237
は図形要素管理テーブル、 241は入出力制御部、 251はデータ処理部、 261は主ビットマツプ、 27]は要素ビットマツプである。 本4−朗の屑I里プO−vり図 第1図 第6図 −アyセ邑)クリのf8斤\と四つ −)65也)列の申カイ′F言hrLρつ第4図 (C) 一アグヒ、ブ勿めε°−Fマー・フo、 tル明し≧り
第3図 一実、引61刊のナカ作1分、θSa 第5図
FIG. 1 is a principle block diagram of the bitmap management method of the present invention, FIG. 2 is a block diagram of an embodiment to which the bitmap management method of the present invention is applied, FIG. 3 is an explanatory diagram of a bitmap of an embodiment, and FIG. 5 and 5 are explanatory diagrams of the operation of one embodiment, and FIG. 6 is an explanatory diagram of a specific example of graphical display. In the figure, 111 is a display device, 121 is a first bitmap, 131 is a second bitmap, 141 is a bitmap management means, 211 is a display section, 213 is a display control section, 221 is a big input section, 223 is an instruction input section , 231 is a bitmap management section, 233 is a management table, 235 is a graphic element management table address list, 237
is a graphic element management table, 241 is an input/output control section, 251 is a data processing section, 261 is a main bitmap, and 27] is an element bitmap. Book 4-Lang's waste Iripu O-vri diagram Fig. 1 Fig. 6-Ayse-eum) Chestnut's f8 cat\ and four-) 65 ya) Row's Shenkai'F word hrLρtsu 4th Figure (C) 1 aguhi, bumarame ε°-F ma huo, tru clear ≧ri Figure 3 Kazumi, 1 minute by Naka of the 61st edition, θSa Figure 5

Claims (1)

【特許請求の範囲】[Claims] (1)複数の図形要素を重ねて表示する場合のビットマ
ップ管理方式において、 前記図形要素の表示を行う表示装置(111)と、 前記表示装置(111)の表示画面を構成する各画素の
表示情報を格納する第1のビットマップ(121)と、 前記複数の図形要素のそれぞれに対応し、各要素毎に、
対応する図形要素と直接重なり合った図形要素名を格納
する複数の第2のビットマップ(131)と、 前記表示装置(111)の表示に対して図形要素の追加
、削除を行う場合に、この図形要素と直接重なり合った
図形要素に対応する前記第2のビットマップ(131)
を変更すると共に、この変更結果に応じて前記第1のビ
ットマップ(121)の書き換えを行うビットマップ管
理手段(141)と、 を備えるように構成したことを特徴とするビットマップ
作成方式。
(1) In a bitmap management method for displaying multiple graphical elements in an overlapping manner, a display device (111) that displays the graphical elements; and a display of each pixel that constitutes the display screen of the display device (111). A first bitmap (121) that stores information, and corresponding to each of the plurality of graphical elements, for each element,
a plurality of second bitmaps (131) that store graphic element names directly overlapping with corresponding graphic elements; the second bitmap (131) corresponding to a graphical element that directly overlaps the element;
a bitmap management means (141) for changing the first bitmap (121) and rewriting the first bitmap (121) according to the change result.
JP33024089A 1989-12-20 1989-12-20 Bit map managing system Pending JPH03189877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33024089A JPH03189877A (en) 1989-12-20 1989-12-20 Bit map managing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33024089A JPH03189877A (en) 1989-12-20 1989-12-20 Bit map managing system

Publications (1)

Publication Number Publication Date
JPH03189877A true JPH03189877A (en) 1991-08-19

Family

ID=18230429

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33024089A Pending JPH03189877A (en) 1989-12-20 1989-12-20 Bit map managing system

Country Status (1)

Country Link
JP (1) JPH03189877A (en)

Similar Documents

Publication Publication Date Title
JPS5891492A (en) Image display device control method
JPS6322597B2 (en)
JPH05210722A (en) Graphics-display-tool
JP3481296B2 (en) How to select items on the graphic screen
JPS6118036A (en) Document correction system
JP3359634B2 (en) Graphics output system with in-bounds update
JPH0325792B2 (en)
JPH03189877A (en) Bit map managing system
JPH0683304A (en) Window controlling method and raster-display-window controlling system
US5850223A (en) Editing three-dimensional vertex data with undo facility
JPH0767136B2 (en) Image processing device
JP2577397B2 (en) Graphic display device
JPS63313234A (en) File index display system
JP3554250B2 (en) Graphic display method and graphic display device
JPH0376491B2 (en)
JP2547347B2 (en) Image display controller
JP3871281B2 (en) Leader automatic setting method and leader automatic setting device therefor
JPS62115580A (en) Closed area filling method
JP3077351B2 (en) Data display method
JPS6159484A (en) Segment control system
JPH0399369A (en) Drawing management method, drawing management device, and its drawing display method
JPH09311925A (en) Graphic data storage method
JPH07311790A (en) Catalog of figure correction device
JPH0887261A (en) Display device and control method thereof
JPH02308375A (en) Method and device for graphic picking