JPS6026986A - Graphic display unit - Google Patents

Graphic display unit

Info

Publication number
JPS6026986A
JPS6026986A JP58135565A JP13556583A JPS6026986A JP S6026986 A JPS6026986 A JP S6026986A JP 58135565 A JP58135565 A JP 58135565A JP 13556583 A JP13556583 A JP 13556583A JP S6026986 A JPS6026986 A JP S6026986A
Authority
JP
Japan
Prior art keywords
counter
vector
register
value
clip
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
JP58135565A
Other languages
Japanese (ja)
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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP58135565A priority Critical patent/JPS6026986A/en
Publication of JPS6026986A publication Critical patent/JPS6026986A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Generation (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 本発明はラスクスキャン方式での2次元画向上の2点間
を結ぶ直線を表示するベクトル発生回路を含むグラフィ
ックディスプレイ装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a graphic display device including a vector generation circuit for displaying a straight line connecting two points in a two-dimensional image enhancement using a rask scan method.

従来のグラフィックディスプレイ装置は線分の始点およ
び終点の座標から線分の傾むきに関する演算を行い順次
表示すべき座標点を決定する判別部を含むベクトル発生
回路を有する。
A conventional graphic display device has a vector generation circuit including a discriminator that calculates the slope of a line segment from the coordinates of the start point and end point of the line segment and determines coordinate points to be sequentially displayed.

m1図はベクトル描画の表示例を示し、ベクトル11の
始点Aの座標を(XAIYA)、終点Bの座標を(XB
 IYB )とする。X方向の単位変位量をdX、これ
に対応するY方向の単位変位量をdYとし、1ΔX 1
=IXB XA l 、lΔy1=IYB YAIとす
れば、 となる。dX−1(単位長)とし、Xがn単位長だけ変
位したとすると、そのときの始点AからのYの変位y、
は、 同様に、 となる。 ・・・・・・(2) すなわち、D=−1ΔXI +21ΔY1≧0 のとき
、表示ドツトのY座標¥1をYA+1 とする。
Figure m1 shows a display example of vector drawing, where the coordinates of the starting point A of vector 11 are (XAIYA) and the coordinates of the ending point B are (XB
IYB). The unit displacement in the X direction is dX, the corresponding unit displacement in the Y direction is dY, and 1ΔX 1
If = IXB dX-1 (unit length), and if X is displaced by n unit length, the displacement y of Y from the starting point A at that time,
Similarly, . (2) That is, when D=-1ΔXI+21ΔY1≧0, the Y coordinate of the display dot ¥1 is set to YA+1.

1)<OのときはY、=YAとする。1) When <O, set Y,=YA.

初わち、D+1)2≧0(ただしD2=21Δy1−2
1ΔXl)のとき、表示ドツトのY座標Y2をYl+1
とする。
First, D+1)2≧0 (however, D2=21Δy1-2
1ΔXl), set the Y coordinate Y2 of the display dot to Yl+1
shall be.

ち、D、+D≧0(ただしDt=21ΔYl)のとき、
Y2をYA+1とする。
When D, +D≧0 (however, Dt=21ΔYl),
Let Y2 be YA+1.

n=3、−−− nについCはn = 2のときと同様
に判別する。
n=3, --- For n, C is determined in the same way as when n=2.

したがって下記の(ステップ1)〜(ステップ5)に示
すアルゴリズムによりベクトルを発生するためのアドレ
スを計算できる。
Therefore, an address for generating a vector can be calculated using the algorithm shown in (Step 1) to (Step 5) below.

下記のステップにより順次X方向とY方向のアドレスを
決定しプロットする。
The addresses in the X direction and Y direction are sequentially determined and plotted by the following steps.

(ステップ1) ΔX=XB−XA、Δ”y=yB−yAD−−1ΔXl
 +21ΔYl 、D1=21ΔYID2=21ΔYl
−21ΔX1 をH]算し、各レジスタにセットし、XカウンタにXA
、XカウンタにYAをセットする。また、ドツトカウン
タに1ΔxBx方向の描画点数)をセットする。
(Step 1) ΔX=XB-XA, Δ"y=yB-yAD--1ΔXl
+21ΔYl, D1=21ΔYID2=21ΔYl
-21ΔX1 is calculated by H], set in each register, and set XA to X counter.
, sets YA in the X counter. Also, the number of drawing points in the 1ΔxBx direction is set in the dot counter.

(ステップ2) (Xカウンタ、Xカウンタ)で示されるリフレッシュメ
モリのアドレスに線種レジスタで示される値(0または
1)を書く(実線、破線等の各棟の線分を表示するため
)。
(Step 2) Write the value (0 or 1) indicated by the line type register at the refresh memory address indicated by (X counter, X counter) (to display the line segments of each building, such as solid lines and broken lines).

(ステップ3) ΔX〉0ならばXカウンタを+1だけカウントアツプす
る。
(Step 3) If ΔX>0, count up the X counter by +1.

ΔX〈0ならばXカウンタを1だけカウントダウンする
If ΔX<0, count down the X counter by 1.

(ステップ4) ドツトカウンタを1だけカウントダウンし、計数値がO
になるとベクトル描画終了とする。
(Step 4) Count down the dot counter by 1 until the count value is O.
When this happens, vector drawing ends.

(ステップ5) (1)D≧0ならげD+D2をセットし、ΔX>Oのと
きXカウンタを1だけカウントアツプし、 ΔX〈0のときXカウンタを1だけカウントダウンして
ステップ2へ行く。
(Step 5) (1) If D≧0, set D+D2, and when ΔX>O, count up the X counter by 1, and when ΔX<0, count down the X counter by 1, and go to step 2.

(II) D > OならばD+D1をセットし、Xカ
ウンタのカウント値をそのま\保持しステップ2へ行く
(II) If D > O, set D+D1, keep the count value of the X counter as it is, and go to step 2.

第2図は上述のアルゴリズムを用いたベクトル発生回路
のブロック図である。ベクトルの始点Aと終点Bが与え
られると、始点AのXAはXカウンタ11に%YAはX
カウンタ12にセットされ5− る。さらに、加算器4によりΔX、ΔY、D。
FIG. 2 is a block diagram of a vector generation circuit using the above algorithm. When starting point A and ending point B of a vector are given, XA of starting point A is set to X counter 11, and %YA is
The counter 12 is set to 5-. Furthermore, the adder 4 adds ΔX, ΔY, and D.

Dl、D2を計算し、その結果をそれぞれΔXレジスタ
3.ΔYレジスタ4.Dレジスタ8.Dlレジスタ6.
D2レジスタ7にセットする。
Calculate Dl and D2 and store the results in ΔX register 3. ΔY register 4. D register 8. Dl register6.
Set in D2 register 7.

次にΔXレジスタ3の出力データの極性ビットaの正/
負によりXカウンタ11のカウントアツプ/ダウンを、
ΔYレジスタ5の出力データの極性ビットdの正/負に
よりXカウンタ12のカウントアツプ/ダウンを決定す
る。Xカウンタ12のカウント可能状態はDレジスタ8
の極性ビットbにより決定され、b=v″0“(D>0
)のときXカウンタ12はイネーブルになり、b=ゝゝ
1“(D<O)のときはインヒビットされる。レジスタ
6.7の出力のセレクタ9による選択も極性ヒツトbに
より行われ、b=ゝゝ0“のときはD2レジスタ7の内
容を、b=ゝゝ1“のときにはDlレジスタ6の出力を
選び加算器10に入力し、Dレジスタ8の出力との加算
結果を再びDレジスタ8にセットする。
Next, the polarity bit a of the output data of ΔX register 3 is positive/
The count up/down of the X counter 11 is
The count up/down of the X counter 12 is determined by the positive/negative of the polarity bit d of the output data of the ΔY register 5. The countable state of the X counter 12 is the D register 8.
is determined by the polarity bit b of b=v″0″(D>0
), the X counter 12 is enabled, and when b=ゝゝ1''(D<O), it is inhibited. The selection of the output of the register 6.7 by the selector 9 is also performed by the polarity hit b, and b= When the value is "0", the contents of the D2 register 7 are selected, and when b = "1", the output of the Dl register 6 is selected and inputted to the adder 10, and the result of addition with the output of the D register 8 is sent to the D register 8 again. Set to .

上記の処理をΔXカウンタ2のボロー信号Cが)「6− ゝゝ0″(ΔXレジスタの内容−0)になるまで繰り返
す。バスドライバ13,14,15はボロー信号Cがゝ
ゝ1″の間アクティブであり、C−0でインヒビットさ
れる。
The above process is repeated until the borrow signal C of the ΔX counter 2 reaches ``6-0'' (the content of the ΔX register - 0). The bus drivers 13, 14, and 15 are active while the borrow signal C is "1" and are inhibited at C-0.

前述の方法により始点と終点を与えればベクトルは描画
できるが、文字面とクラス面をスーパーインポーズする
とき、または2つのグラフイメージを1つの画面上に出
すとき互いにかさならないようにする場合、または1つ
のグラフイメージの部分だけを表示したいとき、表示可
能な領域のうち一部の限られた矩形領域(クリップ領域
)にのみベクトルの有効な部分を表示する機能、すなわ
ちクリップ機能が要求される。第3図のようにクリップ
領域が(XMIN + XMAX )および(YMIN
 +YMAX )の矩形で規定さrlている場合、従来
、ベクトル発生回路に始点、終点を与える前にプログラ
ムにより始点A、終点Bで知定されるベクトルlIがク
リップ領域内にあるかどうかの判別が必要となる。判別
の結果、ベクトル11の一部分がクリップ領域外にある
ときは、ベクトルllとクリップ領域を構成する線分と
の交点をめ、その交点を新たな始点または終点とし°C
パラメータセットを行わなければならない。また完全に
クリップ領域外にあるときはベクトル描画不要となる。
A vector can be drawn by specifying the start and end points using the method described above, but if you want to superimpose the character side and the class side, or when displaying two graph images on one screen so that they do not overlap each other, or When it is desired to display only a portion of one graph image, a function is required to display a valid portion of a vector only in a limited rectangular area (clip area) of the displayable area, that is, a clip function. As shown in Figure 3, the clip area is (XMIN + XMAX) and (YMIN
+YMAX), conventionally, before giving the start point and end point to the vector generation circuit, it is determined by the program whether the vector lI, which is determined by the start point A and the end point B, is within the clip area. It becomes necessary. As a result of the determination, if part of the vector 11 is outside the clipping area, find the intersection between the vector ll and the line segment that makes up the clipping area, and use that intersection as a new starting point or ending point.
Parameters must be set. Also, if it is completely outside the clipping area, vector drawing is not necessary.

このように、クリップ機能が要求された場合には、プロ
グラムでの処理項目が非常に多くなり、全体としてベク
トルの描画速度が低下する。
In this way, when the clipping function is requested, the number of processing items in the program becomes extremely large, and the overall vector drawing speed decreases.

本発明の目的は、ベクトル描画においてクリップ機能が
要求された場合、その機能をハードウェアにより処理し
てプログラムの負担を軽減しベクトルの描画時間を短縮
できるグラフィックディスプレイ装置を提供することに
ある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a graphic display device that, when a clipping function is required in vector drawing, can process the function using hardware to reduce the load on the program and shorten the vector drawing time.

本発明のグラフィックディスプレイ装置は、リフレッシ
ュメモリと、ラスクスキャン方式の2次元画面に表示す
べきベクトルのX方向およびY方向の長さを示すデータ
を記憶する手段と、前記X方向の長さを記憶し表示命令
ごとに減算されるドツトカウンタと、前記ベクトルの始
点および終点の座標から線分の傾むきに関する演算を行
いX方向の座標の移動に応じてY方向の座標を移動すべ
きか否かを決定する判別部と、表示すべき点の座標を記
憶するX−Yカウンタと、クリップされる2次元表示面
のX方向の最大値と最小値およびY方向の最大値と最小
値を前記X−Yカウンタの出力と比較しクリップ領域内
のベクトル描画アドレスのみを前記リフレッシュメモリ
に伝達する比較図に部分的に示す。第4図は第2図にお
いて破線で囲まれている部分に対応する。Xλ(AXレ
ジスタ16はクリップ領域のXの最大値を、XMINレ
ジスタ17idクリップ領域のXの最小値をs YMA
Xレジスター8はクリップ領域のYの最大値を、YMr
Nレジスター9はYの最小値を記憶するレジスタである
。コンパレータ20.21.22.23は描画時のリフ
レッシュメモリのアドレスとクリップ領域の佃とを比較
するための機能を有し、その出力信号e+f+g+hは
下記の意味をもつ。
The graphic display device of the present invention includes a refresh memory, a means for storing data indicating the lengths in the X direction and the Y direction of a vector to be displayed on a two-dimensional screen using a rask scan method, and a means for storing the length in the X direction. The dot counter that is subtracted for each display command and the coordinates of the starting point and ending point of the vector are used to calculate the slope of the line segment, and it is determined whether or not the Y-direction coordinate should be moved in accordance with the movement of the X-direction coordinate. a discriminator that determines the coordinates of a point to be displayed; an X-Y counter that stores the coordinates of a point to be displayed; It is partially shown in the comparison diagram that only the vector drawing address within the clip area is transmitted to the refresh memory compared with the output of the Y counter. FIG. 4 corresponds to the part surrounded by a broken line in FIG. 2. Xλ (AX register 16 sets the maximum value of X in the clip area, XMIN register 17id sets the minimum value of X in the clip area, s YMA
X register 8 sets the maximum value of Y in the clip area as YMr.
N register 9 is a register that stores the minimum value of Y. The comparators 20, 21, 22, 23 have a function of comparing the address of the refresh memory at the time of drawing with the Tsukuda of the clip area, and the output signal e+f+g+h has the following meaning.

e=l :Xカウンタ値≦X MAX値( e=Q :Xカウンタ値> X MAX値−″9′:′
ニア f−1;Xカウンタ値≧X M r N値【 f=o:Xカウンタ値<XMIN値 g−1;Yカウンタ値≦YMAX値 ( g=0 :Yカウンタ値>YMAX値 h=1 :Yカウンタ値≧YMIN値 ( h=Q :Yカウンタ値< YMIN値5人力ANDゲ
ート24の出力信号iは伯゛号C2e+f+g+hのA
ND出力であり、バスドライバー3.14.15に入力
され、i=Qのとき各バスドライバー出力はインヒビッ
トされる。すなわち、第3図に示されるようなりリップ
領域と、始点Aと終点Bのベクトルが指定された場合5
llt上のAからclでの間はりフレッシーメモリへの
アクセスが禁止されCからBまでの間のみベクトルが描
画されCクリップ条件を満足する。
e=l: X counter value ≦X MAX value (e=Q: X counter value > X MAX value - ″9′:′
Near f-1; X counter value ≧ X M r N value [ f = o: X counter value < Y counter value ≧ Y MIN value ( h = Q : Y counter value < Y MIN value 5 The output signal i of the manual AND gate 24 is A of the number C2e + f + g + h
It is an ND output and is input to bus drivers 3.14.15, and when i=Q, each bus driver output is inhibited. In other words, if the lip area and the vectors of the starting point A and the ending point B are specified as shown in FIG.
Access to the fresh memory is prohibited from A to cl on llt, and vectors are drawn only from C to B, satisfying the C clip condition.

本発明によれは、クリップ機能が要求された場合でも、
プログラムは最初にそのクリップ領域をレジスタに設定
するのみで良く、以抜はクリップ指定がない時と同じ処
理をくり返すことでベクトルクリップ機能をサポートで
きる。すなわち、プ10− pグラムの介入が少なくなり、クリップ指定がある場合
でも高速にベクトル描画を行うことができる。
According to the present invention, even if a clip function is requested,
The program only needs to first set the clip area in the register, and then repeats the same process as when no clip is specified to support the vector clip function. That is, the intervention of program 10-pgrams is reduced, and vector drawing can be performed at high speed even when a clip is specified.

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

第1図はクリップ指定がないときのベクトル描画状態を
示す表示図、第2図に従来例におけるベクトル発生回路
を示すブロック図、第3図はクリップ指定がなされたと
きのベクトル描画状態を示す表示図、第4図は本発明の
実施例におけるベクトル発生回路を部分的に示すブロッ
ク図である。 ■・・・・・・線種レジスタ、2・・・・・・ドツトカ
ウンタ、3・・・・・・ΔXレジスタ、4・・・・・・
加算器、5・・・・・・ΔYレジスタ、6・・・・・・
Dルジスタ、7・・・・・・D2レジスタ、8・・・・
・・Dレジスタ、9・・・・・・マルチプレクサ、10
°°゛°゛加算器、11・・・・・・Xカウンタ、12
・・・・・・Xカウンタ、13,14.15・・・・・
・バスドライバ、16・・・・・・XMAXレジスタ、
17・・・・・・XMINレジスタ、18・・・・・・
YMAXレジスタ、19°旧”YMINレジスタ、20
,21,22.23・・・・・・コンパレータ、24・
・・・・・ANDゲート、A・・・・・・指定された始
点、B・・・・・・指定された終点、C・・・・・・描
画開始点、11・・・・・・ベクトルs XMAX・・
・・・・クリップ領域のXの最大値、XMIN・・・・
・・クリップ領域のXの最小値、Y MAX・・・・・
・クリップ領域のYの最大値s YMIN・・・・・・
クリップ領域のYの最小値。
Figure 1 is a display diagram showing the vector drawing state when there is no clip designation, Figure 2 is a block diagram showing a vector generation circuit in a conventional example, and Figure 3 is a display diagram showing the vector drawing state when a clip designation is made. 4 are block diagrams partially showing a vector generation circuit in an embodiment of the present invention. ■・・・Line type register, 2・・・Dot counter, 3・・・ΔX register, 4・・・・・・
Adder, 5...ΔY register, 6...
D register, 7...D2 register, 8...
...D register, 9...Multiplexer, 10
°°゛°゛Adder, 11...X counter, 12
...X counter, 13, 14.15...
・Bus driver, 16...XMAX register,
17...XMIN register, 18...
YMAX register, 19° old “YMIN register, 20
, 21, 22. 23...Comparator, 24.
...AND gate, A...Specified start point, B...Specified end point, C...Drawing start point, 11... Vector s XMAX...
...Maximum value of X in clip area, XMIN...
...Minimum value of X of clip area, Y MAX...
・Maximum value of Y in the clip area s YMIN・・・・・・
Minimum Y value of the clip area.

Claims (1)

【特許請求の範囲】[Claims] リフレッシュメモリと、ラスクスキャン方式の2次元画
面に表示すべきベクトルのX方向およびY方向の長さを
示すデータを記憶する手段と、前記X方向の長さを記憶
し表示命令ごとに減算されるドツトカウンタと、前記ベ
クトルの始点および終点の座標から線分の傾むきに関す
る演算を行いX方向の座標の移動に応じてY方向の座標
を移動すべきか否かを決定する判別部と、表示すべき点
の座標を記憶するX−Yカウンタと、クリップされる2
次元表示面のX方向の最大値と最小値およびY方向の最
大値と最小値を前記X−Yカウンタの出力と比較しクリ
ップ領域内のベクトル描画アドレスのみを前記リフレッ
シュメモリに伝達する比較手段とを有することを特徴と
するグラフィックディスプレイ装置。
a refresh memory, a means for storing data indicating the length in the X direction and the Y direction of a vector to be displayed on a two-dimensional screen using the Rusk scan method, and a means for storing data indicating the length in the X direction and subtracting it for each display command. a dot counter; a determining unit that calculates the inclination of the line segment from the coordinates of the starting point and the ending point of the vector and determines whether or not the coordinate in the Y direction should be moved in accordance with the movement of the coordinate in the X direction; An X-Y counter that stores the coordinates of the power point and 2 that is clipped.
Comparing means for comparing the maximum and minimum values in the X direction and the maximum and minimum values in the Y direction of the dimensional display surface with the output of the X-Y counter and transmitting only the vector drawing address within the clip area to the refresh memory; A graphic display device comprising:
JP58135565A 1983-07-25 1983-07-25 Graphic display unit Pending JPS6026986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58135565A JPS6026986A (en) 1983-07-25 1983-07-25 Graphic display unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58135565A JPS6026986A (en) 1983-07-25 1983-07-25 Graphic display unit

Publications (1)

Publication Number Publication Date
JPS6026986A true JPS6026986A (en) 1985-02-09

Family

ID=15154781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58135565A Pending JPS6026986A (en) 1983-07-25 1983-07-25 Graphic display unit

Country Status (1)

Country Link
JP (1) JPS6026986A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01299486A (en) * 1988-05-26 1989-12-04 Matsushita Electric Works Ltd Apparatus for detecting body for vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01299486A (en) * 1988-05-26 1989-12-04 Matsushita Electric Works Ltd Apparatus for detecting body for vehicle

Similar Documents

Publication Publication Date Title
JP3413201B2 (en) Graphics control plane for windowing and other display operations
JPS5995669A (en) Graphic processor
JP4200573B2 (en) Storage device, image processing device and method thereof, refresh operation control device and method thereof
EP0416421B1 (en) A clipping processor
US6756986B1 (en) Non-flushing atomic operation in a burst mode transfer data storage access environment
JPS6026986A (en) Graphic display unit
JPS6273385A (en) Boundary detecting object area indicating circuit
US5903280A (en) Image display apparatus that reduces necessary memory capacity for operation
JPS6073679A (en) Expansion display controller for image data
JPH06149533A (en) High-speed segment drawing method that reduces drawing processing of segments outside the display area
JPH0544063B2 (en)
JPS61187083A (en) Storage device of picture element information
JPH0588838A (en) Multi window display device
JPS61159688A (en) 3D cursor display circuit for CRT display device
JP2991591B2 (en) Multi-window display device and method
JPS6159484A (en) Segment control system
JP2980079B2 (en) Three-dimensional image processing apparatus and method
JPS6269372A (en) Clipping system for bit map memory
JPH01175087A (en) Image display device
JP2956342B2 (en) Image display control device
JPH0721395A (en) Address generator
JPH08123651A (en) Multi-window display device
JPH035755B2 (en)
EP0293698A2 (en) Graphic controller having function of painting designated area
JPH05189581A (en) Graphic data write device