JPH06105392B2 - Graphic display method - Google Patents
Graphic display methodInfo
- Publication number
- JPH06105392B2 JPH06105392B2 JP61245446A JP24544686A JPH06105392B2 JP H06105392 B2 JPH06105392 B2 JP H06105392B2 JP 61245446 A JP61245446 A JP 61245446A JP 24544686 A JP24544686 A JP 24544686A JP H06105392 B2 JPH06105392 B2 JP H06105392B2
- Authority
- JP
- Japan
- Prior art keywords
- display
- graphic
- window
- flag
- command sequence
- 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 - Lifetime
Links
Landscapes
- Controls And Circuits For Display Device (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、種々の図形を含む1画面のうちの設定された
ウインドウ内の部分を表示するようにした図形表示方式
に関する。TECHNICAL FIELD The present invention relates to a graphic display system for displaying a portion within a set window of one screen including various graphics.
たとえば、1枚の設計図のように、種々の図形を含む図
面などの作成にコンピユータ技術が用いられている。か
かる図面作成技術においては、直線や円弧などの1つの
図形を構成する単位要素、すなわち単一図形や、複数個
の単一図形が組み合わさつた、たとえば歯車などの意味
のある図形、すなわち図形群を表わすデータ(図形デー
タ)が入力されてメモリに格納され、また、メモリから
図形データが読み出されて表示装置で図形表示されるも
のであり、図形データを順次入力することにより、ある
いは、入力された図形データを修正することにより、所
望とする図面が作成される。For example, a computer technique is used to create a drawing including various figures such as one design drawing. In such a drawing creation technique, a unit element that constitutes one figure such as a straight line or an arc, that is, a single figure or a meaningful figure such as a gear that is a combination of a plurality of single figures, that is, a figure group Representing data (graphic data) is input and stored in the memory, and graphic data is read from the memory and displayed graphically on the display device. A desired drawing is created by correcting the graphic data.
ところで、このような図面作成の過程中で、あるいは図
面作成後、図面の一部のみを表示したい場合がある。メ
モリには、図面全体の記憶が可能であり、図面の一部の
みを表示装置の表示面の所望領域に表示したいときに
は、メモリに記憶されている図面に対してこの表示した
い所望領域(すなわち、ウインドウ)を設定するととも
に、表示装置の表示面での所望表示領域(すなわち、ビ
ユーポート)も設定し、メモリから図形データを読み出
し、ウインドウ内の部分がビユーポート内全体にわたつ
て表示されるように図形データを変換して表示装置に供
給する。By the way, there is a case where it is desired to display only a part of the drawing during or after the drawing is being created. The memory can store the entire drawing, and when it is desired to display only a part of the drawing in a desired area of the display surface of the display device, the desired area to be displayed (that is, Along with setting the (window), the desired display area (that is, the viewport) on the display surface of the display device is also set, the figure data is read from the memory, and the figure in the window is displayed over the entire viewport. The data is converted and supplied to the display device.
かかる図形表示方式の一従来例が特開昭58−221887号公
報に開示されている。One conventional example of such a graphic display system is disclosed in Japanese Patent Application Laid-Open No. 58-221887.
メモリに格納された図面中のウインドウ内の部分をビユ
ーポートに表示するためには、メモリに記憶されている
単一図形や図形群のウインドウ内に含まれている部分の
抽出(クリツピング)が必要である。In order to display the part in the window in the drawing stored in the memory in the viewport, it is necessary to extract (clipping) the part contained in the window of the single figure or figure group stored in the memory. is there.
上記従来例においては、仮想的な画面を考えて単一図形
の図形データを、たとえば、直線であるならば、仮想画
面でのその起点、終点を表わすX−Y座標値からなり、
円弧であるならば、さらに半径を表わす値を付加してな
るなどの図形コマンドに変換し、また、図形群の図形デ
ータをこれを形成する単一図形の図形コマンドの集合に
変換してメモリに記憶している。なお、以下、単一図形
に対する図形コマンド、図形群に対する図形コマンドの
集合を総称して図形コマンド列という。In the above-mentioned conventional example, considering a virtual screen, the graphic data of a single graphic, for example, if it is a straight line, consists of XY coordinate values representing the starting point and the ending point on the virtual screen,
If it is a circular arc, it is converted into a figure command such as adding a value that represents the radius, and the figure data of the figure group is converted into a set of figure commands of the single figure that forms this and stored in memory. I remember. Note that, hereinafter, a set of figure commands for a single figure and a figure command for a figure group will be collectively referred to as a figure command string.
そして、ウインドウが設定されると、メモリに格納され
ている単一図形もしくは図形群毎に、まず、ウインドウ
と図形コマンド列とを座標値を用いて比較して単一図形
もしくは図形群の少なくとも一部がウインドウ内に存在
するか否かを判定し、次いで、少なくとも一部がウイン
ドウ内に存在する単一図形もしくは図形群に対する図形
コマンド列に対してウインドウに含まれる部分を抽出し
て表示装置の表示面に対して設定されたビユーポートで
図形表示すべき図形データ(以下、これをイメージデー
タという)に変換される。Then, when the window is set, for each single figure or figure group stored in the memory, first, the window and the figure command sequence are compared using coordinate values, and at least one of the single figure or figure group is compared. Part is present in the window, and then the portion included in the window is extracted by extracting the portion included in the window with respect to the figure command sequence for a single figure or a figure group, at least a part of which is present in the window. It is converted into graphic data to be graphic-displayed (hereinafter referred to as image data) by a viewport set on the display surface.
この従来例によると、表示の対象とする単一図形もしく
は図形群の判定が簡単かつ迅速に行なわれ、しかも、こ
の判定によつて表示対象となる単一図もしくは図形群に
対してのみ、表示のための処理を行なうものであるか
ら、ウインドウ設定後の処理量を少なくすることがで
き、迅速な図形表示が可能となる。According to this conventional example, a single figure or a group of figures to be displayed can be easily and quickly determined, and, by this determination, only a single figure or a group of figures to be displayed is displayed. Therefore, the processing amount after setting the window can be reduced, and quick graphic display is possible.
ところで、上記のような図形表示方式において、現在表
示されている画面の一部を拡大して表示したり(これ
を、ズームアツプ表示という)、この画面で表わされる
領域よりも広い領域を表示したり(これを、ズームダウ
ン表示という)したい場合があるし、表示画面中の所望
の単一図形もしくは図形群を示すために、これを点滅あ
るいは色付け表示(これを、ピツク表示という)したい
場合もある。また、ウインドウを設定してメモリに格納
されている仮想画面の一部を表示していたのをこの画面
を構成する図形コマンド列の一部を変更し、しかる後、
同一ウインドウを設定した再度仮想画面の同じ一部を表
示(これを、再表示という)したい場合もある。By the way, in the graphic display method as described above, a part of the currently displayed screen is enlarged and displayed (this is referred to as zoom up display), or a region wider than the region shown on this screen is displayed. In some cases, this is called a zoom-down display, and in other cases, in order to show a desired single figure or group of figures on the display screen, it may be blinked or colored (this is called a pick display). . Also, instead of setting a window and displaying a part of the virtual screen stored in the memory, change a part of the graphic command sequence that composes this screen.
In some cases, the same window may be set again to display the same part of the virtual screen (this is called redisplay).
しかし、このようなズームアツプ表示、ズームダウン表
示、ピツク表示あるいは再表示を行なう場合にも、上記
従来技術では、ウインドウが設定されると、メモリに格
納されている全ての図形コマンド列がウインドウと比較
され、ウインドウ内に少なくとも一部が含まれる単一図
形もしくは図形群の検索が行なわれることになる。この
比較処理にはある程度の時間を要するものであり、これ
をメモリに格納された全ての図形コマンド列について行
なうと、そのための処理量は非常に大きなものとなり、
ズームアツプ表示、ズームダウン表示、ピツク表示、再
表示に長い処理時間を要することになる。However, even when such zoom-up display, zoom-down display, pick display, or re-display is performed, when the window is set in the above conventional technique, all graphic command sequences stored in the memory are compared with the window. Then, a single figure or a group of figures at least a part of which is included in the window is searched. This comparison process requires a certain amount of time, and if this is performed for all graphic command sequences stored in the memory, the amount of processing for that will be extremely large.
A long processing time is required for zoom-up display, zoom-down display, pick display, and re-display.
なお、ピツク表示のために設定されるウインドウは、特
に、ビツクアパーチヤと呼ばれている。The window that is set for displaying a pick is called a big aperture.
本発明の目的は、かかる問題点を解消し、ズームアツプ
表示、ピツク表示、ズームダウン表示、再表示を迅速に
行なうことができるようにした図形表示方式を提供する
にある。SUMMARY OF THE INVENTION An object of the present invention is to solve the above problems and provide a graphic display method capable of quickly performing zoom-up display, pick display, zoom-down display, and re-display.
上記目的を達成するために、本発明は、メモリに格納さ
れた図形コマンド列毎にフラグを付加し、該フラグがウ
インドウと該図形コマンド列との比較判定結果を表わす
ようにする。In order to achieve the above object, the present invention adds a flag to each graphic command sequence stored in the memory so that the flag indicates the result of the comparison between the window and the graphic command sequence.
メモリ中の各図形コマンド列に付加されているフラグ
は、設定されたウインドウと該図形コマンド列との比較
判定結果を表わしている。ズームアツプ表示やピツク表
示の場合には、このためのウインドウ(ピツク表示の場
合には、特に、ピツクアパーチヤと呼ばれる)全体が既
に設定されたウインドウ内に含まれるように設定される
し、ズームダウン表示の場合には、このためのウインド
ウは既に設定されたウインドウ全体を含むように設定さ
れる。また、再表示の場合には、このためのウインドウ
は既に設定されたウインドウに一致する。The flag added to each graphic command string in the memory represents the result of comparison and judgment between the set window and the graphic command string. In the case of zoom-up display or pick-up display, the entire window for this (in the case of pick-up display, especially called the pick aperture) is set to be included in the already set window, and the zoom-down display is set. In some cases, the window for this is set to include the entire window that has already been set. In the case of redisplay, the window for this coincides with the already set window.
このように、これらの表示を行なう場合には、このため
の新たなウインドウは既に設定されたウインドウと特定
の配置関係、すなわち、前者全体が後者に含まれるか、
前者が後者全体を含むかあるいは両者が一致するかの関
係で設定される。この関係からすると、既に設定された
ウインドウとの比較判定結果から新たに設定されたウイ
ンドウとの比較判定結果が明らかとなる図形コマンド列
もある。In this way, when these are displayed, the new window for this purpose has a specific layout relationship with the already set window, that is, whether the former is included in the latter,
It is set depending on whether the former includes the latter as a whole or both match. From this relationship, there is also a graphic command sequence in which the comparison and determination result with the newly set window becomes clear from the comparison and determination result with the already set window.
たとえば、ズームアツプ表示を行なう場合、既に設定さ
れたウインドウ外に全体が存在する単一図形もしくは図
形群は、必ず、全体が新たに設定されたウインドウ外に
存在するから、このような単一図形もしくは図形群に対
する図形コマンド列を既に設定されたウインドウと比較
したときの判定結果と、新たに設定されたウインドウと
比較したときの判定結果とは、いずれもウインドウ外と
同一である。For example, when performing zoom-up display, a single figure or group of figures that is wholly outside the already set window will always exist outside the newly set window. The determination result when the graphic command sequence for the graphic group is compared with the already set window and the determination result when it is compared with the newly set window are the same as those outside the window.
以上のことから、既に設定されたウインドウとの比較判
定結果を表わす上記フラグを用いることにより、新たに
設定されたウインドウとの比較判定を行なうことなく、
この新たに設定されたウインドウによる表示の対象とな
る、あるいは対象とならない単一図形もしくは図形群が
明確となり、比較判定処理を低減できて表示のためのデ
ータ処理量が大幅に低減することになる。From the above, by using the above-mentioned flag indicating the comparison determination result with the already set window, the comparison determination with the newly set window is not performed.
A single figure or group of figures that are or will not be displayed by this newly set window will be clarified, the comparison and judgment processing can be reduced, and the amount of data processing for display will be greatly reduced. .
以下、本発明の実施例を図面によつて説明する。 Embodiments of the present invention will be described below with reference to the drawings.
第1図は本発明による図形表示方式の一実施例を示すブ
ロツク図であつて、1は入力装置、2はホストコンピユ
ータ、3は制御プロセサ、4は図形データバツフア、5
はグラフイツクプロセサ、6はフレームメモリ、7はCR
T(陰極線管表示装置)である。FIG. 1 is a block diagram showing an embodiment of a graphic display system according to the present invention, in which 1 is an input device, 2 is a host computer, 3 is a control processor, 4 is a graphic data buffer, and 5 is a graphic data buffer.
Is a graphics processor, 6 is a frame memory, 7 is a CR
T (cathode ray tube display device).
同図において、図形データバツフア4には、CRT7の表示
面に表示される仮想画面内の単一図形や図形群(以下、
単に図形という)がこれらを定義する図形コマンド列10
として格納されている。この仮想画面としては、1枚の
仮想的な設計図などである。In the figure, the graphic data buffer 4 has a single graphic or a graphic group (hereinafter referred to as “graphical graphic”) in the virtual screen displayed on the display surface of the CRT 7.
The graphics command sequence 10 that defines these (simply called graphics)
Is stored as This virtual screen is, for example, one virtual design drawing.
ここで、CRT7の表示面上の画素位置を、その水平、垂直
走査をX軸、Y軸とするX−Y座標系で表わすと、図形
コマンド列10は、これによつて定義される図形が表示さ
れるCRT7の表示面上のX−Y座標上の位置(以下、表示
面のX−Y座標値という)を間接的に表わしている。す
なわち、図形コマンド列10はCRT7の表示面のX−Y座標
値に比べて精度の良い仮想的な画面を考えて、その画面
の座標系で定義されており、その全体または一部分がCR
T7の表示面上に表示されている。これにより、図形デー
タバツフア4に設計図1枚分が格納されたときには、CR
T7の表示面では、最大この設計図全体を表示することが
できる。Here, when the pixel position on the display surface of the CRT 7 is represented by an XY coordinate system in which the horizontal and vertical scans are the X axis and the Y axis, the figure command sequence 10 shows that the figure defined by this is The position of the displayed CRT 7 on the XY coordinates on the display surface (hereinafter referred to as the XY coordinate value of the display surface) is indirectly represented. That is, the figure command sequence 10 is defined in the coordinate system of the screen considering the virtual screen with higher accuracy than the XY coordinate values of the display surface of the CRT7, and the whole or a part of it is CR.
It is displayed on the display surface of T7. As a result, when one design drawing is stored in the graphic data buffer 4, the CR
On the display surface of the T7, it is possible to display the entire blueprint at maximum.
なお、図形コマンド列10は、これによつて定義される図
形を画素の集まりとして表わすものではなく、たとえば
直線に対しては仮想画面でのその始点、終点のX−Y座
標値を表わし、円に対してはその中心と半径のX−Y座
標値を表わしている。The figure command sequence 10 does not represent the figure defined by this as a group of pixels. For a straight line, for example, it represents the XY coordinate values of its start and end points on the virtual screen. Represents the XY coordinate values of the center and radius.
かかる図形コマンド列10は、キーボードなどの入力装置
1やホストコンピユータ2から入力される図形データを
もとに、制御プロセサ3によつて形成される。これら入
力装置1やホストコンピユータ2からは単一図形や図形
群毎に図形データが入力され、制御プロセサ3はこれら
毎に図形コマンド列10を作成して図形データバツフア4
に格納する。また、図形データバツフア4には、格納さ
れた図形コマンド列10毎に表示フラグ11、包含フラグ12
のエリアが設けられている。これら表示フラグ11、含包
フラグ12は、後述するように、ズームアツプ表示、ズー
ムダウン表示、ピツク表示および再表示のときに使用さ
れる1ビツトのデータであり、図形コマンド列10ととも
に図形データバツフア4に格納されるときには、いずれ
も“1"とする。The graphic command sequence 10 is formed by the control processor 3 based on graphic data input from the input device 1 such as a keyboard or the host computer 2. The graphic data is input from the input device 1 and the host computer 2 for each single graphic or graphic group, and the control processor 3 creates a graphic command sequence 10 for each of these and creates a graphic data buffer 4.
To store. The graphic data buffer 4 also includes a display flag 11 and an inclusion flag 12 for each graphic command sequence 10 stored therein.
Area is provided. These display flag 11 and inclusion flag 12 are 1-bit data used for zoom-up display, zoom-down display, pick display and re-display, as will be described later, and are stored in the graphic data buffer 4 together with the graphic command sequence 10. When stored, all are set to "1".
以上のように図形データバツフア4に格納された図形コ
マンド列10を用いてCRT7の表示面上に図形表示を行なう
場合には、入力装置1もしくはホストコンピユータ2か
ら制御プロセサ3に、図形データバツフア4に格納され
た全図形のうち表示したい範囲(すなわち、ウインド
ウ)を表わすウインドウデータが入力される。このウイ
ンドウデータは仮想画面上でのX−Y座標値で表わされ
る。制御プロセサ3はこのウインドウデータ20を、次
に、表示起動信号15をグラフイツクプロセサ5に送る。As described above, when the graphic command string 10 stored in the graphic data buffer 4 is used to display a graphic on the display surface of the CRT 7, the input device 1 or the host computer 2 stores it in the control processor 3 and the graphic data buffer 4 stores it. Window data representing a range (that is, a window) to be displayed of all the drawn figures is input. This window data is represented by XY coordinate values on the virtual screen. The control processor 3 sends the window data 20 and then the display start signal 15 to the graphic processor 5.
そこで、グラフイツクプロセサ5はウインドウが設定さ
れて起動し、制御プロセサ3は図形データバツフア4か
ら最初の図形コマンド列10の読み出しを行なう。この図
形コマンド列10はデータバス13のライン19を介してグラ
フイツクプロセサ5に取り込まれる。Then, the graphic processor 5 is activated with a window set, and the control processor 3 reads the first graphic command sequence 10 from the graphic data buffer 4. This graphic command string 10 is fetched into the graphic processor 5 via the line 19 of the data bus 13.
グラフイツクプロセサ5は、まず、この取り込んだ図形
コマンド列10と設定されたウインドウとを比較判定す
る。この比較判定により、この図形コマンド列で定義さ
れる図形がウインドウ内に一部または全体が含まれると
きには、データバス13のライン17を介して“1"ビツトデ
ータを図形データバツフア4に送り、この図形コマンド
列10に対する表示フラグ11を“1"とし、この図形の全体
がウインドウ内に含まれるときには、データバス13のラ
イン21を介して“1"ビツトデータを図形データバツフア
4に送り、この図形コマンド列10に対する含包フラグ12
を“1"にする。これと同時に、いずれの場合も、この図
形コマンド列10からウインドウに含まれる部分が抽出さ
れ、この部分がイメージデータに変換されてフレームメ
モリ6に送られる。図形の全体がウインドウ外にあると
きには、図形コマンド列10に対する表示フラグ11、包含
フラグ12はいずれも“0"とし、また、イメージデータは
形成しない。First, the graphic processor 5 compares and determines the fetched graphic command sequence 10 with the set window. According to this comparison judgment, when the figure defined by this figure command string is partially or entirely contained in the window, "1" bit data is sent to the figure data buffer 4 via the line 17 of the data bus 13, When the display flag 11 for the command string 10 is set to "1" and the whole figure is included in the window, "1" bit data is sent to the figure data buffer 4 via the line 21 of the data bus 13 to make this figure command row. Inclusion flag 12 for 10
To “1”. At the same time, in any case, the portion included in the window is extracted from the graphic command sequence 10, and this portion is converted into image data and sent to the frame memory 6. When the whole figure is outside the window, both the display flag 11 and the inclusion flag 12 for the figure command sequence 10 are set to "0", and no image data is formed.
グラフイツクプロセサ5がかかる処理を終了すると、制
御プロセサ3は図形データバツフア4から次の図形コマ
ンド列10の読み出しを行ない、この図形コマンド列10に
対してグラフイツクプロセサ5は上記の処理を行なう。
このように、グラフイツクプロセサ5は、図形データバ
ツフア4から読み出される図形コマンド列10毎に上記の
処理を行ない、この結果、図形データバツフア4に格納
されている各図形コマンド列10に対し、これによつて定
義される図形が設定されたウインドウ内に全く存在しな
い場合には、表示フラグ11、包含フラグ12は“0"、一部
存在する場合には、表示フラグ11のみが“1"に、全体が
存在する場合には、さらに包含フラグ12が“1"になる。When the graphic processor 5 finishes the processing, the control processor 3 reads the next graphic command sequence 10 from the graphic data buffer 4, and the graphic processor 5 performs the above-mentioned process on the graphic command sequence 10.
In this way, the graphic processor 5 performs the above processing for each figure command sequence 10 read from the figure data buffer 4, and as a result, for each figure command sequence 10 stored in the figure data buffer 4, If there is no figure defined in the specified window, the display flag 11 and the inclusion flag 12 are "0". If there is a part, only the display flag 11 is "1". , The inclusion flag 12 is further set to “1”.
一方、グラフイツクプロセサ5は、図形データバツフア
4に格納された全仮想画面のうちで設定されたウインド
ウ内に含まれる部分をCRT7の表示面に設定されたビユー
ポート全体にわたつて表示するために、図形コマンド列
10からウインドウ内に含まれる部分毎にイメージデータ
を形成し、順次フレームメモリ6に送り込む。On the other hand, the graphic processor 5 displays a part of all virtual screens stored in the graphic data buffer 4 which is included in the set window over the entire viewport set on the display surface of the CRT7. Command sequence
Image data is formed for each part included in the window from 10 and sequentially sent to the frame memory 6.
ここで、図形コマンドは、仮想画面上で定義される図形
を表わす始点、終点などのX−Y座標値であり、イメー
ジデータは、この仮想画面中に設定されたウインドウ内
に含まれる部分をCRT7の表示面に設定されたビユーポー
ト全体にわたつて表示したときに、表示される図形の全
体を表わす画素のX−Y座標値である。なお、この場
合、ビユーポートはCRT7の表示面に固定的に設定されて
いるものとしているが、ビユーポートがこれとは異なる
場合も同様である。Here, the figure command is an XY coordinate value such as a start point and an end point that represents a figure defined on the virtual screen, and the image data is a CRT7 indicating a portion included in the window set in the virtual screen. It is an XY coordinate value of a pixel that represents the entire figure displayed when the image is displayed over the entire viewport set on the display surface. In this case, the viewport is fixedly set on the display surface of the CRT 7, but the same applies when the viewport is different from this.
ウインドウ(ピツク表示の場合には、特に、ピツクアパ
ーチヤと呼ばれる)は、仮想画面に固定のX−Y座標系
のX−Y座標値でもつて指定される。しかし、ビユーポ
ートはCRT7の表示面に設定される固定のX−Y座標系の
X−Y座標値でもつて指定される。一旦ウインドウとビ
ユーポートが設定されると、このウインドウとビユーポ
ートに応じてX−Y座標変換系が設定され、ウインドウ
に含まれる部分は仮想画面のX−Y座標系からCRT7の表
示面上のX−Y座標系に座標変換され、これによつてイ
メージデータが得られるのである。このような変換を、
ウインドウ−ビユーポート変換という。A window (particularly called a pick aperture in the case of pick display) is designated by an XY coordinate value of an XY coordinate system fixed on the virtual screen. However, the viewport is also designated by the XY coordinate value of the fixed XY coordinate system set on the display surface of the CRT 7. Once the window and viewport are set, the XY coordinate conversion system is set according to this window and viewport, and the part included in the window is the X-Y coordinate system of the virtual screen from the XY coordinate system on the display surface of the CRT7. The coordinates are converted into the Y coordinate system, and the image data is obtained by this. Such a conversion
This is called window-to-viewport conversion.
そこで、第2図において、領域Aを仮想画面の全体とす
る。この全画面中の3つの図形P1,P2,P3が図示する大き
さ、位置関係で含まれているものとすると、図示するよ
うにウインドウWが設定されたときには、図形P1,P2の
うちのウインドウW内に含まれる部分は、ウインドウW
がビユーポートBに相似的に変換されたとして、この相
似的な変換によつてビユーポートBに対する図形P1′,P
2′となる。かかる図形P1′,P2′を含むビユーポートB
がCRT7の表示面Cに表示されるが、図形P1,P2,P3を表わ
す図形データが図形コマンド列10であり、変換された図
形P1′,P2′を表わす図形データがイメージデータであ
る。Therefore, in FIG. 2, the area A is the entire virtual screen. The all three figures P 1 on the screen, P 2, P 3 the size illustrated, assuming that contained in a positional relationship, when the window W is set as shown in, figure P 1, P The part of 2 included in window W is window W
Is transformed into the viewport B, and the figure P 1 ′, P for the viewport B is converted by this similar transformation.
2 '. Viewport B including such figures P 1 ′ and P 2 ′
Is displayed on the display surface C of the CRT 7, the graphic data representing the graphics P 1 , P 2 , P 3 is the graphic command sequence 10, and the graphic data representing the converted graphics P 1 ′, P 2 ′ is an image. The data.
フレームメモリ6の各アドレスは夫々CRT7の表示面のX
−Y座標値に対応しており、このフレームメモリ6にお
いては、グラフイツクプロセサ5からのイメージデータ
が、これが表わす図形のCRT7の表示面上での表示位置に
対応したアドレスに書き込まれる。このように、グラフ
イツクプロセサ5が出力するイメージデータは順次フレ
ームメモリ6の対応するアドレスに書き込まれ、これと
同時に、フレームメモリ6においては、CRT7の表示面の
水平、垂直走査に同期し、その走査位置に対応したアド
レスのデータが順次読み出される。これにより、グラフ
イツクプロセサ5で設定されたウインドウ内の画面がCR
T7の表示面に設定されたビユーポート内に表示される。Each address of the frame memory 6 is an X on the display surface of the CRT7.
It corresponds to the -Y coordinate value, and the image data from the graphic processor 5 is written in the frame memory 6 at an address corresponding to the display position of the figure represented by the graphic on the display surface of the CRT 7. In this way, the image data output by the graphic processor 5 is sequentially written into the corresponding addresses of the frame memory 6, and at the same time, in the frame memory 6, in synchronization with the horizontal and vertical scanning of the display surface of the CRT 7, The data of the address corresponding to the scanning position is sequentially read. As a result, the screen in the window set on the graphic processor 5 is CR.
Displayed in the viewport set on the display screen of T7.
なお、図形データバツフア4に格納されている全図形を
表示する場合には、入力装置1またはホストコンピユー
タ2から全表示指令信号が入力され、制御プロセサ3か
ら制御バス14のライン20を介してグラフイツクプロセサ
5に送られる。これとともに、表示起動信号もライン15
を介してグラフイツクプロセサ5に送られる。制御プロ
セサ3によつて図形データバツフア4から順次図形コマ
ンド列10が読み出され、グラフイツクプロセサ5はこれ
らを順次取り込み、そのままイメージデータに変換して
フレームメモリ6に送る。このとき、図形データバツフ
ア4の表示フラグ11、包含フラグ12は変化されない。In order to display all the graphics stored in the graphics data buffer 4, a display all command signal is input from the input device 1 or the host computer 2, and the control processor 3 sends the graphics via the line 20 of the control bus 14. It is sent to processor 5. Along with this, the display activation signal is also on line 15
Is sent to the graphics processor 5 via. The graphic processor 5 sequentially reads the graphic command sequence 10 from the graphic data buffer 4 by the control processor 3, and the graphic processor 5 sequentially takes in these, converts them into image data as they are, and sends them to the frame memory 6. At this time, the display flag 11 and the inclusion flag 12 of the graphic data buffer 4 are not changed.
次に、ズームアツプ、ズームダウン、ピツク表示、再表
示のための動作を説明する。Next, operations for zoom-up, zoom-down, pick display, and re-display will be described.
ズームアツプ表示は、現在CRT7の表示面に表示されてい
る画面の一部を拡大表示するものであり、この部分を表
わすウインドウがグラフイツクプロセサ5に設定され
る。このウインドウはグラフイツクプロセサ5に前に設
定されて保持されているウインドウと比較され、前者が
後者に全く含まれているときにはズームアツプ表示と判
定する。The zoom-up display enlarges and displays a part of the screen currently displayed on the display surface of the CRT 7, and a window representing this part is set in the graphic processor 5. This window is compared with the window previously set and held in the graphic processor 5, and when the former is included in the latter at all, it is determined to be the zoom-up display.
第3図はズームアツプ表示の場合の第1図のグラフイツ
クプロセサ4の動作を示すフローチヤートである。同図
においては、初期表示(これは、初めてウインドウを設
定した後に最初に行なうこのウインドウに対する表示で
ある)のための処理動作、およびピツク表示のための処
理動作の部分も含んでいる。これらは互いに重複する部
分を有している。初期表示のための処理動作は、ステツ
プ101〜103,106〜118からなる一連の動作であり、この
動作の説明は上記の説明と重複するので省略する。FIG. 3 is a flow chart showing the operation of the graphic processor 4 of FIG. 1 in the case of zoom-up display. The figure also includes a processing operation for initial display (this is the display for this window first performed after setting the window for the first time) and a processing operation for pick display. These have portions that overlap each other. The processing operation for the initial display is a series of operations consisting of steps 101 to 103 and 106 to 118, and the description of this operation overlaps with the above description, and is therefore omitted.
ウインドウが設定される(ステツプ102)と、これまで
保持されたウインドウと比較されてズームアツプ表示か
否かの判定が行なわれ(ステツプ103)、ズームアツプ
表示であるときには、図形データバツフア4から図形コ
マンド列10に付随した表示フラグ11が読み出される(ス
テツプ104)。この表示フラグ11が“0"のときには(ス
テツプ105)、この表示フラグ11に対する図形コマンド
列10が定義する図形はこれまで保持されていたウインド
ウ(以下、旧ウインドウという)外にあるから、当然新
たに設定されたウインドウ(以下、新ウインドウ)外に
もある。この場合には、この図形コマンド列10に対する
処理はこれで終了し、ステツプ118,103を経て次の図形
コマンド列10に対する表示フラグ11の読出しを行なう。When the window is set (step 102), it is compared with the windows held so far to determine whether it is the zoom-up display or not (step 103). When the window is the zoom-up display, the graphic data buffer 4 to the graphic command string 10 is displayed. The display flag 11 associated with is read (step 104). When this display flag 11 is "0" (step 105), the graphic defined by the graphic command sequence 10 for this display flag 11 is outside the window (hereinafter referred to as "old window") that has been held up to now, so of course a new It is also outside the window set to (hereinafter, new window). In this case, the process for the graphic command sequence 10 is completed, and the display flag 11 for the next graphic command sequence 10 is read out through steps 118 and 103.
表示フラグ11が“1"のときには(ステツプ105)、これ
に対する図形コマンド列10の読出しを行ない(ステツプ
106)、ピツク表示か否かの判定(ステツプ107)後、こ
の図形コマンド列10で定義される図形が新ウインドウに
少なくとも一部でも含まれるか否かの判定を行なう(ス
テツプ108)。この図形が新ウインドウ外にあるなら
ば、表示フラグ11および包含フラグ12を“0"にして(ス
テツプ109,110)この図形コマンド列10に対する処理を
終了し、ステツプ118,103を経て次の表示フラグ11の読
出しを行なうが、上記図形の少なくとも一部が新ウイン
ドウ内にあるときには、表示フラグ11を“1"とし(ステ
ツプ111)、上記図形が新ウインドウ内に全体として含
まれるときには(ステツプ112)包含フラグ12を“1"
(ステツプ113)、含まれないときには包含フラグ12を
“0"に(ステツプ114)する。次に、新ウインドウ内に
含まれる部分を抽出(ステツプ115)し、これをイメー
ジデータに変換(ステツプ116)してフレームメモリ6
に送り(ステツプ117)、ステツプ118,103を経て次の表
示フラグ11の読出しを行なう。When the display flag 11 is "1" (step 105), the figure command sequence 10 is read out (step 105).
106), after determining whether or not it is a pick display (step 107), it is determined whether or not the figure defined by the figure command sequence 10 is included in at least a part of the new window (step 108). If this figure is outside the new window, the display flag 11 and the inclusion flag 12 are set to "0" (steps 109 and 110), the processing for this figure command sequence 10 is completed, and the next display flag 11 is read out via steps 118 and 103. When at least a part of the figure is in the new window, the display flag 11 is set to "1" (step 111), and when the figure is included in the new window as a whole (step 112), the inclusion flag 12 is set. "1"
If not included (step 113), the inclusion flag 12 is set to "0" (step 114). Next, the portion included in the new window is extracted (step 115), and this is converted into image data (step 116), and the frame memory 6
(Step 117) and the next display flag 11 is read out through steps 118 and 103.
以上の処理は、図形データバツフア4に格納されている
全ての図形コマンド列10に対して行なわれる。この処理
が終ると、旧ウインドウに対してCRT7の表示面全体で表
示される画面のうちの、新ウインドウで規定される範囲
の部分が拡大されてCRT7の表示面に表示される。The above processing is performed for all the graphic command sequences 10 stored in the graphic data buffer 4. When this process is completed, the portion of the screen displayed on the entire display surface of the CRT7 with respect to the old window is enlarged and displayed on the display surface of the CRT7.
そこで、いま、図形データバツフア4に格納された全図
形に対し、第5図(a)に示すように、図形P1の一部と
図形P2の全体とが含まれるように旧ウインドウW1が設定
されているとすると、CRT7の表示面Dでは、第5図
(b)に示すように、旧ウインドウW1に含まれる領域が
表示され、図形P1の一部に対する図形P1′と図形P2に対
する図形P2′が表示される。次に、第5図(a)に示す
ように、旧ウインドウW1内に図形P2のみを含む新ウイン
ドウW2が設定されると、この新ウインドウW2に対応した
第5図(b)の表示面D内の領域dの部分が、第5図
(c)に示すように、表示面Dに表示され、図形P2が第
5図(b)の図形P2′よりも拡大された図形P2″として
表示される。Therefore, for all the figures stored in the figure data buffer 4, the old window W 1 is included so as to include a part of the figure P 1 and the whole figure P 2 as shown in FIG. 5 (a). When set, the display surface D of the CRT 7, as shown in FIG. 5 (b), is displayed region included in the old window W 1, and figure P 1 'for some shapes P 1 figure graphic P 2 'is displayed for the P 2. Next, as shown in FIG. 5 (a), when the new window W 2 containing only graphics P 2 old window W 1 is set, Figure 5 corresponding to this new window W 2 (b) region d portion of a display plane D of, as shown in FIG. 5 (c), is displayed on the display surface D, figure P 2 is enlarged than figure P 2 'of FIG. 5 (b) Displayed as graphic P 2 ″.
ズームアツプ表示では、旧ウインドウ外にある図形は必
ず新ウインドウ外にあることになり、以上のように、図
形が旧ウインドウ外にあるか否かは表示フラグ11で簡単
に判定できるから、この表示フラグ11による判定でもつ
て、図形の少なくとも一部が新ウインドウ内に含まれる
図形コマンド列10のみを図形データバツフア4から読み
出しイメージデータを形成するだけでよく、グラフイツ
クプロセサ5のズーム表示アツプに対するデータ処理量
が大幅に低減されて迅速なズームアツプ表示が可能とな
る。In the zoom-up display, the graphic outside the old window is always outside the new window. As described above, it is possible to easily determine whether the graphic is outside the old window with the display flag 11. It is sufficient to read only the figure command sequence 10 in which at least a part of the figure is included in the new window from the figure data buffer 4 to form the image data, and the data processing amount for the zoom display up of the graphic processor 5 is determined by the determination by 11. Is greatly reduced, and quick zoom-up display is possible.
次に、ズームダウン表示について説明する。ズームダウ
ン表示は、ズームアツプ表示とは逆に、現在CRT7の表示
面に表示されている画面を含み、これよりも広い領域の
画面をCRT7の表示面に表示するものであつて、ズームア
ツプ表示の場合と同様に、表示すべき拡大領域を表わす
ウインドウがグラフイツクプロセサ5に設定され、この
ウインドウが旧ウインドウを全く含んでいるときにズー
ムダウン表示と判定される。Next, the zoom-down display will be described. In contrast to the zoom-up display, the zoom-down display includes the screen currently displayed on the CRT7 display surface, and displays a screen in a wider area than this on the CRT7 display surface. Similarly, a window indicating the enlarged area to be displayed is set in the graphics processor 5, and when this window includes the old window at all, it is determined to be the zoom-down display.
第4図はズームダウン表示の場合の第1図のグラフイツ
クプロセサ4の動作を示すフローチヤートであり、初期
表示のための処理動作も含んでいる。この初期表示のた
めの処理動作は、ステツプ201〜214からなる一連の動作
であり、これも上記説明と重複するので省略する。FIG. 4 is a flow chart showing the operation of the graphic processor 4 of FIG. 1 in the case of zoom-down display, including the processing operation for initial display. The processing operation for this initial display is a series of operations consisting of steps 201 to 214, and since this also overlaps with the above description, it will be omitted.
新ウインドウが設定されると(ステツプ201)、これと
旧ウインドウとが比較されてズームダウン表示か否の判
定が行なわれ(ステツプ202)、ズームダウン表示であ
るときには、図形データバツフア4から図形コマンド列
10に付随した包含フラグ12が読み出される(ステツプ21
5)。この包含フラグ12が“1"のときには(ステツプ21
6)、これに対する図形コマンド列10で定義される図形
は新ウインドウ内に全体として含まれるから、この図形
コマンド列10を図形データバツフア4から読み出して
(ステツプ217)、さらにこれをイメージデータに変換
して(ステツプ212)フレームメモリ6に送る(ステツ
プ213)。When a new window is set (step 201), this is compared with the old window to determine whether or not zoom-down display is performed (step 202). When the new window is displayed, the graphic data buffer 4 to the graphic command line is determined.
The inclusion flag 12 associated with 10 is read (step 21
Five). When the inclusion flag 12 is "1" (step 21
6) Since the figure defined by the figure command sequence 10 corresponding thereto is included in the new window as a whole, the figure command sequence 10 is read from the figure data buffer 4 (step 217) and further converted into image data. (Step 212) and sends it to the frame memory 6 (step 213).
ステツプ215で読み出された包含フラグ12が“0"のとき
にも、これらに対する図形コマンド列10が読み出され
(ステツプ203)、この図形コマンド列10によつて定義
される図形の少なくとも一部がこの新ウインドウ内にあ
るか否の判定が行なわれる(ステツプ204)。これが含
まれない場合には、表示フラグ11、包含フラグ12をとも
に“0"にしてこの図形コマンド列10に対する処理を終り
とし、ステツプ214,202を経て次の包含フラグ12の読み
出しを行なう。上記図形の少なくとも一部が新ウインド
ウ内に含まれている場合には、表示フラグ11を“1"とす
る(ステツプ205)。次に、この図形全体が新ウインド
ウ内に含まれるか否かの判定を行ない(ステツプ20
6)、全体が含まれるときには包含フラグ12を“1"とし
(ステツプ207)、一部しか含まれないときには包含フ
ラグ12を“0"にし(ステツプ208)、その新ウインドウ
に含まれる部分を抽出し(ステツプ209)、イメージデ
ータに変換して(ステツプ212)フレームメモリ212に送
る(ステツプ213)。Even when the inclusion flag 12 read in step 215 is "0", the graphic command sequence 10 corresponding to these is read (step 203), and at least a part of the graphic defined by this graphic command sequence 10 is read. Is determined in this new window (step 204). If this is not included, the display flag 11 and the inclusion flag 12 are both set to "0" to end the processing for this graphic command sequence 10, and the next inclusion flag 12 is read out via steps 214 and 202. If at least a part of the figure is included in the new window, the display flag 11 is set to "1" (step 205). Next, it is judged whether or not the whole figure is included in the new window (step 20).
6) If the whole is included, the inclusion flag 12 is set to "1" (step 207), if only part is included, the inclusion flag 12 is set to "0" (step 208), and the part included in the new window is extracted. Then, the image data is converted (step 212) and sent to the frame memory 212 (step 213).
以上の処理は図形データバツフア4に格納された図形コ
マンド列10毎に順次行なわれ、全ての図形コマンド列10
に対して処理が行なわれると(ステツプ214)、グラフ
イツクプロセサ5はズームダウン表示のための処理を終
了し、CRT7の表示面に完全なズームダウン表示が行なわ
れる。The above processing is sequentially performed for each figure command sequence 10 stored in the figure data buffer 4, and all figure command sequences 10 are processed.
When the processing is performed for (step 214), the graphic processor 5 finishes the processing for zoom-down display, and complete zoom-down display is performed on the display surface of the CRT 7.
ズームダウン表示によるCRT7の表示面での画面変化を、
ズームアツプ表示の説明に用いた第5図によつて説明す
る。The screen change on the display surface of CRT7 by zoom down display,
This will be described with reference to FIG. 5 used for explaining the zoom-up display.
この場合には、第5図(a)において、W2が旧ウインド
ウとなり、W1が新ウインドウとなる。旧ウインドウW2に
対しては、CRT7の表示面D上に、第5図(c)に示す画
面が表示され、この旧ウインドウW2に対してこれを含む
新ウインドウW1が設定されると、第5図(b)に示すよ
うに、表示面D上には、図形P2(第5図(a))に対す
る図形P2′に加えて図形P1(第5図(a))の一部に対
する図形P1′までも表示される。なお、第5図(b)に
おける領域dは旧ウインドウW2が設定されていたときの
第5図(c)に示した表示面Dの表示領域である。In this case, in FIG. 5 (a), W 2 becomes the old window and W 1 becomes the new window. For the old window W 2, on the display surface D of the CRT 7, the screen shown in FIG. 5 (c) is displayed, the new window W 1 is set comprising the same for this old window W 2 as shown in FIG. 5 (b), on the on the display surface D, figure P 2 (FIG. 5 (a)) in addition to the graphic P 2 'of Picture P 1 (FIG. 5 (a)) of The figure P 1 ′ for a part is also displayed. The area d in FIG. 5B is the display area of the display surface D shown in FIG. 5C when the old window W 2 is set.
以上のように、ズームダウン表示の場合には、旧ウイン
ドウ内に全体が含まれる図形に対しては、この図形と新
ウインドウとの比較を行なうことなく、直ちにイメージ
データを形成してよく、かかる図形は包含フラグ12によ
つて簡単に判定できるから、グラフイツクプロセサ5の
ズームダウン表示に対するデータ処理量も大幅に低減さ
れて迅速なズームダウン表示も実現できる。As described above, in the case of zoom-down display, image data may be immediately formed for a graphic that is entirely contained in the old window without comparing this graphic with the new window. Since the figure can be easily determined by the inclusion flag 12, the amount of data processing for the zoom-down display of the graphic processor 5 is greatly reduced, and a quick zoom-down display can be realized.
次に、ピツク表示について説明する。ピツク表示は、CR
T7の表示面で表示される画面中の所望の図形を指示し、
これを点滅もしくは色付けして明示する表示方法であ
る。Next, the pick display will be described. Pick display is CR
Indicate the desired figure on the screen displayed on the display screen of T7,
This is a display method in which this is indicated by blinking or coloring.
第1図において、ピツク表示においては、入力装置1や
ホストコンピユータ2からによつてその指令がなされる
とともに、ピツクアパーチヤデータが入力される。この
データは制御プロセサ3から制御バス14のライン20を介
してグラフイツクプロセサ5に供給され、これによつて
グラフイツクプロセサ5では、ピツクアパーチヤが設定
される。In FIG. 1, in the pick display, the command is given from the input device 1 and the host computer 2, and the pick aperture data is input. This data is supplied from the control processor 3 to the graphics processor 5 via the line 20 of the control bus 14, whereby the graphics processor 5 is set to the pick aperture.
ピツク表示の場合には、グラフイツクプロセサ5は、図
形バツフアデータ4に格納されている図形コマンド列10
で定義される図形の少なくとも一部がピツクアパーチヤ
に含まれるか否かの判定を行ない、この図形の少なくと
も一部がピツクアパーチヤに含まれるときには、これに
対する表示図形(単一図形もしくは図形群)を点滅もし
くは色付けするためのデータ(以下、ピツクデータとい
う)を形成する。ピツクアパーチヤは、ズームアツプ表
示の場合と同様に、CRT7の表示面で現に表示されている
画面に対して設定されたウインドウ(以下、これも旧ウ
インドウという)内に設定されるものであつて、ピツク
表示の対象となり得る図形コマンド列10で定義される図
形の少なくとも一部が旧ウインドウに含まれるものであ
り、これ以外はピツク表示のための処理は何ら行なう必
要はない。したがつて、図形コマンド列10がピツク表示
の対象となり得るか否かの判定は、表示フラグ11を用い
ることによつて行なうことができる。In the case of the graphic display, the graphic processor 5 uses the graphic command sequence 10 stored in the graphic buffer data 4.
If at least a part of the figure defined by is included in the pick aperture, and if at least a part of this figure is included in the pick aperture, the display figure (single figure or figure group) for this is blinked or Data for coloring (hereinafter referred to as pick data) is formed. As with the zoom-up display, the pick-up aperture is set in the window set for the screen currently displayed on the display screen of the CRT7 (hereinafter also referred to as the old window). At least a part of the graphic defined by the graphic command sequence 10 that can be the target of is included in the old window, and other than this, there is no need to perform any processing for displaying the pick. Therefore, it is possible to determine whether or not the graphic command sequence 10 can be a target for pick display by using the display flag 11.
グラフイツクプロセサ5におけるピツク表示のための処
理動作は次のとおりである。The processing operation for displaying a pick in the graphic processor 5 is as follows.
すなわち、第3図において、入力装置1やホストコンピ
ユータ2のピツク表示の指示とともに(ステツプ10
1)、ピツクアパーチヤが設定され(ステツプ119)、次
いで、図形データバツフア4から表示フラグ11が読み出
される(ステツプ104)。この表示フラグ11が“0"のと
きには、(ステツプ105)、これに対する図形コマンド
列10で定義される図形の少なくとも一部が旧ウインドウ
に含まれないとして処理はこれで終るが、この表示フラ
グ11が“1"のときには、これに対する図形コマンド列10
が図形データバツフア4から読み出され(ステツプ10
6)、ピツク表示か否かの判定がなされた(ステツプ10
7)後、この図形コマンド列10で定義される図形の一部
または全部がピツクアパーチヤに含まれる(ピツクヒツ
ト)か否かの判定を行なう(ステツプ120)。ピツクヒ
ツトのときには、ピツクデータが形成されて(ステツプ
121)制御バス14のライン9を介して制御プロセサ3に
転送され、ピツクヒツトでないときには、そこで処理を
終了して次の表示フラグ11の読出しを行なう。That is, in FIG. 3, together with the instruction of the pick display of the input device 1 and the host computer 2, (step 10
1) The pick aperture is set (step 119), and then the display flag 11 is read from the graphic data buffer 4 (step 104). When the display flag 11 is "0" (step 105), the processing is ended by assuming that at least a part of the graphic defined by the graphic command sequence 10 corresponding thereto is not included in the old window. Is "1", the graphic command sequence 10 for this
Is read from the graphic data buffer 4 (step 10
6), it is determined whether or not the display is a pick (step 10
7) After that, it is determined whether or not a part or all of the figure defined by the figure command sequence 10 is included in the pick aperture (pick hit) (step 120). At the time of a pick hit, pick data is formed (step
121) It is transferred to the control processor 3 through the line 9 of the control bus 14, and when it is not a pick-up, the processing is ended there and the next display flag 11 is read.
そこで、いま、第6図に示すように、図形P1の一部と図
形P2の全体とを含むようにウインドウWが設定され、こ
れについてピツク表示を行なう場合を考えると、ピツク
表示の対象となるのは図形P1,P2であり、ウインドウW
外に存在す図形P3に対する第3図の処理は、ステツプ10
5の表示フラグ11の判定でもつて終る。Therefore, as shown in FIG. 6, when the window W is set so as to include a part of the figure P 1 and the entire figure P 2 , and a pic display is performed for this, the object of the pic display Are the figures P 1 and P 2 and the window W
The process of FIG. 3 for the figure P 3 existing outside is performed in step 10
The judgment of the display flag 11 of 5 also ends.
かかるウインドウW内において、図形P1の一部を含むよ
うにピツクアパーチヤAP1が設定されると、CRT7の表示
面で表示されている図形P1のウインドウW内に存在する
部分に対する表示図形全体が、点滅あるいは色付けされ
てピツク表示される。また、図形P2を含むようにピツク
アパーチヤAP2が設定されると、同様に、この図形P2に
対する表示図形全体がピツク表示される。In such a window in W, the Pitsukuapachiya AP 1 is set so as to include a part of the graphic P 1, the entire display figure for the portion that is present in the window W of figure P 1 being displayed on the display surface of CRT7 , Blinking or colored and displayed as a pick. When the pick aperture AP 2 is set so as to include the figure P 2 , similarly, the entire display figure for the figure P 2 is picked up.
以上のように、ピツク表示においても、表示フラグ11を
用いて対象となり得る図形を判別することができ、グラ
フイツクプロセサ5のデータ処理量が大幅に低減してピ
ツク表示を迅速に行なうことができる。As described above, even in the case of the pick display, it is possible to discriminate the target figure by using the display flag 11, so that the data processing amount of the graphic processor 5 is greatly reduced and the pick display can be performed quickly. .
なお、ピツク表示の場合には、表示フラグ11や包含フラ
グ12は旧ウインドウに対する内容のままに保持される。In the case of pick display, the display flag 11 and the inclusion flag 12 are retained as they are in the contents of the old window.
次に、第7図によつて再表示の動作を説明する。ここで
も、初期表示のための処理動作が含まれ、これはステツ
プ301,302,307〜318の一連の動作によつて表わされる。Next, the re-display operation will be described with reference to FIG. Here again, a processing operation for initial display is included, which is represented by a series of operations of steps 301, 302, 307-318.
再表示の場合には、まず、新ウインドウが設定されると
(ステツプ301)、設定されている旧ウインドウと一致
することによつて再表示であることが判定され(ステツ
プ302)、図形データバツフア4から包含フラグ12の読
み出しが行なわれる(ステツプ303)。この包含フラグ1
2が“1"のときには、これに対する図形コマンド列10が
図形データバツフア4から読み出され(ステツプ31
9)、これをイメージデータに変換して(ステツプ314)
フレームメモリ6に送り(ステツプ315)、ステツプ31
8,302を介して次の包含フラグ12の読み出しを行なう。In the case of re-display, first, when a new window is set (step 301), it is judged to be re-display by matching with the set old window (step 302), and the graphic data buffer 4 is displayed. The inclusion flag 12 is read from (step 303). This inclusion flag 1
When 2 is "1", the graphic command string 10 corresponding thereto is read from the graphic data buffer 4 (step 31).
9) Convert this into image data (step 314)
Send to frame memory 6 (step 315), step 31
The next inclusion flag 12 is read via 8,302.
包含フラグ12が“0"のときには(ステツプ314)、次
に、これに対する図形コマンド列10に付随した表示フラ
グ11を読み出す(ステツプ305)。この表示フラグ11が
“0"のときには(ステツプ306)、これで処理終了して
次の包含フラグ12の読み出しを行なうが、表示フラグ11
が“1"のときには、図形コマンド列10を図形データバツ
フア4から読み出し(ステツプ307)、この図形コマン
ド列10で定義される図形がウインドウ内に一部または全
部含まれるか否かの判定を行なう(ステツプ308)。再
表示では必ず含まれると判定されるから、初期表示と同
様に、表示フラグ11を“1"とし(ステツプ309)、さら
に全部が含まれるときには(ステツプ310)包含フラグ1
2を“1"とし(ステツプ311)、全部が含まれるのではな
いときには包含フラグ12を“0"とし(ステツプ312)、
そのウインドウに含まれる部分を抽出する(ステツプ31
3)。この部分はイメージデータに変換され(ステツプ3
14)、フレームメモリ6に送られる(ステツプ315)。If the inclusion flag 12 is "0" (step 314), then the display flag 11 attached to the graphic command sequence 10 corresponding thereto is read (step 305). When the display flag 11 is "0" (step 306), the processing is ended thereby and the next inclusion flag 12 is read out.
Is "1", the graphic command sequence 10 is read from the graphic data buffer 4 (step 307), and it is determined whether the graphic defined by the graphic command sequence 10 is partially or wholly included in the window ( Step 308). Since it is determined that the flag is always included in the redisplay, the display flag 11 is set to "1" (step 309) as in the case of the initial display, and when the whole is included (step 310), the inclusion flag 1 is set.
2 is set to "1" (step 311), and the inclusion flag 12 is set to "0" if not all are included (step 312),
Extract the part included in the window (step 31)
3). This part is converted to image data (step 3
14) is sent to the frame memory 6 (step 315).
以上の処理動作は図形データバツフア4に格納されてい
る全ての図形コマンド列10に対して行なわれ、これが終
ると(ステツプ318)、CRT7の表示面に旧ウインドウの
ときと同じ画面が全体として表示される。The above processing operation is performed for all the graphic command strings 10 stored in the graphic data buffer 4, and when this is completed (step 318), the same screen as the old window is displayed as a whole on the display surface of the CRT7. It
以上のように、再表示の場合も、表示フラグ11、包含フ
ラグ12を用いることにより、再表示の対象となる図形コ
マンド列10が判定でき、対象とならない図形コマンド列
10は図形データバツフアから読み出して設定されたウイ
ンドウとの比較判定を行なう必要がないし、また、包含
フラグ12が“1"である図形コマンド列10については、設
定されたウインドウとの比較判定を行なうことなく、直
ちにイメージデータに変換すればよい。したがつて、再
表示のためのデータ処理量も大幅に低減されて迅速な表
示が可能となる。As described above, even in the case of redisplay, by using the display flag 11 and the inclusion flag 12, the figure command sequence 10 to be redisplayed can be determined,
No need to compare 10 with the window set by reading from the graphic data buffer, and for the graphic command sequence 10 with the inclusion flag 12 being "1", compare and judge with the set window. Instead, it may be converted into image data immediately. Therefore, the amount of data processing for re-display is greatly reduced, and quick display is possible.
なお、この実施例では、ウインドウが設定される毎に、
これに対する表示フラグ、包含フラグ12が設定されるの
であるが、特に、再表示では新、旧ウインドウが一致
し、これらに対する表示フラグ11、包含フラグ12は一致
するから、表示フラグ11が“1"のときには(ステツプ30
6)、ステツプ307から直ちにステツプ313に進むように
処理を行なつてもよい。In this embodiment, each time a window is set,
The display flag and the inclusion flag 12 for this are set. Especially, in the redisplay, the new and old windows match, and the display flag 11 and the inclusion flag 12 for these match, so that the display flag 11 is "1". At the time of (step 30
6), processing may be performed so that the processing immediately proceeds from step 307 to step 313.
以上の表示の他に、旧ウインドウと一部が重なつて他の
部分がずれるように新ウインドウを設定する表示、旧ウ
インドウと全く重ならないように新ウインドウを設定す
る表示があるが、この場合には、表示フラグ11や包含フ
ラグ12は使用されず、新ウインドウに対して初期表示と
同様の処理動作が行なわれ、この新ウインドウに対して
各表示フラグ11、包含フラグ12が設定される。In addition to the above display, there is a display that sets a new window so that it overlaps with the old window and the other part shifts, and a display that sets the new window so that it does not overlap the old window at all. , The display flag 11 and the inclusion flag 12 are not used, the same processing operation as the initial display is performed for the new window, and the display flag 11 and the inclusion flag 12 are set for this new window.
なお、上記実施例は二次元図形、三次元図形のいずれを
も対象とすることができ、三次元図形を対象とするとき
には、特に、ウインドウをビユーボリウムとすればよ
い。The above embodiment can be applied to both two-dimensional figures and three-dimensional figures. When targeting three-dimensional figures, the window may be a special volume.
以上説明したように、本発明によれば、図形コマンド列
と設定されたウインドウもしくはビユーボリウムとの比
較判定結果が、各図形コマンド毎にフラグとして付加さ
れるものであるから、ズームアツプ表示、ズームダウン
表示、ピツク表示、再表示に際しては、かかる表示の対
象となる図形コマンド列を該フラグによつて簡単に判別
することができ、かかる表示のために設定されたウイン
ドウと比較する図形コマンド列の数を大幅の低減するも
のであつて、データ処理量を大幅に低減してかかる表示
の迅速化を実現可能とするものである。As described above, according to the present invention, the comparison determination result of the graphic command sequence and the set window or view volume is added as a flag for each graphic command. When displaying, picking, or re-displaying, the graphic command string to be displayed can be easily identified by the flag, and the number of graphic command strings to be compared with the window set for such display. In addition, the amount of data processing can be significantly reduced, and the display can be speeded up.
第1図は本発明による図形表示方式の一実施例を示すブ
ロツク図、第2図は第1図におけるウインドウ内の図形
コマンド列とビユーポート内のイメージデータとの関係
を示す説明図、第3図は第1図におけるグラフイツクプ
ロセサのズームアツプ表示、ピツク表示のための処理動
作を示すフローチヤート、第4図は同じくズームダウン
表示のための処理動作を示すフローチヤート、第5図は
ズームアツプ表示、ズームダウン表示におけるウインド
ウと表示画面を示す説明図、第6図はピツク表示のため
のウインドウ中に設定されるピツクアパーチヤの例を示
す説明図、第7図は第1図におけるグラフイツクプロセ
サの再表示のための処理動作を示すフローチヤートであ
る。 1……入力装置、2……ホストコンピユータ、3……制
御プロセサ、4……図形データバツフア、5……グラフ
イツクプロセサ、6……フレームメモリ、7……CRT、1
0……図形コマンド列、11……表示フラグ、12……包含
フラグ。FIG. 1 is a block diagram showing an embodiment of the graphic display system according to the present invention, and FIG. 2 is an explanatory view showing the relationship between the graphic command sequence in the window and the image data in the viewport in FIG. 1, and FIG. Is a flow chart showing the processing operation for the zoom-up display and the pick display of the graphic processor in FIG. 1, FIG. 4 is a flow chart showing the processing operation for the zoom-down display, and FIG. 5 is the zoom-up display, the zoom. FIG. 6 is an explanatory view showing a window and a display screen in the down display, FIG. 6 is an explanatory view showing an example of a pick aperture set in the window for the pick display, and FIG. 7 is a redisplay of the graphic processor in FIG. 3 is a flow chart showing a processing operation for. 1 ... Input device, 2 ... Host computer, 3 ... Control processor, 4 ... Graphic data buffer, 5 ... Graphic processor, 6 ... Frame memory, 7 ... CRT, 1
0 …… Graphic command string, 11 …… Display flag, 12 …… Inclusion flag.
Claims (3)
形群を定義する図形コマンド列がメモリに記憶されてお
り、該メモリから該図形コマンド列を読み出して設定さ
れたウインドウまたはビユーボリウムと該図形コマンド
列が定義する該単一図形もしくは図形群を比較判定し、
該単一図形もしくは図形群の該設定されたウインドウま
たはビユーボリウムに含まれる部分のみを図形表示可能
とした方式において、 前記メモリで、前記図形コマンド列毎に前記ウインドウ
またはビユーボリウムとの比較判定結果を表わすフラグ
を付加し、 次に新たに設定されるウインドウまたはビユーボリウム
に応じて、該次に新たに設定されるウインドウまたはビ
ユーボリウムと比較判定すべき単一図形もしくは図形群
を各前記図形コマンド列が定義する単一図形もしくは図
形群の中から該フラグをもとに選択することを特徴とす
る図形表示方式。1. A graphic command sequence defining a two-dimensional or three-dimensional single graphic or a graphic group is stored in a memory, and a window or view volume and a window set by reading the graphic command sequence from the memory are stored. Comparing and judging the single figure or group of figures defined by the figure command sequence,
In a method in which only a portion of the single figure or figure group included in the set window or view volume can be displayed as a figure, the result of comparison judgment with the window or view volume for each figure command row in the memory Is added, and a single figure or group of figures to be compared with the next newly set window or volume is determined according to the newly set window or volume. A graphic display method characterized by selecting from a single graphic or a graphic group defined by a column based on the flag.
も一部が設定された前記ウインドウまたはビユーボリウ
ム内に存在するか否かを表わす表示フラグであることを
特徴とする図形表示方式。2. The display flag according to claim 1, wherein the flag is a display flag indicating whether or not at least a part of the single figure or the figure group exists in the set window or the view volume. A graphic display method characterized by being present.
定された前記ウインドウまたはビユーボリウム内に存在
するか否かを表わす包含フラグであることを特徴とする
図形表示方式。3. The flag according to claim 1, wherein the flag is an inclusion flag indicating whether or not the single figure or the entire figure group is present in the set window or view volume. A graphic display method characterized by.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61245446A JPH06105392B2 (en) | 1986-10-17 | 1986-10-17 | Graphic display method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61245446A JPH06105392B2 (en) | 1986-10-17 | 1986-10-17 | Graphic display method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63100493A JPS63100493A (en) | 1988-05-02 |
| JPH06105392B2 true JPH06105392B2 (en) | 1994-12-21 |
Family
ID=17133783
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61245446A Expired - Lifetime JPH06105392B2 (en) | 1986-10-17 | 1986-10-17 | Graphic display method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06105392B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2613958B2 (en) * | 1990-05-24 | 1997-05-28 | シャープ株式会社 | Document editing device |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5856141A (en) * | 1981-09-30 | 1983-04-02 | Fujitsu Ltd | Control processing system for graphic pattern registration |
| JPS6169096A (en) * | 1985-03-26 | 1986-04-09 | 株式会社日立製作所 | Graphic processor |
-
1986
- 1986-10-17 JP JP61245446A patent/JPH06105392B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS63100493A (en) | 1988-05-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20120218276A1 (en) | Image Data Transmission Apparatus and Method for Image Display System | |
| JPH06259217A (en) | Multiwindow system | |
| JP2790837B2 (en) | Icon display method | |
| JPH10312407A (en) | Drawing display device | |
| JPH10503855A (en) | Video information multiplexing method | |
| JPS63100493A (en) | Graphic display system | |
| JPS6177979A (en) | Display control method | |
| JP2557591B2 (en) | Guide map creation processing method | |
| JPH08179913A (en) | Window selection device and method | |
| JPH01243188A (en) | Contour detector | |
| JPH10214352A (en) | Method and device for picture formation | |
| JPH05189529A (en) | Graphic editing system | |
| JP2634905B2 (en) | How to paint shapes | |
| JPS6385924A (en) | Display control system | |
| JP3363028B2 (en) | Image display method | |
| JP2858581B2 (en) | Image processing method and apparatus | |
| JPH01147593A (en) | Automatic window area setting for information retrieving screen | |
| JPH10333867A (en) | Image display device | |
| JPH02308375A (en) | Method and device for graphic picking | |
| JPH07113882B2 (en) | Window selector | |
| JPH04308921A (en) | Multiwindow system | |
| JPS6139160A (en) | Graphic element retrieval processing system | |
| JP2830136B2 (en) | Window display | |
| JPH0643853A (en) | Method and device for controlling display attribute | |
| JPH0752452B2 (en) | Drawing display device |