JPH044480A - Method for processing graphic display - Google Patents
Method for processing graphic displayInfo
- Publication number
- JPH044480A JPH044480A JP10699890A JP10699890A JPH044480A JP H044480 A JPH044480 A JP H044480A JP 10699890 A JP10699890 A JP 10699890A JP 10699890 A JP10699890 A JP 10699890A JP H044480 A JPH044480 A JP H044480A
- Authority
- JP
- Japan
- Prior art keywords
- display
- frame memory
- graphic
- command
- drawn
- 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
Links
Landscapes
- Image Generation (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、フレームメモリ上の描画内容をディスプレ
イ上に表示する画像表示処理方法に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image display processing method for displaying drawn content on a frame memory on a display.
第4図は特開昭62−49535号公報に示された従来
の画像表示処理装置を示すブロック図であり、図におい
て、1は中央演算処理装置、2は国際規格GKSの命令
を用いたプログラムを格納する主メモリ、3は図形の描
画を行うフレームメモリ、4はグラフィックコン1〜ロ
ーラ、5はディスプレイ、6はシステムバスである。FIG. 4 is a block diagram showing a conventional image display processing device disclosed in Japanese Patent Application Laid-Open No. 62-49535. In the figure, 1 is a central processing unit, and 2 is a program using instructions of the international standard GKS. 3 is a frame memory for drawing figures, 4 is a graphic controller 1 to roller, 5 is a display, and 6 is a system bus.
次に動作について説明する。通常、ユーザプログラムに
おいて線とか円等のグラフィック要素を表示させるとき
は、標準のグラフィックソフトウェアが用いられる。こ
こではISOの国際規格GKSを用いた例を示し、GK
Sで図形を描画するときの手順を説明する。GKSの命
令を用いたプログラムは主メモリ2に格納され、中央演
算処理装置1により解読され、グラフィックコントロー
ラ4がフレームメモリ3に描画するために必要なハード
ウェアコマンドに変換された形で、上記グラフイックコ
ントローラ4に与えられる。フレームメモリ3に描かれ
た図形はそのままディスプレイ5に表示される。GKS
ては、グラフィック要素を描く命令に加えて、描いた図
形の表示部分の制御を行う機能を有している。以下に、
これを説明する。Next, the operation will be explained. Normally, standard graphics software is used to display graphic elements such as lines and circles in a user program. Here we show an example using the ISO international standard GKS, and
The procedure for drawing a figure with S will be explained. A program using GKS instructions is stored in the main memory 2, decoded by the central processing unit 1, and converted into hardware commands necessary for the graphic controller 4 to draw the graphic in the frame memory 3. is given to the controller 4. The figure drawn in the frame memory 3 is displayed on the display 5 as it is. GKS
In addition to commands to draw graphic elements, the function has a function to control the display portion of the drawn figure. less than,
Let me explain this.
ユーザは大きさの自由な仮想の座標空間に図形を描くこ
とができる。この座標をワールド座標という。また、実
際にディスプレイ5に表示するために用いる物理的な座
標である正規化デバイス座標があり、ユーザの描いたワ
ールド座標上の図形は、正規化デバイス座標に変換され
てディスプレイ5に表示される。この時の変換の割合で
、ユーザの図形をディスプレイ5の一部に表示したり、
ユーザの図形の一部分だけをディスプレイ5に表示した
りできる。The user can draw a figure in a virtual coordinate space of any size. These coordinates are called world coordinates. In addition, there are normalized device coordinates, which are physical coordinates used to actually display on the display 5, and the figure drawn by the user on the world coordinates is converted to the normalized device coordinates and displayed on the display 5. . Depending on the conversion rate at this time, the user's figure can be displayed on a part of the display 5,
Only a part of the user's figure can be displayed on the display 5.
ここで、第5図に従って、具体的にGKSを用いたユー
ザプログラムの動きを、時計の図の一部を動的に移動し
ながら表示するような応用例で説明する。まず、ユーザ
はワールド座標上に例えば第6図に示すような時計の図
を描く(ステップ5T11)。これは例えば、いくつか
の円描画命令。Here, referring to FIG. 5, the operation of a user program using GKS will be specifically explained using an application example in which a part of a clock diagram is displayed while dynamically moving. First, the user draws, for example, a clock diagram as shown in FIG. 6 on the world coordinates (step 5T11). This is for example some circle drawing instructions.
線描画命令、数字描画命令の集合で構成される。It consists of a set of line drawing commands and number drawing commands.
次に、時計の左下部分をワールド座標からクリップして
切り出し、正規化デバイス座標に変換してそれをフレー
ムメモリ3に描く(ステップ5TI2)。このときフレ
ームメモリ3に描いた図がそのままディスプレイ5に表
示される。次に、例えば、この時計を左下部分から右上
部分へスクロールして表示する場合、座標変換するワー
ルド座標の図形部分を左下から少しづつ右上にずらして
正規化デバイス座標に変換し、それまでフレームメモリ
3に描かれていたデータをクリアした後に描画する(ス
テップ5T13)そして、ステップ5T13の処理を繰
り返すこと、すなわちフレームメモリ3への描画を繰り
返すことで、少しずつディスプレイ5の図形が右上にず
れていき、図形がスクロールして見える。最終的に、図
形の右上部分をワールド座標から正規化デバイス座標に
変換してフレームメモリ3に描画し、それがディスプレ
イ5に表示されてスクロールは終る(ステップ5T14
)。Next, the lower left portion of the clock is clipped from the world coordinates, converted to normalized device coordinates, and drawn in the frame memory 3 (step 5TI2). At this time, the diagram drawn in the frame memory 3 is displayed on the display 5 as it is. Next, for example, if you want to display this clock by scrolling from the lower left to the upper right, the shape part of the world coordinate to be converted will be shifted little by little from the lower left to the upper right, converted to normalized device coordinates, and until then the frame memory After clearing the data drawn in 3, draw (step 5T13). Then, by repeating the process of step 5T13, that is, repeating the drawing to the frame memory 3, the figure on the display 5 will gradually shift to the upper right. The shapes appear to scroll. Finally, the upper right part of the figure is converted from world coordinates to normalized device coordinates and drawn in the frame memory 3, which is displayed on the display 5 and the scrolling ends (step 5T14).
).
従来の画像処理装置は以上のように構成されているので
、フレームメモリに描画し、それを消してはまた描画す
るという動作を繰り返し行うことによって、ディスプレ
イを見ている人にスクロールしている様に見せることに
なり、画面がちらついたり、描画する図形情報が多い場
合には、描画に時間がかかってスクロールが遅くなるな
どの課題があった。Conventional image processing devices are configured as described above, so by repeatedly drawing in the frame memory, erasing it, and drawing again, it gives the viewer the impression of scrolling. This caused issues such as the screen flickering, and when there was a lot of graphical information to be drawn, it took time to draw and the scrolling became slow.
この発明は上記のような課題を解消するためになされた
ものであり、画面にちらつきがなく、情報量の多い図形
も高速でスクロール表示できるグラフィック表示処理方
法を得ることを目的とする。The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a graphic display processing method that does not flicker on the screen and can scroll and display graphics with a large amount of information at high speed.
この発明に係るグラフィック表示処理方法は、中央演算
処理装置から得たハードウェアコマンドにもとづいて、
グラフィックコントローラによりフレームメモリに対す
る図形の描画をコンl−ロー=4−
ルし、ユーザが描いたワールド座標上の図形を正規化デ
バイス座標に変換して、ワイド化した上記フレームメモ
リの全体に描画し、上記グラフィックコントローラに直
接ハードウェアコマンドを送り、上記グラフィックコン
トローラの表示レジスタの制御を行うようにしたもので
ある。The graphic display processing method according to the present invention is based on hardware commands obtained from a central processing unit.
The graphics controller controls the drawing of figures in the frame memory, converts the figure drawn by the user in world coordinates to normalized device coordinates, and draws it in the entire wide frame memory. , a hardware command is sent directly to the graphic controller to control the display register of the graphic controller.
この発明におけるワイド化したフレームメモリは、ディ
スプレイに対応した大きさを持ち、これにユーザがワー
ルド座標上に描いた図形の全体を描けるようにし、従っ
て、いちいちフレームメモリの描画をクリアした後書き
込むという動作をなくすことができ、このとき、ユーザ
プログラムからグラフィックコントローラの表示レジス
タを操作するだけで、フレームメモリ上の図形を、少し
ずつ位置をずらしながらディスプレイ上に表示できるよ
うにする。The widened frame memory in this invention has a size that corresponds to the display, and allows the user to draw the entire figure drawn on the world coordinates. Therefore, the frame memory is written after each drawing is cleared. At this time, by simply manipulating the display register of the graphic controller from the user program, the figure on the frame memory can be displayed on the display while shifting its position little by little.
以下、この発明の一実施例について説明する。 An embodiment of the present invention will be described below.
第1図において、1は主メモリ2に移動したGKSの命
令を用いたプログラムを解読して、必要な処理を実行す
る中央演算処理装置、4は描画をコントロールするグラ
フィックコントローラ、5はディスプレイ、6はシステ
ムバスで、これらは従来例に示したものと同様のもので
ある。また、7は従来のフレームメモリ3より大きくな
ったワイド化したフレームメモリであるワイドフレーム
メモリである。In FIG. 1, 1 is a central processing unit that decodes a program using GKS instructions moved to main memory 2 and executes necessary processing, 4 is a graphics controller that controls drawing, 5 is a display, and 6 are system buses, which are similar to those shown in the conventional example. Further, 7 is a wide frame memory which is a wider frame memory larger than the conventional frame memory 3.
次に動作について説明する。プログラムは主メモリ2に
格納され、中央演算処理装置1により解読され、ハード
ウェア(H/Wという)コマンドに変換された形で、上
記グラフィックコントローラ4に与えられるという動作
は従来と同様である。Next, the operation will be explained. The program is stored in the main memory 2, decoded by the central processing unit 1, converted into a hardware (referred to as H/W) command, and given to the graphic controller 4, as in the conventional case.
一方、ワイドフレームメモリ7が大きいので、正規化デ
バイス座標をワイドフレームメモリ7の全体にとること
ができ、ワールド座標の図形全体を第3図に示すように
ワイドフレームメモリ7に描くことができる。そこで、
従来と同じく、時計の図の一部を表示するとして、その
一部を動的に移動しながら表示する場合の処理を、第2
図のフローチャートに沿って説明する。まず、従来と同
様に時計の図を第3図に示すようにワールド座標上に描
く(ステップ5TI)。そして、ワイドフレームメモリ
7の全体を正規化デバイス座標として座標変換し、時開
全体の図′をワイドフレームメモリ7に描く(ステップ
5T2)。ここで、GKSはワイドフレームメモリ7の
どこを表示するといった制御を行う機能は持っておらず
、正規化デバイス座標に変換してワイドフレームメモリ
7に描くことが、すなわちディスプレイ5に表示される
ものとなっている。次に、グラフィックコントローラ4
の制御コマンドをグラフィックコントローラ4に送るこ
とができるセンドH/Wコマンドを用いて、ワイドフレ
ームメモリ7のどの部分をディスプレイ5に表示するか
を制御している表示レジスタに、ワイドフレームメモリ
7の左下の矩形のアドレス値を設定する(ステップ5T
3)。すると、ディスプレイ5にはワイドフレームメモ
リ7の左下が表示される。そして、センドH/Wコマン
ドで表示レジスタにワイドフレームメモリ7の左下から
少しづつ右上にむけてずらしたアドレス値を繰り返し送
る(ステップ5T14)。このため、ディスプレイ5に
表示される図形が少しずつずれてスクロールしていく。On the other hand, since the wide frame memory 7 is large, the normalized device coordinates can be stored in the entire wide frame memory 7, and the entire world coordinate figure can be drawn in the wide frame memory 7 as shown in FIG. Therefore,
As in the past, when displaying a part of the clock diagram, the process for displaying that part while dynamically moving is performed in the second stage.
This will be explained along the flowchart in the figure. First, as in the conventional case, a diagram of a clock is drawn on the world coordinates as shown in FIG. 3 (step 5TI). Then, coordinate transformation is performed on the entire wide frame memory 7 as normalized device coordinates, and a diagram of the entire time opening is drawn in the wide frame memory 7 (step 5T2). Here, the GKS does not have a function to control where in the wide frame memory 7 to display, and what is displayed on the display 5 is converted into normalized device coordinates and drawn in the wide frame memory 7. It becomes. Next, the graphics controller 4
The lower left of the wide frame memory 7 is sent to the display register that controls which part of the wide frame memory 7 is displayed on the display 5 using a send H/W command that can send control commands to the graphic controller 4. Set the address value of the rectangle (step 5T
3). Then, the lower left portion of the wide frame memory 7 is displayed on the display 5. Then, using the send H/W command, the address value that is shifted little by little from the lower left to the upper right of the wide frame memory 7 is repeatedly sent to the display register (step 5T14). Therefore, the figures displayed on the display 5 are shifted little by little and scroll.
センドH/Wコマンドで表示レジスタにワイドフレーム
メモリ7の右上のアドレス値を送り、スクロールが終了
する(ステップ5T15)。このとき、ディスプレイ5
にはワイドフレームメモリ7の右上が表示される。The send H/W command sends the upper right address value of the wide frame memory 7 to the display register, and the scrolling ends (step 5T15). At this time, display 5
The upper right corner of the wide frame memory 7 is displayed.
なお、上記例ではフレームメモリにおける表示部分を制
御するH/Wコマンドについて述べたが、上記センドH
/Wコマンドを用いると、与えるH/Wコマンドによっ
てはダイナミックに色を変化させるとか、拡大表示を高
速に行う等、H/Wコマンドに対応した他の機能を高速
に実現できることは言うまでもない。In addition, in the above example, the H/W command that controls the display part in the frame memory was described, but the above send H/W command
It goes without saying that by using the /W command, other functions corresponding to the H/W command can be realized at high speed, such as dynamically changing colors or quickly enlarging the display depending on the H/W command given.
以上のように、この発明によればワールド座標に描いた
図形をワイド化したフレームメモリ全体に変換し、グラ
フィックコントローラに直接センドH/Wコマンドを送
り、グラフィックコントローラの表示レジスタを制御で
きるようにしたので、フレームメモリに図形の全体図を
描き、ディスプレイに表示するフレームメモリの位置を
示す表示レジスタをセンドH/Wコマンドにより少しず
つずらすことにより、スクロールが実現でき、図形を何
度も描く必要がないので、スクロールがちらつきなくス
ムーズ、かつ高速に行えるものが得られる効果がある。As described above, according to the present invention, a figure drawn in world coordinates is converted into the entire wide frame memory, and a send H/W command is sent directly to the graphics controller, thereby making it possible to control the display register of the graphics controller. Therefore, scrolling can be achieved by drawing the overall diagram of the figure in the frame memory and gradually shifting the display register indicating the position of the frame memory to be displayed on the display using the send H/W command, which eliminates the need to draw the figure many times. This has the effect of providing smooth, high-speed scrolling without flickering.
第1図はこの発明のグラフィック表示処理方法を実施す
るグラフィック表示処理装置を示すブロック図、第2図
はこの発明の一実施例によるグラフィック表示処理方法
により図形をスクロール表示する時の処理の流れを示す
フローチャート図、第3図は第2図の処理内容を示す説
明図、第4図は従来のグラフィック表示処理装置を示す
ブロック図、第5図は従来のスクロール表示するときの
処理の流れを示すフローチャート図、第6図は第5図の
処理内容を示す説明図である。
1は中央演算処理装置、2は主メモリ、4はグラフィッ
クコントローラ、5はディスプレイ、7はワイド化した
ワイドフレームメモリである。
なお、図中、同一符号は同一、または相当部分を示す。FIG. 1 is a block diagram showing a graphic display processing device that implements the graphic display processing method of the present invention, and FIG. 2 shows the flow of processing when a figure is scrolled and displayed by the graphic display processing method according to an embodiment of the present invention. 3 is an explanatory diagram showing the processing contents of FIG. 2, FIG. 4 is a block diagram showing a conventional graphic display processing device, and FIG. 5 shows the flow of processing when displaying a conventional scroll display. The flowchart diagram, FIG. 6, is an explanatory diagram showing the processing contents of FIG. 5. 1 is a central processing unit, 2 is a main memory, 4 is a graphic controller, 5 is a display, and 7 is a wide frame memory. In addition, in the figures, the same reference numerals indicate the same or equivalent parts.
Claims (1)
より解読して所定のハードウェアコマンドに変換し、こ
のハードウェアコマンドにもとづいてフレームメモリに
対する図形の描画をグラフィックコントローラによりコ
ントロールし、上記フレームメモリ上の描画図形をディ
スプレイに表示するグラフィック表示処理方法において
、ユーザが描いたワールド座標上の図形を正規化デバイ
ス座標に変換して、ワイド化した上記フレームメモリの
全体に描画し、上記グラフィックコントローラに直接ハ
ードウェアコマンドを送り、上記グラフィックコントロ
ーラの表示レジスタの制御を行うことを特徴とするグラ
フィック表示処理方法。The program stored in the main memory is decoded by the central processing unit and converted into a predetermined hardware command.Based on this hardware command, the graphic controller controls the drawing of figures in the frame memory, and In a graphic display processing method that displays a drawn figure on a display, the figure drawn by the user in world coordinates is converted to normalized device coordinates, drawn in the entire widened frame memory, and then directly sent to the hardware in the graphic controller. A graphic display processing method comprising: sending a software command to control a display register of the graphic controller.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10699890A JPH044480A (en) | 1990-04-23 | 1990-04-23 | Method for processing graphic display |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10699890A JPH044480A (en) | 1990-04-23 | 1990-04-23 | Method for processing graphic display |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH044480A true JPH044480A (en) | 1992-01-08 |
Family
ID=14447891
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10699890A Pending JPH044480A (en) | 1990-04-23 | 1990-04-23 | Method for processing graphic display |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH044480A (en) |
-
1990
- 1990-04-23 JP JP10699890A patent/JPH044480A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4043518B2 (en) | System and method for generating and displaying complex graphic images at a constant frame rate | |
| JPS63153626A (en) | Magnifier window control system | |
| JPS6177977A (en) | Image processing device | |
| JPS6033591A (en) | Partial expansion display system for graphics | |
| JPS62297975A (en) | Control system for multi-window display | |
| JPS6385924A (en) | Display control system | |
| JPS63150727A (en) | Continuous figure enlargement method | |
| JPH07129357A (en) | Multi display system | |
| JPH07334342A (en) | Image data display device | |
| JPH0793574A (en) | Data processing device and display control method | |
| JPH0869368A (en) | Image output device | |
| JPH0419589B2 (en) | ||
| JPH01292424A (en) | Picture information control and clipping system for multiwindow display | |
| JPH01234890A (en) | Graphic display system in multi-view | |
| JPH0329994A (en) | Picture display device | |
| JPH0550782B2 (en) | ||
| JPH052208U (en) | Numerical control device | |
| JPH03189692A (en) | Image display device | |
| JPH07307895A (en) | Still image display device and its operation panel | |
| JPS63245514A (en) | Display control system | |
| JP2003036164A (en) | Window system | |
| JPH06274587A (en) | Graphic editing method | |
| JPS62141588A (en) | Multiwindow display system | |
| JPS63226743A (en) | Picture information display system | |
| JPS59228294A (en) | Display |