JPS6359683A - Graphic drawing system - Google Patents

Graphic drawing system

Info

Publication number
JPS6359683A
JPS6359683A JP20434886A JP20434886A JPS6359683A JP S6359683 A JPS6359683 A JP S6359683A JP 20434886 A JP20434886 A JP 20434886A JP 20434886 A JP20434886 A JP 20434886A JP S6359683 A JPS6359683 A JP S6359683A
Authority
JP
Japan
Prior art keywords
window
graphic
drawn
area
rectangle
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
JP20434886A
Other languages
Japanese (ja)
Inventor
Akio Komatsu
小松 昭雄
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 JP20434886A priority Critical patent/JPS6359683A/en
Publication of JPS6359683A publication Critical patent/JPS6359683A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute an effective picture processing by examining the state of the overlap of a screen and other window, selecting a proper processing method and processing. CONSTITUTION:A position relation identification part 12 obtains information relating to the window from a window information holding part 10, information relating to a minimum rectangle R surrounding a graphic applied from a rectangle R forming part 11 and identifies whether the relation thereof corresponds to a type of respective types and informs to a drawing method decision part 14. According to the drawing of a method 1, the intersection point of the graphic to be drawn and the window W is obtained to form a graphic to be newly drawn and execute the drawing by a system consisting of an intersection point search part 15, a graphic forming part 17 and a drawing part 19 and according to the method 2, whether the graphic is situated within the window W for every picture element or not is inspected by a system consisting of a picture element position search part 16, a decision part 18, and the drawing part 19, only when the graphic is decided that it is situated within the window W, drawing is executed.

Description

【発明の詳細な説明】 [概 要] 1表示画面に複数の仮想的な表示画面を表示せしめるマ
ルチウィンド方式の画面の制御において、ウィンドを重
ねて表示するときはウィンド内の図形等が他のウィンド
の陰になる場合、その部分を表示しないようにする必要
がある。
[Detailed Description of the Invention] [Summary] When controlling a multi-window screen that displays multiple virtual display screens on a single display screen, when displaying windows in an overlapping manner, the figures, etc. in the window may overlap with those of other windows. If it is in the shadow of a window, you need to hide that part.

従来、このような画像の処理においては、処理に長時間
を要したり、画像と他のウィンドの重なりの状態によっ
ては処理が非常に非効率的なものとなるという問題点が
あった0本発明はこのような従来の問題点を解決するた
め、画面と池のウィンドとの重なりの状態を調べて適切
な処理方法を選択して処理することにより効率的な画像
処理が行なえる技術について開示している。
Conventionally, when processing such images, there were problems in that the processing took a long time, and depending on the overlap between the image and other windows, the processing became extremely inefficient. In order to solve these conventional problems, the present invention discloses a technology that can perform efficient image processing by examining the state of overlap between the screen and the pond window and selecting an appropriate processing method. are doing.

[産業上の利用分野] 本発明は情報処理装置による画像の処理に関するもので
あって、特にマルチウィンド方式の画面表示における表
示すべき図形などが他のウィンドの陰になるため該図形
などの一部のみを描画する場合の制御方式に係る。
[Industrial Field of Application] The present invention relates to image processing by an information processing device, and in particular, in a multi-window screen display, some of the figures to be displayed are hidden behind other windows. This relates to a control method when drawing only a portion.

[従来の技術〕 ディスプレイ上に図形を表示する際に、マルチウィンド
と呼ばれる方式を用いる場合がある。
[Prior Art] When displaying figures on a display, a method called multi-window is sometimes used.

これは第4図(a)に示すように、ディスプレイ上に仮
想的な表示画面をいくつかもち(図中の50.51.5
2)あたかも何台ものディスプレイがあるようにみ仕る
ものである。
As shown in Figure 4(a), this has several virtual display screens on the display (50, 51, 5 in the figure).
2) It acts as if there are multiple displays.

ところで、このようにディスプレイ上に何枚ものウィン
ドを表示させると、ウィンドとウィンドとの重なりが生
じてしまうことがある。(b)は2枚のウィンドが重な
った場合を示している。
By the way, when a number of windows are displayed on the display in this way, the windows may overlap. (b) shows a case where two windows overlap.

このとき、下のウィンド54に図形を表示させたいこと
があるが、描画の際には上のウィンド53の内容を書き
替えることは許されず、上のウィンドの領域を除いた部
分のみ描画しなければならない。
At this time, you may want to display a figure in the lower window 54, but when drawing, you are not allowed to rewrite the contents of the upper window 53, and you must draw only the part excluding the area of the upper window. Must be.

従来、表示すべき領域内のみ描画し、その外側に対して
は描画してはいけないという条件のもとて図形描画を行
なう場合に、図形と表示すべき領域との交点を求めて図
形を再構成し、新しくできた図形を描画する方法、ある
いは、図形をフレームメモリ等に書き込む際に表示すべ
き領域の内部かどうかをチェックし、描画する方法の内
のいずれかの方法が採られていた。
Conventionally, when drawing a figure under the condition that only the area to be displayed is drawn and not outside of that area, the figure must be redrawn by finding the intersection between the figure and the area to be displayed. Either one of two methods was used: configuring the shape and drawing the newly created shape, or checking whether the shape is inside the area to be displayed when writing the shape to frame memory, etc., and then drawing it. .

これらの、方法を更に図面によって説明すると前者の図
形とウィンドとの交点を求めて図形を再構成し、新らし
くできた図形を描画する方法とは、例えば、第5図に示
すような三角形55の塗りつぶしを行なう場合、三角形
55の辺とウィンド57との交点P 、Q 、Rを求め
、これによって、新たにA 、P 、Q 、Rとして構
成される四角形56を求め、これを塗り潰す方法である
To further explain these methods using drawings, the former method involves finding the intersection between the figure and the window, reconstructing the figure, and drawing a new figure. When filling in the triangle 55, find the intersection points P, Q, and R of the sides of the triangle 55 and the window 57, and from this find a new quadrilateral 56 configured as A, P, Q, and R, and fill it in. It is.

また、後者の図形をフレームメモリ等に書き込む際にウ
ィンドの内部かどうかをチェックし描画する方法とは、
例えば第6図に示すような三角形DEFの塗り潰しを行
なう場合、ウィンド58の領域を管理することによって
、参照符S→Tで示される範囲のS−T’間およびU→
Vで示される範囲のU→■′間は描画するが、同範囲の
他の区間および参照符W〜Xで示される区間およびそれ
以降は描画しないような制御をする方法である。
Also, when writing the latter figure to frame memory etc., the method of checking whether it is inside the window and drawing it is as follows.
For example, when filling out a triangle DEF as shown in FIG. 6, by managing the area of the window 58, between ST' and U→
This is a control method in which drawing is performed in the range U→■' in the range indicated by V, but not drawn in other sections in the same range and in the sections indicated by reference marks W to X and thereafter.

[発明が解決しようとする問題点] 上述した従来の描画方式の内、前者の図形と表示すべき
領域との交点を求めて図形を再構成し、新しくできた図
形を描画する方式においては、図形の再構成のために多
くの処理時間を必要とするという問題点があった。一方
、後者の図形をフレームメモリ等に書き込む際に表示す
べき領域の内部であるか否かを調べて描画する方式にお
いては、例えば第7図に示すように図形5つの殆どが他
のウィンド60に隠れてしまい、実際に描画するのは図
形59のごく一部(図で61で示す部分)である場合で
あっても、図形59全体について描画するかどうかをい
ちいち調べなければならないので、処理効率が非常に悪
いという問題点があった。
[Problems to be Solved by the Invention] Among the conventional drawing methods described above, the former method involves finding the intersection between the figure and the area to be displayed, reconstructing the figure, and drawing the newly created figure. There is a problem in that a lot of processing time is required to reconstruct the figure. On the other hand, in the latter method of drawing by checking whether or not it is inside the area to be displayed when writing the figure to a frame memory etc., for example, as shown in FIG. Even if only a small part of the figure 59 (the part indicated by 61 in the figure) is actually drawn, it is necessary to check each time whether or not the entire figure 59 is to be drawn. The problem was that the efficiency was very low.

本発明はこれら従来の問題点に鑑み、指定されたウィン
ド内だけについて描画し、その外側については描画して
はいけないという条件のもとで、図形等を効率的に、そ
して、高速度で描画することの可能な画像処理装置を提
供することを目的としている。
In view of these conventional problems, the present invention draws figures etc. efficiently and at high speed under the condition that drawings are made only within a specified window and not outside of that window. The purpose of the present invention is to provide an image processing device that can perform the following functions.

[問題点を解決するための手段] 本発明によれば上記目的は前記特許請求の範囲に記載の
とおり、画像描画装置による画像の処理において、描画
の対象となる図形について該図形と表示画面内の特定の
領域とが重なる部分のみを描画せしめる方式であって、
与えられた図形を囲む最小の方形Rを生成する手段と、
図形またはその一部と重なるときその重なる部分につい
て描画すべき窓の領域Wに係る情報を保持する手段と、
上記RとWとの位置の関係を識別する手段と、該Rの面
積と該Wの面積とを比較する手段とを設け、上記RとW
との位置の関係およびRの面積とWの面積との関係に応
じて描画の対象となる図形とWとの交点を求めることに
より新たに描画すべき図形を生成してこれを描画する方
法と図形をフレームメモリに書き込むとき、画素ごとに
、それがW内に位置するか否かを@査して描画する方法
との内いずれかを選択して描画することを特徴とする図
形描画方式により達成される。
[Means for Solving the Problems] According to the present invention, the above-mentioned object is achieved as described in the claims, in which, in processing an image by an image drawing device, a figure to be drawn is divided between the figure and the display screen. A method that draws only the part that overlaps with a specific area of
means for generating a minimum rectangle R surrounding a given figure;
means for holding information regarding a region W of a window to be drawn for the overlapping portion when it overlaps with a figure or a part thereof;
means for identifying the positional relationship between the R and W, and means for comparing the area of the R and the area of the W;
A method of generating and drawing a new figure to be drawn by finding the intersection of the figure to be drawn and W according to the positional relationship between R and the area of W. When a figure is written to the frame memory, the figure drawing method is characterized in that, for each pixel, it is drawn by checking whether it is located within W or not. achieved.

[実 施 例コ 本発明は前述したように、ウィンド内のみ描画し、その
外側は描画してはいけないという条件のもとで、図形の
描画を効率的に、かつ、高速に行なうことができるらの
であって、図形とウィンドとのrflj係に応じて、図
形とウィンドとの交点を求めて図形を再構成し、新しく
できた図形を描画する第1の方法と図形をフレームメモ
リ等に書き込む際にウィンドの内部かどうかをチェック
して描画する第2の方法とを使い分けて描画するもので
ある。
[Embodiment] As described above, the present invention can draw figures efficiently and at high speed under the condition that only the inside of the window should be drawn and the outside should not be drawn. According to the rflj relationship between the figure and the window, the first method is to find the intersection between the figure and the window, reconstruct the figure, draw the newly created figure, and write the figure to a frame memory, etc. In this method, the second method of drawing is performed by checking whether or not the object is inside the window.

本発明による描画の手順の例について以下に説明する。An example of the drawing procedure according to the present invention will be described below.

■与えられた図形を完全に囲み、かつ最小の長方形Rを
求める。この長方形Rは、比較的容易に求められる0例
えば、多角形の場合は、全頂点の座標の最大値・最小値
から求められるし、円の場合は、−辺の長さが直径に等
しい正方形となる。
■Find the smallest rectangle R that completely encloses the given figure. This rectangle R can be found relatively easily.For example, in the case of a polygon, it can be found from the maximum and minimum values of the coordinates of all vertices, and in the case of a circle, it is a square whose side length is equal to the diameter. becomes.

■ウィンドの面積をSW、長方形Rの面積をSR1両者
の交わりの部分の面積をSIとする。
■The area of the window is SW, the area of the rectangle R is SR1, and the area of the intersection of both is SI.

■ウィンドと長方形Rの位置関係は、第3図に示すよう
に4つのタイプがある。すなわち、第3図においてlは
ウィンド、2は与えられた図形3を完全に囲む最小の長
方形Rを示しており、(a)はウィンド1と長方形Rと
が離れている場合(これをタイプ■とするL(b)はウ
ィンド1と長方形Rとが交わっている場合(これをタイ
プ■とする)、(c)は ウィンド1が長方形Rを含ん
でいる場合くこれをタイプmとする)、(d〉はウィン
ド1が長方形Rに含まれている場合(これをタイプ■と
する)。
■There are four types of positional relationships between the window and the rectangle R, as shown in FIG. That is, in Fig. 3, l indicates the window, 2 indicates the minimum rectangle R that completely surrounds the given figure 3, and (a) shows the case where window 1 and rectangle R are far apart (this is type L(b) is when window 1 and rectangle R intersect (this is called type ■); (c) is when window 1 includes rectangle R, this is called type m), (d> is the case where window 1 is included in rectangle R (this is assumed to be type ■).

■図形とウィンドとの交点を求めて図形を再構成して新
しく図形をつくる処理に要する時間をT1とする。Tl
は、はぼ辺の数に比例する。
(2) Let T1 be the time required to find the intersection between the figure and the window, reconstruct the figure, and create a new figure. Tl
is proportional to the number of sides.

図形をフレームメモリに書き込むのに要する時間をT2
とする。T2は、はぼRに比例する。
The time required to write the figure to the frame memory is T2
shall be. T2 is proportional to R.

■第3図に(a)〜(d)で示した4つのタイプのそれ
ぞれについての、前述の第1の方法(以下方法1という
)と第2の方法(以下方法2という)による近似的な描
画時開は第1表に示すようになる。
■Approximate results using the first method (hereinafter referred to as method 1) and the second method (hereinafter referred to as method 2) for each of the four types shown in (a) to (d) in Figure 3. The opening during drawing is shown in Table 1.

第  1  表 ■上記各条件から以下に示す装置構成とその制御によっ
て実際の描画が行なわれる。
Table 1: Based on the above conditions, actual drawing is performed using the following device configuration and its control.

第1図は本発明の1実施例のブロック図であって、画像
描画装置の窓と画像の重複部分の描画部の構成を示して
おり、1oはウィンドWのf*報を生成し保持するウィ
ンド情報保持部、11は長方形R生成部、12は位置間
gA識別部、13は比較部、14は描画方法決定部、1
5は交点探索部、16は画素位置調査部、17は図形生
成部、18は判定部、19は描画部を表している。
FIG. 1 is a block diagram of one embodiment of the present invention, showing the configuration of the drawing section of the window of the image drawing device and the overlapping part of the image, where 1o generates and holds f* information of the window W. 1 is a window information holding unit; 11 is a rectangle R generation unit; 12 is an inter-position gA identification unit; 13 is a comparison unit; 14 is a drawing method determination unit; 1
Reference numeral 5 represents an intersection search section, 16 a pixel position investigation section, 17 a figure generation section, 18 a determination section, and 19 a drawing section.

また第2図はそのυ制御を示す流れ区である。Furthermore, Fig. 2 shows the flow section showing the υ control.

第1図において、位置関係識別部12はウィンド情報保
持部10からウィンドに係る情報を、一方、長方形R生
成部から与えられた図形を囲む最小の長方形Rに係る情
報を得て、それらの関係が、第3図に示す各タイプの内
どのタイプになるかを識別して描画方法決定部14に知
らせる。
In FIG. 1, the positional relationship identification unit 12 obtains information related to windows from the window information storage unit 10, and information related to the smallest rectangle R surrounding a given figure from the rectangle R generation unit, and calculates the relationship between them. out of the types shown in FIG. 3 and informs the drawing method determining unit 14 of the type.

該描画方法決定部14は以下に示すように各タイプ別に
描画方法を決定し、各部に手配して、これにより描画が
行なわれる。
The drawing method determining section 14 determines a drawing method for each type as shown below, and arranges it to each section, thereby performing drawing.

イ、タイプ■ならTl、T2を求めT1のほうがT2よ
りも小さければ方法1、大きければ方法2を採用して描
画する。
If it is type (2), Tl and T2 are calculated, and if T1 is smaller than T2, method 1 is used, and if it is larger, method 2 is used to draw.

口、タイプ■なら、T1、T2を求めると共に比較部1
3からSI、SRの比を求め、T1+72・(SI/S
R)のほうがT2よりも小さければ方法1、大きければ
方法2を採用して描画する。
If it is mouth, type ■, find T1 and T2 and compare part 1.
Find the ratio of SI and SR from 3 and obtain T1+72・(SI/S
If R) is smaller than T2, method 1 is used, and if it is larger, method 2 is used for drawing.

ハ、タイプHなら、方法2を採用して描画する。C. If it is type H, use method 2 to draw.

二、タイプ■なら、Tl、T2、SI、SRを求め、T
1+72・(SI/SR)のほうがT2よりも小さけれ
ば方法1、大きければ方法2を採用して描画する。
2. If type ■, find Tl, T2, SI, SR, and T
If 1+72·(SI/SR) is smaller than T2, method 1 is used, and if it is larger, method 2 is used for drawing.

なお、上述の方法1の描画は交点探索部15、図形生成
部17および描画部19の系により、描画の対象となる
図形とウィンドWとの交点を求めて新たに描画すべき図
形を生成して描画が行なわれるものであり、一方、方法
2の場合は画素位置調査部16、判定部18および描画
部19の系によって、画素ごとにそれがウィンドW内に
位置するか否かが検査され、ウィンドW内にあると判定
されたときのみ描画するものである。
Note that in the drawing method 1 described above, a system including the intersection search unit 15, figure generation unit 17, and drawing unit 19 finds the intersection between the figure to be drawn and the window W, and generates a new figure to be drawn. On the other hand, in the case of method 2, a system including a pixel position investigation section 16, a determination section 18, and a drawing section 19 inspects each pixel to see if it is located within the window W. , is drawn only when it is determined that it is within the window W.

[発明の効果] 以上説明したように本発明によればウィンド内のみ描画
し、その外側に対しては描画してはいけないという条件
のもとての図形描画が効率的にかつ高速に行なえる。
[Effects of the Invention] As explained above, according to the present invention, all figures can be drawn efficiently and at high speed under the condition that drawing is only done within the window and not outside of the window. .

そして、大きい図形の描画時間を一定値以下に押さえる
ことができる。この一定値とは、T1+(ウィンド全体
を描画する時間)である。
In addition, the drawing time for large figures can be kept below a certain value. This constant value is T1+ (time to draw the entire window).

また、図形が小さときに、方法2をもちいることによっ
て、図形を小さくしていくにつれて描画時間をゼロに近
づけることができる。
Furthermore, by using method 2 when the figure is small, the drawing time can be brought closer to zero as the figure is made smaller.

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

第1図は本発明の1実施例のブロック図、第2図は本発
明の1実施例の制御を示す流れ図、第3図はウィンドと
図形を囲む長方形との関係を説明する図、第4図はマル
チウィンド方式のディスプレイを説明する図、第5図は
図形とウィンドの交点を求めて図形を再構成して描画す
る方法を説明する図、第6図は図形がウィンドの内部か
どうかをチェックして描画する方法を説明する図、第7
図は図形の大部分が他のウィンドに隠れている場合の描
画について説明する図である。
FIG. 1 is a block diagram of one embodiment of the present invention, FIG. 2 is a flowchart showing control of one embodiment of the present invention, FIG. 3 is a diagram explaining the relationship between a window and a rectangle surrounding a figure, and FIG. The figure explains a multi-window type display, Figure 5 explains how to find the intersection between a figure and a window, reconstruct the figure and draw it, and Figure 6 shows whether the figure is inside a window. Diagram explaining how to check and draw, 7th
The figure is a diagram illustrating drawing when most of the figure is hidden behind other windows.

Claims (1)

【特許請求の範囲】 画像描画装置による画像の処理において、描画の対象と
なる図形について該図形と表示画面内の特定の領域とが
重なる部分のみを描画せしめる方式であって、 与えられた図形を囲む最小の方形Rを生成する手段と、 図形またはその一部と重なるときその重なる部分につい
て描画すべき窓の領域Wに係る情報を保持する手段と、 上記RとWとの位置の関係を識別する手段と、該Rの面
積と該Wの面積とを比較する手段とを設け、 上記RとWとの位置の関係およびRの面積とWの面積と
の関係に応じて描画の対象となる図形とWとの交点を求
めることにより新たに描画すべき図形を生成してこれを
描画する方法と図形をフレームメモリに書き込むとき、
画素ごとに、それがW内に位置するか否かを検査して描
画する方法との内いずれかを選択して描画することを特
徴とする図形描画方式。
[Scope of Claims] A method of drawing only a portion of a figure to be drawn where the figure overlaps with a specific area within a display screen in processing an image by an image drawing device, the method comprising: A means for generating the smallest enclosing rectangle R, a means for holding information regarding a region W of a window to be drawn for the overlapping portion when it overlaps with a figure or a part thereof, and identifying a positional relationship between the above-mentioned R and W. and a means for comparing the area of said R and the area of said W, and the object to be drawn is provided according to the positional relationship between R and W and the relationship between the area of R and the area of W. How to generate and draw a new figure to be drawn by finding the intersection of the figure and W, and when writing the figure to the frame memory.
A graphic drawing method characterized in that for each pixel, drawing is performed by selecting one of two methods: checking whether the pixel is located within W and drawing.
JP20434886A 1986-08-29 1986-08-29 Graphic drawing system Pending JPS6359683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20434886A JPS6359683A (en) 1986-08-29 1986-08-29 Graphic drawing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20434886A JPS6359683A (en) 1986-08-29 1986-08-29 Graphic drawing system

Publications (1)

Publication Number Publication Date
JPS6359683A true JPS6359683A (en) 1988-03-15

Family

ID=16489011

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20434886A Pending JPS6359683A (en) 1986-08-29 1986-08-29 Graphic drawing system

Country Status (1)

Country Link
JP (1) JPS6359683A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06339565A (en) * 1993-12-17 1994-12-13 Sankyo Kk Pinball machine
JPH06339564A (en) * 1993-12-17 1994-12-13 Sankyo Kk Pinball machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06339565A (en) * 1993-12-17 1994-12-13 Sankyo Kk Pinball machine
JPH06339564A (en) * 1993-12-17 1994-12-13 Sankyo Kk Pinball machine

Similar Documents

Publication Publication Date Title
US5363483A (en) Updating objects displayed in a computer system
JPS6324419A (en) Composite document processor
JP2007304576A (en) Rendering of translucent layer
IE54823B1 (en) Graphics display method and apparatus
US6323875B1 (en) Method for rendering display blocks on display device
US5150312A (en) Animation processor method and apparatus
US20050168473A1 (en) Rendering apparatus
JP2001265314A (en) Display system, data display method, shadowed character font generating method, and recording medium
JPS6359683A (en) Graphic drawing system
JPH0713788B2 (en) Image display device
US5418897A (en) Method for elimination of extraneous lines generated by rectangular polygon clipping process
US4899294A (en) Graphics processing system
US8379046B2 (en) Method and apparatus for rendering
JP2634905B2 (en) How to paint shapes
JP2002208028A (en) Geometry clipping device for polygon
JP2667187B2 (en) Line clipping method in multi-window
JP2714114B2 (en) Graphic processing method and graphic system
JPS6324461A (en) Composite document processor
JP2000035782A (en) Image display method
JPS63240682A (en) Clipping processing system for graphic display
JPH01263781A (en) Picture processor
Cecolin Compositing concepts for the presentation of graphical application windows on embedded systems
JPS6345682A (en) Picture display control system
JPH02239374A (en) Logical circuit preparing system
JPH09222877A (en) Image display device