JP2787497B2 - Graphic drawing method and apparatus - Google Patents

Graphic drawing method and apparatus

Info

Publication number
JP2787497B2
JP2787497B2 JP477290A JP477290A JP2787497B2 JP 2787497 B2 JP2787497 B2 JP 2787497B2 JP 477290 A JP477290 A JP 477290A JP 477290 A JP477290 A JP 477290A JP 2787497 B2 JP2787497 B2 JP 2787497B2
Authority
JP
Japan
Prior art keywords
graphic
size
memory
data
bitmap memory
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
Application number
JP477290A
Other languages
Japanese (ja)
Other versions
JPH03209580A (en
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP477290A priority Critical patent/JP2787497B2/en
Publication of JPH03209580A publication Critical patent/JPH03209580A/en
Application granted granted Critical
Publication of JP2787497B2 publication Critical patent/JP2787497B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、図形描画方法及び装置に係り、特に、極小
図形の表示に好適な図形描画方法及び装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic drawing method and apparatus, and more particularly, to a graphic drawing method and apparatus suitable for displaying a minimal figure.

〔従来の技術〕[Conventional technology]

従来、ラスタグラフィックディスプレイに直線や文字
等の図形をドット展開し表示する方式については、J.D.
Foley/A.VAN DAMによる“コンピュータグラフィック
ス”(日本コンピュータ協会、昭和59年7月発行)と題
する文献において、線分のドット展開を行うために、線
分の傾きを利用し、演算オーバヘッドを軽減したアルゴ
リズムが論じられている。代表的なものとしては、ブレ
ズナム(Bresenham)のアルゴリズムが挙げられるが、
これらのアルゴリズムにおいては、いくら短い線分で
も、すくなくとも始点と終点の計算が必要である。
Conventionally, for the method of dot-expanding and displaying figures such as straight lines and characters on raster graphic displays, see JD
In a document titled "Computer Graphics" by Foley / A.VAN DAM (Japan Computer Association, issued in July 1984), in order to perform dot development of line segments, the inclination of line segments was used and the computation overhead was reduced. Reduced algorithms are discussed. A typical example is Bresenham's algorithm,
These algorithms require at least the start and end points to be calculated, no matter how short the line segment.

本従来方式を用いて図形をディスプレイに表示する例
を第3A,B図、第4図を参照して説明する。
An example of displaying a graphic on a display using the conventional method will be described with reference to FIGS. 3A, 3B, and 4. FIG.

第4図において、メモリ1にはユーザが表示させたい
図形の形状を定義する図形データが記憶されている。図
形データの座標空間は、通常ドットマップメモリ3の大
きさよりも大きくとってあり、ユーザがビットマップメ
モリを意識しなくてもよいようにしてある。ディスプレ
イ制御装置2は、メモリ1の図形データを読み込み、そ
の座標値を拡大/縮小及び平行移動する座標変換を行
い、ビットマップメモリの座標へ変換した後、前述のラ
スタアルゴリズムを用いてドットに展開し、ビットマッ
プメモリ3に書き込む。ビットマップメモリ3の内容
は、ディジタル/アナログ変換器4により、アナログ信
号に変換され、ディスプレイ5に表示される。
In FIG. 4, a memory 1 stores graphic data defining the shape of a graphic that the user wants to display. The coordinate space of the graphic data is usually larger than the size of the dot map memory 3 so that the user does not need to be aware of the bit map memory. The display control device 2 reads the graphic data in the memory 1, performs coordinate conversion for enlarging / reducing and translating the coordinate values, converts them into the coordinates of the bitmap memory, and then develops them into dots using the above-described raster algorithm. Then, the data is written to the bit map memory 3. The contents of the bitmap memory 3 are converted into analog signals by a digital / analog converter 4 and displayed on a display 5.

従来方式の動作を第2A,B図により、さらに詳しく説明
する。第2A図において、図形データ11として頂点数=3
の折れ線が定義されており、それぞれの頂点座標はP
1(0,0)、P2(4,6)、P3(8,0)である。この図形が拡
大倍率=5、平行移動量をx方向に300、y方向に500と
して座標変換される場合、ディスプレイ制御装置2は、
各頂点ごとに座標変換を行い、P1(300,500)、P2(32
0,530)、P3(340,500)とし、これら各頂点を結ぶよう
にラスタアルゴリズムによりドット展開する。
The operation of the conventional system will be described in more detail with reference to FIGS. 2A and 2B. In FIG. 2A, the number of vertices = 3 as the graphic data 11
Is defined, and each vertex coordinate is P
1 (0,0), P 2 (4,6), P 3 (8,0). When this figure is subjected to coordinate transformation with the enlargement magnification = 5, the translation amount being 300 in the x direction, and 500 in the y direction, the display control device 2
Perform coordinate transformation for each vertex, and P 1 (300,500), P 2 (32
0,530) and P 3 (340,500), and dot development is performed by a raster algorithm so as to connect these vertices.

第2B図では、第2A図の場合と同じ図形データに対し、
拡大倍率=1とし、平行移動量は同一の座標変換が行わ
れる場合を示し、変換後の各頂点座標P1(300,500)、P
2(304,506)、P3(308,500)を示している。
In FIG. 2B, for the same graphic data as in FIG. 2A,
The enlargement magnification = 1, the translation amount indicates a case where the same coordinate conversion is performed, and the converted vertex coordinates P 1 (300,500), P
2 (304,506) and P 3 (308,500).

多くのグラフィックシステムでは、拡大/縮小、平行
移動を高速で処理するために、メモリ1内の図形データ
の内容を変更しなくても座標変換の倍率や平行移動量を
変えるだけでよくするために、このような構成がとられ
ている。
In many graphic systems, in order to process enlargement / reduction and parallel movement at high speed, it is necessary to change the magnification of coordinate transformation and the amount of parallel movement without changing the contents of the graphic data in the memory 1. Such a configuration is adopted.

第3A図は、第2B図の例でP1,P2,P3を結ぶ線がビットマ
ップメモリ3上にドット展開された例を示している。
FIG. 3A shows an example in which a line connecting P 1 , P 2 , and P 3 in the example of FIG. 2B is dot-developed on the bitmap memory 3.

以上、述べたように、従来は、1頂点毎に座標変換が
行われ、それを結ぶ線分に対し、ラスタアルゴリズムを
用いてビットマップメモリ3上にドット展開が行われて
いた。
As described above, conventionally, coordinate conversion is performed for each vertex, and dot development is performed on the bitmap memory 3 by using a raster algorithm for a line segment connecting the vertexes.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

前記従来の方法では、どんな場合でも、全頂点に対し
て座標変換及びドット展開が行われるため、以下に示す
ような場合に、演算時間の無駄が大きかった。
In the above-described conventional method, coordinate conversion and dot development are performed on all vertices in any case, so that in the following cases, the calculation time is wasted.

第3B図は、前記第2A図、第2B図の例において、拡大倍
率=0.05の場合にドット展開された例を示す。この場
合、変換後の各頂点座標はP1(300,500)、P2(300.2,5
00.3)であるが、整数化の為に四捨五入されると、P
2(300,500)となり、P1,P2は一致してしまう。同様にP
3も(300,500)となり、三つの頂点は結果的に一つのド
ットにしか表示されなくなり、同じドットに3回を重ね
て描画していることになり、頂点P2,P3の座標変換及び
ドット展開の演算時間が無駄に費やされていた。
FIG. 3B shows an example in which dots are developed when the enlargement ratio is 0.05 in the examples of FIGS. 2A and 2B. In this case, the converted vertex coordinates are P 1 (300,500) and P 2 (300.2,5
00.3), but if rounded to the nearest integer, P
2 (300,500), and P 1 and P 2 match. Similarly P
3 also becomes (300,500), the three vertices are displayed only on one dot as a result, and the same dot is drawn three times, and the coordinate conversion of the vertices P 2 and P 3 and the dot The computation time of the expansion was wasted.

本発明の目的は、図形の極小表示時の無駄な演算時間
を減らすにある。
SUMMARY OF THE INVENTION It is an object of the present invention to reduce useless calculation time when a figure is displayed at a minimum.

〔課題を解決するための手段〕[Means for solving the problem]

上記の課題は、2次元または3次元の図形データをラ
スターグラフィックスディスプレイのビットマップメモ
リにドット展開し、該ビットマップメモリに展開された
データを画面表示する図形描画方法に、前記2次元また
は3次元の図形データをビットマップメモリにドット展
開するまえに、展開後の縦及びまたは横のドット数が定
められた判定基準値より大きくなるか小さくなるかを判
定する手順と、小さくなると判定されたときにラスター
アルゴリズムを用いることなく前記ドット展開を行なう
手順と、を加えることによって達成される。
The object of the present invention is to provide a graphic drawing method in which two-dimensional or three-dimensional graphic data is dot-developed in a bitmap memory of a raster graphics display and the data developed in the bitmap memory is displayed on a screen. A step of determining whether the number of vertical and / or horizontal dots after expansion is larger or smaller than a predetermined determination reference value before developing the dimensional graphic data into the bitmap memory; And sometimes a procedure for developing the dots without using a raster algorithm.

上記の課題は、また、図形データに、当該図形の図形
定義平面上の大きさもしくはビットマップメモリ上での
大きさを表わすデータを含み、該データが展開後の縦及
びまたは横のドット数が定められた判定基準値より大き
くなるか小さくなるかを判定するのに用いられる請求項
1に記載の図形描画方法によっても達成される。
The above-mentioned problem also involves that the graphic data includes data representing the size of the graphic on the graphic definition plane or the size on the bitmap memory, and the data has the number of vertical and / or horizontal dots after expansion. The present invention is also achieved by the graphic drawing method according to claim 1, which is used for determining whether the value becomes larger or smaller than a predetermined determination reference value.

上記の課題は、また、表示しようとする図形に外接す
る最小の矩形を定義する座標を求める手順を含み、展開
後の縦及びまたは横のドット数が定められた判定基準値
より大きくなるか小さくなるかを判定するのに、求めら
れた前記座標が用いられる請求項1に記載の図形描画方
法によっても達成される。
The above-mentioned problem also includes a procedure for obtaining coordinates defining a minimum rectangle circumscribing the graphic to be displayed, and the number of vertical and / or horizontal dots after expansion is larger or smaller than a predetermined determination reference value. The method is also achieved by the graphic drawing method according to claim 1, wherein the determined coordinates are used to determine whether or not to be true.

上記の課題は、また、図形データを記憶するメモリ
と、該メモリに接続され前記図形データを座標変換及び
または平行移動したのちビットマップメモリ上にラスタ
アルゴリズムを用いてドット展開する第1の演算手段を
含むディスプレイ制御装置と、該ディスプレイ制御装置
に接続されたビットマップメモリと、該ビットマップメ
モリにD/A変換器を介して接続され前記ビットマップメ
モリに展開されたデータを画像として表示するディスプ
レイ装置と、を含んでなる図形描画装置において、前記
ディスプレイ制御装置が、前記図形データにより定義さ
れる図形のビットマップメモリ上での大きさを算出する
手段と、算出された前記大きさが予め定められた判定基
準値より大きいか小さいかを比較する大きさ判定手段
と、該大きさ判定手段に接続され前記図形データを座標
変換及びまたは平行移動する第2の演算手段と、該第2
の演算手段に接続され第2の演算手段の演算結果を直接
ビットマップメモリ上にドット展開する第3の演算手段
と、を含み、前記第1の演算手段は前記大きさ判定手段
が大きいと判定したとき演算を行い、前記第2、第3の
演算手段は前記大きさ判定手段が小さいと判定したとき
演算を行うよう構成されている図形描画装置によっても
達成される。
The above object is also achieved by a memory for storing graphic data, and a first arithmetic means connected to the memory for performing coordinate conversion and / or translation of the graphic data and then developing dots on a bitmap memory using a raster algorithm. A display control device, a bitmap memory connected to the display control device, and a display connected to the bitmap memory via a D / A converter and displaying data developed in the bitmap memory as an image And a device for calculating a size of a graphic defined by the graphic data on a bitmap memory, wherein the calculated size is predetermined. Size determining means for comparing whether the value is larger or smaller than the determined reference value, and contacting the size determining means. Second calculating means for moving the graphic data coordinate conversion and or parallel to, the second
A third calculating means connected to the calculating means, and developing the calculation result of the second calculating means directly on the bitmap memory in dot form, wherein the first calculating means determines that the size determining means is large. The second and third calculation means are also achieved by a graphic drawing apparatus configured to perform the calculation when the size determination means determines that the size is small.

〔作用〕[Action]

表示しようとする図形が、ドット情報記憶手段(ビッ
トマップメモリ)に、ドット情報として展開される前
に、当該図形がビットマップメモリにドット情報として
展開されたときのドット数で表わされる大きさが算定さ
れる。算定された大きさは、判定基準値と比較され、ど
ちらが大きいかが判定される。判定基準値は、画像表示
手段の画面上で、例えば一つの点として人の目に認識さ
れる最大のドット数をもとに設定される。
Before the graphic to be displayed is developed as dot information in the dot information storage means (bitmap memory), the size represented by the number of dots when the graphic is developed as dot information in the bitmap memory is It is calculated. The calculated size is compared with a determination reference value to determine which is larger. The criterion value is set on the screen of the image display means, for example, based on the maximum number of dots recognized as a single point by human eyes.

算定された前記図形の大きさが判定基準値より大きい
場合は、従来どおりラスタアルゴリズムを用いてドット
展開される。一方、算定された前記図形の大きさが判定
基準値よりも小さい場合は、当該図形は画面表示された
場合、例えば、一点としてしか人の目には認識されな
い。この場合は、当該図形はラスタアルゴリズムを用い
たドット展開を行われることなく、1個のドットとし
て、ビットマップメモリ上に書き込まれる。
If the calculated size of the figure is larger than the determination reference value, dot development is performed using a raster algorithm as in the past. On the other hand, when the calculated size of the figure is smaller than the determination reference value, the figure is recognized by the human eye only as one point when displayed on the screen, for example. In this case, the graphic is written on the bitmap memory as one dot without performing dot development using the raster algorithm.

図形データの中に該図形の大きさを示す情報、例えば
当該図形に外接する矩形の大きさ情報を持たせておくこ
とにより、大きさの算定が簡易に短時間で行われる。3
次元図形の場合は、矩形のかわりに、例えば、当該図形
に外接する直方体の大きさ情報を持たせておけばよい。
By providing information indicating the size of the figure, for example, the size information of a rectangle circumscribing the figure in the figure data, the size can be calculated easily and in a short time. 3
In the case of a three-dimensional figure, for example, the size information of a rectangular parallelepiped circumscribing the figure may be provided instead of the rectangle.

〔実施例〕 以下、本発明の実施例を図形を参照して説明する。第
1図は本発明の第1の実施例である描画装置の要部の構
成を示し、図形データを記憶するメモリ1と、該メモリ
1に接続されたディスプレイ制御装置2と、該ディスプ
レイ制御装置2に接続されたビットマップメモリ3と、
該ビットマップメモリ3に接続されたD/A変換器4と、
該D/A変換器4の出力側に接続されたディスプレイ5と
から成っている。
Embodiment An embodiment of the present invention will be described below with reference to figures. FIG. 1 shows a configuration of a main part of a drawing apparatus according to a first embodiment of the present invention, a memory 1 for storing graphic data, a display control device 2 connected to the memory 1, and a display control device. 2, a bitmap memory 3 connected to
A D / A converter 4 connected to the bitmap memory 3,
And a display 5 connected to the output side of the D / A converter 4.

ディスプレイ制御装置2は、メモリ1に接続される図
形長演算ブロック211と、該図形長演算ブロック211に接
続された座標変換ブロック212と、該座標変換ブロック2
12に接続された大きさ判定ブロック213と、該大きさ判
定ブロック213に順次、直列に接続されて第1の演算手
段をなす座標変換ブロック221、平行移動ブロック222、
ドット展開ブロック223と、前記大きさ判定ブロック213
に順次、直列に接続されて第2の演算手段をなす座標変
換ブロック231、平行移動ブロック232と、該平行移動ブ
ロック232に接続されて第3の演算手段をなすドット展
開ブロック233と、を含んでいる。ドット展開ブロック2
23,233の出力側は、ビットマップメモリ3に接続されて
いる。
The display control device 2 includes a graphic length calculation block 211 connected to the memory 1, a coordinate conversion block 212 connected to the graphic length calculation block 211, and a coordinate conversion block 2.
12, a size determination block 213, a coordinate transformation block 221, a translation block 222, which are connected in series to the size determination block 213 and form a first calculating means.
Dot development block 223 and the size determination block 213
And a coordinate transformation block 231 and a parallel movement block 232 connected in series and forming a second calculation means, and a dot development block 233 connected to the parallel movement block 232 and forming a third calculation means. In. Dot development block 2
The outputs of 23 and 233 are connected to the bitmap memory 3.

図形長演算ブロック211と座標変換ブロック212が、ビ
ットマップメモリ上での図形の大きさを算出する手段を
なし、大きさ判定ブロック213が大きさ判定手段をなし
ている。
The figure length calculation block 211 and the coordinate conversion block 212 form a unit for calculating the size of the figure on the bitmap memory, and the size determination block 213 forms a size determination unit.

メモリ1には、ディスプレイ5に表示される図形の形
状が図形データとして記憶されている。第5図に図形デ
ータの構成例を示す。図形データには最低限その図形の
種類(円、直線、文字列等)を示す情報と、その形状を
特定するための形状数値データ及びその図形の全ての部
分を含む最少の矩形領域(図形存在領域)の情報が含ま
れる。形状数値データは例えば円であれば中心点位置P
の座標や半径である。この形状数値データの形は、本実
施例に記載されている内容に合致している必要はなく、
ユーザが定義した内容が一意的にディスプレイ5に表示
されるものであればよい。例えば、円の場合に、前述の
データで持つのではなく、円を近似する何本かの直線情
報として持ってもよい。
The shape of the graphic displayed on the display 5 is stored in the memory 1 as graphic data. FIG. 5 shows a configuration example of the graphic data. The figure data includes, at a minimum, information indicating the type of the figure (circle, straight line, character string, etc.), shape numerical data for specifying the shape, and a minimum rectangular area (a figure existing Area) information is included. For example, if the shape numerical data is a circle, the center point position P
Coordinates and radius. The shape of the shape numerical data does not need to match the content described in the present embodiment,
What is necessary is that the content defined by the user is uniquely displayed on the display 5. For example, in the case of a circle, instead of having the above-mentioned data, it may be held as information on some straight lines approximating the circle.

図形存在領域は、通常2頂点A1,A2の座標値として記
憶される。こうすれば、本情報を記憶するためのメモリ
は数バイトでよく、仮想記憶方式を用いれば数ギガバイ
トまでアドレス空間は使えるようになるので、これが問
題になることはない。また、本情報は、図形のピック処
理(指示された座標位置に存在する図形データを検出す
る処理)やクリッピング処理(指示された領域内に存在
する図形のみを描画する処理)の高速化の手段として有
効であることが知られている。本情報の作成は例えば円
の場合、A1(x)=P(x)−γ、A2(x)=P(x)
+γ、A1(y)=P(y)−γ、A2(y)=P(y)+
γと簡単な加算のみで済むため、オーバベッドとしては
問題にならない。
The figure existence area is usually stored as the coordinate values of two vertices A 1 and A 2 . In this way, the memory for storing this information may be several bytes, and if the virtual storage method is used, the address space can be used up to several gigabytes, so that this does not pose a problem. This information is also used as a means for speeding up a graphic picking process (a process of detecting graphic data present at a designated coordinate position) and a clipping process (a process of drawing only a graphic present in a designated area). Is known to be effective. The creation of this information is, for example, in the case of a circle, A 1 (x) = P (x) −γ, A 2 (x) = P (x)
+ Γ, A 1 (y) = P (y) −γ, A 2 (y) = P (y) +
Since only simple addition with γ is sufficient, there is no problem as overbed.

ディスプレイ制御装置2は、メモリ1の図形データを
読み込み、まず図形長演算ブロック211において、その
図形全体のX方向、Y方向の長さを求める。以後P1,P2,
P3なる3個の頂点を持つ折れ線を例にとって説明する。
この図形の大きさは、その図形存在領域A1,A2より、以
下の式により求められる。
The display control device 2 reads the graphic data from the memory 1, and first obtains the lengths of the entire graphic in the X and Y directions in a graphic length calculation block 211. Hereafter, P 1 , P 2 ,
A description will be given using a polygonal line having three vertices P 3 as an example.
The size of this figure is obtained from the figure existence areas A 1 and A 2 by the following equation.

(X方向の大きさ)=A2(x)−A1(x)……(1) (Y方向の大きさ)=A2(y)−A1(y)……(2) この式で得られた大きさが、ビットマップメモリ上で
何ドットになるかが次の座標変換ブロック212で、次式
により求められる。座標変換の倍率をMとする。
(Size in X direction) = A 2 (x) −A 1 (x) (1) (Size in Y direction) = A 2 (y) −A 1 (y) (2) In the next coordinate transformation block 212, the number of dots on the bitmap memory, which is obtained by the size obtained in the above, is obtained by the following equation. The magnification of the coordinate conversion is M.

(ビットマップメモリ上のX方向の大きさ) =(X方向の大きさ)×M ……(3) (ビットマップメモリ上のY方向の大きさ) =(Y方向の大きさ)×M ……(4) 前記(3),(4)式で得られたビットマップメモリ
上の大きさが、大きさ判定ブロック213により、あらか
じめ定められた判定基準値nドットと比較され、得られ
たビットマップメモリ上の大きさの方が大きければ、従
来と同様、座標変換ブロック221、平行移動ブロック22
2、を経てドット展開ブロック223でラスタアルゴリズム
を用いたドット展開が行われる。
(Size in the X direction on the bitmap memory) = (size in the X direction) × M (3) (size in the Y direction on the bitmap memory) = (size in the Y direction) × M ... (4) The size in the bitmap memory obtained by the above equations (3) and (4) is compared by the size determination block 213 with a predetermined determination reference value n dots, and the obtained bit If the size on the map memory is larger, the coordinate conversion block 221, the translation block 22
After 2, the dot development using the raster algorithm is performed in the dot development block 223.

一方、(3),(4)式で得られたビットマップメモ
リ上の大きさが、前記判定基準値nドット未満であれ
ば、頂点P1について座標変換ブロック231、平行移動ブ
ロック232で座標変換が行われ、得られた座標位置に、
ラスタアルゴリズムを用いることなく、nドット書き込
みが行われる。こうして、頂点P2,P3についての座標変
換処理と、P1,P2,P3に対してラスタアルゴリズムを適用
するオーバーヘッドが省略される。この省略の効果は、
頂点数が多いほど大きい。判定基準値nドットは、通常
その1ドット当りの長さと、表示(印字)装置の特性に
より、人間が一つのかたまりとしてしか認識できなくな
るドット長に設定される。例えば1ドットが、約0.2mm
のビットマップディスプレイでは、1ドットでも2ドッ
トでも、管面のにじみの問題もあり、ほとんど同じに見
える。このような場合は、判定基準n=2とした方が、
従来のラスタアルゴリズムを使わない確率が増え、本発
明の効果がより発揮される。
On the other hand, (3), (4) the size of the bit map memory obtained in expression, if the determination reference value n is less than dots, the coordinate conversion block 231 for vertex P 1, coordinate transformation in translation block 232 Is performed, and at the obtained coordinate position,
The n dot writing is performed without using the raster algorithm. In this way, the coordinate conversion processing for the vertices P 2 and P 3 and the overhead of applying the raster algorithm to P 1 , P 2 and P 3 are omitted. The effect of this omission is
The larger the number of vertices, the larger. Normally, the determination reference value n dots is set to a dot length that can be recognized by a human as only one lump due to the length per dot and the characteristics of the display (printing) device. For example, one dot is about 0.2mm
In the bitmap display of, even if it is one dot or two dots, there is also a problem of blur on the tube surface, and it looks almost the same. In such a case, it is better to set the criterion n = 2,
The probability that the conventional raster algorithm is not used increases, and the effect of the present invention is more exhibited.

次に第6図により、第2の実施例を説明する。本実施
例においては、第1図に示された実施例の座標変換ブロ
ック212および大きさ判定ブロック213に変えて、大きさ
判定ブロック216が設けられ、該大きさ判定ブロック216
に大きさ判定基準値バッファブロック215が接続され、
該大きさ判定基準入バッファブロック215に判定基準値
演算ブロック214が接続されている。大きさ判定ブロッ
ク以降の部分は、第1図に示した実施例と同じなので、
図示及び説明を省略する。図に示した実施例において
は、判定基準値nドットに対し、拡大倍率Mの逆変換が
判定基準値演算ブロック214で行われ、ビットマップメ
モリ3上のnドットが図形データを定義する座標空間で
どのくらいの大きさになるかが算出される。算出された
nの大きさ(n逆変換値)が、大きさ判定基準値バッフ
ァブロック215に記憶される。この値は、判定基準値n
または座標変換倍率Mが変更された場合にのみ計算さ
れ、各図形データの読み込み毎に計算する必要がないた
め、第1図に示した実施例の場合よりも演算オーバーヘ
ッドが低減される。大きさ判定ブロック216では、図形
データが定義されている座標空間での図形の大きさ(長
さ)と大きさ判定基準値バッファブロック215に記憶さ
れているn逆変換値とが比較される。その後の動作は、
前記第1の実施例と同じである。
Next, a second embodiment will be described with reference to FIG. In the present embodiment, a size determination block 216 is provided instead of the coordinate conversion block 212 and the size determination block 213 of the embodiment shown in FIG.
Is connected to a size determination reference value buffer block 215,
A criterion value calculation block 214 is connected to the size criterion input buffer block 215. Since the portion after the size determination block is the same as the embodiment shown in FIG.
Illustration and explanation are omitted. In the embodiment shown in the figure, the inverse conversion of the enlargement magnification M is performed in the determination reference value calculation block 214 for the determination reference value n dots, and the n dots on the bitmap memory 3 correspond to the coordinate space defining the graphic data. Is used to calculate the size. The calculated magnitude of n (n inverse transform value) is stored in the magnitude determination reference value buffer block 215. This value is a criterion value n
Alternatively, the calculation is performed only when the coordinate conversion magnification M is changed, and it is not necessary to calculate each time each figure data is read. Therefore, the calculation overhead is reduced as compared with the case of the embodiment shown in FIG. In the size determination block 216, the size (length) of the figure in the coordinate space in which the figure data is defined is compared with the n inverse transform value stored in the size determination reference value buffer block 215. After that,
This is the same as the first embodiment.

次に第7図を参照して本発明を3次元図形に適用する
場合について説明する。3次元の場合も図形データの基
本的な構成は変らず、図形の種類(球、3次元直線、3
次元文字列等)の情報と、形状数値データと、図形存在
領域とから成っている。形状数値データのうち頂点座標
は3次元座標となる。また、図形存在領域は、x座標、
y座標、z座標の最小値で与えられる頂点A1とそれぞれ
最大値で与えられる頂点A2で記憶される。
Next, a case where the present invention is applied to a three-dimensional figure will be described with reference to FIG. In the case of three dimensions, the basic configuration of the graphic data remains unchanged, and the type of the graphic (sphere, three-dimensional line,
(Dimension character string, etc.), shape numerical data, and a figure existence area. The vertex coordinates of the shape numerical data are three-dimensional coordinates. In addition, the figure existence area has an x coordinate,
y coordinates are stored as vertex A 1 given by the minimum value of the z coordinate in the vertex A 2 given by the maximum value, respectively.

前述のように、2次元図形を取り扱う場合と3次元図
形を取り扱う場合の違いは、各頂点座標にz軸座標値が
含まれるか否かだけであり、図形データの図形存在領域
から図形の大きさを求め、その結果と判定基準値とを比
較し、いずれが大きいかによってドット展開の方法を変
える構造は2次元図形の場合と同様でよい。
As described above, the difference between the case of handling a two-dimensional figure and the case of handling a three-dimensional figure is only whether or not each vertex coordinate includes a z-axis coordinate value. The result is compared with the determination reference value, and the structure of changing the dot development method depending on which is larger may be the same as that of the two-dimensional figure.

第8図は、前記第1図に示した描画装置を用いた図形
処理装置の主要構成を示す。図示の図形処理装置は、図
形データ生成、変換のための数値、座標指示等のデータ
を入力する入力手段81と、該入力手段81に接続され、入
力されたデータに従って図形データを生成する図形デー
タ生成手段82と、該図形データ生成手段82に接続され、
生成された図形データを記憶する図形データ記憶手段83
と、該図形データ記憶手段83に接続され入力された指示
に従って表示しようとする図形をドット展開するディス
プレイ制御装置85と、該ディスプレイ制御装置85に接続
され、ドット展開された図形データを一時記憶するドッ
ト情報記憶手段(ビットマップメモリ)86と、該ドット
情報記憶手段86に接続して設けられ、ドット情報記憶手
段86に貯えられたドット情報を画面表示するドット情報
表示手段(CRTディスプレイ)87と、を含んで構成され
ている。図形データ記憶手段83及び図形データ生成手段
82に接続して、図形データ蓄積手段84が補助記憶装置と
して接続されている。ディスプレイ制御装置85は、第1
図に示されたディスプレイ制御装置2に相当し、内部構
成を座標変換手段85Aとドット展開手段85Bに代表されて
表示してある。
FIG. 8 shows a main configuration of a graphic processing apparatus using the drawing apparatus shown in FIG. The illustrated graphic processing apparatus includes input means 81 for inputting data such as numerical values for generating and converting graphic data and coordinate instructions, and graphic data connected to the input means 81 for generating graphic data in accordance with the input data. Generating means 82, connected to the graphic data generating means 82,
Graphic data storage means 83 for storing the generated graphic data
And a display control device 85 connected to the graphic data storage means 83 for dot-expanding a graphic to be displayed in accordance with the input instruction, and connected to the display control device 85 for temporarily storing the dot-expanded graphic data. A dot information storage means (bit map memory) 86; a dot information display means (CRT display) 87 which is provided connected to the dot information storage means 86 and displays on a screen the dot information stored in the dot information storage means 86; , Is configured. Graphic data storage means 83 and graphic data generation means
A graphic data storage means 84 is connected as an auxiliary storage device. The display control device 85 is
This corresponds to the display control device 2 shown in the figure, and its internal configuration is represented by the coordinate conversion means 85A and the dot development means 85B.

本実施例によれば、入力手段81に入力されたデータに
基づいて図形データ生成手段82で生成された図形デー
タ、もしくは、図形データ蓄積手段84に蓄積された図形
データの中から読み出されて図形データ生成手段82で加
工された図形データは、図形データ記憶手段83に記憶さ
れる。ディスプレイ制御装置85は、図形データ記憶手段
83の図形データを読み出し、前記第1の実施例について
述べたと同様の手順でドット展開し、ビットマップメモ
リ86に出力する。ドット情報表示手段87は、ビットマッ
プメモリに記憶されたドット情報を表示画面に画像とし
て表示する。
According to the present embodiment, the graphic data generated by the graphic data generating means 82 based on the data input to the input means 81 or the graphic data stored in the graphic data storing means 84 is read out. The graphic data processed by the graphic data generating means 82 is stored in the graphic data storage means 83. The display control device 85 includes a graphic data storage unit.
The graphic data 83 is read, dot-expanded in the same procedure as described in the first embodiment, and output to the bitmap memory 86. The dot information display means 87 displays the dot information stored in the bitmap memory as an image on a display screen.

本実施例によれば、図形データがドット展開されるに
際し、表示される画像の大きさがあらかじめ確認され、
その大きさが、あらかじめ定められた大きさより小さい
ときは、ラスタアルゴリズムを用いた変換手順が省略さ
れるので、装置操作者の指示入力から画像表示までの時
間が短縮され、画像処理作業が効率化されると共に、オ
ンラインでの画像処理作業における応答おくれによりい
らいら低減の効果がある。
According to the present embodiment, when the graphic data is developed into dots, the size of the displayed image is confirmed in advance,
If the size is smaller than the predetermined size, the conversion procedure using the raster algorithm is omitted, so that the time from the input of the instruction by the device operator to the display of the image is reduced, and the image processing work is made more efficient. At the same time, there is an effect of reducing the frustration due to the delayed response in the online image processing operation.

〔発明の効果〕〔The invention's effect〕

本発明によれば、図形がドット展開されるまえに、当
該図形がドット展開されたときの大きさが判定され、そ
の大きさがあらかじめの設定された判定基準値よりも小
さいときは、ラスタアルゴリズムを用いたドット展開の
手順が省略されて、ビットマップメモリに直接ドット展
開されるので、極小図形を画面表示するときの無駄な演
算時間がなくなり、描画時間が短縮され、装置の応答を
早くする効果がある。
According to the present invention, before the graphic is developed into dots, the size when the graphic is developed into dots is determined, and when the size is smaller than a predetermined reference value, the raster algorithm is used. Is omitted, and the dot development is directly performed in the bitmap memory, so that unnecessary calculation time when displaying the minimal figure on the screen is eliminated, the drawing time is shortened, and the response of the apparatus is accelerated. effective.

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

第1図は本発明の第1の実施例の主要部の構成を示すブ
ロック図、第2A図,2B図、第3A,3B図は従来技術による描
画例を示す平面図、第4図は従来技術の例を示すブロッ
ク図、第5,7図は本発明に係る図形データの構成例を示
す説明図、第6図は本発明に係る第2の実施例の要部構
成を示すブロック図、第8図は本発明に係る図形処理装
置の要部構成を示すブロック図である。 1……メモリ、2,85……ディスプレイ制御装置、3……
ビットマップメモリ、4……D/A変換器、5……ディス
プレイ装置、81……入力手段、82……図形データ生成手
段、83……図形データ記憶手段、86……ドット情報記憶
手段、87……ドット情報表示手段、211,212……図形の
大きさを算出する手段、213……大きさ判定手段、221,2
22,223……第1の演算手段、231,232……第2の演算手
段、233……第3の演算手段。
FIG. 1 is a block diagram showing a configuration of a main part of a first embodiment of the present invention, FIGS. 2A, 2B, 3A and 3B are plan views showing a drawing example according to the prior art, and FIG. FIG. 5 is a block diagram showing an example of the configuration of graphic data according to the present invention; FIG. 6 is a block diagram showing a main part configuration of a second embodiment according to the present invention; FIG. 8 is a block diagram showing a main configuration of a graphic processing apparatus according to the present invention. 1 ... Memory, 2,85 ... Display control device, 3 ...
Bit map memory, 4 ... D / A converter, 5 ... Display device, 81 ... Input means, 82 ... Graphic data generation means, 83 ... Graphic data storage means, 86 ... Dot information storage means, 87 ... dot information display means, 211, 212 ... means for calculating the size of the figure, 213 ... size determination means, 221, 2
22,223... First arithmetic means, 231,232... Second arithmetic means, 233... Third arithmetic means.

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】2次元または3次元の図形データをラスタ
ーグラフィックスディスプレイのビットマップメモリに
ドット展開し、該ビットマップメモリに展開されたデー
タを画面表示する図形描画方法において、前記2次元ま
たは3次元の図形データをビットマップメモリにドット
展開するまえに、展開後の縦及びまたは横のドット数が
定められた判定基準値より大きくなるか小さくなるかを
判定する手順と、小さくなると判定されたときにラスタ
ーアルゴリズムを用いることなく前記ドット展開を行な
う手順と、を含むことを特徴とする図形描画方法。
1. A graphic drawing method in which two-dimensional or three-dimensional graphic data is dot-developed in a bitmap memory of a raster graphics display and the data developed in the bitmap memory is displayed on a screen. A step of determining whether the number of vertical and / or horizontal dots after expansion is larger or smaller than a predetermined determination reference value before developing the dimensional graphic data into the bitmap memory; Sometimes performing the dot development without using a raster algorithm.
【請求項2】図形データに、当該図形の図形定義平面上
の大きさもしくはビットマップメモリ上での大きさを表
わすデータを含み、該データが展開後の縦及びまたは横
のドット数が定められた判定基準値より大きくなるか小
さくなるかを判定するのに用いられることを特徴とする
請求項1に記載の図形描画方法。
2. The graphic data includes data representing the size of the graphic on a graphic definition plane or the size on a bit map memory, and the data defines the number of vertical and / or horizontal dots after expansion. 2. The graphic drawing method according to claim 1, wherein the method is used to determine whether the value is larger or smaller than the determined reference value.
【請求項3】表示しようとする図形に外接する最小の矩
形を定義する座標を求める手順を含み、展開後の縦及び
または横のドット数が定められた判定基準値より大きく
なるか小さくなるかを判定するのに、求められた前記座
標が用いられることを特徴とする請求項1に記載の図形
描画方法。
3. A method for determining coordinates defining a minimum rectangle circumscribing a graphic to be displayed, wherein whether the number of vertical and / or horizontal dots after expansion is larger or smaller than a predetermined determination reference value. 2. The graphic drawing method according to claim 1, wherein the determined coordinates are used to determine.
【請求項4】図形データを記憶するメモリと、該メモリ
に接続され前記図形データを座標変換及びまたは平行移
動したのちビットマップメモリ上にラスタアルゴリズム
を用いてドット展開する第1の演算手段を含むディスプ
レイ制御装置と、該ディスプレイ制御装置に接続された
ビットマップメモリと、該ビットマップメモリにD/A変
換器を介して接続され前記ビットマップメモリに展開さ
れたデータを画像として表示するディスプレイ装置と、
を含んでなる図形描画装置において、前記ディスプレイ
制御装置は、前記図形データにより定義される図形のビ
ットマップメモリ上での大きさを算出する手段と、算出
された前記大きさが予め定められた判定基準値より大き
いか小さいかを比較する大きさ判定手段と、該大きさ判
定手段に接続され前記図形データを座標変換及びまたは
平行移動する第2の演算手段と、該第2の演算手段に接
続され第2の演算手段の演算結果を直接ビットマップメ
モリ上にドット展開する第3の演算手段と、を含み、前
記第1の演算手段は前記大きさ判定手段が大きいと判定
したとき演算を行い、前記第2、第3の演算手段は前記
大きさ判定手段が小さいと判定したとき演算を行うよう
構成されていることを特徴とする図形描画装置。
4. A memory for storing graphic data, and first arithmetic means connected to the memory for performing coordinate conversion and / or translation of the graphic data and then developing dots on a bitmap memory using a raster algorithm. A display control device, a bitmap memory connected to the display control device, and a display device connected to the bitmap memory via a D / A converter and displaying data developed in the bitmap memory as an image. ,
Wherein the display control device calculates a size of a graphic defined by the graphic data on a bitmap memory, and determines that the calculated size is predetermined. Size determining means for comparing whether the value is larger or smaller than a reference value, second calculating means connected to the size determining means for performing coordinate transformation and / or parallel translation of the graphic data, and connected to the second calculating means And a third calculating means for directly developing the calculation result of the second calculating means in a dot map memory on a bit map memory basis, wherein the first calculating means performs a calculation when the size determining means determines that the size is large. Wherein the second and third calculation means are configured to perform calculation when the size determination means determines that the size is small.
JP477290A 1990-01-12 1990-01-12 Graphic drawing method and apparatus Expired - Lifetime JP2787497B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP477290A JP2787497B2 (en) 1990-01-12 1990-01-12 Graphic drawing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP477290A JP2787497B2 (en) 1990-01-12 1990-01-12 Graphic drawing method and apparatus

Publications (2)

Publication Number Publication Date
JPH03209580A JPH03209580A (en) 1991-09-12
JP2787497B2 true JP2787497B2 (en) 1998-08-20

Family

ID=11593134

Family Applications (1)

Application Number Title Priority Date Filing Date
JP477290A Expired - Lifetime JP2787497B2 (en) 1990-01-12 1990-01-12 Graphic drawing method and apparatus

Country Status (1)

Country Link
JP (1) JP2787497B2 (en)

Also Published As

Publication number Publication date
JPH03209580A (en) 1991-09-12

Similar Documents

Publication Publication Date Title
JP2865751B2 (en) Display screen scrolling method
US4975976A (en) Image transformation method and device
KR100547258B1 (en) Method and apparatus for the anti-aliasing supersampling
US6271875B1 (en) Three-dimensional image processing apparatus and three-dimensional image processing method
JP2793466B2 (en) Variable image enlargement method and apparatus
US6894695B2 (en) Apparatus and method for acceleration of 2D vector graphics using 3D graphics hardware
JPH0660173A (en) Method and apparatus for reducing picture
US6445386B1 (en) Method and apparatus for stretch blitting using a 3D pipeline
JP2634851B2 (en) Image processing device
KR100420402B1 (en) Graphics drawing device of processing drawing data including rotation target object and non-rotation target object
KR0179354B1 (en) Texture mapping method and image processing apparatus
JP2787497B2 (en) Graphic drawing method and apparatus
KR0166106B1 (en) Apparatus and method for image processing
US20010055015A1 (en) Area and span based Z-buffer
KR100393305B1 (en) Recording medium having recorded thereon three-dimensional graphics drawing data having data structure shareable by frames and method of drawing such data
JP3747859B2 (en) Image processing apparatus and method
US11869123B2 (en) Anti-aliasing two-dimensional vector graphics using a compressed vertex buffer
JPH03233781A (en) Three-dimensional image display system
JPH0535912B2 (en)
JP4419480B2 (en) Image processing apparatus and method
JPH01200481A (en) Picking method for three-dimensional graphic
JPH0350686A (en) Graphic processing system
JP3311905B2 (en) Image processing device
JPH0346826B2 (en)
JPH08335273A (en) Image generating device