JPS63228274A - Clipping system in multiwindow - Google Patents

Clipping system in multiwindow

Info

Publication number
JPS63228274A
JPS63228274A JP62061803A JP6180387A JPS63228274A JP S63228274 A JPS63228274 A JP S63228274A JP 62061803 A JP62061803 A JP 62061803A JP 6180387 A JP6180387 A JP 6180387A JP S63228274 A JPS63228274 A JP S63228274A
Authority
JP
Japan
Prior art keywords
window
clipping
line segment
rectangular
graphic
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
JP62061803A
Other languages
Japanese (ja)
Inventor
Rikiya Okamoto
岡本 力哉
Setsuko Ebara
江原 節子
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 JP62061803A priority Critical patent/JPS63228274A/en
Publication of JPS63228274A publication Critical patent/JPS63228274A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain a high speed processing by inspecting whether a graphic in question enters a window before a division to a rectangular area or not before a graphic clipping processing for every rectangular area and excluding the graphic which does not enter as one which is not an object. CONSTITUTION:At the time of clipping segments (graphic) L1-L3 on the window 14 (rectangular area), the clipping processing is carried out on all the window 14 including a part con hidden by the window 12 (whether segments L1-L3 enter the 14 or not is checked) and the segment (graphic) L3 which does not enter the window 14 is eliminated. Thereby, it is not necessary to execute the clipping on a wasteful rectangular area, so that an efficient and high speed clipping processing can be carried out.

Description

【発明の詳細な説明】 〔概 要〕 非矩形ウィンドウを複数の矩形領域の和として管理する
画面制御方式において、線分の矩形領域ごとのクリッピ
ング処理の前に、ウィンドウ全体におけるクリッピング
処理を行なう。またこのクリッピングで隣接2矩形領域
の間で途切れが生じることがあるが、”Fll隔の仮想
的な線との交点を求める処理でこれを埋める。
DETAILED DESCRIPTION OF THE INVENTION [Summary] In a screen control method that manages a non-rectangular window as a sum of a plurality of rectangular regions, clipping processing is performed on the entire window before clipping processing is performed on each rectangular region of a line segment. Also, this clipping may cause a break between two adjacent rectangular areas, but this is filled in by the process of finding the intersection with the virtual line of the Fll interval.

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

本発明は、マルチウィンドウ表示画面において複数の矩
形領域に跨る図形のクリッピング処理方式に関する。
The present invention relates to a clipping processing method for graphics spanning multiple rectangular areas on a multi-window display screen.

〔従来の技術〕[Conventional technology]

ディスプレイの画面に複数のウィンドウを重複して設定
できるマルチウィンドウ表示画面がある。
There is a multi-window display screen that allows multiple windows to be set overlappingly on the display screen.

第8図はこの一例を示し、10はディスプレイの画面、
12.14.16はこの画面10内に一部を重ねて設定
されたウィンドウで、12が一番上、14が12の下か
つ16の上、16は10の上かつ14の下である。
FIG. 8 shows an example of this, where 10 is a display screen;
12, 14, and 16 are windows set to partially overlap within this screen 10, with 12 at the top, 14 below 12 and above 16, and 16 above 10 and below 14.

このようなマルチウィンドウ画面で、あるウィンドウに
線分(図形)L+を引くとき、該線分は上の(優先順位
の高い)ウィンドウにより全部若しくは一部が隠されな
いか否かチェックする必要がある。この処理は中々厄介
であるので第9図に示すようにウィンドウを分割して管
理する方式がある(特開昭59−102284>。この
方式では、第1のウィンドウ12は最高優先度なのでそ
のま−としく原矩形を保持させる)、ウィンドウ14は
12の下位なので12で隠される線(本例では水平線で
、12の下辺に沿う直線)により2分して14aと14
bの2つの矩形にする。またウィンドウ16は14の下
位なので、14で隠される線(本例ではやはり水平線で
、14の下辺に沿う直線)で2分して16aと16bの
2つの矩形とする。画面10も、ウィンドウ12,14
゜16の上、下辺に沿う直線で、残りをウィンドウ12
.14.16の左、右辺に沿う直線で分割し、図示の如
<10a、10b、・・・・・・10hとする。
When drawing a line segment (shape) L+ in a certain window on such a multi-window screen, it is necessary to check whether the line segment is not completely or partially hidden by the window above (higher priority). . Since this process is rather troublesome, there is a method of dividing the window and managing it as shown in Fig. 9 (Japanese Patent Laid-Open No. 59-102284). In this method, the first window 12 has the highest priority, so it is managed as is. Since the window 14 is lower than 12, it is divided into two parts by a line hidden by 12 (in this example, a horizontal line, which is a straight line along the lower side of 12), 14a and 14.
Make two rectangles b. Furthermore, since the window 16 is below 14, it is divided into two by a line hidden by 14 (in this example, it is also a horizontal line, a straight line along the lower side of 14) to form two rectangles 16a and 16b. Screen 10 also has windows 12 and 14.
A straight line along the top and bottom sides of ゜16, and the rest is window 12
.. 14.16 is divided by straight lines along the left and right sides to form <10a, 10b, . . . 10h as shown in the figure.

ウィンドウ(これらは矩形)が重なると下位のウィンド
ウは非矩形になるが、前記方式では上記の如き分割で全
て矩形領域にし、この矩形領域の状態でウィンドウを管
理する。
When windows (these are rectangular) overlap, the lower windows become non-rectangular, but in the above method, all are divided into rectangular areas by the above-mentioned division, and the windows are managed in the state of this rectangular area.

この表示画面全体を矩形領域の集まりとして管理する方
式で前記線分L1を引く作業は、矩形領域14aと14
bに跨って線分を引(作業になる。
The work of drawing the line segment L1 in a manner that manages the entire display screen as a collection of rectangular areas is performed by dividing the rectangular areas 14a and 14 into
Draw a line segment across b (this will be a task).

また線分L2は矩形領域14a、12,14bに跨って
線分を引く作業になる。各矩形領域に優先度を与えて、
12は優先度最高、14aと14bはその次としておく
と、線分L1は14aと14bにそのま−引けばよく、
線分L2は12部分を除いて14aと14bに引けばよ
く、こうして隠れる/現われる、の問題は簡単に処理で
きる。
The line segment L2 is drawn across the rectangular areas 14a, 12, and 14b. Give priority to each rectangular area,
If 12 has the highest priority and 14a and 14b have the next priority, line segment L1 can be drawn directly between 14a and 14b.
The line segment L2 can be drawn to 14a and 14b excluding 12 parts, and the problem of hiding/appearing can be easily solved.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ディスプレイ画面のベースになっているものはメモリで
あり、上記矩形領域の各々はメモリアドレスで規定され
る領域である。そして各領域の境界を示すアドレスは同
じではなく、1だけ異なるので、各領域の境界には隙間
がある。この隙間は水平方向では1ドツト間隔、垂直方
向では1水平走査線間隔であるが、こ\では簡単に両者
とも1ドツト間隔とする。この種ディスプレイ画面は画
素(ドツト)の集まりで表わされ、連続ではなく、ドツ
ト単位で量子化される(画面上の図形はドツト間隔の正
方格子上の点の集まりで表わされる)。
The base of the display screen is memory, and each of the rectangular areas is defined by a memory address. Since the addresses indicating the boundaries of each area are not the same but differ by 1, there are gaps at the boundaries of each area. This gap is one dot interval in the horizontal direction and one horizontal scanning line interval in the vertical direction, but in this case, both are assumed to be one dot interval. This type of display screen is represented by a collection of pixels (dots), which are not continuous but quantized in units of dots (figures on the screen are represented by a collection of points on a square grid with dot spacing).

第10図はこの様子を示し、正方格子上の点Pの集まり
が線分りを表わす。
FIG. 10 shows this situation, where a collection of points P on a square grid represents a line segment.

矩形領域14aと14bに跨って線分りを引く作業は上
記方式では、領域14aに線分P2P4を引き(詳しく
は点P2からP4までの各格子点を表示し、である。以
下同様)、また領域14bに線分PIP3を引く作業に
なる。点P1.P2は始、終点なので正方格子上の点で
あるのが普通であるが、点P3は領域14bの下辺とま
た点P4は領域14aの上辺と線分りとの各交点として
演算により求められるので、端数が出ることがあるが、
丸め処理して正方格子上の点としたものである。
In the above method, the work of drawing a line segment across the rectangular areas 14a and 14b involves drawing a line segment P2P4 in the area 14a (in detail, each grid point from point P2 to P4 is displayed; the same applies hereinafter), and The task is to draw a line segment PIP3 in the area 14b. Point P1. Since P2 is the start and end point, it is usually a point on a square grid, but point P3 is calculated as the intersection of the lower side of area 14b and the line segment, and point P4 is calculated as the intersection of the upper side of area 14a and the line segment. Fractions may appear, but
The points are rounded to form points on a square grid.

このように、各領域の境界線と線分との交点の直近の正
方格子上の点として各領域の境界線上の点P:1、P4
を求めると、第10図に示すように画境界線の間で表示
点がな(なり(本例では白丸の3個が欠落している)、
ディスプレイ画面では線分りがこの部分で途切れている
ように見える(この傾向は、線分と境界線のなす角が小
さい程著しい)。他と同じ表示にしてこの部分でも連続
しているように見せるには白丸3個を加える必要がある
In this way, the points on the boundary line of each area P: 1, P4 are the points on the square grid closest to the intersection of the boundary line of each area and the line segment.
When calculating, as shown in Figure 10, there are no display points between the image boundary lines (in this example, three white circles are missing),
On the display screen, the line segment appears to be broken at this portion (this tendency is more pronounced as the angle between the line segment and the boundary line becomes smaller). In order to display the same as the others and make this part appear continuous, it is necessary to add three white circles.

また、画面上で線分りを引く作業は、該線分と各矩形領
域の境界線との交点を求め、該線分をそこまでずつに区
切って(クリッピングして)引いて行(ことになるが、
これは各矩形領域の境界線について該境界線と線分りと
の交点が有るか/無いか、有ればその交点の座標は、と
行なって行き、手間のか\る作業ではある。矩形領域の
中には線分りと関係ない(離れている)ものもあるが、
従来方式ではこのようなものに対しても交点有/無をチ
ェックする。
In addition, the work of drawing line segments on the screen involves finding the intersection of the line segment and the boundary line of each rectangular area, dividing the line segment up to that point (clipping), and drawing the line segment. but,
This is a time-consuming process, as it involves determining whether or not there is an intersection between the boundary line of each rectangular area and the line segment, and if so, determining the coordinates of the intersection point. Some rectangular areas are unrelated to (separate from) line segments, but
In the conventional method, the presence/absence of an intersection is checked for such items as well.

本発明はか\る点を改善し、無関係と分った線分はクリ
ッピング処理の対象から外そうとするものである。また
本発明は、前記境界線間で線分が途切れることがあるが
、これを埋めて連続化しようとするものである。
The present invention aims to improve this point and exclude line segments that are found to be irrelevant from being subjected to clipping processing. Further, in the present invention, line segments may be interrupted between the boundary lines, but this is attempted to be filled in and made continuous.

〔問題点を解決するための手段〕[Means for solving problems]

第1図に示すように本発明ではウィンドウ14(の矩形
領域)について線分(図形)L+〜L3のクリッピング
を行なうとき、ウィンドウ12で隠される部分を含むウ
ィンドウ14全体についてクリッピング処理を行ない(
線分L1、L2.L3が14内に入るか否かチェックし
)、ウィンドウ14に全(入らない線分(図形)本例で
はL3は排除する(ステップ1)。この処理により、ウ
ィンドウ内に一部又は全部が入っていると見做された図
形L1.L2のみが個々の分割矩形ごとのクリッピング
処理の対象となる(ステップ2)。
As shown in FIG. 1, in the present invention, when clipping the line segments (figures) L+ to L3 for (the rectangular area of) the window 14, the clipping process is performed for the entire window 14 including the portion hidden by the window 12 (
Line segments L1, L2. Check whether L3 falls within 14) and fill all (line segments (figures) that do not fit) into window 14. In this example, L3 is excluded (step 1). Through this process, part or all of the line segment (shape that does not fit) is excluded (step 1). Only the figures L1 and L2 that are considered to be the same are subject to clipping processing for each divided rectangle (step 2).

こ−で、ウィンドウ内にあるものの、他のウィンドウの
影の領域にあるため表示されない図形L2も上記処理で
残り、個々の分割領域についてのクリッピング処理°の
対象になる(これは前記擾先度を用いて除くことができ
る)。
In this way, the figure L2, which is inside the window but is not displayed because it is in the shadow area of another window, remains in the above process and becomes the target of the clipping process for each divided area (this is based on the above-mentioned clipping degree). ).

隣接境界線部分での線分の途切れに対しては次のように
する。即ち第2図に示すように隣接境界線BLI、BL
、2間に2分の1ドツト間隔d/2で仮想境界線ILを
引き、線分りと該線ILとの交点Paを演算により求め
る。そして境界線BL+上でこの交点PaよりP3側に
格子点があれば(本例ではP5の1つある)それも線分
りを表わす点として採用し、また境界線BL2上で交点
P。
For breaks in line segments at adjacent boundary lines, do the following: That is, as shown in FIG. 2, the adjacent boundaries BLI, BL
, an imaginary boundary line IL is drawn at a half dot interval d/2 between the lines 2 and 2, and the intersection point Pa between the line segment and the line IL is calculated. If there is a lattice point on the P3 side of the intersection Pa on the boundary line BL+ (there is one P5 in this example), that is also adopted as a point representing a line segment, and the intersection P on the boundary line BL2.

よりP4側に格子点があれば(本例ではP6の1つある
)それも線分りを表わす点として採用する。
If there is a lattice point closer to P4 (in this example, there is one lattice point P6), that is also adopted as a point representing a line segment.

〔作用〕[Effect]

このようにすれば、無駄な矩形領域についてのクリッピ
ングを行なう必要がないので能率的な、高速なりリッピ
ング処理を行なうことができる。
In this way, there is no need to perform clipping on useless rectangular areas, so that efficient and high-speed ripping processing can be performed.

また隣接境界線部分でドツトの欠落が生じることがなく
、両矩形領域に跨りこれらの領域の境界線に小さな角で
交差する線分にも途切れが生じることがない。
Further, no dots are missing in adjacent boundary line portions, and no breaks occur in line segments that span both rectangular areas and intersect the boundaries of these areas at small angles.

〔実施例〕〔Example〕

線分がウィンドウに入るか否かを見分けるにはCohe
n−Sutherlandアルゴリズムを用いるとよい
To determine whether a line segment falls into a window or not, use Cohe
It is preferable to use the n-Sutherland algorithm.

これは第3図に示すようにウィンドウの上、下、左、右
辺を延ばして画面(領域全体)を9分割し、各部分領域
に図示の如(4ビット符号を付ける。
As shown in FIG. 3, the screen (the entire area) is divided into nine parts by extending the top, bottom, left, and right sides of the window, and a 4-bit code (4-bit code) is assigned to each partial area as shown in the figure.

各ビットの意味は次の如(である。即ち第1ビツト(右
端ビット)が1ということはその部分領域がウィンドウ
の左縁x1の左方にあるということであり、第2ビツト
が1ということはその部分領域がウィンドウの右縁X2
の右方にある、第3ビツトが1ということはその部分領
域がウィンドウの下縁Y2の下方にある、そして第4ビ
ツトが1ということはその部分領域がウィンドウの上縁
Y1の上方にあるということである。このように4ビッ
ト符号を与えておくと、これらの部分領域に始、終点を
持つ線分がウィンドウに入るか否かは始、終点のある部
分領域の4ビット符号の論理積をとって簡単に判別する
ことができる。例えば線分L1はウィンドウに入らない
が、この線分の始、終点の論理積は(1001)and
  (1010)= (1000)であり、0ではない
からウィンドウに入らない、としてよい。また線分L2
の始、終点の論理積は(0001)and  (001
0)= (0000)であり、これはOであるからウィ
ンドウに入る。また線分L3の始、終点の論理積は(0
101)and  (0110)= (0100)であ
り、0でないからウィンドウを通らない。始、終点が0
001と1000にあるものはウィンドウに入るものと
入らないものとがあるが、論理積は0である。従って論
理積が0の線分には入るものと入らないものがあるが、
論理積がOでないものは入らないとしてよく、これは排
除対象とする。
The meaning of each bit is as follows (that is, the first bit (rightmost bit) is 1 means that the partial area is to the left of the left edge x1 of the window, and the second bit is 1. This means that the partial area is on the right edge of the window
To the right of That's what it means. By giving 4-bit codes in this way, you can easily determine whether a line segment with start and end points in these subregions falls within the window by taking the AND of the 4-bit codes of the subregions with start and end points. can be determined. For example, line segment L1 does not fit into the window, but the logical product of the start and end points of this line segment is (1001) and
(1010) = (1000), and since it is not 0, it may be assumed that it does not fit into the window. Also, line segment L2
The logical product of the start and end points is (0001) and (001
0)=(0000), which is O, so it enters the window. Also, the logical product of the start and end points of line segment L3 is (0
101) and (0110) = (0100), and since it is not 0, it does not pass through the window. Starting and ending points are 0
Some of the items in 001 and 1000 fit into the window, while others do not, but the logical product is 0. Therefore, some line segments with a logical product of 0 fit in the line segment, while others do not fit in the line segment, but
If the logical product is not O, it may be said that it is not included, and this is to be excluded.

隣接境界線部分に生じる途切れを防止するには第2図の
如くするが、仮想境界線ILと線分りとの交点Pa等は
内分点として求めることができる。
In order to prevent discontinuities occurring in adjacent boundary line portions, the method shown in FIG. 2 is used, but the intersection point Pa between the virtual boundary line IL and the line segment, etc. can be determined as internal division points.

即ち、第4図に示すように始、終点X1、X2の線分を
m;nに分割する点Xは X= (n x + +mx 2 ) / (m+ n
)  −”−−−(1)で表わされる。Pa、PQ、P
aでこの関係を通用するとm=nであるからfl)式は
X= (x + +x 2)/2であり、Paのx、 
 y座標値はPa、Paのx、y座標値の平均値である
。PI、P2からPa。
That is, as shown in Fig. 4, the point X that divides the line segment between the start and end points X1 and X2 into m; n is X = (n x + + mx 2 ) / (m + n
) −”---(1). Pa, PQ, P
If this relationship is applied to a, m = n, so the fl) formula is X = (x + + x 2)/2, and x of Pa,
The y coordinate value is the average value of the x and y coordinate values of Pa and Pa. PI, P2 to Pa.

Paを求めるには先ず(1)式のm、nを求め、これで
(11式を計算すればよい。
To find Pa, first find m and n in equation (1), and then calculate equation (11).

クリッピング処理は第5図(0)に示すように線分がウ
ィンドウ(詳しくは矩形領域)外にある場合および第5
図(blに示すように線分がウィンドウ内にある場合を
除いて行なう。第5図(alの状態は第3図で説明した
要領で検出できる。また第5図(blの状態は線分の始
、終端が共にooooであるから、これで検出できる。
Clipping processing is performed when a line segment is outside the window (more specifically, a rectangular area) as shown in FIG.
This is done except when the line segment is within the window as shown in figure bl. Since both the beginning and end are oooo, this can be detected.

線分は具体的には図形の一部であるから多数あるのが普
通で、これらの線分でクリッピング処理する/しないも
のは前述の要領で選別する。
Specifically, there are usually a large number of line segments since they are part of a figure, and those line segments to be clipped or not are selected in the manner described above.

クリッピング要領を第5図(C1,(d)で説明する。The clipping procedure will be explained with reference to FIG. 5 (C1, (d)).

本例ではウィンドウ14aの左縁を線分りがyLで交わ
り、仮想境界線ILとはPo(このy座標はyV2)で
交わるとする。td)はtc>の部分拡大図である。交
点yLが格子点になければ量子化され、yL′が表示点
になる。交点計算で表示点を求めるとyL′が得られ、
これで終了してしまって、境界線部で線分の途切れが生
じることがある。これをなくすため、Pa−yx、  
(共にy座標)=8をyLに与える。y〃はこのyL+
ε点である。
In this example, it is assumed that a line segment intersects the left edge of the window 14a at yL, and intersects the virtual boundary line IL at Po (the y coordinate is yV2). td) is a partially enlarged view of tc>. If the intersection yL is not at a grid point, it is quantized and yL' becomes the display point. When the display point is determined by intersection calculation, yL' is obtained,
If this ends, the line segment may be interrupted at the boundary line. To eliminate this, Pa-yx,
(Both y coordinates) = 8 is given to yL. y is this yL+
It is point ε.

線分りの始、終点のy座標差をdy、x座標差をdxと
すると dx : dy−1/2 :ε +’+  5= 1 、 ay 2  dx         ・・・・・・(2)また
)’L’   )’L、=αとする。この6とαの大小
関係で7%、y%′は第6図(0)〜(d)の如くなる
Let dy be the y-coordinate difference between the start and end points of a line segment, and dx be the x-coordinate difference, then dx: dy-1/2: ε +'+ 5= 1, ay 2 dx (2) Also) 'L' ) 'L, = α. Based on the magnitude relationship between 6 and α, 7%, y%' becomes as shown in FIG. 6 (0) to (d).

第6図(0)はε=α=0の場合で、このとき線分りは
水平で、かつウィンドウの境界線BLとの交点は格子点
上にある。従って’!L=Vr、’=V%=y’A’で
ある。表示点はyL′とする。
FIG. 6(0) shows the case where ε=α=0, in which case the line segment is horizontal and the intersection with the window boundary line BL is on the grid point. Therefore'! L=Vr,'=V%=y'A'. The display point is yL'.

第6図(b)はε〈αの場合で、この場合yLの量子化
点yL′と7%の量子化点y〃′が表示点になる。y’
Aの量子化点はy’Aから見てyL側に求め、その逆側
には求めない(求めると、境界線部で線分に行き過ぎが
生じて、ヒゲが出る)。
FIG. 6(b) shows the case where ε<α, in which case the quantization point yL' of yL and the quantization point y' of 7% become display points. y'
The quantization point of A is found on the yL side when viewed from y'A, but not on the opposite side (if it is found, the line segment will go too far at the boundary line and a whisker will appear).

第6図(C)はε=αの場合で、この場合はyL′−y
%′=y%になり、yL′が表示点になる。
Figure 6(C) shows the case of ε=α, in which case yL'-y
%'=y%, and yL' becomes the display point.

第6図(d)は8〉αの場合で、この場合はyLの量子
化点yL′とyVaの量子化点yz′と、yz′とyL
′との間の格子点yV2”(1つとは限らず、Iy%’
   yL’  1、’d  1だけある)が表示点に
なる。
Figure 6(d) shows the case of 8>α, in which case the quantization point yL' of yL and the quantization point yz' of yVa, and yz' and yL
', the lattice point yV2'' (not limited to one, Iy%'
There are only yL' 1 and 'd 1) as display points.

この第6図では一方のウィンドウの境界線上の表示点に
ついてだけ説明したが、このウィンドウと隣接する他方
のウィンドウ線の境界線上表示点についても同様に決定
、追加する。
Although only the display points on the boundary line of one window have been described in FIG. 6, the display points on the boundary line of the other window adjacent to this window are also determined and added in the same manner.

本発明のクリッピング処理要領を第7図に示す。FIG. 7 shows the clipping processing procedure of the present invention.

(0)はウィンドウ内に線分を画く処理要領を示し、線
分がウィンドウ外であればこの線分は対象外であり、描
画領域なしとして排除する。線分が全部ウィンドウ内で
あれば、その線分を全部このウィンドウに画く。線分は
一部はウィンドウ外であればクリッピング処理し、ウィ
ンドウ内の線分のみこのウィンドウに画(。(b)は線
分のウィンドウ内部分のみを取出す処理で、始点クリッ
ピングおよび終点クリッピングをして、ウィンドウ外の
部分を除く。fc)は始点クリッピング処理を示し、線
分とウィンドウ左辺、右辺、下辺、上辺との交点を求め
、それがあれば線分始点はそこまでとする。
(0) indicates a processing procedure for drawing a line segment within the window; if the line segment is outside the window, this line segment is not targeted and is excluded as having no drawing area. If all line segments are within the window, draw all the line segments in this window. If part of the line segment is outside the window, it will be clipped, and only the line segment inside the window will be drawn in this window. fc) indicates a starting point clipping process, which finds the intersections of the line segment with the left, right, bottom, and top sides of the window, and if there is one, the starting point of the line segment ends there.

交点が2つ見付かれば、他方が終点である。(d+は前
記境界線部の欠落補正処理を示し、線分とウィンドウ境
界線(本例では左辺)との交点を求め、また仮想境界線
との交点を求め、これらより前記の要領で表示点を決め
る。
If two intersections are found, the other is the end point. (d+ indicates the missing correction process of the boundary line part, which calculates the intersection between the line segment and the window boundary line (in this example, the left side), and also calculates the intersection point with the virtual boundary line, and from these, the display point is decide.

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

以上説明したように本発明によれば、ウィンドウを矩形
分割するマルチウィンドウ型表示装置において、矩形領
域の境界線部に生じる線分(図形)の途切れを阻止する
ことができ、また対象/非対゛象をチェックして対象外
の線分についてはクリッピング処理を行なわないように
するので能率が上り、高速処理化を図ることができる。
As explained above, according to the present invention, in a multi-window type display device that divides a window into rectangular areas, it is possible to prevent line segments (figures) from discontinuing at the boundaries of rectangular areas, and to Since the object is checked and the clipping process is not performed on line segments that are not the target, efficiency is increased and processing speed can be increased.

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

第1図および第2図は本発明のクリッピング方式の説明
図、 第3図はコーエン・サザーランド・アルゴリズムの説明
図、 第4図は内分法の説明図、 第5図はクリッピングの説明図、 第6図は欠落部補正要領の説明図、 第7図はクリッピング処理の流れ図、 第8図はマルチウィンドウの説明図、 第9図は矩形分割方式の説明図、 第10図は従来方式で生じる問題点の説明図である。
Figures 1 and 2 are illustrations of the clipping method of the present invention, Figure 3 is an illustration of the Cohen-Sutherland algorithm, Figure 4 is an illustration of the internal division method, Figure 5 is an illustration of clipping, Figure 6 is an explanatory diagram of the missing part correction procedure, Figure 7 is a flowchart of the clipping process, Figure 8 is an explanatory diagram of multi-window, Figure 9 is an explanatory diagram of the rectangular division method, and Figure 10 is a diagram of what occurs in the conventional method. It is an explanatory diagram of a problem.

Claims (2)

【特許請求の範囲】[Claims] (1)表示画面(10)上に複数のウィンドウ(12、
14)を一部重ねて設定でき、他のウィンドウの影にな
って非矩形となるウィンドウ領域は分割して複数の矩形
領域(14a、14b、・・・・・・)の和とし、複数
のウィンドウをこのような矩形領域の集まりとして管理
する画面制御方式における図形のクリッピング方式にお
いて、 矩形領域ごとの図形クリッピング処理の前に、該矩形領
域に分割する前のウィンドウに当該図形(L_1、L_
2、・・・・・・)が入るか否かを検査し、入らないも
のは対象外として除くことを特徴とするクリッピング方
式。
(1) Multiple windows (12,
14) can be set partially overlapping, and the window area that becomes non-rectangular due to the shadow of another window is divided and set as the sum of multiple rectangular areas (14a, 14b,...), and multiple In a graphic clipping method in a screen control system that manages a window as a collection of rectangular areas, before the graphic clipping process for each rectangular area, the relevant graphic (L_1, L_
2,...) is included, and those that do not fit are excluded as out of scope.
(2)表示画面(10)上に複数のウィンドウ(12、
14)を一部重ねて設定でき、他のウィンドウの影にな
って非矩形となるウィンドウ領域は分割して複数の矩形
領域(14a、14b、・・・・・・)の和とし、複数
のウィンドウをこのような矩形領域の集まりとして管理
する画面制御方式における図形のクリッピング方式にお
いて、 矩形領域ごとの図形クリッピング処理の前に、該矩形領
域に分割する前のウィンドウに当該図形(L_1、L_
2、・・・・・・)が入るか否かを検査し、入らないも
のは対象外として除いて、入るものだけをクリッピング
対象とし、 隣接矩形領域の対向する各境界線(BL_1、BL_2
)の中央に仮想境界線(IL)を引き、この仮想境界線
と図形との交点(P_0)を求め、この交点と、図形と
境界線との交点(P_3、P_4)との間の格子点(P
_5、P_6)を該境界線上の表示点として付加するこ
とを特徴とするクリッピング方式。
(2) Multiple windows (12,
14) can be set partially overlapping, and the window area that becomes non-rectangular due to the shadow of another window is divided and set as the sum of multiple rectangular areas (14a, 14b,...), and multiple In a graphic clipping method in a screen control system that manages a window as a collection of rectangular areas, before the graphic clipping process for each rectangular area, the relevant graphic (L_1, L_
2, ...) will be included, those that do not fit will be excluded from the target, and only those that will fit will be subject to clipping, and each opposing boundary line (BL_1, BL_2) of the adjacent rectangular area will be
), draw a virtual boundary line (IL) at the center of the figure, find the intersection point (P_0) between this virtual boundary line and the figure, and find the grid points between this point of intersection and the intersection points (P_3, P_4) between the figure and the boundary line. (P
_5, P_6) is added as a display point on the boundary line.
JP62061803A 1987-03-17 1987-03-17 Clipping system in multiwindow Pending JPS63228274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62061803A JPS63228274A (en) 1987-03-17 1987-03-17 Clipping system in multiwindow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62061803A JPS63228274A (en) 1987-03-17 1987-03-17 Clipping system in multiwindow

Publications (1)

Publication Number Publication Date
JPS63228274A true JPS63228274A (en) 1988-09-22

Family

ID=13181614

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62061803A Pending JPS63228274A (en) 1987-03-17 1987-03-17 Clipping system in multiwindow

Country Status (1)

Country Link
JP (1) JPS63228274A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02244285A (en) * 1989-03-17 1990-09-28 Hitachi Ltd Skip processing method for rendering processing and display processor
US5581796A (en) * 1989-03-07 1996-12-03 Hitachi, Ltd. Processing method and graphics processor for skip drawing a figure

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5581796A (en) * 1989-03-07 1996-12-03 Hitachi, Ltd. Processing method and graphics processor for skip drawing a figure
JPH02244285A (en) * 1989-03-17 1990-09-28 Hitachi Ltd Skip processing method for rendering processing and display processor

Similar Documents

Publication Publication Date Title
JP3840014B2 (en) Scan conversion execution apparatus for graphics display system
JP3030206B2 (en) Method and apparatus for clipping a graphic polygon to a clipping area
US20030076325A1 (en) Active pixel determination for line generation in regionalized rasterizer displays
JP3066599B2 (en) Method for clipping polygons for display on a computer output display
JP3892900B2 (en) Window system with individual windows of arbitrary resolution for display on multiple devices of arbitrary resolution
JPH07109629B2 (en) Polygon identification method, polygon identification system
JPH07200218A (en) Method and equipment for interlocking of graphical object
JPS63228274A (en) Clipping system in multiwindow
EP1139294B1 (en) Graphical image system and apparatus
JP2704010B2 (en) Display system, bold line display method, and information processing device
US20040169655A1 (en) Active region determination for line generation in regionalized rasterizer displays
JP2625612B2 (en) Image processing method and image processing apparatus
US20060082578A1 (en) Image processor, image processing method, and image processing program product
JPH04323722A (en) Drawing system for multiwindow system
JP2614111B2 (en) A method for detecting the correlation between a straight line display element and a rectangular window
JP2667187B2 (en) Line clipping method in multi-window
JP2714114B2 (en) Graphic processing method and graphic system
JP4320604B2 (en) Image processing method and image processing apparatus
JP2780496B2 (en) Clipping method for drawing equipment
JPH0540591A (en) Window drawing system
JPS6326773A (en) Display processing method for graphic information
JP2520007B2 (en) Graphic picking method in bitmap display device
JPS63167977A (en) Three-dimensional shape picking method
JPH01166126A (en) Display control method in multiwindow display device
JPH0279178A (en) Implicit-surface elimination system