Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2779265B2 - Grid processing method - Google Patents
[go: Go Back, main page]

JP2779265B2 - Grid processing method - Google Patents

Grid processing method

Info

Publication number
JP2779265B2
JP2779265B2 JP33481090A JP33481090A JP2779265B2 JP 2779265 B2 JP2779265 B2 JP 2779265B2 JP 33481090 A JP33481090 A JP 33481090A JP 33481090 A JP33481090 A JP 33481090A JP 2779265 B2 JP2779265 B2 JP 2779265B2
Authority
JP
Japan
Prior art keywords
marker
extension amount
processing
grid
point
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
JP33481090A
Other languages
Japanese (ja)
Other versions
JPH04205391A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP33481090A priority Critical patent/JP2779265B2/en
Publication of JPH04205391A publication Critical patent/JPH04205391A/en
Application granted granted Critical
Publication of JP2779265B2 publication Critical patent/JP2779265B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Description

【発明の詳細な説明】 [概要] 図形処理装置におけるグリッド処理方式に関し、 グリッド拡張の処理性能を向上させることができるグ
リッド処理方式を提供することを目的とし、 ホストコンピュータからのデータを格納する図形デー
タメモリと、データを解析しベクトルデータの発生のた
めのコマンドを発行する図形処理プロセッサと、コマン
ドに対応するベクトルデータをピクセルデータとして生
成する画像データ生成プロセッサと、ピクセルデータを
格納する画像データメモリを備えた画像処理装置におい
て、 前記図形処理プロセッサ内に、行を第一コーナ側を始
点、第二コーナ側にあって始点と隣り合うマーカを終点
とする1個の線分とみて指定領域に対する延長、クリッ
ピングを行う第1処理手段と、始点側延長量と終点側延
長量の比較により行と指定領域との位置関係を求める第
2処理手段と、始点側延長量と終点側延長量の差の大き
さにより拡張の方向を決める第3処理手段と、最初のマ
ーカの番号と最後のマーカの番号の比較により指定領域
内にマーカが存在するか否かを判定する第4処理手段を
備え、 指定領域全体にグリッドを拡張するように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] Regarding a grid processing method in a graphic processing apparatus, an object of the present invention is to provide a grid processing method capable of improving the processing performance of grid expansion, and to store data from a host computer. A data memory, a graphics processing processor that analyzes data and issues a command for generating vector data, an image data generation processor that generates vector data corresponding to the command as pixel data, and an image data memory that stores pixel data In the graphic processing processor, a line is regarded as one line segment having a start point on the first corner side and a marker on the second corner side adjacent to the start point as an end point. First processing means for extending and clipping, starting point extension amount and end point extension A second processing means for obtaining the positional relationship between the line and the designated area by comparing the above, a third processing means for determining the direction of expansion based on the difference between the start-side extension amount and the end-point extension amount, and the number of the first marker And a fourth processing unit that determines whether or not a marker exists in the designated area by comparing the number of the last marker with the number of the last marker, and extends the grid over the entire designated area.

[産業上の利用分野] 本発明は、図形処理装置におけるグリッド処理方式に
関する。
The present invention relates to a grid processing method in a graphic processing device.

図形処理装置において、グリッドをある指定領域全体
に拡張するときは、グリッドの各行を離散点の集合とし
て捉え、指定領域内に入る点が存在するか否かでグリッ
ドをさらに拡張するか止めるかを判定していたため、拡
張領域を持つ必要があり、処理性能が低下していた。
In the graphic processing device, when extending the grid to a certain specified area, each row of the grid is regarded as a set of discrete points, and it is determined whether the grid is further expanded or stopped depending on whether there is a point falling within the specified area. Because it was determined, it was necessary to have an extended area, and the processing performance was degraded.

したがって、グリッドの拡張処理の高速化を図ること
が必要である。
Therefore, it is necessary to speed up grid expansion processing.

[従来の技術] 第9図(A)に非拡張のグリッドを、第9図(B)に
拡張したグリッドを、それぞれ示す。
[Prior Art] FIG. 9 (A) shows a non-expanded grid, and FIG. 9 (B) shows an expanded grid.

グリッドは、第一、第二、第三の3つのコーナと、第
一、第二コーナで決まる辺(これを以下、行とよぶ)上
のマーカ数と、第一、第三コーナで決まる辺(これを以
下、列と呼ぶ)上のマーカ数と、3コーナで決まる(長
方形を含む)平行四辺形内に限定するか、別に指定され
た領域全体に拡張するかを指定する範囲モードを、パラ
メータとして有する。
The grid consists of the first, second, and third corners, the number of markers on the side determined by the first and second corners (hereinafter referred to as a row), and the side determined by the first and third corners. The number of markers above (hereinafter referred to as a column) and a range mode that specifies whether to limit it to a parallelogram (including a rectangle) determined by three corners or to extend over the entire area specified separately, Has as a parameter.

なお、以下ではグリッドの3つのコーナのどの2つも
一致することはなく、また、各辺のマーカ数は2以上で
あるとする。
In the following, it is assumed that no two of the three corners of the grid match, and that the number of markers on each side is two or more.

第9図(A),(B)では、第一〜第三コーナが〜
の位置に与えられ、行方向、列方向のマーカ数が4個
と3個の場合のグリッドを示す。
In FIGS. 9A and 9B, the first to third corners are
Are shown in FIG. 3 and the number of markers in the row and column directions is four and three.

次に、前記行の位置関係を第10図に示す。 Next, the positional relationship between the rows is shown in FIG.

第10図において、第n番目の行(n=0,±1,±2・・
・)の位置関係は、第一、第二コーナを結ぶ線分上に並
ぶマーカの列を第0番目の行とし、そこから第三コーナ
に向って1,2・・・、第三コーナと反対方向に向って−
1,−2,・・・と、各行に番号付けを行うことにより決定
する。
In FIG. 10, the n-th row (n = 0, ± 1, ± 2...
The positional relationship of ()) is such that the line of the marker arranged on the line connecting the first and second corners is the 0th row, and from there, toward the third corner, 1,2. In the opposite direction-
It is determined by numbering each line as 1, -2, ....

第10図のグリッドに対し、第11図に示すように、実線
の領域が指定されたとき、同じパターンを与える最小の
グリッド分だけ元の領域(指定領域)を拡張した点線の
領域を、以下拡張領域という。
As shown in FIG. 11, with respect to the grid of FIG. 10, when a solid line area is designated, a dotted line area obtained by expanding the original area (designated area) by the minimum grid that gives the same pattern is defined as It is called an extended area.

次に、グリッドをある指定領域全体に拡張する場合の
処理のアルゴリズムを第12図A〜Cに示す。
Next, FIGS. 12A to 12C show an algorithm of a process in a case where the grid is extended to an entire specified area.

第12図(A〜C)において、第0番目の辺を延長した
とき、拡張領域内にマーカがあり、かつ、第0番目の辺
を延長したとき、元の領域内にマーカがあるとき、マー
カを描画し、nを1として、第n番目の辺を延長したと
き、拡張領域内にマーカがあり、かつ、第n番目の辺を
延長したとき、その領域内にマーカがあるとき、マーカ
を描画する。
In FIG. 12 (A to C), when the 0th side is extended, there is a marker in the extended area, and when the 0th side is extended, there is a marker in the original area, When a marker is drawn and n is set to 1 and the n-th side is extended, a marker is present in the extended area, and when the n-th side is extended and a marker is present in the area, a marker is provided. To draw.

また、第−n番目のときも同様の場合にマーカを描画
し、n+1として処理を続行し、最後に、第n番目の辺
を延長したとき、拡張領域内にマーカがないときは終了
とする。
In the same case, the marker is drawn at the time of the −n-th time, the processing is continued as n + 1, and when the n-th side is last extended, and when there is no marker in the extended area, the processing is terminated. .

ここで、第13図に示すように、元の領域でのチェック
のみだと、第1番目の行で元の領域内にマーカが存在し
ないため、第2番目以降の行の処理が行われず、第三コ
ーナの位置にあるマーカが描画されない。このような場
合を回避するために、一つの行に対して拡張領域と元の
領域の両方にマーカが存在するか否かを調べて、処理を
行っていた。
Here, as shown in FIG. 13, if only the check is performed in the original area, since the marker does not exist in the original area in the first row, the processing of the second and subsequent rows is not performed. The marker at the position of the third corner is not drawn. In order to avoid such a case, the processing is performed by checking whether or not a marker exists in both the extended area and the original area for one row.

[発明が解決しようとする課題] しかしながら、このような従来のグリッド処理方式に
あっては、各行について元の領域と拡張領域の2つの領
域でマーカが存在するか否かを判定する必要があるた
め、グリッドの行数が多くなると、グリッド拡張の処理
性能が低下するという問題点があった。
[Problem to be Solved by the Invention] However, in such a conventional grid processing method, it is necessary to determine whether or not a marker exists in each of two regions of an original region and an extended region. Therefore, when the number of rows of the grid is increased, there is a problem that the processing performance of grid expansion is reduced.

本発明は、このような従来の問題点に鑑みてなされた
ものであって、グリッド拡張の処理性能を向上させるこ
とができるグリッド処理方式を提供することを目的とし
ている。
The present invention has been made in view of such conventional problems, and has as its object to provide a grid processing method capable of improving the processing performance of grid expansion.

[課題を解決するための手段] 第1図は本発明の原理説明図である。[Means for Solving the Problems] FIG. 1 is an explanatory view of the principle of the present invention.

第1図において、5はホストコンピュータからのデー
タを格納する図形データメモリ、6はデータを解析しベ
クトルデータの発生のためのコマンドを発行する図形処
理プロセッサと、7はコマンドに対応するベクトルデー
タをピクセルデータとして生成する画像データ生成プロ
セッサ、8はピクセルデータを格納する画像データメモ
リ、6Aは行を第一コーナ側を始点、第二コーナ側を終点
とする1個の線分とみて指定領域に対する延長、クリッ
ピングを行う第1処理手段、6Bは始点側延長量と終点側
延長量の比較により行と指定領域との位置関係を求める
第2処理手段、6Cは始点側延長量と終点側延長量の差の
大きさにより拡張の方向を決める第3処理手段、6Dは最
初のマーカの番号と最後のマーカの番号の比較により指
定領域内にマーカが存在するか否かを判定する第4処理
手段である。
In FIG. 1, 5 is a graphic data memory for storing data from a host computer, 6 is a graphic processor for analyzing data and issuing a command for generating vector data, and 7 is for storing vector data corresponding to the command. An image data generation processor that generates pixel data, 8 is an image data memory that stores pixel data, 6A is a line segment having a line as a start point on the first corner side and an end point on the second corner side, and First processing means for performing extension and clipping, 6B is second processing means for obtaining the positional relationship between the line and the designated area by comparing the start-side extension amount and the end-point extension amount, and 6C is the start-point extension amount and the end-point extension amount The third processing means for determining the direction of expansion based on the magnitude of the difference between the first marker and the last marker has a marker in the designated area by comparing the number of the first marker with the number of the last marker. A fourth processing means for determining whether or not to.

[作用] 本発明においては、行を第一コーナ側を始点、第二コ
ーナ側にあって始点と隣り合うマーカを終点とする1個
の線分と見て、その線分に対して、Cyrus−Beckのアル
ゴリズムを使用して、指定領域に対する延長、クリッピ
ングを行う。
[Operation] In the present invention, a line is regarded as one line segment starting at the first corner side and ending at a marker adjacent to the starting point on the second corner side, and the line segment is regarded as Cyrus. -Extend and clip the specified area using Beck's algorithm.

次に、始点側延長量と終点側延長量の大小比較から、
行と指定領域との位置関係を求める。
Next, from the comparison of the starting point extension amount and the ending point extension amount,
Find the positional relationship between a line and a specified area.

始点側延長量≦終点側延長量であるときは、行と指定
領域は共通部分を持つと判断して、指定領域内にマーカ
が存在するか否かを調べる。
If the start point side extension amount ≦ the end point side extension amount, it is determined that the line and the designated area have a common part, and it is checked whether or not a marker exists in the designated area.

最初のマーカの番号≦最後のマーカの番号であるとき
は、指定領域内にマーカが存在すると判断してマーカの
描画を行う。
If the first marker number ≦ the last marker number, it is determined that the marker exists in the designated area, and the marker is drawn.

始点側延長量>終点側延長量のときは、行と指定領域
は共通部分を持たないと判断する。この場合には始点側
延長量−終点側延長量を求め、保持しておき、次の行も
指定領域と共通部分がなく、始点側延長量−終点側延長
量の値が大きくなっているときは、その方向は指定領域
から遠ざかる方向であると判断して、その方向への拡張
を打ち切る。
If the starting point extension amount> the ending point extension amount, it is determined that the line and the designated area do not have a common part. In this case, the start-side extension amount-the end-point extension amount is obtained and held, and the next line has no common part with the designated area, and the value of the start-point extension amount-the end-point extension amount is large. Determines that the direction is away from the designated area, and terminates expansion in that direction.

このように、本発明においては、従来のように各行に
ついて2つの領域での判定を行う必要がないので、グリ
ッドの行数が多くなってもグリッド拡張の処理性能を向
上させることができる。
As described above, in the present invention, it is not necessary to make a determination in two regions for each row as in the related art, so that the processing performance of grid expansion can be improved even if the number of grid rows increases.

[実施例] 以下、本発明の実施例を図面に基づいて説明する。[Example] Hereinafter, an example of the present invention will be described with reference to the drawings.

第2図〜第8図は本発明の一実施例を示す図である。 2 to 8 are views showing an embodiment of the present invention.

第2図において、1はホストコンピュータ2に接続さ
れたインタフェースプロセッサであり、インタフェース
プロセッサ1はホストコンピュータ1から送られてきた
図形オーダやデータをアドレスバス3およびデータバス
4を介して図形データメモリ5に格納する。
In FIG. 2, reference numeral 1 denotes an interface processor connected to a host computer 2. The interface processor 1 transfers a graphic order and data sent from the host computer 1 to a graphic data memory 5 via an address bus 3 and a data bus 4. To be stored.

6は図形処理プロセッサであり、図形処理プロセッサ
6は図形データメモリ5内に格納されたデータなどを解
析し、ベクトルデータの発生のためのコマンドを画像デ
ータ生成プロセッサ7に発行する。
Reference numeral 6 denotes a graphic processor. The graphic processor 6 analyzes data and the like stored in the graphic data memory 5 and issues a command for generating vector data to the image data generation processor 7.

画像データ生成プロセッサ7は、図形処理プロセッサ
6から発行されたコマンドに対応するベクトルデータを
ピクセルデータとして生成し、画像データメモリ8に書
き込む。画像データメモリ8に書き込まれたピクセルデ
ータはCRT9に表示される。
The image data generation processor 7 generates vector data corresponding to the command issued from the graphic processor 6 as pixel data, and writes the pixel data to the image data memory 8. The pixel data written in the image data memory 8 is displayed on the CRT 9.

前記図形処理プロセッサ6は、グリッド拡張処理を行
うもので、行を第一コーナ側を始点、第二コーナ側にあ
って始点と隣り合うマーカを終点とする1個の線分とみ
て指定領域に対する延長、クリッピングを行う第1処理
手段6Aと、始点側延長量と終点側延長量の比較により行
と指定領域との位置関係を求める第2処理手段6Bと、始
点側延長量と終点側延長量の差の大きさにより拡張の方
向を決める第3処理手段6Cと、最初のマーカの番号と最
後のマーカの番号の比較により指定領域内にマーカが存
在するか否かを判定する第4処理手段6Dとしての機能を
有している。
The graphic processing processor 6 performs a grid expansion process, and regards a line as a single line segment having a first corner side as a start point and a marker on the second corner side adjacent to the start point as an end point. First processing means 6A for performing extension and clipping, second processing means 6B for obtaining a positional relationship between a line and a specified area by comparing a start-side extension amount and an end-point extension amount, a start-point extension amount and an end-point extension amount A third processing means 6C for determining the direction of expansion according to the magnitude of the difference between the first and second markers, and a fourth processing means for determining whether or not a marker exists in the designated area by comparing the number of the first marker with the number of the last marker. Has the function of 6D.

次に、動作を説明する。 Next, the operation will be described.

まず、行を第一コーナ側を始点、第二コーナ側にあっ
て第1コーナと隣り合うマーカを終点とする1個の線分
と見て、その線分に対してCyrus−Beckのアルゴリズム
を使用して、指定領域に対する延長、またはクリッピン
グを行うが、このCyrus−Beckのアルゴリズムの処理結
果を第3図(A),(B)に示す。
First, a line is regarded as one line segment starting at the first corner and ending at a marker adjacent to the first corner on the second corner, and the Cyrus-Beck algorithm is applied to the line. This is used to extend or clip the designated area. The processing results of the Cyrus-Beck algorithm are shown in FIGS. 3 (A) and 3 (B).

ここでは始点側、終点側へのCyrus−Beckのアルゴリ
ズムの結果を、以下、それぞれ始点側延長量、終点側延
長量と呼ぶ。
Here, the results of the Cyrus-Beck algorithm for the start point side and the end point side are hereinafter referred to as a start point side extension amount and an end point side extension amount, respectively.

第3図(A)に示すように、行と領域が共通部分を持
つ場合には、例えば、始点側延長量は−1、終点側延長
量は3.5となる。また、第3図(B)に示すように、行
と領域が共通部分を持たない場合には、例えば始点側延
長量は3.5、終点側延長量は2となる。
As shown in FIG. 3A, when the row and the area have a common portion, for example, the start-side extension amount is -1 and the end-point extension amount is 3.5. In addition, as shown in FIG. 3B, when the line and the area do not have a common portion, for example, the start-side extension amount is 3.5 and the end-point extension amount is 2.

次に、グリッド拡張処理を第4図〜第8図に示すフロ
ーチャートにより説明する。
Next, the grid extension processing will be described with reference to the flowcharts shown in FIGS.

第4図は第0行目の辺の処理を示す。 FIG. 4 shows processing on the side of the 0th row.

第4図において、まず、ステップS1で第0番目の行に
対する延長またはクリッピングをCyrus−Beckのアルゴ
リズムにより行う。次に、ステップS2で始点側延長量≦
終点側延長量であるか否かを判別し、始点側延長量≦終
点側延長量のときは、行と指定領域は共通部分を持つと
判断し、指定領域内にマーカが存在するか否かを調べる
ために、ステップS3へ進む。
In FIG. 4, first, in step S1, extension or clipping of the 0th row is performed by the Cyrus-Beck algorithm. Next, in step S2, the starting-side extension amount ≦
It is determined whether or not the extension amount on the end point side. If the extension amount on the start point side ≦ the extension amount on the end point side, it is determined that the line and the designated area have a common part, and whether or not a marker exists in the designated area. The process proceeds to step S3 to check.

ステップS3では第三コーナ側処理結果を0、反第三コ
ーナ側処理結果を0として、ステップS4で最初のマーカ
の番号および最後のマーカの番号を計算する。
In step S3, the third corner side processing result is set to 0, and the anti-third corner side processing result is set to 0, and in step S4, the number of the first marker and the number of the last marker are calculated.

すなわち、始点を0番とし、以下終点まで1,2,・・・
とマーカに番号を付けたときに、指定領域内に入る最初
のマーカの番号を始点側延長量の小数部分を切り上げた
値で与え、指定領域内に入る最後のマーカの番号を終点
側延長量の小数部分を切り下げた値で与える。
In other words, the starting point is numbered 0, and then the end point is 1, 2, ...
When the markers are numbered, the number of the first marker entering the specified area is given by the value obtained by rounding up the decimal part of the starting extension, and the number of the last marker entering the designated area is the ending extension. The fractional part of is rounded down.

次に、ステップS5で最初のマーカの番号≦最後のマー
カの番号であるか否かを判定し、最初のマーカの番号≦
最後のマーカの番号のときは、指定領域内にマーカが存
在するとして、ステップS6でマーカを描画し、最初のマ
ーカの番号>最後のマーカの番号のときは、指定領域内
にマーカは存在しないとして、第5図のステップS11に
進む。
Next, in step S5, it is determined whether or not the first marker number ≦ the last marker number, and the first marker number ≦
If the last marker number, the marker is drawn in the designated area assuming that the marker exists in the designated area. If the first marker number> the last marker number, no marker exists in the designated area. The process proceeds to step S11 in FIG.

ステップS2で始点側延長量>終点側延長量のときは、
行と指定領域は共通部分を持たないので、この場合に
は、ステップS7で始点側延長量−終点側延長量を求め
て、第三コーナ側処理結果および反第三コーナ側処理結
果として保持しておく。
In step S2, if the start point extension amount> the end point extension amount,
Since the line and the specified area do not have a common part, in this case, the starting point side extension amount−the ending point side extension amount is obtained in step S7 and held as the third corner side processing result and the anti-third corner side processing result. Keep it.

次に、第5図に示す、両方向への拡張のうちの第三コ
ーナ側への拡張処理に入る。ステップS11でnを1とし
て、前記と同様な処理を行って、ステップS17でマーカ
を描画し、第6図に示す、両方向への拡張のうちの反第
三コーナ側への拡張処理に入る。そして、ステップS27
でnをn+1としてステップS12に戻り、両方向への拡
張処理を続行する。
Next, the process of expanding to the third corner of the expansion in both directions shown in FIG. 5 is started. In step S11, n is set to 1 and the same process as described above is performed. In step S17, a marker is drawn, and the process of expanding to the third third corner side in the bidirectional expansion shown in FIG. 6 is started. Then, step S27
Then, n is set to n + 1, and the process returns to step S12 to continue the expansion process in both directions.

そして、第5図において、ステップS13で始点側延長
量>終点側延長量となったら、ステップS18で始点側延
長量−終点側延長量を求めて、ステップS19で第三コー
ナ側処理結果と前記処理結果を比較し、第三コーナ側処
理結果<処理結果のときは、この方向は指定領域から遠
ざかる方向であると判断して、第8図の反第三コーナ側
のみへの拡張に入る。ここでも、前記と同じようにマー
カの描画を続行し、ステップS53で始点側延長量>終点
側延長量になったら、ステップS59で始点側延長量−終
点側延長量を求め、ステップS60で反第三コーナ側処理
結果<前記処理結果のときは、終了とする。
In FIG. 5, when the starting point side extension amount> the ending point side extension amount in step S13, the starting point side extension amount−the ending point side extension amount is obtained in step S18, and the third corner side processing result and the aforementioned The processing results are compared, and if the processing result on the third corner side <the processing result, it is determined that this direction is a direction away from the designated area, and the process proceeds to the extension to only the anti-third corner side in FIG. In this case as well, the drawing of the marker is continued in the same manner as described above, and if the extension on the start side> the extension on the end point in step S53, the extension on the start side−the extension on the end point is obtained in step S59, and When the third corner side processing result <the processing result, the processing is terminated.

同様に、第6図の、両方向への拡張のうちの反第三コ
ーナ側への拡張において、ステップS29で反第三コーナ
側処理結果<処理結果のときは、この方向は指定領域か
ら遠ざかる方向であると判断して、第7図に示す、第三
コーナ側のみへの拡張に入る。第7図において、ステッ
プS40で第三コーナ側処理結果<処理結果のときは、終
了とする。
Similarly, in the expansion to the anti-third corner side of the expansion in both directions in FIG. 6, if the anti-third corner side processing result <processing result in step S29, this direction is a direction away from the designated area. Therefore, the process proceeds to the expansion to only the third corner side shown in FIG. In FIG. 7, when the third corner side processing result <processing result in step S40, the process ends.

本実施例においては、従来のように、各行について2
つの領域での判定を行う必要がないので、グリッドの行
数が多くなっても、処理性能を向上させることができ
る。
In this embodiment, as in the conventional case, 2
Since there is no need to make a determination in one area, the processing performance can be improved even if the number of rows in the grid increases.

[発明の効果] 以上説明してきたように、本発明によれば、各行を連
続な線分として捉え、連続な線分に対する延長、クリッ
ピングを行って、グリッド拡張処理を行うようにしたた
め、処理性能を向上させることができる。
[Effects of the Invention] As described above, according to the present invention, each line is regarded as a continuous line segment, and the continuous line segment is extended and clipped to perform grid expansion processing. Can be improved.

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

第1図は本発明の原理説明図、 第2図は本発明の一実施例を示す図、 第3図(A),(B)はCyrus−Beckのアルゴリズムに
よる処理結果を示す図、 第4図は第0行目の辺の処理を示すフローチャート、 第5図は両方向への拡張のうちの第三コーナ側への拡張
を示すフローチャート、 第6図は両方向への拡張のうちの反第三コーナ側への拡
張を示すフローチャート、 第7図は第二コーナ側のみへの拡張を示すフローチャー
ト、 第8図は反第三コーナ側のみへの拡張を示すフローチャ
ート、 第9図(A),(B)はグリッドの説明図、 第10図は行の位置関係の説明図、 第11図は拡張領域の説明図、 第12図(A〜C)は従来のグリッド拡張処理を示すフロ
ーチャート、 第13図は拡張領域でのチェックを除けないことを示す説
明図である。 図中、 1…インタフェースプロセッサ、2…ホストコンピュー
タ、3…アドレスバス、4…データバス、5…図形デー
タメモリ、6…図形処理プロセッサ、6A〜6D…第1〜第
4処理手段、7…画像データ生成プロセッサ、8…画像
データメモリ、9…CRT。
FIG. 1 is a diagram for explaining the principle of the present invention, FIG. 2 is a diagram showing an embodiment of the present invention, FIGS. 3 (A) and 3 (B) are diagrams showing processing results by the Cyrus-Beck algorithm, FIG. Fig. 5 is a flowchart showing the processing of the side of the 0th row. Fig. 5 is a flowchart showing the extension to the third corner side of the extension in both directions. Fig. 6 is an anti-third of the extension in both directions. 7 is a flowchart showing extension to the second corner side only, FIG. 7 is a flowchart showing extension to the third corner side only, FIG. 9 (A), FIG. B) is an explanatory diagram of a grid, FIG. 10 is an explanatory diagram of a positional relationship between rows, FIG. 11 is an explanatory diagram of an extended area, FIG. 12 (A to C) is a flowchart showing a conventional grid extending process, FIG. The figure is an explanatory view showing that it is not possible to remove the check in the extended area. In the drawing, 1 ... Interface processor, 2 ... Host computer, 3 ... Address bus, 4 ... Data bus, 5 ... Graphic data memory, 6 ... Graphic processor, 6A to 6D ... First to fourth processing means, 7 ... Image Data generation processor, 8 image data memory, 9 CRT.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ホストコンピュータからのデータを格納す
る図形データメモリ(5)と、データを解析しベクトル
データの発生のためのコマンドを発行する図形処理プロ
セッサ(6)と、コマンドに対応するベクトルデータを
ピクセルデータとして生成する画像データ生成プロセッ
サ(7)と、ピクセルデータを格納する画像データメモ
リ(8)を備えた画像処理装置において、 前記図形処理プロセッサ(6)内に、行を第一コーナ側
を始点、第二コーナ側にあって始点と隣り合うマーカを
終点とする1個の線分とみて指定領域に対する延長、ク
リッピングを行う第1処理手段(6A)と、始点側延長量
と終点側延長量の比較により行と指定領域との位置関係
を求める第2処理手段(6B)と、始点側延長量と終点側
延長量の差の大きさにより拡張の方向を決める第3処理
手段(6C)と、最初のマーカの番号と最後のマーカの番
号の比較により指定領域内にマーカが存在するか否かを
判定する第4処理手段(6D)を備え、 指定領域全体にグリッドを拡張することを特徴とするグ
リッド処理方式。
1. A graphic data memory (5) for storing data from a host computer, a graphic processor (6) for analyzing data and issuing a command for generating vector data, and a vector data corresponding to the command. An image processing apparatus comprising: an image data generation processor (7) for generating pixel data as pixel data; and an image data memory (8) for storing pixel data. A first processing means (6A) for extending and clipping a specified area as one line segment having a marker adjacent to the start point on the second corner side as an end point, and a start point side extension amount and an end point side Second processing means (6B) for determining the positional relationship between the line and the designated area by comparing the extension amounts, and extending by the difference between the start-side extension amount and the end-point extension amount A third processing means (6C) for determining a direction; and a fourth processing means (6D) for determining whether or not a marker exists in the designated area by comparing the number of the first marker and the number of the last marker, A grid processing method characterized by extending the grid over the entire specified area.
JP33481090A 1990-11-30 1990-11-30 Grid processing method Expired - Lifetime JP2779265B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33481090A JP2779265B2 (en) 1990-11-30 1990-11-30 Grid processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33481090A JP2779265B2 (en) 1990-11-30 1990-11-30 Grid processing method

Publications (2)

Publication Number Publication Date
JPH04205391A JPH04205391A (en) 1992-07-27
JP2779265B2 true JP2779265B2 (en) 1998-07-23

Family

ID=18281476

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33481090A Expired - Lifetime JP2779265B2 (en) 1990-11-30 1990-11-30 Grid processing method

Country Status (1)

Country Link
JP (1) JP2779265B2 (en)

Also Published As

Publication number Publication date
JPH04205391A (en) 1992-07-27

Similar Documents

Publication Publication Date Title
JP2779265B2 (en) Grid processing method
US8605112B2 (en) Graphics drawing apparatus, method, and program and recording medium on which the program is recorded
JP2704010B2 (en) Display system, bold line display method, and information processing device
US5093905A (en) Inclined rectangular pattern generating system
JPH05242213A (en) Line graphic drawing device
JP2768370B2 (en) Drawing method
JP3039015B2 (en) Character processor
JP2003303355A (en) Three-dimensional shape processing device, three-dimensional shape processing method, program, and storage medium
JP2980079B2 (en) Three-dimensional image processing apparatus and method
JP2776347B2 (en) Drawing device for printer
JP3807052B2 (en) Graphic drawing apparatus and storage medium
JPS61267096A (en) Smear drawing display unit for polygonal graphic
JP3443840B2 (en) Ruled line output method and ruled line output device
JP2000298729A (en) 2D image generator
JP3089740B2 (en) Line drawing device
JPH02130689A (en) Graphic processor
JP2714114B2 (en) Graphic processing method and graphic system
JP2968886B2 (en) Straight line drawing device
JP3407310B2 (en) Ruled line output method and ruled line output device
JP2537223B2 (en) Graphic processing device
JPH0696223A (en) Tree diagram drawing device
JP3072949B2 (en) Document editing system
JPS6283790A (en) Image processing device
JPH06162213A (en) Rectangular surface painting system
JPH10222695A (en) Drawing apparatus and drawing method