JPH0736146B2 - Random vector processing method - Google Patents

Random vector processing method

Info

Publication number
JPH0736146B2
JPH0736146B2 JP60023967A JP2396785A JPH0736146B2 JP H0736146 B2 JPH0736146 B2 JP H0736146B2 JP 60023967 A JP60023967 A JP 60023967A JP 2396785 A JP2396785 A JP 2396785A JP H0736146 B2 JPH0736146 B2 JP H0736146B2
Authority
JP
Japan
Prior art keywords
data
address
graphic element
area
chain pointer
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
JP60023967A
Other languages
Japanese (ja)
Other versions
JPS61183782A (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.)
Toyo Electric Manufacturing Ltd
Original Assignee
Toyo Electric Manufacturing 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 Toyo Electric Manufacturing Ltd filed Critical Toyo Electric Manufacturing Ltd
Priority to JP60023967A priority Critical patent/JPH0736146B2/en
Publication of JPS61183782A publication Critical patent/JPS61183782A/en
Publication of JPH0736146B2 publication Critical patent/JPH0736146B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、静電式,レーザ式,感熱式などのラスタ走査
型出力装置に関するもので、出図すべき図形要素データ
列が各々の出図位置に関して全く配置されていない順序
で入力される時の処理方法に関する。
The present invention relates to a raster scanning type output device such as an electrostatic type, a laser type, a thermal type, etc., in which each graphic element data string to be output is output. The present invention relates to a processing method when input is performed in an order that is not arranged at all with respect to a drawing position.

〔従来の技術〕[Conventional technology]

最近のコンピュータ利用図形処理システム(例えばCAD
など)の普及および高性能化に伴って、コンピュータシ
ステムの出図装置の高速化,低価格化が必要になり、そ
の一つの手段として従来のペン式xyプロッタ(機械駆動
ベクタ走査型自動製図機)に代えて、出図時間が出図デ
ータに依存せず、且つ比較的短い各種ラスタ走査型出図
装置が開発され知られている。
Recent computer-based graphic processing systems (eg CAD
, Etc. are becoming more popular and higher in performance, it is necessary to speed up and reduce the cost of drawing devices in computer systems. One of the means is the conventional pen-type xy plotter (machine-driven vector scanning automatic drafting machine). In place of the above), various raster scanning type drawing devices which do not depend on the drawing data and have a relatively short drawing time have been developed and known.

普通、このようなラスタ走査型出図装置の場合ラスタ走
査式グラフィックディスプレイと同様の考え方に基づ
き、全出図領域に対応するラスタイメージの記憶装置
(以下フレームメモリと称す)を置き、入力された図形
要素データについて逐次ベクターラスタ変換処理を施し
て、フレームメモリ上に展開して行き、図形要素データ
の終了を検出した後、フレームメモリをラスタ出力モー
ドに切り換え、一度に出図してしまうという方法がとら
れる。
Normally, in the case of such a raster scanning type drawing device, based on the same concept as the raster scanning type graphic display, a raster image storage device (hereinafter referred to as a frame memory) corresponding to the entire drawing region is placed and input. A method of sequentially performing vector raster conversion processing on graphic element data, expanding it on the frame memory, detecting the end of the graphic element data, then switching the frame memory to raster output mode and outputting at once. Is taken.

しかしながら、このような出図装置のうち従来のペン方
式のxyプロッタとの置換を可能にするラスタ分解能を有
する装置においては、全出図領域をフレームメモリに記
憶するためには、その容量は大規模化して実用的ではな
い。
However, in such a drawing device, a device having a raster resolution capable of replacing the conventional pen type xy plotter has a large capacity in order to store the entire drawing region in the frame memory. It is not practical to scale up.

また、大容量外部記憶装置(例えば固定ディスク)をフ
レームメモリとして置く方法もあるが、ベクターラスタ
変換時のランダムアクセスのために高速化は実現できな
い。
There is also a method in which a large-capacity external storage device (for example, a fixed disk) is placed as a frame memory, but the speedup cannot be realized due to random access during vector raster conversion.

それらを回避する手段として、描画装置の走査速度が比
較的遅く出図時間を要することに着目して、2個以上の
比較的小さいフレームメモリを置き、出図時にその小さ
いフレームメモリについてのみベクターラスタ変換処理
を施し、描画装置の出図時間に同期させてその時点で対
応するフレームメモリ内容をラスタ出力する方法が用い
られている。
As a means to avoid them, paying attention to the fact that the scanning speed of the drawing device is relatively slow and the drawing time is required, two or more relatively small frame memories are placed, and only the small frame memories are vector rastered at the time of drawing. A method is used in which conversion processing is performed, and the contents of the corresponding frame memory are raster-output at the time in synchronization with the drawing time of the drawing device.

しかしながら、装置に入力される図形要素データは当然
ペン式のxyプロッタを想定しており、そのデータの並び
の順序は出図される位置に関する配慮が全く払われない
のが普通である。従って、この方法の場合は何らかの手
段により、これからベクターラスタ変換処理を施そうと
するフレームメモリに対応する出図位置に存在する図形
要素データを抽出し、出図順に処理をする必要がある。
However, the graphic element data input to the device is naturally assumed to be a pen-type xy plotter, and it is usual that the arrangement order of the data is not considered at all regarding the position where the data is output. Therefore, in the case of this method, it is necessary to extract the graphic element data existing at the drawing-out position corresponding to the frame memory to be subjected to the vector raster conversion processing by some means, and perform the processing in the drawing-out order.

だが、一般に均質且つ大量な図形要素データを、出図さ
れる位置に関して「並びかえ」(以下ソートと称す)或
いは「小さい領域に割り付け」(以下マッピングと称
す)することは、全図形要素データについてこれらの処
理をする必要上、やはり大きい記憶容量および計算機時
間を要するので、本来の目的である大量高速出図を必ず
しも実現する方法とはいえず、より高速且つ簡便なラン
ダムベクター処理方法が望まれていた。
However, it is generally necessary to "sort" (hereinafter referred to as "sort") or "allocate to a small area" (hereinafter referred to as "mapping") the uniform and large amount of graphic element data for all the graphic element data. Since these processes still require a large storage capacity and computer time, it cannot always be said that the method for realizing the original purpose of large-scale high-speed drawing is realized, and a faster and simpler random vector processing method is desired. Was there.

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

以下、これまでに採られていたソートとマッピングの内
容について説明する。
The contents of sorting and mapping that have been adopted so far will be described below.

先ず、ソート(sort)とはランダムベクターデータを出
力順に並び替えることであり、第6図および第7図を用
いて説明する。
First, sorting means rearranging random vector data in the order of output, which will be described with reference to FIGS. 6 and 7.

第6図はベクター式プロッタによる出力図形例を示す図
で、第7図はラスタ式プロッタによる出力図形例を示す
図であり、両者同じA字形の図形を出力した場合を示し
ている。x軸は垂直方向(用紙搬送方向)を、y軸は水
平方向(用紙搬送と直角方向)を示す。
FIG. 6 is a diagram showing an example of an output graphic by a vector plotter, and FIG. 7 is a diagram showing an example of an output graphic by a raster plotter, showing a case where the same A-shaped graphic is output. The x-axis indicates the vertical direction (paper conveyance direction), and the y-axis indicates the horizontal direction (direction perpendicular to the paper conveyance).

第6図に示したベクター式(ペン式)プロッタによる場
合には、データとして ;点P1→点P2の線分 ;点P2→点P3の線分 ;点P4→点P5の線分 が与えられ、図形出力としては与えられたデータ,
,の順に、点P1から点P2へ、点P2から点P3へ、点P4
から点P5へと描画する。このようにベクター式プロッタ
は入力順に逐次処理をすればよいが、ラスタ式プロッタ
では用紙搬送方向に従った順に処理をしなければならな
い。すなわち、この例ではデータよりもデータの方
を先に処理し、データでは点P4→点P5の線分としてで
はなく点P5→点P4の線分として処理しなければならな
い。
In the case of the vector type (pen type) plotter shown in Fig. 6, the following data are given: point P1 → point P2 line segment; point P2 → point P3 line segment; point P4 → point P5 line segment. , Given data as figure output,
, In order, from point P1 to point P2, from point P2 to point P3, point P4
Draw from to point P5. As described above, the vector plotter may perform the processing sequentially in the input order, but the raster plotter must perform the processing in the order according to the paper conveyance direction. That is, in this example, the data should be processed before the data, and the data should be processed not as the line segment of the point P4 → point P5 but as the line segment of the point P5 → point P4.

従って、第7図に示すラスタ式プロッタによる場合に
は、ソート処理を行いデータの順序を入れ替えると共
に、その内容も次のように変更する。
Therefore, in the case of the raster plotter shown in FIG. 7, the sort process is performed to change the order of the data, and the contents thereof are also changed as follows.

;点P1→点P2の線分 ;点P5→点P4の線分 ;点P2→点P3の線分 このような処理の後ラスタ式プロッタでは用紙搬送方向
の順に描画を行なう。
A line segment from point P1 to point P2; a line segment from point P5 to point P4; a line segment from point P2 to point P3 After such processing, the raster plotter performs drawing in the order of the sheet conveyance direction.

この方式における問題点として、通常の大量な作図デー
タについてこの並べ替え処理を行うには、出力用として
入力と同じ容量の記憶を要するばかりでなく、他に比較
的大きい作業用の記憶容量を必要とし、また、全データ
の比較チェックを行うため、計算時間も膨大なものとな
る。従って、計算機資源の点からも、規模,価格の点か
らも、通常装置側でこの処理を行うのは現実的ではな
い。
The problem with this method is that in order to perform this rearrangement process for a large amount of ordinary drawing data, not only the same storage capacity as the input is required for output, but also a relatively large storage capacity for work is required. Moreover, since all the data are compared and checked, the calculation time becomes enormous. Therefore, it is not practical to perform this processing on the normal device side in terms of computer resources, scale, and price.

次に、マッピング(mapping)とは、出力用の比較的小
さいフレームメモリに対応する矩形領域ごとに、そこに
存在するデータを切り出してグループ化することであ
り、第6図および第7図を用いて説明する。
Next, the mapping is to cut out and group the data existing in each rectangular area corresponding to a relatively small frame memory for output, using FIG. 6 and FIG. Explain.

第6図に示したベクター式プロッタによる図形をラスタ
式プロッタにより出図する場合には、第7図に示すよう
に全体の出力領域を小さいフレームメモリに対応する矩
形領域I,II,IIIに分割し、各々の入力データについて小
さいフレームメモリに対応するどの矩形領域に入るかを
チェックして各矩形領域に分割して記憶する。
When the figure by the vector plotter shown in FIG. 6 is output by the raster plotter, the entire output area is divided into rectangular areas I, II and III corresponding to a small frame memory as shown in FIG. Then, for each input data, it is checked which rectangular area corresponding to the small frame memory is included, and the divided rectangular area is stored.

その際、複数の矩形領域にわたるデータについては、本
例ではデータおよびデータがそれぞれ矩形領域I,II
およびII,IIIにわたっているが、その境界点Q1およびQ2
によりデータを分割しデータを加工して次のように各矩
形領域ごとにグループ分けをする。
At this time, regarding the data over a plurality of rectangular areas, in this example, the data and the data are rectangular areas I and II, respectively.
And II, III, but their boundary points Q1 and Q2
The data is divided by, the data is processed, and each rectangular area is grouped as follows.

グループI;データ;点P1→点Q1の線分 グループII;テータ;点Q1→点P2の線分 データ;点P2→点Q2の線分 データ;点P4→点P5の線分 グループIII;データ;点Q2→点P3の線分 このような処理により全データについて「切り出し」と
「グループ化」が終了すると、用紙搬送方向順にその矩
形領域をベクターラスタ変換しながら出図すればよい。
Group I; data; line segment from point P1 to point Q1 group II; data; line segment data from point Q1 to point P2; line segment data from point P2 to point Q2; line segment from point P4 to point P5 group III; data Line segment from point Q2 to point P3 When "cutout" and "grouping" are completed for all the data by such processing, the rectangular area may be vector raster-converted and output.

この方式における問題点として、通常の大量の作図デー
タ全てについてこの交点処理計算を行うには、やはり膨
大な計算時間を要する。また、グループ分けされた形式
のデータは、入力用の記憶より当然大きい容量が要求さ
れる。従って、計算機資源の点からも、規模,価格の点
からも、通常装置側でこの処理を行うのは現実的ではな
い。
As a problem with this method, a huge amount of calculation time is still required to perform this intersection processing calculation for all of a large amount of ordinary drawing data. Further, the grouped format data is naturally required to have a larger capacity than the input storage. Therefore, it is not practical to perform this processing on the normal device side in terms of computer resources, scale, and price.

本発明は、上記従来の欠点に鑑み、ベクター式プロッタ
用として作成されたランダムベクターデータ列を入力す
るに当り、全データについての並べ替えや交点計算等の
負担の大きい処理を必要とせず、且つ小規模なハードウ
エアで、装置側にて高速にラスタ描画を可能とするため
の処理方法を提供することを目的とするものである。
The present invention, in view of the above conventional drawbacks, when inputting a random vector data sequence created for a vector plotter, does not require heavy processing such as sorting or intersection calculation for all data, and It is an object of the present invention to provide a processing method for enabling raster drawing at high speed on the device side with a small-scale hardware.

〔発明の概要〕[Outline of Invention]

本発明のランダムベクター処理方法は、ラスタ走査式描
画装置と制御用マイクロプロセッサと記憶装置とを有す
るラスタ走査形出図装置において、ラスタ走査式描画装
置に出力する時の処理順序に全てのラスタに対応するチ
ェインポインタを格納し得るチェインポインタテーブル
領域(2b)と、各図形要素ごとにチェインポインタ(2c
1)を持ちランダムベクター全ての図形要素データ(2c
2)を格納する図形要素格納領域(2c)とを確保してお
く。
The random vector processing method of the present invention is applied to all rasters in a processing order when outputting to a raster scanning drawing device in a raster scanning drawing device having a raster scanning drawing device, a control microprocessor and a storage device. A chain pointer table area (2b) that can store the corresponding chain pointer, and a chain pointer (2c
1) with random vector All graphic element data (2c
Reserve a graphic element storage area (2c) for storing 2).

図形要素データ(2c2)を順次図形要素格納領域(2c)
に格納するが、格納に際してチェインポインタテーブル
領域(2b)と、図形要素格納領域(2c)に格納された各
図形要素データ(2c2)に付したチェインポインタ(2c
1)とを結合し、処理順序に反映させる図形要素データ
格納手段による。
Graphic element data (2c2) is sequentially stored in graphic element storage area (2c)
When storing, the chain pointer table area (2b) and the chain pointer (2c) attached to each graphic element data (2c2) stored in the graphic element storage area (2c) are stored.
1) By the graphic element data storage means that combines with and reflects it in the processing order.

これを具体的に説明すると、制御用マイクロプロセッサ
(1)からの図形要素データの読み込みを開始するに先
立ち、チェインポインタテーブル領域(2b)の各記憶番
地の内容を#Nとし、その番地の値を#Nとしておく。
続いて、図形要素データを図形要素格納領域(2c)に順
次格納するが、その図形要素の最初のx軸位置に対応す
るチェインポインタテーブル領域(2b)の番地の内容
を、その図形要素データのチェインポインタとして付す
と共に、その図形要素データの格納番地をそのチェイン
ポインタテーブル領域(2b)の記憶番地に格納する。こ
の作業をチェイン手段の実施と称する。
To explain this concretely, before starting the reading of the graphic element data from the control microprocessor (1), the contents of each storage address of the chain pointer table area (2b) are set to #N, and the value of that address is set. Be designated as #N.
Next, the graphic element data is sequentially stored in the graphic element storage area (2c), but the contents of the address of the chain pointer table area (2b) corresponding to the first x-axis position of the graphic element are stored in the graphic element data. It is attached as a chain pointer, and the storage address of the graphic element data is stored in the storage address of the chain pointer table area (2b). This work is called implementation of chain means.

このようにして全図形要素データの格納を終了した後、
全出図領域を小さいフレームメモリ領域(2d)に対応す
る矩形領域(I,II,III)ごとに区分して、図形要素格納
領域中の図形要素データをフレームメモリ領域(2d)に
記憶させる。フレームメモリ領域(2d)は2個以上あれ
ばよい。
After storing all graphic element data in this way,
The entire drawing area is divided into rectangular areas (I, II, III) corresponding to the small frame memory area (2d), and the graphic element data in the graphic element storage area is stored in the frame memory area (2d). The number of frame memory areas (2d) may be two or more.

すなわち、出図処理時にはチェインポインタテーブル領
域(2b)のアドレス情報に応答して所定の順序処理を実
現するようにした出力手段による。
That is, the output means is adapted to realize a predetermined order process in response to the address information of the chain pointer table area (2b) during the drawing process.

これを具体的に説明すると、チェインポインタテーブル
領域(2b)のうち、現在処理中の矩形領域の最初のx軸
から順に対応する図形要素格納領域(2c)のチェインポ
インタ(2c1)の番地の内容が、そのデータの番地を指
しているかどうかをチェックし、その番地を指していれ
ば次の番地に進む。その内容がそのデータの番地を指し
ていない場合は、その番地に格納されている図形要素デ
ータ(2c2)は、今処理しているx軸位置を始点とする
図形要素のものであるから、その図形要素データをベク
ターラスタ変換して、フレームメモリ領域(2d)内に記
憶する。
More specifically, the contents of the address of the chain pointer (2c1) of the graphic element storage area (2c) corresponding in order from the first x axis of the rectangular area currently being processed in the chain pointer table area (2b) Checks whether or not it points to the address of the data, and if it points to that address, it advances to the next address. If the content does not point to the address of the data, the graphic element data (2c2) stored at that address is for the graphic element whose starting point is the x-axis position currently being processed. The graphic element data is vector-raster converted and stored in the frame memory area (2d).

フレームメモリ領域(2d)内への記憶を終了したなら
ば、チェインポインタ(2c1)の示す番地へ進む。チェ
インポインタ(2c1)の示す番地が図形要素格納領域(2
c)のものであれば、前記のようにしてフレームメモリ
領域(2d)内へ記憶する。チェインポインタ(2c1)の
示す番地がチェインポインタテーブル領域(2b)のもの
の場合は、その番地の値をそのチェインポインタテーブ
ル領域(2b)に格納した後、その処理を行う。すなわ
ち、そのデータの番地の内容がその番地の値を指してい
るので、チェインポインタテーブル領域(2b)の次の番
地に進む訳である。
When the storage in the frame memory area (2d) is completed, the process proceeds to the address indicated by the chain pointer (2c1). The address indicated by the chain pointer (2c1) is the graphic element storage area (2
In the case of c), it is stored in the frame memory area (2d) as described above. When the address indicated by the chain pointer (2c1) is in the chain pointer table area (2b), the value of the address is stored in the chain pointer table area (2b) and then the processing is performed. That is, since the content of the address of the data points to the value of that address, the process proceeds to the next address in the chain pointer table area (2b).

矩形領域(I,II,III)は小さいので、大きい図形要素は
複数のフレームメモリにわたってしまう。しかしなが
ら、フレームメモリ領域(2d)に記憶するためのベクタ
ーラスタ変換は、通常DDA(ディジタル微分解析器)等
で行うので、途中座標が実行中に認識できるため、もし
実行中にフレームメモリ領域(2d)に対応する矩形領域
のx軸値を超える場合には、次のフレームメモリにデー
タを渡すために図形要素格納手段を実行する。すなわち
チェイン手段を実施する訳で、次の矩形領域の最初のx
軸位置に対応するチェインポインタテーブル領域(2b)
の番地の内容をチェインポインタとして付すと共に、そ
の図形要素データの格納番地をそのチェインポインタテ
ーブル領域(2b)の番地に格納した上で、図形要素デー
タ次のフレームメモリ以下のデータに変更して記憶させ
る。
Since the rectangular area (I, II, III) is small, a large graphic element covers a plurality of frame memories. However, since vector raster conversion for storage in the frame memory area (2d) is usually performed by a DDA (digital differential analyzer), etc., the midway coordinates can be recognized during execution, so if the frame memory area (2d When the x-axis value of the rectangular area corresponding to () is exceeded, the graphic element storage means is executed to pass the data to the next frame memory. That is, since the chain means is implemented, the first x in the next rectangular area
Chain pointer table area (2b) corresponding to the axis position
The content of the address of is added as a chain pointer, the storage address of the graphic element data is stored in the address of the chain pointer table area (2b), and the graphic element data is changed to the data below the frame memory and stored. Let

これらの作業を繰り返し、現在処理中の矩形領域の最後
のx軸位置に対応するチェインポインタテーブル領域
(2b)の処理が終ると、そのフレームメモリの処理は終
了したことになり、ラスタ走査式描画装置への出力が可
能となる。
When these processes are repeated and the processing of the chain pointer table area (2b) corresponding to the last x-axis position of the rectangular area currently being processed is completed, the processing of the frame memory is completed, and the raster scan rendering Output to the device is possible.

従って、ラスタ走査式描画装置により、処理終了後のフ
レームメモリ出力を描画しながら、次の矩形領域につい
て前記の出力手段を実行して、別のフレームメモリに対
して図形要素データをベクターラスタ変換の上、記憶さ
せることを繰り返し全出図領域を描画することができ
る。
Therefore, the raster scanning drawing apparatus draws the frame memory output after the processing, and executes the output unit for the next rectangular area to convert the graphic element data to vector raster conversion for another frame memory. The entire drawing area can be drawn by repeating the above storage.

〔実施例〕〔Example〕

以下、本発明にかかるランダムベクター処理方法をプロ
グラム制御により実施した場合の実施例につき図面を用
いて説明する。
Hereinafter, an example in which the random vector processing method according to the present invention is implemented by program control will be described with reference to the drawings.

第1図は本発明を実施するためのラスタ走査型出図装置
の全体構成を示すブロック図、第2図は第1図の図形要
素格納領域内の詳細図であり、第1図,第2図におい
て、本発明の処理方法は、制御用マイクロプロセッサ
(以下CPUという)(1),制御プログラムと二つのメ
モリ領域と二つ以上のフレームメモリを有する記憶装置
(2),ラスタ走査式描画装置(3)および出力装置用
インターフェイス(4)から構成されており、記憶装置
(2)内には制御用プログラムを記憶した制御用プログ
ラム領域(2a)の他に、作業用メモリ領域として、二つ
のメモリ領域の内の一つとしてチェインポインタテーブ
ル領域(以下CTという)(2b),他の一つである図形要
素格納領域(以下SEGという)(2c)と、フレームメモ
リ領域(以下FMという)(2d)が確保されている。
FIG. 1 is a block diagram showing the overall configuration of a raster scanning type drawing device for carrying out the present invention, and FIG. 2 is a detailed view in the graphic element storage area of FIG. 1, and FIGS. In the figure, a processing method according to the present invention comprises a control microprocessor (hereinafter referred to as CPU) (1), a storage device (2) having a control program, two memory areas, and two or more frame memories, and a raster scanning drawing apparatus. (3) and the interface for output device (4). In addition to the control program area (2a) that stores the control program in the storage device (2), there are two memory areas for work. One of the memory areas is a chain pointer table area (hereinafter referred to as CT) (2b), the other is a graphic element storage area (hereinafter referred to as SEG) (2c), and a frame memory area (hereinafter referred to as FM) ( 2d) It is secured.

CT(2b)は全出図領域のx軸の走査線数分の要素数を有
し、最初の走査線から最後の走査線に至る順に、各アド
レス(番地)の内容が対応している。
CT (2b) has the number of elements corresponding to the number of x-axis scanning lines in the entire drawing area, and the contents of each address (address) correspond in the order from the first scanning line to the last scanning line.

SEG(2c)はランダムベクターとしての図形要素データ
を記憶する部分であり、一つずつの図形要素データを格
納する格納アドレス(番地)を以降@Aで表すこととす
る。一つの図形要素の格納構造は第2図に示した概念図
のごとくであり、ランダムベクタの格納アドレス@Aの
記憶部分には、データのチェーン状態を書いておく部分
としてのチェインポインタ(以下CPTRという)(2c1)
と、図形要素データ(以下DATAという)(2c2)を格納
する部分とがある。
The SEG (2c) is a part for storing the graphic element data as a random vector, and the storage address (address) for storing the graphic element data one by one will be represented by @A hereinafter. The storage structure of one graphic element is as shown in the conceptual diagram shown in Fig. 2. The chain pointer (hereinafter referred to as CPTR) is a part for writing the data chain state in the storage part of the storage address @A of the random vector. (2c1)
And a portion for storing graphic element data (hereinafter referred to as DATA) (2c2).

CT(2b)は、X軸の座標とSEG(2c)に格納された図形
要素とを結合させるために設けたもので、SEG(2c)内
に記憶されたCPTR(2c1)は、対応する図形要素とその
最初のx軸およびそのx軸に関係付けられる他の図形要
素とを結合するためのものである。
CT (2b) is provided to combine the X-axis coordinates with the graphic element stored in SEG (2c). CPTR (2c1) stored in SEG (2c) is the corresponding graphic. It is for connecting the element with its first x-axis and other graphic elements associated with that x-axis.

次にFM(2d)について説明する。Next, FM (2d) will be described.

全出図領域をX軸方向に多数の小さい矩形領域(I,II,I
II)に等分し、この小さい矩形領域一つの中の全てのラ
スタ情報に対応する大きさを有するフレームメモリを複
数個確保する。本実施例ではFM(2d)内には、3個の矩
形領域(I,II,III)を確保している。
A large number of small rectangular areas (I, II, I
II), and a plurality of frame memories having a size corresponding to all the raster information in one small rectangular area are secured. In this embodiment, three rectangular areas (I, II, III) are secured in FM (2d).

次に、第1図,第2図を参照しながら図形要素データの
入力処理について、第3図のフローチャートと第4図
(a)のメモリ内容図および第4図(b)の図形要素図
によって説明する。
Next, referring to FIGS. 1 and 2, the process of inputting graphic element data will be described with reference to the flow chart of FIG. 3, the memory content diagram of FIG. 4 (a) and the graphic element diagram of FIG. 4 (b). explain.

入力処理前の初期状態では、CT(2b)の全ての要素、つ
まり総てのアドレスの内容にそのアドレスを記憶させて
おく。(第3図のイ) 第4図(a)では、#0,#1,……でもって示している。
In the initial state before input processing, the address is stored in all the elements of CT (2b), that is, the contents of all addresses. (B of FIG. 3) In FIG. 4 (a), # 0, # 1 ,.

次に、第1図に示すように、CPU(1)から図形要素デ
ータを順次データの続く限り読み込んでいく。(第3図
のロ) CT(2b)では、第4図(b)に示すように、点P1(10,1
0)→点P2(40,70)の直線が図形要素データ@として読
み込まれた場合、その図形要素データAのX軸の最小値
XMINを求め、第4図(a)に示すように、XMIN=10を知
る。(第3図のハ) その後、この値を印字単位の数値Nとする。(第3図の
ニ)なお、印字単位を例えば1とすると、N=1×10=
10となる。
Next, as shown in FIG. 1, graphic element data is sequentially read from the CPU (1) as long as the data continues. (B in FIG. 3) In CT (2b), as shown in FIG.
0) → If the straight line from point P2 (40, 70) is read as graphic element data @, the minimum value of the X axis of that graphic element data A
Obtain X MIN and know X MIN = 10 as shown in FIG. 4 (a). (C in FIG. 3) After that, this value is set as the numerical value N of the printing unit. (D in FIG. 3) When the print unit is 1, for example, N = 1 × 10 =
Will be 10.

ここで、CT(2b)の各アドレス(番地)の値を#Nで表
す。
Here, the value of each address (address) of CT (2b) is represented by #N.

次にSEG(2c)内の空きエリアを探し、そのアドレス@
Aが、第4図(a)に示すように、@0であったとす
る。(第3図のホ)なお、ここではSEG(2c)の空エリ
アを見付ける操作を行っているが、この操作を行わず順
番にSEG(2c)に入力する場合もある。
Next, look for an empty area in SEG (2c) and find its address @
It is assumed that A is @ 0 as shown in FIG. (E in FIG. 3) Although the operation of finding an empty area of the SEG (2c) is performed here, the operation may be performed in order to input the data to the SEG (2c) without performing this operation.

ここでCT(2b)とSEG(2c)とのチェイン手段を実施す
る。
Here, the chain means of CT (2b) and SEG (2c) is implemented.

XMIN(=10)に対応するチェインポインタテーブル領域
(2b)内のアドレス(#10,これは第4図(b)の図形
データから第11番目の走査線に対応するアドレスであ
る)の記憶内容(#10,初期状態では総てのアドレスの
内容を記憶したそのときのアドレスと同じである)を、
図形要素データを格納すべきアドレス@0のCPTR(2c
1)格納部分に格納する共に、記憶内容をそのアドレス
(@0)に変更する。すなわち、CT(2b)内のアドレス
#10の記憶内容が#10から@0に変更される。同時に、
SEG(2c)内のアドレス@0のDATA(2c2)格納部分に図
形データ(P1→P2の直線のデータ)記憶する。(第3図
のへ) 更に、前述したように、その図形要素データの格納番地
をそのCT(2b)の記憶番地を格納する。(第3図のト) 次に、点P2(40,70)→点P3(70,10)の直線がデータ
として読み込まれると、XMIN=40であるから、CT(2b)
内のアドレス#40の記憶内容を#40から@1に変更する
と共に、SEG(2c)内のアドレス@1のCPTR(2c1)部に
#40を、DATA(2c2)部に図形データ(P2→P3の直線の
データ)を記憶して、第3図のトと同じ操作となる。
Storage of the address (# 10, which is the address corresponding to the 11th scanning line from the figure data in FIG. 4B) in the chain pointer table area (2b) corresponding to X MIN (= 10) Contents (# 10, in the initial state, the contents of all addresses are the same as the addresses at that time),
CPTR (2c at address @ 0 where graphic element data should be stored
1) While storing in the storage part, change the stored content to that address (@ 0). That is, the storage content of address # 10 in CT (2b) is changed from # 10 to @ 0. at the same time,
The figure data (straight line data from P1 to P2) is stored in the DATA (2c2) storage part of address @ 0 in SEG (2c). Further, as described above, the storage address of the graphic element data is stored in the storage address of the CT (2b) as described above. Next, when the straight line from point P2 (40,70) to point P3 (70,10) is read as data, X MIN = 40, so CT (2b)
Change the stored content of address # 40 in # 40 to @ 1 and add # 40 to CPTR (2c1) part of address @ 1 in SEG (2c) and graphic data (P2 → to DATA (2c2) part) The straight line data of P3) is stored, and the operation is the same as in FIG.

続いて、点P4(60,30)→点P5(20,30)の直線がデータ
として読み込まれると、XMIN=20であるから、CT(2
b)内のアドレス#20の記憶内容#20から@2に変更す
ると共に、SEG(2c)内のアドレス@2のCPTR(2c1)部
に#20を、DATA(2c2)に図形要素データ(P5→P4の直
線のデータ)を記憶して、第3図のトと同じ操作とな
る。
Then, when the straight line from point P4 (60,30) to point P5 (20,30) is read as data, X MIN = 20, so CT (2
b) The memory content # 20 in address # 20 in SEG (2c) is changed to @ 2, # 20 is stored in the CPTR (2c1) part of address @ 2 in SEG (2c), and the graphic element data (P5 is stored in DATA (2c2)). → The data of the straight line of P4) is memorized, and the operation is the same as G in Fig. 3.

次に、点P6(80,10)→点P7(80,70)の直線データと
して読み込まれると、XMIN=80であるからCT(2b)内の
アドレス#80の記憶内容を#80から@3に変更すると共
に、SEG(2c)内のアドレス@3のCPTR(2c1)部に#80
(第4図(a)のα)を、DATA(2c2)部に図形データ
(P6→P7の直線のデータ)を記憶して、第3図のトと同
じ操作となる。
Next, when it is read as straight line data from point P6 (80,10) to point P7 (80,70), since X MIN = 80, the stored contents of address # 80 in CT (2b) will be read from # 80. Change to 3 and # 80 in the CPTR (2c1) part of address @ 3 in SEG (2c)
(Α in FIG. 4 (a)) is stored in the DATA (2c2) portion as graphic data (linear data of P6 → P7), and the same operation as in FIG. 3G is performed.

続いて、点P7(80,70)→点P8(120,70)の直線がデー
タとして読み込まれると、XMIN=80であるから、CT
(2b)内のアドレス#80の先に変更されている内容@3
を皿に@4に変更すると共に、SEG(2c)内のアドレス
@4のCPTR(2c1)部に@3(第4図(a)のβ)を、D
ATA(2c2)部に図形データ(P7→P8の直線のデータ)を
記憶して、第3図のトと同じ操作となる。
Then, when the straight line from point P7 (80,70) to point P8 (120,70) is read as data, X MIN = 80, so CT
Content changed to address # 80 in (2b) @ 3
Is changed to @ 4 on the plate and @ 3 (β in Fig. 4 (a)) is changed to D in CPTR (2c1) part of address @ 4 in SEG (2c).
The figure data (the straight line data from P7 to P8) is stored in the ATA (2c2) section, and the same operation as in FIG.

すなわち、データとデータは共にXMIN=80であり、
両図形要素のX軸の最小値が同じであるため、CPTR(2c
1)により、#80→@4→@3(第4図(a)のγ)と
チェインされている様子を示している。このようにして
全ての図形要素データの読み込みを終り、入力データが
無くなると出図制御へと進む。本段階では、CT(2b)内
のアドレス#100の内容は、当然#100となっている。な
お、第3図のフローチャート中で、@Aは、図形データ
Aの格納アドレスを、( )は、アドレスの内容を示し
ている。
That is, both data and data are X MIN = 80,
Since the minimum X-axis values of both graphic elements are the same, CPTR (2c
1) shows that # 80 → @ 4 → @ 3 (γ in FIG. 4 (a)) is chained. In this way, reading of all the graphic element data is completed, and when there is no input data, the process proceeds to output control. At this stage, the content of address # 100 in CT (2b) is naturally # 100. In the flowchart of FIG. 3, @A indicates the storage address of the graphic data A, and () indicates the content of the address.

次に出図制御について説明する。本実施例では全出図領
域を走査線100本で構成される小矩形領域(第1図のI,I
I,III)に分割し、FM(2d)を3個確保しているので、
I,II,IIIの順で描画が完了したフレームメモリに対し
て、図形データのベクターラスタ変換結果を記憶させる
ようになっている。
Next, the output control will be described. In this embodiment, a small rectangular area (I, I in FIG. 1) that is composed of 100 scanning lines is used for the entire output area.
Since it is divided into I, III) and 3 FM (2d) are secured,
The vector raster conversion result of the graphic data is stored in the frame memory in which the drawing is completed in the order of I, II, and III.

第5図は出図制御に関するフローチャートである。FIG. 5 is a flowchart relating to output control.

第5図において、出図時はx軸が0から最大値に至るま
での全ての走査線について順に制御する必要があり、CT
(2b)のアドレス順つまり(a)の#0からその内容を
チェックし、その値Nが現在チェックしているアドレス
と等しいか或いはそうでないかのチェックを行う。
(b) 等しい場合は、そのアドレス処理は完了とし次のアドレ
ス(c)に進む。
In Fig. 5, at the time of drawing, it is necessary to control all scanning lines from 0 to the maximum value on the x-axis in order.
The contents are checked from the address order of (2b), that is, from # 0 of (a), and it is checked whether the value N is equal to the address currently checked or not.
(B) If they are equal, the address processing is completed and the process proceeds to the next address (c).

その内容にSEG(2c)のアドレス(@A)が書かれてい
た場合(d)は、その内容が処理すべき図形要素データ
である。
When the address (@A) of SEG (2c) is written in the content (d), the content is graphic element data to be processed.

そこで、チェインをほどく手段(アンチェイン手段)を
実行する。アンチェイン手段は、SEG(2c)内のアドレ
ス@AのCPTR(2c1)部の内容を、CT(2b)内の現在の
アドレスの内容として格納することによって行われる。
Therefore, a means for unwinding the chain (unchain means) is executed. The unchaining means is performed by storing the contents of the CPTR (2c1) portion of the address @A in SEG (2c) as the contents of the current address in CT (2b).

すなわち、第1にCT(2b)の内容を前記SEG(2c)のCPT
R(2c1)の内容(e)とし、 第2にSEG(2c)のDATA(2c2)をベクターラスタ変換
(f)とする。
That is, firstly, the contents of CT (2b) are changed to the CPT of SEG (2c).
The content (e) of R (2c1) is used. Secondly, the DATA (2c2) of SEG (2c) is used as the vector raster conversion (f).

次に、このラスタデータ矩形領域(I)を越えていない
かどうかのチェックを行う。(g) フレームメモリの矩形領域(I)を越えない場合は、矩
形領域(I)に記憶させる。(h) フレームメモリの領域を越える場合には、フレームメモ
リのX座標の領域境界値を新たにそのデータとする。
(i) なお、詳細な説明は後述する第4,5図で説明する。
Next, it is checked whether or not the raster data rectangular area (I) is exceeded. (G) If it does not exceed the rectangular area (I) of the frame memory, it is stored in the rectangular area (I). (H) If it exceeds the area of the frame memory, the area boundary value of the X coordinate of the frame memory is newly used as the data.
(I) A detailed description will be given with reference to FIGS.

そのデータのCT(2b)のアドレス(@A)の内容を前述
した入力処理に従ってSEG(2c)のCPTR(2c1)に、入力
データの印字位置の値に対応するCT(2b)のアドレスの
内容を、SEG(2c)のCPTR(2c1)に記憶させ、且つその
CT(2b)のアドレス(@A)を前記のCT(2b)に記憶さ
せた後、領域境界値内と新たに設けた境界値とのラスタ
データをFM(I)に記憶させる。
The contents of the address (@A) of CT (2b) of that data are stored in the CPTR (2c1) of SEG (2c) according to the above-mentioned input processing, and the contents of the address of CT (2b) corresponding to the print position value of the input data. Is stored in the CPTR (2c1) of the SEG (2c), and
After the address (@A) of CT (2b) is stored in the CT (2b), raster data within the area boundary value and the newly provided boundary value is stored in FM (I).

X座標の領域境界値を越える場合と越えない場合の両者
の処理ののち、再度CT(2b)のアドレスの内容をチェッ
クし、その値がアドレス値に等しくなるまで前記処理を
繰り返し、フレーム境界のアドレス値になるまでCT(2
b)のアドレス処理を進め、フレーム境界アドレスに達
するまでこの操作を行う。(k) そして、フレーム境界アドレスに達したのち、そのFMI
は出図可能(m)とし、出図印字はフレームメモリ単位
に行い、他のフレームメモリ(II,III)に対しても同様
の操作を行う。
After processing both when the X-coordinate area boundary value is exceeded and when it is not exceeded, the contents of the CT (2b) address are checked again, and the above processing is repeated until the value becomes equal to the address value, and the frame boundary CT (2
Proceed with address processing in b), and perform this operation until the frame boundary address is reached. (K) Then, after reaching the frame boundary address, the FMI
Can be output (m), and the output printing is performed in frame memory units, and the same operation is performed for other frame memories (II, III).

なお、出図限界まで本操作を行うが、出図限界はフレー
ムメモリ単位で行うため、その記述は省く。
Although this operation is performed up to the drawing limit, the description limit is omitted because it is performed in frame memory units.

次に、第5図に基づいて第4図(a),(b)の実施例
を説明する。
Next, the embodiment shown in FIGS. 4 (a) and 4 (b) will be described with reference to FIG.

第4図(a),(b)において、CT(2b)の最初のアド
レス#0(第5図のa)から順にその内容をチェックし
て行く。(第5図のb) アドレス#9まではその内容が現在チェックしているア
ドレスの値を指しているので、順に次のアドレス(第5
図のc)へ進んで行く。アドレス#10の内容をチェック
すると、#10と異なり、@0(第5図のd)であるの
で、ここにx軸10を始点とする図形要素データが格納さ
れていることが判る。従ってアンチェイン手段を実行
し、アドレス@0のCPTR(2c1)部の内容である#10を
アドレス#10(第5図のe)に格納する。これにより、
アドレス#10の内容は現在チェックしているアドレスの
値を指しているものとなる。
In FIGS. 4A and 4B, the contents are checked in order from the first address # 0 (a in FIG. 5) of CT (2b). (B in FIG. 5) Since the contents up to address # 9 point to the value of the currently checked address, the next address (5th
Proceed to c) in the figure. When the content of the address # 10 is checked, unlike # 10, it is @ 0 (d in FIG. 5), so it is understood that the graphic element data starting from the x-axis 10 is stored here. Therefore, the unchaining means is executed and # 10, which is the contents of the CPTR (2c1) portion of the address @ 0, is stored in the address # 10 (e in FIG. 5). This allows
The content of address # 10 points to the value of the address currently being checked.

アンチェイン手段を実行後、アドレス@AのDATA(2c
2)部の図形データにつきベクターラスタ変換を行う。
(第5図のf) 次に、図形データがフレームメモリの矩形領域を超える
かどうかをチェックする。(第5図のg) 第4図(b)のデータは、X軸の値が10〜40であり、
FM(I)は0〜99の範囲を超えないのでそのままベクタ
ーラスタ変換結果をFM(I)に記憶させる。(第5図の
h) 続いて、CT(2b)のアドレス#10の内容をチェックする
と、今チェックしているデータの値を指しているので、
順に次のアドレス(第5図のc)へ進んで行く。そして
アドレス順にアドレスの内容をチェックくしていくと、
第4図(a)に示すように次のアドレス#20であり、そ
の次はアドレス#40であるが、前記と同様にしてベクタ
ラスタ交換を行い、その結果をフレームメモリに記憶さ
せながら次々に進み、点p1→点p2,点p5→点p4,点p2→点
p3の各直線を矩形領域(I)に記憶させる。
After executing the unchaining means, DATA (2c
2) Perform vector raster conversion on the figure data of part.
(F in FIG. 5) Next, it is checked whether the graphic data exceeds the rectangular area of the frame memory. (G in FIG. 5) The data in FIG. 4 (b) has an X-axis value of 10 to 40,
Since FM (I) does not exceed the range of 0 to 99, the vector raster conversion result is stored in FM (I) as it is. (H in FIG. 5) Then, when checking the contents of address # 10 of CT (2b), it indicates the value of the data currently being checked.
Proceed to the next address (c in FIG. 5) in order. And if you check the contents of the address in order of address,
As shown in FIG. 4 (a), the next address is # 20, and the next is address # 40, but vector raster exchange is performed in the same manner as described above, and the results are stored in the frame memory and proceed in sequence. , Point p1 → point p2, point p5 → point p4, point p2 → point
Each straight line of p3 is stored in the rectangular area (I).

次に点P6→P7において、CT(2b)のアドレス#80の内容
をチェックすると、#80と異なり@4であるからアンチ
ェイン手段を実行し、@4のCPTR(2c1)部の内容であ
る@3をアドレス#80に格納(第4図のγ)したのち、
アドレス@4のDATA(2c2)部の図形データにつきベク
ターラスタ変換を行う。(第5図のh) ベクターラスタ変換はDDA(ディジタル微分解析器)に
より実施され、漸化式手法を用いて行われるので、途中
座標は実行中に認識できる。
Next, when the contents of the address # 80 of CT (2b) are checked at points P6 to P7, the unchain means is executed because it is @ 4 unlike # 80, and it is the contents of the CPTR (2c1) part of @ 4. After storing @ 3 in address # 80 (γ in Fig. 4),
Vector raster conversion is performed on the graphic data in the DATA (2c2) part at address @ 4. (H in FIG. 5) The vector raster conversion is performed by the DDA (digital differential analyzer) and is performed by the recurrence method, so that the intermediate coordinates can be recognized during execution.

アドレス@4のDATA(2c2)部の図形データは、点P7(8
0,70)→点P8(120,70)の直線のものであるので、FM
(I)は0〜99の範囲を超えている。(第5図のg) そこで、前述したように、フレームメモリの領域を越え
る場合(第5図のk)には、フレームメモリのX座標の
領域境界値を新たにそのデータとする(第5図のi)こ
とによって、フレームメモリに対応する現在の矩形領域
の境界線との交点P9から、後の図形データを次のフレー
ムメモリに渡す処理をする。
The figure data in the DATA (2c2) part of address @ 4 is the point P7 (8
0,70) → Point P8 (120,70) is a straight line, so FM
(I) exceeds the range of 0-99. (G in FIG. 5) Therefore, as described above, when the area of the frame memory is exceeded (k in FIG. 5), the area boundary value of the X coordinate of the frame memory is newly set as the data (fifth area). According to i) in the figure, the process of passing the subsequent graphic data to the next frame memory is performed from the intersection P9 with the boundary line of the current rectangular area corresponding to the frame memory.

すなわち、ここで再びチェイン手段を実施(第5図の
j)し、点P9でのCT(2b)のアドレス#100の内容を@
4とし、SEG(2c)のアドレス@4のCPTR(2c1)部に#
100を、DATA(2c2)部に点P9(100,70)→点P8(120,7
0)の直線の図形データを格納する。{第4図(c)}
しかるのち、ベクターラスタ変換を終わった点P7→点P9
のデータを矩形領域(I)に記憶(第5図のh)させ、
元のアドレス#80の内容をチェックする。
That is, here, the chain means is implemented again (j in FIG. 5), and the contents of the address # 100 of CT (2b) at the point P9 are read @
4 in the CPTR (2c1) part of the SEG (2c) address @ 4 #
Point 100 to the DATA (2c2) section at point P9 (100,70) → point P8 (120,7)
Stores the straight line graphic data of 0). {Fig. 4 (c)}
After that, the point where vector raster conversion is completed P7 → Point P9
Data in the rectangular area (I) (h in FIG. 5),
Check the contents of the original address # 80.

CT(2b)のアドレス#80の内容は、先に@4から@3に
置き換えられてはいるが、今のアドレスの値(第5図の
α)とは異なるので、アンチェイン手段を実行し、アド
レス@3のCPTR(2c1)部の内容である#80をアドレス
#80に格納したのち、アドレス@3のDATA(2c2)部の
図形データにつきベクターラスタ変換を行う。(第5図
のf) アドレス@3の図形データは点P6→点P7の直線であるか
ら、ベクターラスタ変換に際してフレームメモリ範囲を
超えることはなく、変換結果をそのままフレームメモリ
に記憶させて後、元のアドレス#80の内容をチェックす
ると、今度はそのアドレスの値を指しているので、この
走査線上から始まる図形データの処理は終わったことを
知り次のアドレス(第5図のc)に進む。そして、点P9
→P8に関しては、前述した同様な手段によって例えばFM
(II)に記憶させる。
Although the content of address # 80 of CT (2b) has been replaced from @ 4 to @ 3 earlier, it is different from the current address value (α in Fig. 5), so execute the unchaining method. , # 80, which is the contents of the CPTR (2c1) portion of the address @ 3, is stored in the address # 80, and then vector raster conversion is performed on the graphic data of the DATA (2c2) portion of the address @ 3. (F in FIG. 5) Since the graphic data at address @ 3 is a straight line from point P6 to point P7, it does not exceed the frame memory range during vector raster conversion, and after the conversion result is stored in the frame memory as it is, When the contents of the original address # 80 are checked, since the value of that address is pointed this time, it is known that the processing of the graphic data starting from this scanning line is completed, and the process proceeds to the next address (c in FIG. 5). . And point P9
→ For P8, for example FM
Store in (II).

このようにして順次CT(2b)のアドレスの内容をチェッ
クし、現在処理中の矩形領域の走査線に対応するアドレ
スのチェックを全て終わると、そのフレームメモリから
の出図を可能(第5図のm)とし、FMI,FMII,FMIIIのう
ちいずれか使用可能のフレームメモリを用いて次の矩形
領域についての処理に移行する。
In this way, the contents of the CT (2b) address are sequentially checked, and when all the addresses corresponding to the scanning lines of the rectangular area currently being processed are checked, it is possible to output from the frame memory (Fig. 5). M) of the FMI, FMII, or FMIII, the available frame memory is used to shift to the process for the next rectangular area.

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

ラスタイメージのメモリ効率は、より抽象度の高いベク
ターデータによるメモリ効率に比べると非常に劣るもの
である。特に、ペン式xyプロッタとの置換を可能にする
レベルのラスタ分解能を持つ装置の場合にはより顕著と
なる。
The memory efficiency of a raster image is extremely inferior to the memory efficiency of vector data having a higher degree of abstraction. In particular, it becomes more prominent in the case of a device having a raster resolution of a level that enables replacement with a pen type xy plotter.

例えば、全出図領域がx軸方向2m,y軸方向1mのものを考
え、10dot/mmのラスタ走査型出図装置とした場合、全出
図領域をフレームメモリとして置くと、x軸方向に2000
0ビット,y軸方向に10000ビットの記憶容量を要するので
全記憶容量として (10000×20000/8)=25Mバイト を要する。
For example, consider a case where the total drawing area is 2 m in the x-axis direction and 1 m in the y-axis direction, and when using a raster scanning type drawing device of 10 dot / mm, if the whole drawing area is set as a frame memory, it will be in the x-axis direction. 2000
The storage capacity of 0 bits and 10000 bits in the y-axis direction requires (10000 × 20000/8) = 25 Mbytes as the total storage capacity.

一方、ベクターイメージで一本の直線を記憶するとすれ
ば、せいぜい数バイトで済ませることができるので、例
えば8バイトを要するものとする。
On the other hand, if one straight line is stored in the vector image, it can be completed in several bytes at most, and therefore, it is assumed that, for example, 8 bytes are required.

前記の実施例では1つの矩形領域の走査線数を100とし
たが、400本程度としても1つのフレームメモリは0.5M
バイトあればよい。
In the above embodiment, the number of scanning lines in one rectangular area is 100, but if the number of scanning lines is about 400, one frame memory is 0.5M.
I need a part-time job.

全走査線数は20000本であるから、CT(2b)の要素数は2
0000であり、記憶内容を物理アドレスで持つとして4バ
イトを要するとすると、CT(2b)のために、20000×4
=80000バイトを要する。
Since the total number of scanning lines is 20000, the number of elements of CT (2b) is 2
0000, and if it requires 4 bytes to hold the storage contents as a physical address, it will be 20000 × 4 because of CT (2b).
= 80,000 bytes are required.

記憶しておくべき図形要素の数をXとすると、SEG(2
c)の各要素にはCPTR(2c1)部に4バイト、DATA(2c
2)部に8バイトを要するので、合計12バイトを要し、
全図形要素格納領域(2c)には、X×12バイトを必要と
する。
Let X be the number of graphic elements to be memorized, then SEG (2
Each element of c) has 4 bytes in the CPTR (2c1) part and DATA (2c
2) It takes 8 bytes for the part, so it takes 12 bytes in total,
The total graphic element storage area (2c) requires X × 12 bytes.

今、全出図領域を1つのフレームメモリとした場合に必
要な25Mバイトの1/5である5Mバイトを本発明にかかる方
式の出図装置の記憶装置の容量とした場合、処理できる
図形要素データ数Xは、 X={(5000×103−1500×103−80×103)/12} =285000 となり、1m×2mの出図領域中の図形要素として28万要素
もあれば十二分のものとなる。
If 5 Mbytes, which is 1/5 of 25 Mbytes required when the entire drawing area is used as one frame memory, is the capacity of the storage device of the drawing apparatus according to the present invention, graphic elements that can be processed The number of data X is X = {(5000 × 10 3 −1500 × 10 3 -80 × 10 3 ) / 12} = 285000, and if there are 280,000 graphic elements in the 1 m × 2 m drawing area, there are 10 It will be in half.

先に発明が解決しようとする問題点の項で記載したsort
による方法やmappingによる方法によっても、記憶装置
の容量としてはほぼ同等のもので済むが、計算機時間が
膨大なものとなる。
The sort described above in the section of problems to be solved by the invention
According to the above method and the mapping method, the storage capacities are almost the same, but the computer time becomes enormous.

すなわち、sortによる方法によれば、データ数の増大に
伴って並べ替えのための計算き時間が指数関数的に増大
することが一般に知られており、例えば、上記28万の図
形要素数を取り扱う場合には、本発明にかかる方法に比
べて少なくとも100倍以上の時間を要する。
That is, according to the method by sort, it is generally known that the calculation time for sorting increases exponentially as the number of data increases. For example, the number of graphic elements of 280,000 is handled. In some cases, the time required is at least 100 times longer than that of the method according to the present invention.

また、mappingによる方法による場合には境界線との交
点処理計算に膨大な計算時間を要し、本発明にかかる方
法に比べて10〜100倍の時間を要する。
In the case of the mapping method, a huge amount of calculation time is required to calculate the intersection point with the boundary line, which is 10 to 100 times longer than that of the method according to the present invention.

以上詳細に説明したように、本発明にかかるランダムベ
クター処理方法によれば、小容量の記憶装置を有効に利
用し、ベクター式プロッタ用として作成されたランダム
ベクターデータ列を入力するに当り、全データについて
の並べ替えや交点処理計算等の時間のかかる処理を必要
としないので、高速にラスタ描画を実施することができ
る。
As described in detail above, according to the random vector processing method of the present invention, a small-capacity storage device is effectively used, and when inputting a random vector data string created for a vector plotter, Since time-consuming processing such as data rearrangement and intersection processing calculation is not required, raster drawing can be performed at high speed.

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

第1図は本発明にかかるランダムベクター処理方法を実
施するためのラスタ走査型出図装置のブロック図、第2
図は図形要素の格納構造を示す概念図、第3図はデータ
格納時の制御手段のフローチャート、第4図(a)はメ
モリ内容図、第4図(b),(c)は図形要素図、第5
図出図制御に関するフローチャートであり、第6図はベ
クター式プロッタによる出力図形例、第7図はラスタ式
プロッタによる出力図形例を示す図である。 1……制御用マイクロプロセッサ、2……記憶装置、3
……ラスタ走査式描画装置、4……出力装置用インター
フェイス、2a……制御用プログラム領域、2b……チェイ
ンポインタテーブル領域(CT)、2c……図形要素格納領
域(SEG)、2c1……チェインポインタ(CPTR)、2c2…
…図形要素データ(DATA)、2d……フレームメモリ領域
(FM)I,II,III……矩形領域。
FIG. 1 is a block diagram of a raster scanning drawing apparatus for carrying out a random vector processing method according to the present invention, and FIG.
FIG. 3 is a conceptual diagram showing a storage structure of graphic elements, FIG. 3 is a flow chart of control means for storing data, FIG. 4 (a) is a memory content diagram, and FIGS. 4 (b) and 4 (c) are graphic element diagrams. , Fifth
FIG. 6 is a flow chart for drawing control, FIG. 6 is an example of an output figure by a vector plotter, and FIG. 7 is a diagram showing an example of an output figure by a raster plotter. 1 ... Control microprocessor, 2 ... Storage device, 3
...... Raster scan type drawing device, 4 …… Output device interface, 2a …… Control program area, 2b …… Chain pointer table area (CT), 2c …… Graphic element storage area (SEG), 2c1 …… Chain Pointer (CPTR), 2c2 ...
... Graphic element data (DATA), 2d ... Frame memory area (FM) I, II, III ... Rectangular area.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】図形要素の出力位置に関して、全く任意な
順序のデータ列を入力して出図するラスタ走査型出力方
法において、 二つのメモリ領域と、二つ以上のフレームメモリ領域を
有し、 メモリ領域の一つは、アドレスは用紙の出図方向のX座
標走査線の単位(印字単位)とするチェインポインタテ
ーブル領域(2b)であり、 他のメモリ領域の一つは、チェインポインタ(2c1)
と、各図形要素データ(2c2)とを有する図形要素格納
領域(2c)であり、 二つ以上のフレームメモリ領域(2d)は、出図図面に対
応したメモリで、全出図領域をX軸方向に複数の矩形領
域(I,II,III)に等分したものであり、 入力処理として、データ入力前に、初期操作としてチェ
インポインタテーブル領域(2b)をそのアドレスとし、
その後制御用マイクロプロセッサ(1)で入力データ
を、始終点座標を含む図形要素データに分解し、その図
形要素データを印字単位の値に換算し、図形要素格納領
域(2c)にデータを記憶させると同時に、図形要素デー
タの印字位置の値に対応するチェインポインタテーブル
領域(2b)のアドレスの内容を、図形要素データのX軸
の最小値を求めて図形要素格納領域(2c)のチェインポ
インタ(2c1)に記憶させ、且つそのチェインポインタ
(2c1)のアドレスを前記のチェインポインタテーブル
領域(2b)に記憶させるよう全データに対してこれらの
処理を行い、 出図処理として、チェインポインタテーブル領域(2b)
のアドレス順にその内容をチェックし、その値が現在チ
ェックしているアドレスと等しい場合は、そのアドレス
処理は完了とし、その内容に図形要素格納領域(2c)の
アドレスが書かれていた場合は、 第1にチェインポインタテーブル領域(2b)の内容を前
記図形要素格納領域(2c)のチェインポインタ(2c1)
の内容とし、 第2に図形要素格納領域(2c)の図形要素データ(2c
2)をベクターラスタ変換し、ラスタデータとしてフレ
ームメモリの領域を越えない場合はフレームメモリ領域
(2d)に記憶させ、フレームメモリの領域を越える場合
には、フレームメモリのX座標の領域境界値を新たにそ
のデータとし、そのデータのチェインポインタテーブル
領域(2b)のアドレスの内容を図形要素格納領域(2c)
のチェインポインタ(2c1)に、図形要素データの印字
位置の値に対応するチェインポインタテーブル領域(2
b)のアドレスの内容を、図形要素格納領域(2c)のチ
ェインポインタ(2c1)に記憶させ、フレームメモリ領
域(2d)内のラスタデータをフレームメモリに記憶さ
せ、X座標の領域境界値を越える場合と越えない場合の
両者の処理ののち、再度チェインポインタテーブル領域
(2b)のアドレスの内容をチェックし、その値がアドレ
ス値に等しくなるまで前記処理を繰り返し、フレーム境
界のアドレス値になるまでチェインポインタテーブル領
域(2b)のアドレス処理を進め、フレーム境界アドレス
に達したのち、そのフレームメモリは出図可能とし、出
図印字はフレームメモリ単位に行い、他のフレームメモ
リに対しても同様の操作を行うようにしたことを特徴と
する ランダムベクター処理方法。
1. A raster scanning output method for inputting and outputting a data sequence in an arbitrary arbitrary order with respect to an output position of a graphic element, and having two memory areas and two or more frame memory areas, One of the memory areas is a chain pointer table area (2b) whose address is a unit (print unit) of the X coordinate scanning line in the paper output direction, and one of the other memory areas is a chain pointer (2c1 )
And a graphic element storage area (2c) having each graphic element data (2c2), and two or more frame memory areas (2d) are memories corresponding to drawing drawings, and all drawing areas are X-axis. It is divided into a plurality of rectangular areas (I, II, III) in the direction. Before inputting data as input processing, the chain pointer table area (2b) is used as its address as the initial operation.
After that, the control microprocessor (1) decomposes the input data into graphic element data including start and end point coordinates, converts the graphic element data into a value of a printing unit, and stores the data in the graphic element storage area (2c). At the same time, the content of the address of the chain pointer table area (2b) corresponding to the value of the print position of the graphic element data is calculated to find the minimum value of the X axis of the graphic element data and the chain pointer (2c) of the graphic element storage area (2c). 2c1) and the address of the chain pointer (2c1) is stored in the chain pointer table area (2b), these processes are performed on all the data, and the chain pointer table area ( 2b)
Check the contents in the order of the address of, and if the value is equal to the address currently checked, the address processing is completed, and if the address of the graphic element storage area (2c) is written in the contents, First, the contents of the chain pointer table area (2b) are transferred to the chain pointer (2c1) of the graphic element storage area (2c).
Second, the graphic element data (2c) in the graphic element storage area (2c)
2) is vector-raster converted, and if it does not exceed the area of the frame memory as raster data, it is stored in the frame memory area (2d). If it exceeds the area of the frame memory, the area boundary value of the X coordinate of the frame memory is set. The data is newly used as the data, and the contents of the address of the chain pointer table area (2b) of that data are stored in the graphic element storage area (2c).
In the chain pointer (2c1) of the chain pointer table area (2
The content of the address of b) is stored in the chain pointer (2c1) of the graphic element storage area (2c), the raster data in the frame memory area (2d) is stored in the frame memory, and the area boundary value of the X coordinate is exceeded. After processing both the case and the case where it does not exceed, check the contents of the address of the chain pointer table area (2b) again, repeat the above process until the value becomes equal to the address value, until the address value on the frame boundary is reached. After the address processing of the chain pointer table area (2b) is advanced and the frame boundary address is reached, the frame memory can be output, and the output printing is performed in frame memory units. The same applies to other frame memories. A random vector processing method characterized in that an operation is performed.
JP60023967A 1985-02-08 1985-02-08 Random vector processing method Expired - Lifetime JPH0736146B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60023967A JPH0736146B2 (en) 1985-02-08 1985-02-08 Random vector processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60023967A JPH0736146B2 (en) 1985-02-08 1985-02-08 Random vector processing method

Publications (2)

Publication Number Publication Date
JPS61183782A JPS61183782A (en) 1986-08-16
JPH0736146B2 true JPH0736146B2 (en) 1995-04-19

Family

ID=12125319

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60023967A Expired - Lifetime JPH0736146B2 (en) 1985-02-08 1985-02-08 Random vector processing method

Country Status (1)

Country Link
JP (1) JPH0736146B2 (en)

Also Published As

Publication number Publication date
JPS61183782A (en) 1986-08-16

Similar Documents

Publication Publication Date Title
US4608662A (en) Method for editing document
US4665555A (en) Computer based drawing management system
US5410672A (en) Apparatus and method for the handling of banded frame buffer overflows
US4843405A (en) Method of controlling reproduction of image in bit-map controlled laser printer
US5150455A (en) Image data processor
US5136688A (en) Print data processing apparatus for an image forming apparatus
JPH02197962A (en) Register system for picture data
JPH0378651B2 (en)
JPH0736146B2 (en) Random vector processing method
US6628289B1 (en) Rendering apparatus and method, and storage medium
JP3116354B2 (en) Printer data management method
JP3005014B2 (en) Printing equipment
JP2630843B2 (en) Straight line drawing method and apparatus
JPH05282412A (en) Data processor
JP2727667B2 (en) Drawing equipment
JPS62264344A (en) Address controller
JPH0596811A (en) Printing method
JP3053196B2 (en) Image data raster converter
JP2715475B2 (en) Graphic output device
JPH064396A (en) Image drawing device
JPH02241267A (en) Picture information processor
JPH04273389A (en) Bit map developing system
JP2605609B2 (en) Dot display processing device
JP2748438B2 (en) Computer system
JPH0729449B2 (en) Printer controller