JPH0721755B2 - Drawing device - Google Patents

Drawing device

Info

Publication number
JPH0721755B2
JPH0721755B2 JP1069703A JP6970389A JPH0721755B2 JP H0721755 B2 JPH0721755 B2 JP H0721755B2 JP 1069703 A JP1069703 A JP 1069703A JP 6970389 A JP6970389 A JP 6970389A JP H0721755 B2 JPH0721755 B2 JP H0721755B2
Authority
JP
Japan
Prior art keywords
environment
exclusive
storage unit
drawing environment
unit
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
JP1069703A
Other languages
Japanese (ja)
Other versions
JPH02247724A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1069703A priority Critical patent/JPH0721755B2/en
Publication of JPH02247724A publication Critical patent/JPH02247724A/en
Publication of JPH0721755B2 publication Critical patent/JPH0721755B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ビットマップデバイスに対する描画装置に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drawing device for a bitmap device.

従来の技術 第2図は、従来の描画装置の構成を図に示したものであ
る。201は、描画環境を描画環境IDと共に記憶する描画
環境記憶部である。202は、描画環境の生成時には、描
画環境IDの生成を行ない、描画環境IDと描画環境を描画
環境記憶部201に記憶させ、描画環境の変更時には、描
画環境IDにより、該当する描画環境を描画環境記憶部20
1から取り出し、変更した後、描画環境を描画環境記憶
部201へ記憶させ、描画環境の削除時には、該当する描
画環境と描画環境IDを描画環境記憶部201から削除を行
ない、描画環境取り出し時には、描画環境IDにより描画
環境記憶部201から該当する描画環境を取り出す描画環
境管理部である。203はプロセスから描画環境ID・描画
データを受け取り、描画環境IDにより描画環境管理部20
2に描画環境を取り出させ、取り出した描画環境に基づ
き描画制御を行なう描画制御部である。204は描画制御
部203からの制御を受けながら描画データに示された描
画内容を描画対象ビットマップに描画を行なう描画部で
ある。205はプロセスからの入力データを受け取り各部
にデータを送り、描画装置内からプロセスへデータを出
力する入出力部である。206は描画対象となるビットマ
ップを形成する描画用のメモリーである。207は、206に
描かれた描画データを表示するビットマップディスプレ
イ・プリンター等の表示部である。
2. Description of the Related Art FIG. 2 shows the structure of a conventional drawing apparatus. A drawing environment storage unit 201 stores the drawing environment together with the drawing environment ID. The 202 generates a drawing environment ID when the drawing environment is generated and stores the drawing environment ID and the drawing environment in the drawing environment storage unit 201. When the drawing environment is changed, the corresponding drawing environment is drawn by the drawing environment ID. Environmental storage 20
After taking out from 1 and changing, the drawing environment is stored in the drawing environment storage unit 201, when the drawing environment is deleted, the corresponding drawing environment and drawing environment ID are deleted from the drawing environment storage unit 201, and when the drawing environment is taken out, A drawing environment management unit that extracts a corresponding drawing environment from the drawing environment storage unit 201 based on the drawing environment ID. 203 receives the drawing environment ID and drawing data from the process, and draws the drawing environment management unit 20 according to the drawing environment ID.
2 is a drawing control unit that causes the drawing environment to be taken out and controls drawing based on the taken out drawing environment. A drawing unit 204 draws the drawing content indicated by the drawing data in the drawing target bitmap under the control of the drawing control unit 203. An input / output unit 205 receives input data from the process, sends the data to each unit, and outputs the data from the drawing device to the process. 206 is a drawing memory for forming a bitmap to be drawn. Reference numeral 207 is a display unit such as a bitmap display printer for displaying the drawing data drawn on 206.

以上のように構成された描画装置において、以下のよう
な処理を行う場合を考える。
Consider a case where the following processing is performed in the drawing apparatus configured as described above.

マルチウィンドウシステムにおいて、2つのプロセスが
存在し、それぞれのプロセスが、ウィンドウをオープン
し、ウィンドウ内への描画を描画装置に行わせているも
のとする。プロセス1が、ウィンドウ1に描画を行って
おり、プロセス2が、ウィンドウ2に連続描画を行なっ
ている。このウィンドウ1が、ウィンドウ2に重なるよ
うに移動したときのウィンドウの再描画に関して、従来
の描画装置の動作を示してみる。
In the multi-window system, it is assumed that there are two processes, and each process opens a window and causes the drawing device to perform drawing in the window. Process 1 is drawing on window 1, and process 2 is drawing continuously on window 2. The operation of the conventional drawing apparatus will be described with respect to the redrawing of the window when the window 1 moves so as to overlap the window 2.

第3図は、マルチウィンドウシステム上で、2つのウィ
ンドウが、表示されているところを示したものである。
301はウィンドウ1であり、302はウィンドウ2である。
FIG. 3 shows two windows displayed on the multi-window system.
301 is the window 1 and 302 is the window 2.

このマルチウィンドウシステム上の、ウィンドウ1・2
はプロセス1・2によって描画が行なわれている。ウィ
ンドウ生成時には、プロセス1・2は入出力部205に描
画環境の生成の指示と描画環境を与える。入出力部205
は、描画環境管理部202に描画環境の生成の指示と描画
環境を与える。描画環境管理部202は描画環境IDを生成
し描画環境と描画環境IDを描画環境記憶部201に記憶さ
せ、描画環境IDを入出力部205に返す。ウィンドウ1・
2に対する描画環境IDは、入出力部205により各プロセ
スに知らせられる。プロセス1・2は描画環境ID・描画
データを入出力部205に与える。入出力部205は描画環境
ID・描画データを描画制御部203に与える。描画制御部2
03は与えられた描画環境IDにより描画環境管理部202か
ら描画環境を取り出す。そして、取り出した描画環境に
基づき描画制御を描画部204に対して行う。描画部204は
描画制御部203からの描画制御に基づきながら描画デー
タに示された描画内容を描画対象ビットマップ206に描
画し、表示部207にウィンドウ1・2を表示する。
Windows 1 and 2 on this multi-window system
Is being drawn by processes 1 and 2. When the window is generated, the processes 1 and 2 give the input / output unit 205 an instruction to generate the drawing environment and the drawing environment. Input / output unit 205
Gives the drawing environment management unit 202 an instruction to generate a drawing environment and a drawing environment. The drawing environment management unit 202 generates a drawing environment ID, stores the drawing environment and the drawing environment ID in the drawing environment storage unit 201, and returns the drawing environment ID to the input / output unit 205. Window 1
The drawing environment ID for 2 is notified to each process by the input / output unit 205. Processes 1 and 2 give the drawing environment ID and drawing data to the input / output unit 205. Input / output unit 205 is a drawing environment
The ID and drawing data are given to the drawing control unit 203. Drawing control unit 2
03 extracts the drawing environment from the drawing environment management unit 202 with the given drawing environment ID. Then, drawing control is performed on the drawing unit 204 based on the extracted drawing environment. The drawing unit 204 draws the drawing content indicated by the drawing data on the drawing target bitmap 206 based on the drawing control from the drawing control unit 203, and displays the windows 1 and 2 on the display unit 207.

第5図は、ウィンドウ1を、ウィンドウ2に重ねた時を
示すものである。501はウィンドウ1、502はウィンドウ
2である。503(斜線部分)は、ウィンドウ1・2の重
なった領域を示したものである。
FIG. 5 shows the window 1 overlaid on the window 2. 501 is a window 1 and 502 is a window 2. Reference numeral 503 (hatched portion) shows an overlapping region of the windows 1 and 2.

第7図は、第3図から第5図の状態になる時、プロセス
1・2の動きを示したものである。各プロセス・ウィン
ドウマネージャの動きに呼応した描画装置の動きを示
す。
FIG. 7 shows the movements of processes 1 and 2 when the states shown in FIGS. 3 to 5 are entered. The movement of the drawing device in response to the movement of each process window manager is shown.

今、プロセス1の描画環境=1、プロセス2の描画環境
ID=2とする。
Now, the drawing environment of process 1 = 1, the drawing environment of process 2
ID = 2.

(1)ウィンドウ1の移動要求(第7図−701) マウス等のポインディングデバイスの操作によりウィン
ドウ1がウィンドウ2上の点線枠(第4図−403)で示
される領域に移動された時、プロセス1に対してウィン
ドウ1の移動要求がウィンドウマネージャから送られ
る。
(1) Window 1 move request (Fig. 7-701) When the window 1 is moved to the area shown by the dotted frame (Fig. 4-403) on the window 2 by operating the pointing device such as a mouse, A request to move window 1 is sent to process 1 from the window manager.

(2)ウィンドウ1の移動(第7図−702) ウィンドウ1の移動に伴い入出力部205は、プロセス1
より描画環境変更指示・描画環境ID=1・描画環境の変
更データ(描画領域・クリッピング領域)を受け取る。
入出力部205は描画環境管理部202に当データを与える。
描画環境管理部202は描画環境IDにより描画環境を描画
環境記憶部201より取り出して、変更した後、描画環境
を描画環境記憶部201へ記憶させる。描画環境管理部202
は、入出力部205へ描画環境の変更が終了したことを知
らせる。入出力部205は、プロセスに対して描画環境を
変更したことを知らせる。描画環境を変更した後、プロ
セス1は、ウィンドウ1の再描画を行う。入出力部205
は、プロセスから描画環境ID=1・描画データを受け、
入出力部205は、描画制御部203に当データを与える。描
画制御部203は、描画環境IDに示された描画環境を描画
環境管理部202に描画環境記憶部201から取り出させ、描
画環境に基づいた描画制御を行う。描画部204は、描画
制御部203からの描画制御を受けながら描画データに示
された描画内容を描画対象となるビットマップに描画す
る。表示部207には、再描画されたウィンドウ1が表示
される。
(2) Movement of window 1 (702 in FIG. 7) Along with movement of window 1, the input / output unit 205 uses process 1
Receives drawing environment change instruction, drawing environment ID = 1, and drawing environment change data (drawing area / clipping area).
The input / output unit 205 gives this data to the drawing environment management unit 202.
The drawing environment management unit 202 retrieves the drawing environment from the drawing environment storage unit 201 based on the drawing environment ID, changes the drawing environment, and then stores the drawing environment in the drawing environment storage unit 201. Drawing environment management unit 202
Informs the input / output unit 205 that the drawing environment has been changed. The input / output unit 205 notifies the process that the drawing environment has been changed. After changing the drawing environment, the process 1 redraws the window 1. Input / output unit 205
Receives the drawing environment ID = 1 and drawing data from the process,
The input / output unit 205 gives this data to the drawing control unit 203. The drawing control unit 203 causes the drawing environment management unit 202 to extract the drawing environment indicated by the drawing environment ID from the drawing environment storage unit 201, and performs drawing control based on the drawing environment. The drawing unit 204 draws the drawing content indicated in the drawing data on the bitmap to be drawn while receiving the drawing control from the drawing control unit 203. The redrawn window 1 is displayed on the display unit 207.

(3)ウィンドウ2のクリッピング領域の変更(第7図
−703) プロセス1は、ウィンドウ2のクリッピング領域の変更
をウィンドウマネージャに行わせる。入出力部205は、
ウィンドウマネージャにより描画環境の変更指示・描画
環境ID=2・描画環境の変更データ(クリッピング領
域)を受け取る。入出力部205は、描画環境管理部202に
当データを与え、描画環境管理部202に描画環境の変更
を行わせる。描画環境管理部202は、入出力部205により
与えられた描画環境ID=2により、描画環境記憶部201
より該当する描画環境を取り出し、変更した後、描画環
境記憶部201に記憶させる。描画環境管理部202は、描画
環境の変更が終ったことを入出力部205に知らせる。入
出力部205は、ウィンドウマネージャに対して描画環境
を変更したことを知らせる(第6図:ウィンドウ2の斜
線領域からクロス斜線領域にクリッピング領域を変
更)。
(3) Change of clipping area of window 2 (FIG. 7-703) Process 1 causes the window manager to change the clipping area of window 2. The input / output unit 205 is
The window manager receives the drawing environment change instruction, drawing environment ID = 2, and drawing environment change data (clipping area). The input / output unit 205 gives this data to the drawing environment management unit 202 and causes the drawing environment management unit 202 to change the drawing environment. The drawing environment management unit 202 uses the drawing environment ID = 2 provided by the input / output unit 205 to determine the drawing environment storage unit 201.
The corresponding drawing environment is extracted, changed, and then stored in the drawing environment storage unit 201. The drawing environment management unit 202 notifies the input / output unit 205 that the drawing environment has been changed. The input / output unit 205 notifies the window manager that the drawing environment has been changed (FIG. 6: changing the clipping area from the hatched area of the window 2 to the cross hatched area).

発明が解決しようとする課題 しかしながら、上記した構成では、クリッピング領域の
変更を行う間・変更された描画環境が描画制御部203に
より描画環境管理部202から取り出され、変更された描
画環境に基づいた描画制御部203の描画制御が始まり出
すまで、ウィンドウ2に対して連続描画を続けているプ
ロセス2は、重なり領域(図5−503)に対しても描画
を行なってしまう。よって、重なり領域(図5−503)
の描画内容は、破壊される。
However, in the above-described configuration, the drawing control unit 203 extracts the changed drawing environment from the drawing environment management unit 202 while changing the clipping area, and based on the changed drawing environment. Until the drawing control of the drawing control unit 203 starts, the process 2 that continuously draws on the window 2 also draws on the overlapping area (FIG. 5-503). Therefore, the overlapping area (Fig. 5-503)
The drawing content of is destroyed.

なお、従来の描画装置の構成で、描画領域の描画内容を
破壊せずに描画を行うとすると、一つ一つの描画領域に
対してそれぞれのプロセスが、ある順番で描画を行なう
か、または、プロセス間通信を行ないながらお互いの描
画内容を破壊せずに描画を行なわなければならない。こ
のため、プロセス側の処理が繁雑になり高速な描画が望
めなくなる。
In the configuration of the conventional drawing device, if drawing is performed without destroying the drawing content of the drawing area, each process draws in each drawing area in a certain order, or It is necessary to perform drawing without destroying each other's drawing contents while performing interprocess communication. Therefore, the process on the process side becomes complicated and high-speed drawing cannot be expected.

本発明はかかる点に鑑み、既に描画されているものが破
壊されることがないように、排他描画を可能とする描画
装置を提供することを目的とする。
In view of the above point, the present invention has an object to provide a drawing apparatus capable of exclusive drawing so that an already drawn object is not destroyed.

課題を解決するための手段 本発明は、上記の目的を達成するために、プロセスID・
描画環境ID・描画データのデータから構成される描画情
報をキューイングするFIFO構造の描画情報記憶部と、プ
ロセスID・描画環境IDを記憶する排他情報記憶部と、プ
ロセスからの排他描画指示に対して、前記排他情報記憶
部にプロセスから与えられたプロセスID・描画環境IDを
記憶させ、描画の可否の問い合わせに対して、与えられ
たプロセスID・描画環境IDに対して、前記排他情報記憶
部内のプロセスID・描画環境IDとの比較を行ない、一致
すれば描画許可信号を、一致しなければ描画禁止信号を
送信し、プロセスからの排他描画解除指示に対して、前
記排他情報記憶部内のプロセスID・描画環境IDを削除す
ると共に排他描画解除信号を送信する排他描画制御部
と、プロセスから与えられた描画情報を前記排他描画制
御部に与え描画の可否をチェックし、描画許可信号受信
の場合、描画情報の描画環境IDにより前記描画環境管理
部に描画環境を取り出させ、取り出した描画環境に基づ
き描画を行ない、描画禁止信号受信の場合、プロセスか
ら与えられた描画情報を前記描画情報記憶部にキューイ
ングし、前記排他描画制御部から、排他描画解除信号を
受信した場合、前記描画情報記憶部に格納されている描
画情報を順次取り出し描画を行う描画制御部を描画装置
に備えた。
Means for Solving the Problems In order to achieve the above object, the present invention provides a process ID
A drawing information storage unit with a FIFO structure that queues drawing information composed of drawing environment ID and drawing data, an exclusive information storage unit that stores a process ID and drawing environment ID, and an exclusive drawing instruction from a process Then, the process ID / drawing environment ID given from the process is stored in the exclusive information storage unit, and in response to the inquiry about whether drawing is possible, the process ID / drawing environment ID is stored in the exclusive information storage unit. Process ID / drawing environment ID, and if they match, a drawing permission signal is sent, and if they do not match, a drawing prohibition signal is sent, and in response to an exclusive drawing cancellation instruction from the process, the process in the exclusive information storage unit The ID / drawing environment ID is deleted, and the exclusive drawing control unit that sends an exclusive drawing release signal and the drawing information given by the process are given to the exclusive drawing control unit to check whether drawing is possible. When the drawing permission signal is received, the drawing environment management unit extracts the drawing environment according to the drawing environment ID of the drawing information, and the drawing is performed based on the extracted drawing environment. Drawing control for queuing the drawn information stored in the drawing information storage unit and sequentially extracting the drawing information stored in the drawing information storage unit when an exclusive drawing release signal is received from the exclusive drawing control unit. Parts were provided in the drawing device.

作用 本発明は前記した構成により、オーバーラップを許した
マルチウィンドウシステム上で、移動によりウィンドウ
が重なった時は、ウィンドウが破壊されることなく効率
よく描画することが可能となった。
Effect The present invention has the above-described configuration, and when a window overlaps due to movement, it is possible to efficiently draw on a multi-window system that allows overlap, without destroying the windows.

実施例 第1図は本発明の描画装置の構成図を示すものである。
101は描画の実行環境である描画環境の識別子である描
画環境IDと共に対応する描画環境を記憶する描画環境記
憶部である。102は描画環境の生成時には、描画環境ID
を生成し、描画環境と描画環境IDを描画環境記憶部101
に記憶させ、描画環境変更時には、指定された描画環境
IDにより描画環境を取り出し、描画環境の変更データと
の置き換えを行い、描画環境記憶部101に記憶させ、描
画環境削除時には、指定された描画環境IDにより該当す
る描画環境・描画環境IDを描画環境記憶部101より削除
し、描画環境取り出し時には、指定された描画環境IDに
より描画環境記憶部101から描画環境の取り出しを行う
描画環境管理部である。103は描画環境ID・プロセスID
・描画データをキューイングするFIFO構造の描画情報記
憶部である。104は描画環境ID・プロセスIDを記憶する
排他情報記憶部である。105はプロセスからの排他描画
指示に対して、排他情報記憶部104にプロセスから与え
られたプロセスID・描画環境IDを記憶させ、描画の可否
の問い合わせに対して、与えられたプロセスID・描画環
境IDと排他情報記憶部104内のプロセスID・描画環境ID
との比較を行ない、一致すれば描画許可信号を、一致し
なければ描画禁止信号を送信し、プロセスから排他描画
解除指示に対して、排他情報記憶部104内をプロセスID
・描画環境IDを削除する排他描画制御部である。106は
プロセスから与えられた描画情報を排他描画制御部105
に与え描画の可否をチェックし、描画許可の場合、描画
情報の描画環境IDにより描画環境管理部102から描画環
境を取り出し、取り出した描画環境に基づき描画制御を
行ない、描画禁止の場合、プロセスから与えられた描画
情報を描画情報記憶部103にキューイングし、排他描画
制御部105から、排他描画解除信号を受信した場合、描
画情報記憶部103に格納されている描画情報を順次取り
出し描画制御を行なう描画制御部である。107は描画制
御部106からの描画制御と描画データにより描画対象ビ
ットマップに描画を行なう描画部である。108はプロセ
スからの入力データを受け取り、各部にデータを送り、
描画装置内からのプロセスへ出力データを出力する入出
力部である。109は描画対象となるビットマップを形成
する描画用のメモリーである。110は実際に描画された
ものを表示するビットマップディスプレイ・プリンター
等である。
Embodiment FIG. 1 shows a block diagram of a drawing apparatus of the present invention.
A drawing environment storage unit 101 stores a drawing environment ID that is an identifier of a drawing environment that is a drawing execution environment and a corresponding drawing environment. 102 is the drawing environment ID when the drawing environment is created
And draws the drawing environment and drawing environment ID into the drawing environment storage unit 101.
To the specified drawing environment when changing the drawing environment.
The drawing environment is extracted by the ID, replaced with the changed data of the drawing environment, stored in the drawing environment storage unit 101, and when the drawing environment is deleted, the corresponding drawing environment / drawing environment ID is drawn by the specified drawing environment ID. The drawing environment management unit deletes the drawing environment from the drawing environment storage unit 101 with the specified drawing environment ID when the drawing environment is deleted from the storage unit 101. 103 is the drawing environment ID / process ID
A drawing information storage unit having a FIFO structure that queues drawing data. An exclusive information storage unit 104 stores the drawing environment ID and the process ID. 105 stores the process ID / drawing environment ID given from the process in the exclusive information storage unit 104 in response to the exclusive drawing instruction from the process, and gives the given process ID / drawing environment in response to the inquiry about whether drawing is possible or not. ID and process ID / drawing environment ID in exclusive information storage unit 104
And the drawing permission signal is sent if they match, and the drawing prohibition signal is sent if they do not match, and the process ID in the exclusive information storage unit 104 in response to the exclusive drawing cancellation instruction from the process.
An exclusive drawing control unit that deletes the drawing environment ID. 106 is an exclusive drawing control unit 105 based on the drawing information given by the process.
The drawing environment is checked from the drawing environment management unit 102 by the drawing environment ID of the drawing information, and the drawing control is performed based on the drawn drawing environment. When the given drawing information is queued in the drawing information storage unit 103 and the exclusive drawing release signal is received from the exclusive drawing control unit 105, the drawing information stored in the drawing information storage unit 103 is sequentially fetched and the drawing control is performed. This is a drawing control unit. A drawing unit 107 draws on a drawing target bitmap according to drawing control from the drawing control unit 106 and drawing data. 108 receives the input data from the process, sends the data to each part,
An input / output unit that outputs output data from the drawing apparatus to the process. Reference numeral 109 is a drawing memory for forming a bitmap to be drawn. 110 is a bitmap display printer or the like that displays what is actually drawn.

第8図は、第3図,第4図,第5図に示してあるように
マルチウィンドウシステムにおけるウィンドウの排他描
画制御時のプロセス1・2の動きを示したものである。
各プロセス・ウィンドウマネージャの動きに呼応した本
描画装置の動きを本実施例として示す。
FIG. 8 shows the movement of processes 1 and 2 during exclusive drawing control of windows in a multi-window system as shown in FIGS. 3, 4, and 5.
The operation of the drawing apparatus in response to the operation of each process window manager will be described as the present embodiment.

今、プロセス1のプロセスID=1、描画環境ID=1と
し、プロセス2のプロセスID=2,描画環境ID=2とす
る。
Now, the process ID of the process 1 is 1, the drawing environment ID is 1, and the process ID of the process 2 is 2 and the drawing environment ID is 2.

(1)ウィンドウ1の移動要求の受付(第8図−801) マウス等のポインティングデバイスの操作によりウィン
ドウ1がウィンドウ2上の点線枠(第4図)で示される
領域に移動された時、プロセス1に対してウィンドウ1
の移動要求がウィンドウマネージャから送られる。
(1) Reception of request to move window 1 (Fig. 8-801) Process when window 1 is moved to the area indicated by the dotted frame (Fig. 4) on window 2 by operating a pointing device such as a mouse Window 1 for 1
Window move request is sent from the window manager.

(2)排他描画指示(第8図−802) ウィンドウ1の移動要求を受けたプロセス1は、ウィン
ドウ1の移動の前処理として排他描画指示を描画装置に
対して行う。この時の描画装置の動作は、以下の通りで
ある。
(2) Exclusive drawing instruction (FIG. 8-802) The process 1, which has received the request to move the window 1, issues an exclusive drawing instruction to the drawing apparatus as a pre-process for moving the window 1. The operation of the drawing apparatus at this time is as follows.

入出力部108は、プロセス1より、プロセスID=1,描画
環境ID=1と排他描画指示を受け取り、排他描画制御部
105に排他描画指示を与える。排他描画制御部105は、プ
ロセスID=1,描画環境ID=1を排他描画情報記憶部104
に記憶する。
The input / output unit 108 receives the process ID = 1, the drawing environment ID = 1 and the exclusive drawing instruction from the process 1, and the exclusive drawing control unit
An exclusive drawing instruction is given to 105. The exclusive drawing control unit 105 sets the process ID = 1 and the drawing environment ID = 1 to the exclusive drawing information storage unit 104.
Remember.

描画情報記憶部103にプロセスID=1,描画環境ID=1,描
画データを記憶した時点で、排他描画制御を開始する。
すなわち、これ以降のプロセス2からウィンドウ2への
描画要求に対して、以下の処理が行われる。
When the process ID = 1, the drawing environment ID = 1, and the drawing data are stored in the drawing information storage unit 103, the exclusive drawing control is started.
That is, the following processing is performed for subsequent drawing requests from the process 2 to the window 2.

入出力部108は、プロセス1からプロセスID=1,描画環
境ID=1描画データを受け、描画制御部106に与える。
描画制御部106は、与えられた描画情報を排他描画制御
部105に与え描画の可否のチェックを行う。
The input / output unit 108 receives the process ID = 1, the drawing environment ID = 1 drawing data from the process 1, and supplies the drawing data to the drawing control unit 106.
The drawing control unit 106 gives the given drawing information to the exclusive drawing control unit 105 and checks whether or not drawing is possible.

排他描画制御部105は、排他情報記憶部104内のプロセス
ID=1と描画環境ID=1と描画制御部106から与えられ
たプロセスID=2と描画環境ID=2とを比較し、等しく
ないので、描画制御部106に描画禁止信号を送信する。
The exclusive drawing control unit 105 is a process in the exclusive information storage unit 104.
ID = 1, drawing environment ID = 1, process ID = 2 given from the drawing control unit 106 and drawing environment ID = 2 are compared, and since they are not equal, a drawing inhibition signal is transmitted to the drawing control unit 106.

描画制御部106は、排他描画制御部105からの描画禁止信
号を受けて、プロセス2からの描画情報を描画情報記憶
部103にキューイングする。
The drawing control unit 106 receives the drawing prohibition signal from the exclusive drawing control unit 105, and queues the drawing information from the process 2 in the drawing information storage unit 103.

(3)ウィンドウ1の移動(第8図−803) ウィンドウ1の描画領域をウィンドウ移動後の領域に設
定した後にウィンドウ1を移動する。入出力部108は、
プロセス1より描画領域・クリッピング領域の変更指示
・描画環境ID・描画環境の変更データ(描画領域・クリ
ッピング領域)を受け取り、描画環境管理部102に当デ
ータを与え、描画環境管理部102に描画環境の変更を行
わせる。描画環境管理部102は、描画環境IDで示されて
いる描画環境記憶部101内の描画環境データを取り出し
て、描画環境データを変更データに変更する。
(3) Moving window 1 (Fig. 8-803) After setting the drawing area of window 1 to the area after window movement, window 1 is moved. The input / output unit 108 is
The drawing area / clipping area change instruction / drawing environment ID / drawing environment change data (drawing area / clipping area) is received from process 1, this data is given to the drawing environment management unit 102, and the drawing environment management unit 102 is drawn. To make changes. The drawing environment management unit 102 extracts the drawing environment data in the drawing environment storage unit 101 indicated by the drawing environment ID and changes the drawing environment data into change data.

(4)ウィンドウ2のクリッピング領域の変更(第8図
−804) ウィンドウ1の移動に伴い、第6図に示すようにウィン
ドウ2の従来のクリッピング領域(第6図:斜線部)を
新しいクリッピング領域(第6図:クロス斜線部)に設
定する。プロセス1は、ウィンドウ2のクリッピング領
域の変更をウィンドウマネージャに行わす。入出力部10
8は、ウィンドウマネージャより描画環境の変更指示・
描画環境ID・描画環境の変更データ(クリッピング領
域)を受け取る。入出力部108は、描画環境管理部102に
当データを与え、描画環境管理部102に描画環境の変更
を行わせる。描画環境管理部102は、描画環境IDで示さ
れている描画環境記憶部101の中の描画環境データを取
り出して、描画環境のデータを変更データに変更する。
(4) Change of clipping area of window 2 (Fig. 8-804) With the movement of window 1, the conventional clipping area of window 2 (Fig. 6: shaded area) is changed to a new clipping area as shown in Fig. 6. (Fig. 6: cross hatched area). Process 1 changes the clipping region of window 2 to the window manager. Input / output section 10
8 is the instruction to change the drawing environment from the window manager
Receives drawing environment ID and drawing environment change data (clipping area). The input / output unit 108 gives this data to the drawing environment management unit 102 and causes the drawing environment management unit 102 to change the drawing environment. The drawing environment management unit 102 retrieves the drawing environment data in the drawing environment storage unit 101 indicated by the drawing environment ID and changes the drawing environment data to change data.

(5)ウィンドウ1の再描画を行う(第8図−805)。(5) Redraw window 1 (Fig. 8-805).

入出力部108は、プロセス1からプロセスID・描画環境I
D・描画データを受け、描画制御部106に当データを与え
る。描画制御部106は、与えられた描画情報を排他描画
制御部105に与え描画の可否をチェックさせる。排他情
報記憶部104内のプロセスID・描画環境IDとの比較を行
ない、プロセスID・描画環境IDとも等しいことから、排
他描画制御部105から描画制御部106に描画許可信号が送
信される。描画制御部106は、描画環境IDにより示され
た描画環境を描画環境記憶部101より取り出し、その描
画環境に基づき描画部107の描画制御を行う。描画部107
は、VRAM109(ビットマップを形成しているメモリー)
上に描画を行う。VRAM109上に描画されたものが、表示
部110に表示される。
The input / output unit 108 processes from process 1 to process ID / drawing environment I
D-Receives drawing data and gives this data to the drawing control unit 106. The drawing control unit 106 gives the given drawing information to the exclusive drawing control unit 105 to check whether or not drawing is possible. The process ID / drawing environment ID in the exclusive information storage unit 104 is compared, and since the process ID and the drawing environment ID are also equal, the exclusive drawing control unit 105 sends a drawing permission signal to the drawing control unit 106. The drawing control unit 106 fetches the drawing environment indicated by the drawing environment ID from the drawing environment storage unit 101, and controls the drawing unit 107 based on the drawing environment. Drawing unit 107
VRAM109 (memory forming the bitmap)
Draw on top. What is drawn on the VRAM 109 is displayed on the display unit 110.

(6)排他描画を解除(第8図−806) 入出力部108はプロセス1より排他描画解除指示を受け
取る。入出力部108は、排他描画制御部105に排他描画解
除指示を与える。排他描画制御部105は、排他情報記憶
部104内に記憶されているプロセスID・描画環境IDを削
除し、描画制御部106に排他描画解除信号を送信する。
描画制御部106は、排他描画解除信号を受信し、描画情
報記憶部103にキューイングされていたプロセスID・描
画環境ID・描画データによる描画制御を始める。この
時、プロセス2からウィンドウ2への描画要求が描画情
報記憶部103にキューイングされている場合は、キュー
イングされていたデータに対して描画制御を行うことに
なる。描画部107は、VRAM109上に描画(プロセス2によ
る描画)を行う。VRAM109上に描画されたものが、表示
部110に表示される。
(6) Cancel exclusive drawing (FIG. 8 -806) The input / output unit 108 receives an exclusive drawing cancellation instruction from the process 1. The input / output unit 108 gives an exclusive drawing release instruction to the exclusive drawing control unit 105. The exclusive drawing control unit 105 deletes the process ID / drawing environment ID stored in the exclusive information storage unit 104, and sends an exclusive drawing release signal to the drawing control unit 106.
The drawing control unit 106 receives the exclusive drawing release signal and starts drawing control based on the process ID, drawing environment ID, and drawing data queued in the drawing information storage unit 103. At this time, when the drawing request from the process 2 to the window 2 is queued in the drawing information storage unit 103, the drawing control is performed on the queued data. The drawing unit 107 draws on the VRAM 109 (drawing by the process 2). What is drawn on the VRAM 109 is displayed on the display unit 110.

発明の効果 以上説明したように、本発明によれば、描画領域の移動
により複数の描画領域が重なった時、重なり部分の描画
の破壊を起こすことなく描画することができる。よっ
て、オーバーラップを許したマルチウィンドウシステム
上での重なり領域の描画において、効率的描画を可能と
する本描画装置の実用的効果は大きい。
EFFECTS OF THE INVENTION As described above, according to the present invention, when a plurality of drawing areas overlap due to movement of the drawing areas, it is possible to perform drawing without causing damage to the drawing in the overlapping portion. Therefore, in the drawing of the overlapping area on the multi-window system in which the overlap is allowed, the practical effect of the present drawing apparatus that enables efficient drawing is great.

【図面の簡単な説明】 第1図は本描画装置の構成を示すブロック図、第2図は
従来の描画装置の構成を示すブロック図、第3図〜第6
図は描画装置の動作説明図、第7図は従来の描画装置に
おけるプロセス・ウィンドウマネージャの動作説明図、
第8図は本発明の描画装置におけるプロセス・ウィンド
ウマネージャの動作説明図である。 101……描画環境記憶部、102……描画環境管理部、103
……描画情報記憶部、104……排他情報記憶部、105……
排他描画制御部、106……描画制御部、107……描画部、
108……入出力部、109……VRAM、110……表示部。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing the construction of the present drawing apparatus, FIG. 2 is a block diagram showing the construction of a conventional drawing apparatus, and FIGS.
FIG. 7 is a diagram for explaining the operation of the drawing device, and FIG. 7 is a diagram for explaining the operation of the process window manager in the conventional drawing device.
FIG. 8 is an operation explanatory diagram of the process window manager in the drawing apparatus of the present invention. 101 ... Drawing environment storage unit, 102 ... Drawing environment management unit, 103
...... Drawing information storage unit, 104 …… Exclusive information storage unit, 105 ……
Exclusive drawing control unit, 106 ... drawing control unit, 107 ... drawing unit,
108 …… Input / output section, 109 …… VRAM, 110 …… Display section.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数のプロセスが同一のビットマップに描
画を行う描画装置において、本描画装置の実行環境であ
る描画環境と呼ばれるデータ群の識別子である描画環境
IDと共に対応する前記描画環境を記憶する描画環境記憶
部と、描画環境の生成時に、描画環境IDを生成し、描画
環境と描画環境IDを前記描画環境記憶部に記憶させ、描
画環境の変更時に、描画環境IDにより前記描画環境記憶
部上の該当する描画環境の変更を行ない、描画環境の削
除時に、描画環境IDにより該当する前記描画環境記憶部
上の描画環境ID・描画環境の削除を行ない、描画環境の
取りだし時に、描画環境IDにより該当する描画環境を前
記描画環境記憶部から取り出す描画環境管理部と、プロ
セスの識別子であるプロセスIDと描画環境ID・描画デー
タのデータから構成される描画情報をキューイングする
FIFO構造の描画情報記憶部と、プロセスID・描画環境ID
を記憶する排他情報記憶部と、プロセスからの排他描画
指示に対して、前記排他情報記憶部にプロセスから与え
られたプロセスID・描画環境IDを記憶させ、描画の可否
の問い合わせに対して、与えられたプロセスID・描画環
境IDと前記排他情報記憶部内のプロセスID・描画環境ID
との比較を行ない、一致すれば描画許可信号を、一致し
なければ描画禁止信号を送信し、プロセスからの排他描
画解除指示に対して、前記排他情報記憶部内のプロセス
ID・描画環境IDを削除すると共に排他描画解除信号を送
信する排他描画制御部と、プロセスから与えられた描画
情報を前記排他描画制御部に与え描画の可否をチェック
し、描画許可信号受信の場合、描画情報の描画環境IDに
より前記描画環境管理部から描画環境を取り出し、取り
出した描画環境に基づき描画を行ない、描画禁止信号受
信の場合、プロセスから与えられた描画情報を前記描画
情報記憶部にキューイングし、前記排他描画制御部か
ら、排他描画解除信号を受信した場合、前記描画情報記
憶部に格納されている描画情報を順次取り出し描画を行
う描画制御部と、前記描画制御部の描画制御に基づき描
画対象のビットマップに前記描画制御部より与えられた
描画データを描画する描画部を備えたことを特徴とする
描画装置。
1. A drawing environment which is an identifier of a data group called a drawing environment which is an execution environment of the present drawing apparatus in a drawing apparatus in which a plurality of processes draws on the same bitmap.
A drawing environment storage unit that stores the corresponding drawing environment together with an ID, and a drawing environment ID is generated when the drawing environment is generated, and the drawing environment and the drawing environment ID are stored in the drawing environment storage unit, and when the drawing environment is changed. , The corresponding drawing environment in the drawing environment storage unit is changed by the drawing environment ID, and when the drawing environment is deleted, the corresponding drawing environment ID / drawing environment in the drawing environment storage unit is deleted by the drawing environment ID. , A drawing environment management unit that extracts the corresponding drawing environment from the drawing environment storage unit when the drawing environment is retrieved, and a drawing composed of a process ID, which is a process identifier, and a drawing environment ID / drawing data Queue information
FIFO structure drawing information storage, process ID, drawing environment ID
In response to an exclusive drawing instruction from a process, a process ID / drawing environment ID given by the process is stored in the exclusive information storage unit, and given to an inquiry as to whether drawing is possible or not. Process ID / drawing environment ID and the process ID / drawing environment ID in the exclusive information storage unit
And the drawing prohibition signal is transmitted if they do not match, and the drawing prohibition signal is sent if they do not match, and the process in the exclusive information storage unit responds to the exclusive drawing cancellation instruction from the process.
ID / drawing environment ID is deleted and the exclusive drawing control unit that sends an exclusive drawing release signal, and drawing information given by the process is given to the exclusive drawing control unit to check whether drawing is possible, and when a drawing permission signal is received The drawing environment ID is extracted from the drawing environment management unit according to the drawing environment ID of the drawing information, and drawing is performed based on the extracted drawing environment. When the drawing prohibition signal is received, the drawing information given by the process is stored in the drawing information storage unit. A drawing control unit that performs queuing and sequentially draws the drawing information stored in the drawing information storage unit when an exclusive drawing release signal is received from the exclusive drawing control unit, and a drawing control of the drawing control unit A drawing apparatus comprising: a drawing unit for drawing the drawing data given by the drawing control unit on a bitmap to be drawn based on the above.
JP1069703A 1989-03-22 1989-03-22 Drawing device Expired - Fee Related JPH0721755B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1069703A JPH0721755B2 (en) 1989-03-22 1989-03-22 Drawing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1069703A JPH0721755B2 (en) 1989-03-22 1989-03-22 Drawing device

Publications (2)

Publication Number Publication Date
JPH02247724A JPH02247724A (en) 1990-10-03
JPH0721755B2 true JPH0721755B2 (en) 1995-03-08

Family

ID=13410473

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1069703A Expired - Fee Related JPH0721755B2 (en) 1989-03-22 1989-03-22 Drawing device

Country Status (1)

Country Link
JP (1) JPH0721755B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4497674B2 (en) * 2000-06-21 2010-07-07 キヤノン株式会社 Exposure apparatus and device manufacturing method

Also Published As

Publication number Publication date
JPH02247724A (en) 1990-10-03

Similar Documents

Publication Publication Date Title
JP2994888B2 (en) Input processing device and input processing method
US4761642A (en) System for providing data communication between a computer terminal and a plurality of concurrent processes running on a multiple process computer
US4688181A (en) Image transformations on an interactive raster scan or matrix display
JPS62237578A (en) Display control system
JP3030490B2 (en) Synchronous control method and device
JPH0721755B2 (en) Drawing device
JPH09179713A (en) Window display system and data processing system
JPH0291721A (en) Window display controller
JPH0358090A (en) Display device
JPH02301823A (en) Window system suitable for picture processing
JP2000322600A (en) System and method for controlling and displaying internet three-dimensional multiwindow
JPH0462090B2 (en)
JPH02139626A (en) Multiwindow event management device
JP2001043350A (en) Display processing method for map data and device therefor
JP3352843B2 (en) Information processing apparatus for controlling cursor position of pointing device and method for controlling cursor position of pointing device of information processing apparatus
JPH079197Y2 (en) Drawing device
JPH01267726A (en) System for deciding plotting window
JPH0224713A (en) Control information management device for multiwindow
JP2629399B2 (en) Multi-window display method
JP2586665B2 (en) Multi-window display method
JPS63170779A (en) Graphic pattern selecting and processing system
JPH07219740A (en) Multiwindow display device
JPH03294894A (en) Display control system
Bales Hardware/Software Issues for Video Guidance Systems: The Coreco Frame Grabber
JPS63120330A (en) Screen control system

Legal Events

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