JPS636895B2 - - Google Patents

Info

Publication number
JPS636895B2
JPS636895B2 JP54057258A JP5725879A JPS636895B2 JP S636895 B2 JPS636895 B2 JP S636895B2 JP 54057258 A JP54057258 A JP 54057258A JP 5725879 A JP5725879 A JP 5725879A JP S636895 B2 JPS636895 B2 JP S636895B2
Authority
JP
Japan
Prior art keywords
line
pattern table
pattern
address
read
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
Application number
JP54057258A
Other languages
Japanese (ja)
Other versions
JPS55149981A (en
Inventor
Yoshasu Kikuchi
Hiroshi Kirii
Hideo Tachiki
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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP5725879A priority Critical patent/JPS55149981A/en
Publication of JPS55149981A publication Critical patent/JPS55149981A/en
Publication of JPS636895B2 publication Critical patent/JPS636895B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Description

【発明の詳細な説明】 本発明は複数種類の描画パターンをラスタ走査
形式の作画機構で所定の複数位置に描画する際の
図形データ変換装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a graphic data conversion device for drawing a plurality of types of drawing patterns at a plurality of predetermined positions using a raster scanning type drawing mechanism.

従来、かかるラスタ走査形式の作画機構に複数
種類の描画パターンを描画する代表例としては、
静電式多針記録、レーザプリンタCRTデイスプ
レイ装置などに漢字パターンを描画する例がある
が、一般に各漢字パターンを1文字30ドツト×30
ドツト等画素パターンに分解し、文字の黒部分を
1、白部分を0として蓄積する方式である。しか
し本発明の目的とする例えばプリント基板のエツ
チングやLSIのマスク等のランドと呼ばれるパタ
ーンは漢字より単純な図形であり、また水平、垂
直線に対称な場合が多いが、一方図形の大きさが
まちまちである上、その描画位置が一般の漢字描
画の如く格子上に整然と配置されるとは限らな
い。したがつて、漢字パターンの如くドツト形式
の画素パターンで蓄積するとメモリ容量が非常に
多くなる欠点があつた。また、他の代表例として
は、線分ベクトルとして蓄積する方式もあるが、
任意の図形を表現するためには多数の線分ベクト
ルに分解して多角形により表現する必要があり、
特に円が多い場合は必ずしもメモリ容量が少なく
てすむとは言いきれず、その上描画データへの変
換のための演算時間が増大し、高速作画が困難に
なる欠点があつた。
Conventionally, a typical example of drawing multiple types of drawing patterns using such a raster scanning type drawing mechanism is as follows.
There are examples of kanji patterns being drawn on electrostatic multi-needle recording, laser printer CRT display devices, etc., but generally each kanji pattern is drawn on 30 dots x 30 per character.
This method divides the characters into pixel patterns such as dots and stores the black parts of the characters as 1 and the white parts as 0. However, patterns called lands, which are the object of the present invention, such as etching of printed circuit boards and masks of LSI, are shapes that are simpler than kanji, and are often symmetrical about horizontal and vertical lines, but on the other hand, the size of the shapes is In addition to being different, the drawing positions are not always arranged neatly on a grid like in general kanji drawing. Therefore, when pixel patterns in the form of dots, such as Kanji patterns, are stored, the memory capacity becomes extremely large. Another typical example is a method of storing data as line segment vectors.
In order to express an arbitrary figure, it is necessary to decompose it into many line vectors and express it as a polygon.
In particular, when there are many circles, it cannot be said that the memory capacity is necessarily small, and the calculation time for conversion to drawing data increases, making high-speed drawing difficult.

本発明の目的はこれ等の欠点を除き円を主体と
するランドパターンの蓄積には比較的メモリ容量
が少なくてすみ、対称図形の変換が容易で、複雑
なパターンであつても変換時間が同一である高速
作画可能な図形データ変換装置を提供することに
ある。なお、本発明の図形データ変換装置は、描
画対象パターンの参照線位置X及び描画パターン
テーブルの読出しアドレスAに対応する値を蓄積
する描画データメモリと各種描画パターンの描画
領域の輪郭線と参照線との距離(以下輪郭線距離
とする)を各水平ラインごとに順次蓄積する描画
パターンテーブルと前記描画データメモリから描
画するデータを順次読み出し、読み出されたパタ
ーンテーブルアドレスAを描画パターンテーブル
読み出し開始番地としてパターンテーブルアドレ
スを発生し1または数ワードを順次、前記描画パ
ターンテーブルより輪郭線と参照線との距離を読
み出す描画パターンテーブルアドレス発生手段
と、前記参照線位置Xと輪郭線距離とを加算又は
減算することによりラインデータエレメントを算
出する加減算回路とデータエレメントの2対間の
ビツトを黒に展開するビツトパターン展開回路よ
りなる変換データとして出力する手段と、描画デ
ータメモリの対応する描画データの描画パターン
テーブルアドレスを今回読み出した1水平ライン
分の最終描画パターンテーブルアドレスに1加え
た値に書き直し、水平方向に対称な図形に対して
は1減じた値に書き直して書き込む回路とその対
象描画パターンが水平あるいは垂直に対称かどう
かによつて上記各回路を制御する回路により描画
パターンテーブルを読み出す手段とにより構成さ
れる。
The purpose of the present invention is to eliminate these drawbacks, save memory capacity for storing land patterns mainly consisting of circles, facilitate conversion of symmetrical figures, and make conversion time the same even for complex patterns. It is an object of the present invention to provide a graphic data conversion device capable of high-speed drawing. Note that the graphic data conversion device of the present invention has a drawing data memory that stores values corresponding to the reference line position X of the pattern to be drawn and the read address A of the drawing pattern table, and the contour lines and reference lines of the drawing area of various drawing patterns. The data to be drawn is sequentially read out from the drawing pattern table and the drawing data memory, in which the distance between the two horizontal lines (hereinafter referred to as contour line distance) is accumulated for each horizontal line, and the read pattern table address A is used to start reading out the drawing pattern table. a drawing pattern table address generating means that generates a pattern table address as an address and sequentially reads out the distance between the contour line and the reference line from the drawing pattern table in one or several words, and adds the reference line position X and the contour line distance. or a means for outputting conversion data as conversion data consisting of an addition/subtraction circuit that calculates a line data element by subtraction, and a bit pattern development circuit that develops the bits between two pairs of data elements into black; A circuit that rewrites the drawing pattern table address by adding 1 to the final drawing pattern table address for one horizontal line read this time, and subtracting 1 for horizontally symmetrical figures, and its target drawing pattern. and means for reading out the drawing pattern table using a circuit that controls each of the circuits described above depending on whether the drawing pattern table is horizontally or vertically symmetrical.

以下、本発明の各構成要素の動作を第1図を用
いて説明する。第1図は、プリント基板エツチン
グパターンの一部であり、配線部分に相当する矩
形パターン1,2,3と部品取付部分等に相当す
るランドパターン4,5がある。矩形パターン
1,2,3は別途本発明と組合せて使用する矩形
発生回路で描画されるものであり説明を省略す
る。ランドパターン4の外形は水平、垂直軸に非
対称であり、内部が六角形6と円7とによりくり
抜かれた図形である。一方ランドパターン5は円
形パターンであり水平中心線と垂直中心線に対称
である。
The operation of each component of the present invention will be explained below with reference to FIG. FIG. 1 shows a part of a printed circuit board etching pattern, which includes rectangular patterns 1, 2, and 3 corresponding to wiring portions, and land patterns 4 and 5 corresponding to component mounting portions. Rectangular patterns 1, 2, and 3 are drawn by a separate rectangular generating circuit used in combination with the present invention, and their explanation will be omitted. The outer shape of the land pattern 4 is asymmetrical with respect to the horizontal and vertical axes, and the inside thereof is hollowed out by a hexagon 6 and a circle 7. On the other hand, the land pattern 5 is a circular pattern and is symmetrical about the horizontal center line and the vertical center line.

次に第2図を用いて描画パターンの形状と描画
パターンテーブルの関係を一例として説明する。
第2図cに描画パターンテーブルの構造の一部を
一例として示す。描画パターンテーブルのアドレ
スa111からは第2図aのパターンの各水平ライン
ごとの左右の輪郭線距離l111,l112,l121,l122……
が順次記憶してあり、途中六角穴と交差するライ
ンiの場合は順次輪郭線距離l1i1,l1i2,l1i3,l1i4
が記憶してある。また、途中6角穴と円穴の両方
と交差するラインは輪郭線距離l1j1からl1j6までの
6ワードとして記憶され、ラインmの輪郭線距離
l1n1,l1n2がこのパターンの最終ラインのワード
である。
Next, the relationship between the shape of the drawing pattern and the drawing pattern table will be explained as an example using FIG.
FIG. 2c shows a part of the structure of the drawing pattern table as an example. From the address a 111 of the drawing pattern table, the left and right contour line distances for each horizontal line of the pattern in Figure 2 a are l 111 , l 112 , l 121 , l 122 .
are stored sequentially, and in the case of a line i that intersects with a hexagonal hole midway, the contour line distances are sequentially l 1i1 , l 1i2 , l 1i3 , l 1i4
is remembered. Also, a line that intersects both a hexagonal hole and a circular hole midway is stored as 6 words with contour distances l 1j1 to l 1j6 , and the contour distance of line m
l 1n1 and l 1n2 are the words of the last line of this pattern.

次の描画パターンテーブルのアドレスa21から
a2oに第2図bの直径φ1の半円の各水平ラインご
との右側の輪郭線距離l21,l22,l23……l2k,l2o
順次記憶してある。
From address a 21 of the next drawing pattern table
The right contour line distances l 21 , l 22 , l 23 . . . l 2k , l 2o for each horizontal line of the semicircle with diameter φ 1 in FIG .

これ等の各ワードには、各ラインの最終ワード
であることを示すビツトe1及び対応する描画パタ
ーンの最終ラインの最終ワードであることを示す
ビツトe2があり、各輪郭線距離lと同時に読み出
される。ここで描画パターンテーブルa111
a1n2,a21〜a2oのワードが夫々第1図のランドパ
ターン4、ランドパターン5の各ラインごとの輪
郭線距離であるとして、以下第1図にもどり描画
原理を説明する。
Each of these words has a bit e1 indicating that it is the last word of each line and a bit e2 indicating that it is the last word of the last line of the corresponding drawing pattern, and at the same time as each contour distance l. Read out. Here drawing pattern table a 111 ~
Assuming that the words a 1n2 and a 21 to a 2o are the contour line distances for each line of land pattern 4 and land pattern 5 in FIG. 1, the drawing principle will be explained below by returning to FIG. 1.

作画機構は順次上から下への水平ラインで図形
パターンを描画するものとする。第1図のライン
22〜24で描画するランドパターン4,5の描
画動作に当り描画データメモリは最初から順次最
後まで「…4,5…」と読み出し、次のラインの
描画動作の時も同様に「…4,5…」が読み出さ
れる。今、次に描画するラインがランドパターン
4の最上点10を含むライン20であつたとす
る。このラインのビツトパターン展開に当り、描
画データメモリからランドパターン4の参照線1
1の位置を示すX座標アドレス(以下参照線位置
とする)X4及び描画パターンテーブルアドレス
(a111、第2図c)、描画モード指定b1,b2,b3
読み出される。描画モード指定はb1が1なら参照
線に対称、b2が1なら各描画パターンの最終ワー
ドまで描画された図形と水平方向に対称な図形を
意味し、b3は初期値0であり、上記b2が1の時に
描画パターンの最終ワードまで描画した時点で初
めてb3を1とし、以後描画パターンテーブルアド
レスを減カウント方向に読み出すことを意味する
ものである。このとき、ランド4に対する描画モ
ード指定b1,b2,b3は全て0である。なお同一ラ
インにランドパターンの最上点が複数ある場合に
はラスタの進行順あるいはライダム等いずれの読
み出し順序でもよい。なお、ここで描画データメ
モリから描画パターン形状や大きさを示すコード
が読み出されて来て、これを装置内部の別な変換
テーブルにて描画パターンテーブルアドレスa111
に変換しても本質的には同じであることは言うま
でもない。描画データメモリから読出された描画
パターンテーブルアドレスa111で、描画パターン
テーブルのワードをアクセスし、輪郭線距離l111
及びビツトe1,e2を読出す。ビツトe1,e2共に0
であるので、さらに次のアドレスa112のワードを
アクセスし、輪郭線距離l112、ビツトe1,e2を読
出す。この時のビツトe1は1であるので、描画デ
ータメモリの前記描画パターンテーブルアドレス
a111をひとつ次のアドレスa121に書き替える。一
方、描画パターンテーブルから読み出した輪郭線
距離l111,l112は夫々描画データメモリから読出さ
れている前記参照線位置X4と符号込みで加算し、
夫々データエレメントX4+l111,X4+l112を得る。
これをビツトパターン展開回路に送り、この間の
ビツトパターンを1にする。描画データメモリか
ら順次以後の描画データを読み出し、同様にして
ビツトパターンに展開する。対象ライン20の全
ての描画対象パターンのビツトパターン展開が終
り、そのビツトパターンを作画機構に転送する
と、対象ラインの描画対象パターンの部分が黒
(あるいはあらかじめ設定された色)で描画され
る。
It is assumed that the drawing mechanism sequentially draws a graphic pattern in horizontal lines from top to bottom. During the drawing operation of land patterns 4 and 5 drawn on lines 22 to 24 in Fig. 1, the drawing data memory is sequentially read out as "...4, 5..." from the beginning to the end, and the same goes for the drawing operation of the next line. "...4,5..." is read out. Now, assume that the next line to be drawn is line 20 including the top point 10 of land pattern 4. When developing the bit pattern of this line, reference line 1 of land pattern 4 is extracted from the drawing data memory.
The X coordinate address (hereinafter referred to as reference line position) X 4 indicating the position of line 1, the drawing pattern table address (a 111 , c in FIG. 2), and the drawing mode designations b 1 , b 2 , b 3 are read out. The drawing mode specification means that if b1 is 1, it is symmetrical to the reference line, if b2 is 1, it is horizontally symmetrical to the figure drawn up to the last word of each drawing pattern, and b3 is the initial value 0, This means that when b 2 is 1, b 3 is set to 1 only when the final word of the drawing pattern is drawn, and thereafter the drawing pattern table address is read in the direction of decreasing count. At this time, the drawing mode specifications b 1 , b 2 , and b 3 for land 4 are all 0. Note that if there are a plurality of top points of land patterns on the same line, any reading order such as raster progression order or Lydom order may be used. At this point, a code indicating the shape and size of the drawing pattern is read from the drawing data memory, and is converted to the drawing pattern table address a 111 in another conversion table inside the device.
Needless to say, it is essentially the same even if converted to . Access the word of the drawing pattern table using the drawing pattern table address a 111 read from the drawing data memory, and calculate the contour line distance l 111
and read bits e 1 and e 2 . Both bits e 1 and e 2 are 0
Therefore, the word at the next address a 112 is accessed and the contour distance l 112 and bits e 1 and e 2 are read out. At this time, bit e1 is 1, so the drawing pattern table address in the drawing data memory
Rewrite a 111 to the next address a 121 . On the other hand, the contour line distances l 111 and l 112 read from the drawing pattern table are added together with the reference line position X 4 read from the drawing data memory, respectively, and
Data elements X 4 +l 111 and X 4 +l 112 are obtained, respectively.
This is sent to the bit pattern expansion circuit, and the bit pattern during this period is set to 1. The subsequent drawing data is sequentially read from the drawing data memory and similarly developed into a bit pattern. When the bit pattern development of all the patterns to be drawn on the target line 20 is completed and the bit patterns are transferred to the drawing mechanism, the part of the pattern to be drawn in the target line 20 is drawn in black (or a preset color).

次のライン21の描画パターン展開に当り、再
度描画データメモリからランドパターン4の参照
線位置X4、対称性を示す描画モード指定b1=0,
b2=0,b3=0及び描画パターンテーブルアドレ
スが読み出されて来るが、描画パターンテーブル
アドレスはa121に書き直されているので、今度は
輪郭線距離l121,l122のワードが読み出され、夫々
データエレメントX4+l121,X4+l122を計算する。
この値をビツトパターン展開回路に送り、この間
が黒となる描画を行うことは同様である。
When developing the drawing pattern for the next line 21, the reference line position X 4 of the land pattern 4 is read again from the drawing data memory, the drawing mode designation indicating symmetry b 1 =0,
b 2 = 0, b 3 = 0 and the drawing pattern table address are read, but since the drawing pattern table address has been rewritten to a 121 , the words with the contour line distances l 121 and l 122 are read this time. and calculate data elements X 4 +l 121 and X 4 +l 122 , respectively.
In the same way, this value is sent to the bit pattern development circuit and drawing is performed so that the area in between is black.

同様にして、順次各ラインの描画を進め、ラン
ドパターン5の最上点13を含むライン22のビ
ツトパターン展開に当り、ランドパターン4の参
照線位置X4及び描画モード指定b1=0,b2=0,
b3=0及び描画パターンテーブルアドレスa121
読み出され、その他に、描画データメモリからラ
ンドパターン5の図形データとして、参照線14
の位置を示す座標アドレスである参照線位置X5
及び描画パターンテーブルアドレスa21、及び描
画モード指定b1=0,b2=0,b3=0が読み出さ
れる。ランドパターン5の描画モード指定b1,b2
は相方とも1であり、参照線の垂直線に、及び水
平中心線に対称であることを意味する。この描画
パターンテーブルアドレスa21により輪郭線距離
l21のワードを読み出し、前記参照線位置X5と加
減算を行い、データエレメントX5−l21,X5+l21
を得る。この時ビツトe1が1であるので、描画デ
ータメモリのランドパターン5に対応する描画パ
ターンテーブルアドレスはa22に書き替える。同
様にして、途中のライン23の所では、描画デー
タメモリから読出されるランドパターン4の参照
線位置はX4描画モード指定はb1=0,b2=0,
b3=0、描画パターンテーブルアドレスはa1i1
あり、輪郭線距離はl1i1,l1i2,l1i3,l1i4が順次読
み出され、データエレメントX4+l1i1,X4+l1i2
びX4+l1i3,X4+l1i4が作られ、それ等の2対のデ
ータエレメント間のビツトパターンが黒で描画さ
れる。続いて描画データメモリから読み出される
ランドパターン5の参照線位置はX5、描画モー
ド指定はb1=1,b2=1,b3=0、描画パターン
テーブルアドレスはa2kであり、輪郭線距離はl2k
が読み出され、データエレメントX5−l2k,X5
l2kが作られる。さらに、ライン24まで進むと、
ランドパターン5に対応する参照線位置はX5
描画モード指定はb1=1,b2=1,b3=0、描画
パターンアドレスはa2oとなり、輪郭線距離l2o
読み出され、同時にビツトe2=1が読出される。
ここで描画データメモリから読出された描画モー
ド指定は、b2=1即ち水平線に対称であるので、
ここで初めて描画モード指定b3=1を描画データ
メモリのランドパターン5のデータに書き込み、
以後の描画パターンテーブルのアドレスを減カウ
ント方向に読み出すことを印す。したがつて、以
後のラインでは、参照位置は全てX5、描画モー
ド指定b1,b2,b3は全て1、そして順次読み出さ
れる描画パターンテーブルのアドレスは、…a2k
…a23,a22,a21となり順に減カウント方向にアド
レスし、次に、a1n2をアドレスした時にe2=1の
ビツトを検出し、このランドパターン5描画が全
て終了したことが判明するので、描画データメモ
リのランドパターン5に対応するデータを消去す
るか、何らかの終了マークを付して、以後このラ
ンドパターン5は描画対称としない。同様にして
ライン25の描画の際、ランドパターン4の描画
パターンテーブルアドレスa1n2をアクセスした時
e2=1のビツトを検出するのでランドパターン4
も消去する。
In the same way, each line is drawn in sequence, and when developing the bit pattern of line 22 including the top point 13 of land pattern 5, reference line position X 4 of land pattern 4 and drawing mode designation b 1 =0, b 2 =0,
b 3 =0 and the drawing pattern table address a 121 are read out, and in addition, the reference line 14 is read out as the figure data of the land pattern 5 from the drawing data memory.
Reference line position which is the coordinate address indicating the position of 5
The drawing pattern table address a 21 and drawing mode designations b 1 =0, b 2 =0, and b 3 =0 are read out. Land pattern 5 drawing mode specification b 1 , b 2
is 1, meaning that it is symmetrical to the vertical line of the reference line and to the horizontal center line. Contour line distance by this drawing pattern table address A21
Read the word l 21 and perform addition and subtraction with the reference line position X 5 to obtain data elements X 5 −l 21 , X 5 +l 21
get. At this time, bit e1 is 1, so the drawing pattern table address corresponding to land pattern 5 in the drawing data memory is rewritten to a22 . Similarly , at line 23 in the middle, the reference line position of land pattern 4 read from the drawing data memory is
b 3 = 0, the drawing pattern table address is a 1i1 , the contour line distances are l 1i1 , l 1i2 , l 1i3 , l 1i4 are read out sequentially, and the data elements X 4 +l 1i1 , X 4 +l 1i2 and X 4 +l 1i3 , X 4 +l 1i4 are created, and the bit pattern between those two pairs of data elements is drawn in black. Next, the reference line position of the land pattern 5 read from the drawing data memory is X 5 , the drawing mode specification is b 1 = 1, b 2 = 1, b 3 = 0, the drawing pattern table address is a 2k , and the contour line distance is l 2k
is read, and the data elements X 5 −l 2k , X 5 +
l 2k is made. Further, if you proceed to line 24,
The reference line position corresponding to land pattern 5 is X 5 ,
The drawing mode designation is b 1 =1, b 2 =1, b 3 =0, the drawing pattern address is a 2o , the contour line distance l 2o is read out, and at the same time the bit e 2 =1 is read out.
Here, the drawing mode specification read from the drawing data memory is symmetrical to the horizontal line, so b 2 = 1, that is, it is symmetrical to the horizontal line, so
For the first time, writing the drawing mode designation b 3 =1 to the data of land pattern 5 in the drawing data memory,
Marks that the address of the subsequent drawing pattern table will be read in the decrementing direction. Therefore, in the subsequent lines, all reference positions are X 5 , drawing mode specifications b 1 , b 2 , and b 3 are all 1, and the addresses of the drawing pattern table that are sequentially read out are...a 2k
...a 23 , a 22 , a 21 are addressed in order in the decreasing count direction, and then when a 1n2 is addressed, the bit of e 2 = 1 is detected, and it becomes clear that this land pattern 5 drawing has been completed. Therefore, either the data corresponding to land pattern 5 in the drawing data memory is deleted or some kind of end mark is attached, and this land pattern 5 is no longer used as a drawing target. Similarly, when drawing line 25, when accessing drawing pattern table address a 1n2 of land pattern 4
Since the bit of e 2 = 1 is detected, the land pattern is 4.
Also erase.

第3図を用いて本発明の図形データ変換装置の
具体的実施例を説明する。輪郭線と参照線との距
離を各水平ラインごとに順次蓄積してある描画パ
ターンテーブル101はリードオンリーメモリで
十分であるが、書き換え可能なメモリ等を用い事
前に線102を通して外部のコンピユータとか磁
気記憶装置からロードしても良い。描画データメ
モリ103には今回のラインで描画対象となるパ
ターン数だけ描画パターンデータb1b2b3,A,X
があらかじめ線104より送られて蓄積されてい
るものであり、少なくとも一ライン上に必要なエ
リアを有する。一般にこの描画対象データは次の
ラインから描画対象となる直前に送られて来て、
対象図形の描画が完了した時点で消去する様にす
れば、メモリ容量が小さくてすむ。あるラインの
描画に当り、描画データメモリ103により描画
対象データが描画メモリアドレツサ121により
順次読み出されて来る。描画メモリアドレツサ1
21は、描画データメモリ103の最初の番地よ
り最後の番地のデータまで読み出して来る様に1
番地づつ増加するものである。ある描画対象デー
タの参照線位置Xは線105より加算器106,
107に送られる。描画パターンテーブルアドレ
スAを線108よりアドレツサ109にセツトし
描画パターンアドレスの発生が行われる。アドレ
ツサ109のアドレスにより描画パターンテーブ
ル101のあるワード例えばl11が線110から
読み出され、ゲート111,112を経由して加
算器106,107に送られる。この際描画デー
タメモリ103から線113へ読出されている描
画モード指定b1が0すなわち非対称であればフリ
ツプフロツプ回路114により、描画パターンテ
ーブル101から読み出される輪郭線距離lが順
次交互に夫々加算器106,107に加えられる
ようにゲート111,112を制御する。また、
描画モード指定b1が1すなわち対称図形であれば
ゲート111,112の双方が開くようにフリツ
プフロツプ114の両出力を1とし、さらに加算
器106の加減算切換端子に加わり、輪郭線距離
lが参照線位置Xより引かれる。なおこの加算器
106,107は輪郭線距離lの符号(正,負)
を含めて演算処理できるものとしてある。一般的
にあるパターンの参照線距離をX、左右対称な場
合の輪郭線距離をl11,l12とした時、結局加算器
106の出力線115からは描画指定モードb1
0,1に応じて、夫々X+l11,X−l11が、加算
器107の出力線116からは描画指定モード
b1,0,1に応じて、夫々X+l12,X+l11が出
力し、ビツトパターン展開回路117へ送られ
る。ビツトパターン展開回路117のくわしい説
明は本発明の本質でないので省略するが、例え
ば、線115の値にあるカウンタをセツトした
後、順次クロツクパルスにより1づつアツプし、
そのカウンタの値と線116の値を比較する回路
にて、カウンタの内容と線116の値が等しくな
つた時カウンタのアツプを停止する。このカウン
タの内容をアドレスとしてビツトパターンバツフ
アメモリに順次1を書き込み、1ライン分のビツ
トパターンが完成した後作画機構に転送する様な
ものが考えられる。次に、描画パターンテーブル
101を制御するアドレツサ109にもどつて説
明する。アドレツサ109は一般にアツプダウン
カウンタでも良く、また、1づつ加算可能な加算
器でも良い。描画パターンテーブルアドレスAが
アドレツサ109にセツトされ、描画パターンテ
ーブルの所定のワードが読み出される際、そのワ
ードの一部に記憶されているビツトe1,e2が読み
出されて来る。ビツトe1はそのワードが対象描画
パターンの各ラインの最終ワードであることを意
味し、ビツトe2はそのワードが対象描画パターン
の最終ラインでもあることを意味するとすること
は前に述べたとおりで、読み出されたe1が0であ
れば順次e1=1となるまで描画パターンテーブル
の所定のワードが読み出される。以上がメインな
動作であるが、その後、次のラインの準備を行
う。
A specific embodiment of the graphic data conversion device of the present invention will be described using FIG. A read-only memory is sufficient for the drawing pattern table 101 in which the distance between the contour line and the reference line is stored sequentially for each horizontal line, but a rewritable memory or the like is used to pass the line 102 in advance to an external computer or magnet. It may also be loaded from a storage device. The drawing data memory 103 stores drawing pattern data b 1 b 2 b 3 , A, X for the number of patterns to be drawn in the current line.
is sent from the line 104 and stored in advance, and has the necessary area on at least one line. Generally, this drawing target data is sent from the next line just before it becomes the drawing target.
If the target figure is erased when drawing is completed, the memory capacity can be reduced. When drawing a certain line, data to be drawn from the drawing data memory 103 is sequentially read out by the drawing memory addresser 121. Drawing memory addresser 1
21 is 1 so as to read data from the first address to the last address of the drawing data memory 103.
It increases by address. The reference line position X of certain drawing target data is determined from the line 105 by the adder 106,
107. The drawing pattern table address A is set in the addresser 109 from the line 108, and a drawing pattern address is generated. A certain word of the drawing pattern table 101, for example l11 , is read out from a line 110 by the address of the addresser 109 and sent to adders 106 and 107 via gates 111 and 112. At this time, if the drawing mode designation b1 read from the drawing data memory 103 to the line 113 is 0, that is, it is asymmetric, the flip-flop circuit 114 sequentially and alternately adds the contour line distance l read from the drawing pattern table 101 to the adder 106. , 107 are controlled. Also,
If the drawing mode designation b1 is 1 , that is, the figure is symmetrical, both outputs of the flip-flop 114 are set to 1 so that both gates 111 and 112 are open, and the output is added to the addition/subtraction switching terminal of the adder 106, and the outline distance l is set to the reference line. Pulled from position X. Note that the adders 106 and 107 calculate the sign (positive, negative) of the contour line distance l.
It is assumed that calculations can be performed including the following. In general, when the reference line distance of a certain pattern is X, and the contour line distances in the case of bilateral symmetry are l 11 and l 12 , the output line 115 of the adder 106 eventually outputs the drawing specification mode b 1 ,
0 and 1, respectively, X+l 11 and X-l 11 are output from the output line 116 of the adder 107 to the drawing specification mode.
In response to b 1 , 0, and 1, X+l 12 and X+l 11 are output, respectively, and sent to the bit pattern expansion circuit 117. A detailed explanation of the bit pattern expansion circuit 117 is omitted as it is not the essence of the present invention, but for example, after setting the counter to the value of the line 115, it is sequentially incremented by 1 by a clock pulse,
A circuit that compares the value of the counter with the value of line 116 stops the counter from increasing when the contents of the counter and the value of line 116 become equal. One conceivable method would be to use the contents of this counter as an address and sequentially write 1's into the bit pattern buffer memory, and after the bit pattern for one line is completed, transfer it to the drawing mechanism. Next, the explanation will return to the addresser 109 that controls the drawing pattern table 101. Addresser 109 may generally be an up-down counter, or may be an adder capable of adding 1 at a time. When the drawing pattern table address A is set in the addresser 109 and a predetermined word of the drawing pattern table is read out, bits e 1 and e 2 stored in a part of the word are read out. As mentioned before, bit e 1 means that the word is the last word of each line of the target drawing pattern, and bit e 2 means that the word is also the last line of the target drawing pattern. If the read e 1 is 0, predetermined words of the drawing pattern table are sequentially read out until e 1 =1. The above is the main operation, but after that, preparations for the next line are made.

アドレツサ109の値により描画パターンテー
ブル101から1ワード読み出した時信号線12
9に出力されるビツトe1が0であれば、線120
からのタイミングでゲート128によりアドレツ
サ109の内容を1増加し、次の1ワードを読み
出すが、ビツトe1が1であると、次のワードの読
出は行わない。だがこの時、描画データメモリア
ドレツサ121、ゲート122により、この1増
加したアドレツサ109の内容で描画データメモ
リの前に読出された描画パターンテーブルアドレ
スAが新しい値に書き換えられる。この書き換え
が終了すると、線129からe1=1により描画デ
ータメモリアドレツサ121の値が増加し、描画
データメモリ103より次の描画対象パターンの
参照線位置X、描画パターンテーブルアドレス
A、描画モード指定b1b2…が読み出され、同様に
して描画パターンテーブル101から描画対象パ
ターンの1ライン分に対応するワードが読み出さ
れ、加算回路によりデータエレメントが計算さ
れ、ビツトパターン展開回路117でビツトパタ
ーンに展開される。ある1ラインの描画対象パタ
ーンの全てのビツトパターン展開が完了して、作
画機構にそのパターンを転送した時、次の1ライ
ンの描画対象パターンのビツト展開を開始する。
その際、描画データメモリ103から、前ライン
でビツトパターンに展開した描画対象パターンが
再度読み出される。この時、参照線位置X及び描
画モード指定b1の内容は同一であるが描画パター
ンテーブルアドレスAは前ラインの処理の時に書
き替えられており、例えば前ラインの輪郭線距離
がl111の例では、前ラインでl112まで読み出され、
描画パターンテーブルアドレスはa121となつてお
り、現ラインで読み出される輪郭線距離はl121
ある。したがつて現ラインでは前ラインとは輪郭
線位置の異なるビツトパターンが展開されること
になる。同様にして1ラインづつ作画機構に送ら
れると、順次所定の描画パターンが所定の位置に
描画されることになる。この様にして、各ライン
ごとに描画データメモリ103の内容が読み出さ
れ描画パターンテーブルがアクセスされた際、線
123より、ビツトe2が1のワード、例えば描画
パターンテーブルアドレスa1n2で、輪郭線距離
l1n2が読み出された時、そのワードはその対象描
画パターンの最終ワードであることを意味するの
で、ゲート124及び描画データメモリアドレツ
サ121の操作により、今読み出された対象描画
データを消去する。
When one word is read from the drawing pattern table 101 according to the value of the addresser 109, the signal line 12
If bit e1 output on line 120 is 0, then line 120
The contents of the addresser 109 are incremented by 1 by the gate 128 at the timing from 1 to 1, and the next word is read out. However, if bit e1 is 1, the next word is not read out. However, at this time, the drawing pattern table address A previously read out from the drawing data memory is rewritten to a new value by the drawing data memory addresser 121 and gate 122 with the contents of the addresser 109 incremented by one. When this rewriting is completed, the value of the drawing data memory addresser 121 is increased by e 1 =1 from the line 129, and the reference line position X, drawing pattern table address A, and drawing mode of the next pattern to be drawn are stored in the drawing data memory 103. The designation b 1 b 2 . Expanded into a bit pattern. When the development of all the bit patterns of the pattern to be drawn on one line is completed and the pattern is transferred to the drawing mechanism, the bit development of the pattern to be drawn on the next line is started.
At this time, the pattern to be drawn developed into a bit pattern in the previous line is read out again from the drawing data memory 103. At this time, the contents of the reference line position X and drawing mode specification b1 are the same, but the drawing pattern table address A has been rewritten during the processing of the previous line. Then, the previous line reads up to l 112 ,
The drawing pattern table address is a121 , and the contour distance read out for the current line is l121 . Therefore, a bit pattern with a different outline position from that of the previous line is developed on the current line. Similarly, when each line is sent to the drawing mechanism, a predetermined drawing pattern is sequentially drawn at a predetermined position. In this way, when the contents of the drawing data memory 103 are read out for each line and the drawing pattern table is accessed, from the line 123, a word whose bit e 2 is 1, for example, the drawing pattern table address a 1n2 , is used to write the outline. line distance
l When 1n2 is read, it means that that word is the final word of the target drawing pattern, so the target drawing data that has just been read out is erased by operating the gate 124 and the drawing data memory addresser 121. do.

ただし、ここにおいて、描画モード指定b2
1、即ち水平線に対して対称な図形を指定してい
る場合は、このビツトe2が1であるワードが読み
出された時のラインがこの対象描画パターンの対
称水平線に該当する。したがつて、このb2=1,
e2=1という特殊な条件の時、ゲート125のア
ンド条件が満足し、描画指定モードb3を1にす
る。以後の各ラインにおいて、描画データメモリ
から読出されたデータの描画指定モードb3が1で
あれば、線126によりアドレツサ109が減カ
ウントする様に動き、次に再び描画パターンテー
ブルよりビツトe2=1が読み出された時ゲート1
27及び描画データメモリアドツサ121の操作
により、その時読み出された水平線に対称な対象
描画データが消去される。
However, if the drawing mode specification b2 is 1, that is, a figure that is symmetrical with respect to the horizontal line is specified, the line when the word for which this bit e2 is 1 is read is the target drawing. Corresponds to the horizontal line of symmetry of the pattern. Therefore, this b 2 =1,
When the special condition of e 2 =1 is satisfied, the AND condition of the gate 125 is satisfied and the drawing specification mode b 3 is set to 1. In each subsequent line, if the drawing designation mode b3 of the data read from the drawing data memory is 1, the addresser 109 moves to decrement the count according to the line 126, and then again reads bit e2 = from the drawing pattern table. Gate 1 when 1 is read
27 and the operation of the drawing data memory addresser 121, the target drawing data symmetrical to the horizontal line read at that time is erased.

以上、本発明の実施例について述べたが、描画
データメモリに書き替え記憶する描画パターンテ
ーブルアドレスは代りに、描画パターンの形状や
大きさによつて一義的に定めたコードと、描画パ
ターンテーブルの各ランドパターンの開始ワード
からのワード数であつて、このコードから別な変
換テーブルで描画パターンテーブルの開始点アド
レスを求め、これにワード数を加算して描画パタ
ーンテーブルアドレスを求めても可能である。
The embodiments of the present invention have been described above, but instead, the drawing pattern table address to be rewritten and stored in the drawing data memory is a code uniquely determined depending on the shape and size of the drawing pattern, and a drawing pattern table address that is rewritten and stored in the drawing data memory. This is the number of words from the start word of each land pattern. It is also possible to calculate the starting point address of the drawing pattern table using a separate conversion table from this code and adding the number of words to this to obtain the drawing pattern table address. be.

また、第1図のランドパターン4の様に複数の
図形から構成されている場合には、各ラインごと
に外形線に対応する部分を黒で描画し、一方その
内部の六角形や円は描画パターンテーブルの別の
エリアに蓄積された輪郭線距離により別途白で描
画するとか、順次エクスクルージーブオア(白黒
反転)を行うことによつて描画することも可能で
ある。
In addition, if the land pattern 4 in Figure 1 is composed of multiple figures, the part corresponding to the outline of each line is drawn in black, while the hexagons and circles inside are drawn. It is also possible to draw separately in white based on the contour line distance accumulated in another area of the pattern table, or to draw by sequentially performing exclusive-or (black and white inversion).

以上のように複数種類の描画パターンをラスタ
走査形式の作画機構で所定の位置に描画する装置
において、本発明の図形データ変換装置によれば
パターンデータを記憶するメモリ容量が少なくて
すみ、かつ変換を容易に高速化でき、その効果は
大なるものである。
As described above, in a device that draws a plurality of types of drawing patterns at predetermined positions using a raster scanning type drawing mechanism, the graphic data conversion device of the present invention requires less memory capacity for storing pattern data, and can be easily speeded up, and the effect is significant.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の図形変換装置を実施して有効
なプリント基板の一部を示す図、第2図は第1図
のプリント基板に用いられる2種類ランドパター
ンの例を用いて描画パターンテーブルに記憶する
各ワードとアドレスの関係を説明する図、第3図
は本発明を具体的に実施する回路の構成図であ
る。 図において、101は描画パターンテーブル、
103は描画データメモリ、106は加減算器、
107は加算器、109はアドレツサ、111,
112はゲート回路、114はフリツプフロツ
プ、117はビツトパターン展開回路、121は
描画データメモリアドレツサ、128はゲート回
路をそれぞれ示す。
Fig. 1 is a diagram showing a part of a printed circuit board that is effective by implementing the figure conversion device of the present invention, and Fig. 2 is a drawing pattern table using examples of two types of land patterns used in the printed circuit board of Fig. 1. FIG. 3 is a diagram illustrating the relationship between each word stored in the memory and the address, and FIG. 3 is a configuration diagram of a circuit specifically implementing the present invention. In the figure, 101 is a drawing pattern table;
103 is a drawing data memory, 106 is an adder/subtractor,
107 is an adder, 109 is an addresser, 111,
112 is a gate circuit, 114 is a flip-flop, 117 is a bit pattern expansion circuit, 121 is a drawing data memory addresser, and 128 is a gate circuit.

Claims (1)

【特許請求の範囲】 1 複数種類の描画パターンをラスタ走査形式の
作画機構で所定の位置に描画する際、描画対象パ
ターンが少なくとも今回のラスタで描画される間
はその描画対象パターンの参照線位置及び今回の
ラスタで使用する描画パターンテーブルアドレス
Aを蓄積する描画データメモリと、各種描画パタ
ーンの描画領域の各々少なくとも左右の輪郭線と
参照線との距離を各水平ラインごとに順次蓄積す
る描画パターンテーブルと、前記描画データメモ
リから今回ラスタで描画するデータを順次読出
し、読み出された、前記パターンテーブルアドレ
スAを描画パターンテーブル読出し開始番地とし
てパターンテーブルアドレスを発生し、1または
数ワードを順次前記描画パターンテーブルより輪
郭線と参照線との距離を読み出す描画パターンテ
ーブルアドレス発生手段と、読み出された前記距
離と前記参照線位置Xとを夫々加算または減算し
ラインデータエレメントを算出し、変換データと
して出力する手段と、前記描画データメモリの描
画パターンテーブルアドレスを今回読み出した1
水平ライン分の最終描画パターンテーブルアドレ
スに1加えた値が得られる様に書きなおす手段と
を含むことを特徴とする図形データ変換装置。 2 描画パターンテーブルアドレス発生手段とし
て描画パターンテーブル中の夫々対象描画パター
ンの最終水平ラインまでの輪郭線と参照線との距
離を読出した後、そのことを描画パターンメモリ
に書込む手段とそれ以後は描画データメモリの描
画パターンテーブルアドレスを今回読み出した1
水平ライン分の最終描画パターンアドレスに1減
じた値が得られる様に書きなおす手段とを含み水
平方向に対して対称な図形を得る特許請求の範囲
第1項記載の図形データ変換装置。
[Scope of Claims] 1. When drawing a plurality of types of drawing patterns at predetermined positions using a raster scanning type drawing mechanism, the reference line position of the drawing target pattern is maintained at least while the drawing target pattern is being drawn in the current raster. and a drawing data memory that stores the drawing pattern table address A used in the current raster, and a drawing pattern that sequentially stores the distance between at least the left and right contour lines and the reference line for each horizontal line in each of the drawing areas of various drawing patterns. The data to be drawn in raster this time is read out sequentially from the table and the drawing data memory, and a pattern table address is generated using the read pattern table address A as the drawing pattern table reading start address, and one or several words are sequentially read out from the drawing data memory. a drawing pattern table address generation means for reading out the distance between the contour line and the reference line from the drawing pattern table; adding or subtracting the read distance and the reference line position X, respectively, to calculate a line data element; and converting data. 1, which read out the drawing pattern table address of the drawing data memory this time.
A graphic data conversion device comprising means for rewriting the final drawing pattern table address for a horizontal line so as to obtain a value added by 1. 2. As a drawing pattern table address generation means, after reading the distance between the contour line and the reference line to the final horizontal line of each target drawing pattern in the drawing pattern table, a means for writing the distance into the drawing pattern memory; The drawing pattern table address in the drawing data memory was read this time1
2. The graphic data conversion device according to claim 1, further comprising means for rewriting the final drawing pattern address for a horizontal line so as to obtain a value subtracted by 1, thereby obtaining a horizontally symmetrical graphic.
JP5725879A 1979-05-10 1979-05-10 Graphic data converter Granted JPS55149981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5725879A JPS55149981A (en) 1979-05-10 1979-05-10 Graphic data converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5725879A JPS55149981A (en) 1979-05-10 1979-05-10 Graphic data converter

Publications (2)

Publication Number Publication Date
JPS55149981A JPS55149981A (en) 1980-11-21
JPS636895B2 true JPS636895B2 (en) 1988-02-12

Family

ID=13050495

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5725879A Granted JPS55149981A (en) 1979-05-10 1979-05-10 Graphic data converter

Country Status (1)

Country Link
JP (1) JPS55149981A (en)

Also Published As

Publication number Publication date
JPS55149981A (en) 1980-11-21

Similar Documents

Publication Publication Date Title
US4984183A (en) Graphics display controller for transferring figure data to overlapping portions of destination area and drawing-enable area defined by clipping rectangle
JPH0355832B2 (en)
US4943801A (en) Graphics display controller equipped with boundary searching circuit
JPH0570187B2 (en)
JPS636895B2 (en)
JPS6144317B2 (en)
JPS6057593B2 (en) Character pattern processing method
JPS6155677B2 (en)
JPH011075A (en) Image processing device
JPS5882296A (en) Dot matrix display system
JP2808105B2 (en) Font drawing device
JPH0112309Y2 (en)
JPH0285977A (en) Closed area paint-out display method
JP2773458B2 (en) Vector controller
JPS6131905B2 (en)
JPS6198385A (en) Display controller
JPH02178784A (en) Data processor
JPH0610827B2 (en) Feature extraction device
JPS6350705Y2 (en)
JPS6191690A (en) Image display unit
JPS6177890A (en) Display screen controller
JPH049150B2 (en)
JPS62152072A (en) Paint-out system for polygon
JPH0228869B2 (en) GURAFUITSUKUDEISUPUREISOCHINONYURYOKUFUIIRUDOSEIGYOHOSHIKI
JPS5922258B2 (en) Kanji pattern storage and playback method