JPH01100421A - Line interpolation method in X-Y recorder - Google Patents
Line interpolation method in X-Y recorderInfo
- Publication number
- JPH01100421A JPH01100421A JP25801387A JP25801387A JPH01100421A JP H01100421 A JPH01100421 A JP H01100421A JP 25801387 A JP25801387 A JP 25801387A JP 25801387 A JP25801387 A JP 25801387A JP H01100421 A JPH01100421 A JP H01100421A
- Authority
- JP
- Japan
- Prior art keywords
- line
- density
- variable
- interpolation
- data
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 57
- 238000000059 patterning Methods 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 abstract description 4
- 101100328887 Caenorhabditis elegans col-34 gene Proteins 0.000 abstract 1
- RRLHMJHRFMHVNM-BQVXCWBNSA-N [(2s,3r,6r)-6-[5-[5-hydroxy-3-(4-hydroxyphenyl)-4-oxochromen-7-yl]oxypentoxy]-2-methyl-3,6-dihydro-2h-pyran-3-yl] acetate Chemical compound C1=C[C@@H](OC(C)=O)[C@H](C)O[C@H]1OCCCCCOC1=CC(O)=C2C(=O)C(C=3C=CC(O)=CC=3)=COC2=C1 RRLHMJHRFMHVNM-BQVXCWBNSA-N 0.000 abstract 1
- MDKCFLQDBWCQCV-UHFFFAOYSA-N benzyl isothiocyanate Chemical compound S=C=NCC1=CC=CC=C1 MDKCFLQDBWCQCV-UHFFFAOYSA-N 0.000 description 6
- 238000007796 conventional method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000000873 masking effect Effects 0.000 description 4
- 238000005070 sampling Methods 0.000 description 2
- 238000011144 upstream manufacturing Methods 0.000 description 2
- HGYZMIFKJIVTLJ-UHFFFAOYSA-N 4-chloro-2,3-dihydro-1h-pyrrolo[3,2-c]pyridine Chemical compound ClC1=NC=CC2=C1CCN2 HGYZMIFKJIVTLJ-UHFFFAOYSA-N 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
Landscapes
- Recording Measured Values (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
この発明は、X−Y記録計におけるライン補間方法に関
し、さらに詳しくは、ドツトプリンタにより濃さを変え
た多種類のラインを記録することができるようにしたX
−Y記録計におけるライン補間方法に関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a line interpolation method in an X-Y recorder, and more specifically, it is possible to record many types of lines with varying densities using a dot printer. X made like this
-Relates to a line interpolation method in a Y recorder.
[発明の技術的背景]
従来、ドツトプリンタを用いたX−Y記録計により多種
類のラインを自他の識別を可能に記録するライン補間方
法に関しては、補間処理が比較的簡易であることなどの
理由から、ラインの太さを何段階にも変えて記録する方
式が多く用いられている。[Technical Background of the Invention] Conventionally, with regard to line interpolation methods for recording many types of lines in a way that allows identification of oneself and others using an X-Y recorder using a dot printer, there are advantages such as that the interpolation process is relatively simple. For this reason, a method is often used in which the thickness of the line is changed in several stages for recording.
第11図(イ)、(ロ)は、ドツトプリンタを用いてラ
イン補間を行なった場合の従来例を示すものである。こ
のうち、第目図(イ)は、1ドツトを連続記録させてな
る基本ライン10を示すものであり、第11図(ロ)は
、ライン幅を3ドツトで構成することにより、その太さ
を前記基本ライン1゜の3倍とした大幅ライン11を示
すものである。従来方法は、このようにしてラインの太
さを何段階にも変えて記録することにより、各ライン相
互の種類の判別を可能とするものであった。FIGS. 11(a) and 11(b) show conventional examples in which line interpolation is performed using a dot printer. Of these, Fig. 1 (a) shows the basic line 10 formed by continuously recording one dot, and Fig. 11 (b) shows the thickness of the line by composing the line width with three dots. This shows a wide line 11 in which the angle is three times the basic line 1°. In the conventional method, the thickness of the line is changed in several stages and recorded, thereby making it possible to discriminate the type of each line.
[発明が解決しようとする問題点]
ところで、上記従来方法のように各ラインの太さを何段
階にも変えてやることで、彼此の別を識別可能にライン
補間する手法は、各ラインの太さの速いが明確であるた
め、これを手掛かりにラインの種類を容易に判別するこ
とはできる。しかし、このような従来手法によるときは
、記録しなければならないラインの数が多くなるに従い
、これらを区別する必要から各ラインの幅を段階的に太
くしてやらなければならなくなる。このため。[Problems to be Solved by the Invention] By the way, the method of interpolating lines in such a way that the thickness of each line can be differentiated by changing the thickness of each line in multiple stages, as in the conventional method described above, is Since the thickness is fast and clear, the type of line can be easily identified using this as a clue. However, when using such a conventional method, as the number of lines that need to be recorded increases, the width of each line must be made thicker in stages to distinguish between them. For this reason.
ライン補間後に得られる各ラインのなかには、必要以上
にライン幅が太くなってしまい、結果的に見すらいもの
になってしまうという問題のあることが指摘されていた
。It has been pointed out that each line obtained after line interpolation has a problem in that the line width becomes thicker than necessary, resulting in an unsightly look.
したがって、従来方法によりライン補間を行ない、かつ
、上記不都合を回避しようとするときは、ラインの数を
少なくして記録しなければならないという制約があり、
このため、ユーザーの多様なニーズに十分には対応しき
れないという問題があった。Therefore, when performing line interpolation using the conventional method and trying to avoid the above disadvantages, there is a restriction that the number of lines must be reduced and recorded.
For this reason, there was a problem in that it was not possible to fully meet the diverse needs of users.
「発明の目的]
この発明は、従来方法にみられた上記問題点に鑑みなさ
れたものであり、その目的は、記録された各ラインを識
別するに際し、ライン自体の太さの違いのみを判別指標
とすることなく、ライン自体の太さの違い、およびライ
ンの濃淡の違いをその判別指標とすることで彼此の識別
を可能としたX−Y記録計におけるライン補間方法を提
供することにある。"Object of the Invention" This invention was devised in view of the above-mentioned problems found in the conventional method.The purpose of this invention is to identify only the difference in the thickness of the line itself when identifying each recorded line. The object of the present invention is to provide a line interpolation method in an X-Y recorder that makes it possible to identify the line by using the difference in the thickness of the line itself and the difference in the shade of the line as the discrimination index without using it as an index. .
[問題点を解決するための手段]
上記目的を達成するため、この発明は、次のようにして
構成した。[Means for Solving the Problems] In order to achieve the above object, the present invention was constructed as follows.
すなわち、この発明は、与えられた2点の座標値に基づ
き所定の演算を行なう演算制御手段を備え、前記2点を
始点と終点としてその相互間を前記演算制御手段のデー
タに基づきドツトプリンタによりライン補間亥るように
したX−Y記録計におけるライン補間方法であって、補
間しようとするラインの太さと濃さとを設定する指定処
理と、これらの指定処理に応じて実行されるライン補間
処理とで構成され、このうち、前記指定処理は、lドツ
トを基本としてその整数倍である太さの指定を可能とす
るとともに、必要とするラインの濃さに応じた変数処理
により濃さを設定することで行ない、前記ライン補間処
理は、まず、前記指定処理により指定されたライン太さ
に応じた補間ラインの位置設定を行ない、次いで、補間
されるべきラインの長手方向と傾き方向とを判断要素と
し、それぞれの場合に応じたパターン化処理を行なった
後、メモリにおける前記始点のアドレスとビット位置と
を特定し、この場合の始点のY座標値が偶数であるか奇
数であるかにより、ラインの濃さに応じて予め設定され
ている変数データに基づいたデータ処理を行ない、前記
メモリにおける特定されたアドレスが位置しているバイ
トデータを処理後の前記データに応じて書き換えた後、
ライン補間のため予め定めてある処理ルーチンにより定
められる移動方向に向けて移動し、終点に至るまで同様
の処理を繰り返し行なうことにその構成上の特徴がある
。That is, the present invention is provided with arithmetic control means for performing predetermined arithmetic operations based on the coordinate values of two given points, and a line is drawn between the two points using a dot printer based on the data of the arithmetic control means. A line interpolation method for an X-Y recorder that uses interpolation, which includes a specification process for setting the thickness and density of the line to be interpolated, and a line interpolation process executed according to these specification processes. Among these, the specification process allows specification of a thickness that is an integer multiple of the L dot as a base, and also sets the density by variable processing according to the required line density. The line interpolation process is performed by first setting the position of the interpolation line according to the line thickness specified by the specification process, and then determining the longitudinal direction and inclination direction of the line to be interpolated. After performing patterning processing according to each case, the address and bit position of the starting point in the memory are specified, and depending on whether the Y coordinate value of the starting point in this case is an even number or an odd number, the line is After performing data processing based on variable data preset according to the density of the data, and rewriting the byte data at which the specified address in the memory is located according to the processed data,
Its structural feature is that it moves in a moving direction determined by a predetermined processing routine for line interpolation, and repeats the same processing until it reaches the end point.
[実施例]
以下、この発明を添付図面に示された実施例により詳細
に説明する。[Example] Hereinafter, the present invention will be explained in detail with reference to the example shown in the accompanying drawings.
第1図は、この発明方法の実施に供されるドットプリン
タを用いたX−Y記録計の要部構成図の一例を示すもの
である。FIG. 1 shows an example of a main part configuration diagram of an X-Y recorder using a dot printer used to implement the method of the present invention.
すなわち、記録装置本体がドツトプリンタを用いたX−
Yレコーダであるときは、X軸とY軸とについての被測
定アナログ信号が入力端子T、を介して取り込まれ、A
/D変換変換手段上りディジタル信号に変換された後、
演算制御手段であるcpu <中央処理装置)3へと送
り込まれる。−方、記録装置本体がドツトプリンタを用
いたX−Yブロックであるときは、図示しない外部コン
トローラからのX軸とY軸とについての入力信号が入力
端子T’sを介して取り込まれ、入力制御手段2により
所定の入力制御を行なった後、CPU3へと送り込まれ
る。In other words, the main body of the recording device is an X-ray printer using a dot printer.
When it is a Y recorder, the analog signals to be measured for the X-axis and Y-axis are taken in through the input terminal T, and the
/D conversion conversion means After being converted into an upstream digital signal,
The data is sent to a CPU (central processing unit) 3 which is an arithmetic control means. On the other hand, when the main body of the recording device is an X-Y block using a dot printer, input signals for the X-axis and Y-axis from an external controller (not shown) are taken in via the input terminal T's, and input control is performed. After predetermined input control is performed by the means 2, the data is sent to the CPU 3.
CPU3においては、ディジダル変換され、もしくは入
力制御された信号に基づくサンプリングデータをRAM
(ランダムアクセスメモリ)5に一時保持させるとと
もに、この保持されたサンプリングデータと、ROM
(リードオンリーメモリ)4に予め格納されている補間
データとをそれぞれ所定のタイミングで取り出し、X−
Y記録用RA M 6に記録用データとして記憶させて
おく。The CPU 3 stores sampling data based on digitally converted or input-controlled signals in the RAM.
(random access memory) 5, and this held sampling data and ROM
(Read-only memory) The interpolation data stored in advance in 4 is retrieved at predetermined timing, and
The data is stored in the Y recording RAM 6 as recording data.
所定の処理が全て終了した後は、CPU3によりX−Y
記録用RAM6に一時記憶させである記録用データを読
み出し、ドツトプリンタにより構成されている記録手段
7へと作動信号を送出し、この記録手段7により記録用
データに基づいた所定の濃さでライン補間を行なうこと
ができる。After all the predetermined processing is completed, the CPU 3
The recording data temporarily stored in the recording RAM 6 is read out, and an activation signal is sent to the recording means 7 constituted by a dot printer, and this recording means 7 interpolates lines at a predetermined density based on the recording data. can be done.
次に、このような構成からなるX−Y記録計を介して実
行される、この発明方法の一実施例としてのライン補間
のための処理手順について説明する。Next, a processing procedure for line interpolation as an embodiment of the method of the present invention, which is executed via the X-Y recorder having such a configuration, will be explained.
第2図(イ)、(ロ)は、この発明方法において、与え
られた2点のうち始点(もしくは終点)となるべきXY
座標値につき、前記X−Y記録用RAM6との間の位置
関係を示すために便宜的に設定した説明図である。この
うち、第2図(イ)は、始点(もしくは終点)が座標x
、yを(0゜0) 、 (1199,O)、(119
9,1199)、(0,1199)の4点に位置させた
方形囲枠内における任意の位置(xa、yo)に設定さ
れた場合を示し、第2図(ロ)は、この場合における各
座標値の前記X’−Y記録用RAM6におけるアドレス
とビット位置を示したものである。Figures 2 (a) and (b) show the XY that should be the starting point (or ending point) of the two given points in this invention method.
It is an explanatory diagram set for convenience to show the positional relationship with the X-Y recording RAM 6 in terms of coordinate values. Among these, in Figure 2 (a), the starting point (or ending point) is at the coordinate x
, y as (0°0), (1199,O), (119
9,1199) and (0,1199) are set at arbitrary positions (xa, yo) within the rectangular surrounding frame, and Figure 2 (b) shows each point in this case. It shows the address and bit position of the coordinate value in the X'-Y recording RAM 6.
すなわち、第2図(ロ)として示す8ビツトのX−Y記
録用RAM6に対し、前記XY座標値のうち(0,0)
が位置するアドレスをTOPとして設定する。また、こ
のTOPのアドレスにおけるMSB (最上位ビット)
のビット位置を座標(0,O)の位置として設定する。That is, for the 8-bit X-Y recording RAM 6 shown in FIG.
Set the address where is located as TOP. Also, the MSB (most significant bit) in this TOP address
Set the bit position of as the position of coordinates (0, O).
以後、ビット位置を順次ずらしながら座標(1,0)、
(2゜0)・・・の位置を順次設定していく。したがっ
て、X−Y記録用RA M 6 Gmおける座標(11
99゜0)の位置については%TOP+149のアドレ
スに位置することになり、そのビット位置は当該アドレ
スにおけるLSB (、最下位ビット)のビット位置と
なる。また、TOP+150のアドレスにおけるMSB
のビット位置を座標(0,1)の位置として設定すれば
、前記始点もしくは終点の位置(xo、yo)のX−Y
記録用r?AM6における位置は、次式で算出すること
ができる。After that, by sequentially shifting the bit position, the coordinates (1, 0),
The positions of (2°0)... are set sequentially. Therefore, the coordinates (11
The position 99°0) is located at the address %TOP+149, and its bit position is the bit position of the LSB (the least significant bit) at the address. Also, the MSB in the TOP+150 address
If the bit position of is set as the position of coordinates (0, 1), the X-Y
Recording r? The position at AM6 can be calculated using the following equation.
すなわち、座標(xa、yo)に対応するX−Y記録用
r?AM6におけるアドレスについては、
TOP+ 1so−yO+ INT(x o’ / 8
) ・・・(1)により求めることができる。なお、
(1)式中におけるINT (x o / 8 )は、
xoをビット数8で除した場合の整数値を示す。That is, r? for X-Y recording corresponding to the coordinates (xa, yo)? For an address in AM6, TOP+ 1so-yO+ INT(x o' / 8
)...It can be determined by (1). In addition,
INT (xo/8) in formula (1) is
Indicates the integer value when xo is divided by the number of bits, 8.
また、(1)式により算出された座標(xo。Also, the coordinates (xo) calculated by equation (1).
yo)が属すべきX−Y記録用RAM6における特定ア
ドレスにおいて、実際に位置することになるビット位置
については、
7− (xo mad 8) ・・・(2)により求め
ることができる。なお、(2)式中における(Xomo
d8)は、xoをビット数8で除した場合の余り値を示
す。The actual bit position at the specific address in the XY recording RAM 6 to which yo) belongs can be determined by 7-(xo mad 8) (2). Note that (Xomo in formula (2)
d8) indicates the remainder value when xo is divided by the number of bits, 8.
かくシテ、前記座標(1199,1199) ノX−Y
記録用RAM’6におけるアドレスは、前記(1)式に
基づいて。The above coordinates (1199, 1199) No.X-Y
The address in the recording RAM'6 is based on the formula (1) above.
TOP + 150 X 1199+ 149の算式に
より求めることができ、その場合の当該アドレスにおけ
る実際のビット位置はLSBの位置となる。It can be determined using the formula TOP + 150 x 1199 + 149, and the actual bit position at the address in this case is the LSB position.
なお、XY座標値とX−Y記録用RAM6との位置関係
については、上記の図示例のものに限定されるものでは
なく、必要により適宜、自由に定めることができる。Note that the positional relationship between the XY coordinate values and the XY recording RAM 6 is not limited to that shown in the example shown above, and can be freely determined as necessary.
次に、xY座標値とX−Y記録用RAM6との位置関係
が第2図(イ)、(ロ)のようになっている場合を例に
、補間しようとするラインの太さと濃さを設定するため
の指定処理につき、その手順を第3図のフローチャート
図に従い説明する。Next, using an example where the positional relationship between the xY coordinate values and the XY recording RAM 6 is as shown in Figure 2 (a) and (b), determine the thickness and density of the line to be interpolated. The procedure for specifying the settings will be explained with reference to the flowchart shown in FIG.
なお、図中においては、説明の便宜上、ラインの濃さを
、25%%50%、75%、100%の4段階に分けて
設定した場合を例として示しであるが、可能な範囲で自
由に濃さを設定することができる。For convenience of explanation, the figure shows an example in which the line density is divided into four levels: 25%, 50%, 75%, and 100%, but you can use it freely to the extent possible. You can set the density to .
しかして、まず、ラインの太さを設定するに際しては、
ラインの太さを設定するための入力処理を行なった後、
希望する太さを設定し、次いでラインの濃さを設定する
ための入力処理を行ない、濃さの設定を行なう。すなわ
ち、ラインの濃さについては、設定しようとする濃さが
100%であれば、偶数用データの変数EVENニ(I
IIIIIll) eを、奇数用データの変数ODDに
(IIIIllII) eをそれぞれ人力することで設
定する。また、これが25%テあれば、EVENニ(0
0010001) 、を、ODDに(01000100
) Bをそれぞれ人力することで、50%であれば、E
VENi: (01旧旧旧)aを、0110ニ(In1
01010) aをそれぞれ入力することで、75%で
あれば、EVENI: (I l 101110) s
を、0DDG、: (+01110 ’II)8を
それぞれ入力することで、各ラインの濃さを設定する。However, first, when setting the line thickness,
After performing input processing to set the line thickness,
After setting the desired thickness, input processing is performed to set the density of the line, and the density is set. In other words, regarding the density of the line, if the density to be set is 100%, the even number data variable EVEN (I
(IIIllll) e is set by manually inputting (IIIllllII) e into the odd number data variable ODD. Also, if this is 25%, EVEN (0)
0010001), to ODD (01000100
) By doing each B manually, if it is 50%, E
VENi: (01 old and old) a, 0110 ni (In1
01010) By inputting a respectively, if it is 75%, EVENI: (I l 101110) s
, 0DDG, : (+01110 'II) 8 to set the density of each line.
なお、EVENは、偶数用マスキングデータが入力され
る変数、ODDは、奇数用マスキングデータが入力され
る変数で、とットデータが「1」の位置ではラインを描
き、「0」の位置ではラインを描かないものとする。Furthermore, EVEN is a variable into which masking data for even numbers is input, and ODD is a variable into which masking data for odd numbers is input. A line is drawn at the position where the data is "1", and a line is drawn at the position where the data is "0". It shall not be drawn.
このようにして、ラインの太さと濃さとを設定する指定
処理を経た後、この指定処理に応じたライン補間を行な
うためのライン補間処理へと移行する。In this way, after passing through the designation process for setting the thickness and density of the line, the process moves on to line interpolation processing for performing line interpolation according to this designation process.
第4図は、その際の処理手順を示すフローチャート図で
あり、便宜上、基本ラインの太さを1ドツトとするとき
、その3倍である3ドツトの太さでライン補間する場合
を例に説明する。FIG. 4 is a flowchart showing the processing procedure at that time.For convenience, the explanation will be based on an example in which, when the thickness of the basic line is 1 dot, line interpolation is performed with a thickness of 3 dots, which is three times that thickness. do.
まず、ライン補間を行なおうとする基本ラインの始点の
位置(xI、yI)と終点の位置(X寓、ya)とを入
力する。しかる後、始点と終点との間をライン補間した
場合の当該基本ラインがX軸方向に長いかY軸方向に長
いかを判別するため、絶対値1xzx+lと絶対値1y
2−yI lとの大小関係を比較する。First, the starting point position (xI, yI) and the ending point position (x, ya) of the basic line on which line interpolation is to be performed are input. After that, in order to determine whether the basic line is long in the X-axis direction or Y-axis direction when line interpolation is performed between the start point and the end point, the absolute value 1xzx+l and the absolute value 1y are determined.
2-yI Compare the magnitude relationship with l.
以下、1xxx+l≧ly*−yl 1の場合と−1x
z −XI I < I yj−yr 1の場合と
の処理につき、項を分けて説明する。Below, the case of 1xxx+l≧ly*-yl 1 and -1x
The processing for the case of z −XI < I yj−yr 1 will be explained separately.
まず、l xz −XI l≧1ys−yIIである
場合、つまり、始点と終点との間に記録されるべき基本
ラインがY軸方向よりもX軸方向の方により長い場合に
ついて説明すれば、始点のX座標LtxにはX□を、始
点のY座標Layにはy。First, if we explain the case where l xz -XI l≧1ys-yII, that is, the basic line to be recorded between the start point and the end point is longer in the The X coordinate Ltx of the point is X□, and the Y coordinate Lay of the starting point is y.
+1を、また、終点のX座標Laxにはx2を、終点の
Y座標L2yにはy、+1をそれぞれ入力することで、
始点と終点の座標値をY軸方向に+1だけずらす処理を
行なった後、当該始点と終点との間を所定の濃さでライ
ン補間する。次に、始点のX座標L+xにはX、を、始
点のY座標L+yにはylを、また、終点のX座標La
xにはx2を、終点のY座標Layにはy2をぞれぞれ
入力することで、中心に位置する基本ラインの始点と終
点の座標値を設定した後、当該始点と終点との間を所定
の濃さでライン補間する。最後に、始点のX座標L+x
にはxlを、始点のY座標Llyにはyl−1を、また
、終点のX座標Laxには×2を、終点のY座標Lzy
にはya 1をそれぞれ入力することで、始点と終点
の座標値をY軸方向に−lだけずらす処理を行なった後
、当該始点と終点との間を所定の濃さでライン補間する
ことで、合計3本のラインからなるFUTOSA= 3
のライン補間を終了する。By inputting +1, x2 for the end point's X coordinate Lax, and y and +1 for the end point's Y coordinate L2y,
After performing a process of shifting the coordinate values of the starting point and the ending point by +1 in the Y-axis direction, line interpolation is performed between the starting point and the ending point at a predetermined density. Next, set X to the starting point's X coordinate L+x, set yl to the starting point's Y coordinate L+y, and set the ending point's X coordinate La to
By inputting x2 for x and y2 for the Y coordinate Lay of the end point, set the coordinate values of the start and end points of the basic line located at the center, and then set the coordinates between the start and end points. Line interpolation is performed at a predetermined density. Finally, the X coordinate of the starting point L+x
xl, the Y coordinate Lly of the starting point is yl-1, the X coordinate Lax of the ending point is x2, and the Y coordinate Lzy of the ending point is
By inputting ya 1 for each, the coordinate values of the start point and end point are shifted by -l in the Y-axis direction, and then line interpolation is performed at a predetermined density between the start point and end point. , FUTOSA consisting of 3 lines in total = 3
Finish line interpolation.
一方、lx、−XI I<Iyz −yI lであ
る場合、つまり、始点と終点との間に記録されるべき基
本ラインがX軸方向よりもY軸方向の方により長い場合
について説明すれば、始点のX座標Laxにはx、+1
を、始点のY座標1.lyにはy。On the other hand, if lx, -XI < Iyz -yI l, that is, the basic line to be recorded between the start point and the end point is longer in the Y-axis direction than in the X-axis direction, The X coordinate Lax of the starting point is x, +1
, the Y coordinate of the starting point is 1. y for ly.
を、また、終点のX座標LaxにはX 2 + 1を、
終点のY座標L2yにはy、をそれぞれ入力することで
、始点と終点の座標値をX軸方向に+1だけずらす処理
を行なった後、当該始点と終点との間を所定の濃さでラ
イン補間する。次に、始点のX座標L+xにはxlを、
始点のY座標L+yにはylを、また、終点のX座標L
axにはx2を、終点のY座標Layにはy2をそれぞ
れ入力することで、中心に位置する′基本ラインの始点
と終点の座標値を設定した後、当該始点と終点との間を
所定の濃さでライン補間する。最後に、始点のX座標L
+xにはX+ 1を、始点のY座標Layには7重
を、また、終点のX座標Laxにはx、−1を、終点の
Y座標Layにはy2をそれぞれ入力することで、始点
と終点の座標値をX軸方向に−1だけずらす処理を行な
った後、当該始点と終点との間を所定の濃さでライン補
間することで、合計3本のラインからなるFUTO3A
= 3のライン補間処理を終了する。なお、説明は省略
したが、仮にFUTO3A= 1と設定した場合には、
上記したライン補間のうち、基本ラインのみのライン補
間を行なうことで、また、FtlT口SA= 2と設定
した場合には、基本ラインまでの2回のライン補間を行
なうことで実行することができるなど、変数FUTO3
Aの設定値に応じ、適宜ライン補間することができる。, and the X coordinate Lax of the end point is X 2 + 1,
By inputting y into the Y coordinate L2y of the end point, the coordinate values of the start point and end point are shifted by +1 in the X-axis direction, and then a line is drawn with a predetermined density between the start point and end point. Interpolate. Next, set xl to the X coordinate L+x of the starting point,
The Y coordinate of the starting point L + y is yl, and the X coordinate of the ending point L
By inputting x2 into ax and y2 into the Y coordinate Lay of the end point, set the coordinate values of the start and end points of the basic line located at the center, and then set the coordinates between the start and end points. Line interpolation based on density. Finally, the X coordinate L of the starting point
By inputting X+ 1 for +x, 7fold for the Y coordinate Lay of the starting point, x, -1 for the X coordinate Lax of the ending point, and y2 for the Y coordinate Lay of the ending point, the starting point and After performing processing to shift the coordinate value of the end point by -1 in the X-axis direction, line interpolation is performed between the start point and the end point at a predetermined density to create FUTO3A, which consists of a total of three lines.
= 3 line interpolation process ends. Although the explanation is omitted, if FUTO3A=1 is set,
Among the above line interpolations, it can be executed by performing line interpolation only on the basic line, or by performing line interpolation twice up to the basic line if FtlT_SA=2 is set. etc., variable FUTO3
Depending on the setting value of A, line interpolation can be performed as appropriate.
第5図は、第4図にいう所定の濃さでのライン補間処理
を行なうについての具体的な手順を示すフローチャート
図である。FIG. 5 is a flowchart showing a specific procedure for performing the line interpolation process at a predetermined density as shown in FIG.
これによれば、ライン補間のための処理は、まず、前記
したl、+xとLAXとの大小関係を判別することから
始まり、Lax≦Laxであれば、LayとLayとの
大小関係判別ステップへと移る。また、Lax>Lax
であれば、LaxとL2x、およびl、lyとLayを
それぞれ入れ替えることによって始点と終点との入れ替
え処理を行なった後、LayとLayとの大小関係判別
ステップへと移る。According to this, the process for line interpolation first starts by determining the magnitude relationship between l, +x and LAX described above, and if Lax≦Lax, the process proceeds to the step of determining the magnitude relationship between Lay and Lay. and move on. Also, Lax>Lax
If so, the start point and end point are swapped by swapping Lax and L2x and l, ly and Lay, respectively, and then the process moves to the step of determining the magnitude relationship between Lay and Lay.
LayとLayとの大小関係判別ステップにおいては、
LIy≦L堂yであるか、L ly> L 2Nである
か、つまり、補間されたラインが右上りとなるか右下が
りとなるかが判別される。In the step of determining the size relationship between Lay and Lay,
It is determined whether LIy≦Ly or Lly>L2N, that is, whether the interpolated line is upward to the right or downward to the right.
まず、ラインが右上りとなるLAy≦L2yの場合につ
いて説明すれば、L 2X−L IXと絶対値1Lzy
−L+ylとの大小関係、つまり、始点から終点までの
X軸方向の長さとY軸方向の長さとが比較され、その長
短が判別される。判別の結果、(L 、xLax)≧I
Lay L+ylであるとき、つまりX軸方向の方が
長かった場合には、移動距離の長い方向の長さを示す変
数LdにLax Laxの数値を、移動距離の短い方
向の長さを示す変数SdにLay Layの数値をそ
れぞれ入力し、所定の処理用変数へには「0」を、所定
の処理用変数Bには「3」をそれぞれ入力する。また、
(L2x−L +x) < I L xM L ry
lであるとき、つまりY軸方向の方が長かった場合には
、変数LdにL2y−Layの数値を、変数SdにLA
X−LAXの数値をそれぞれ入力し、所定の処理用変数
へには「1」を所定の処理用変数Bに「3」をそれぞれ
入力する。First, to explain the case where LAy≦L2y, where the line slopes upward to the right, L 2X - L IX and the absolute value 1Lzy
-L+yl, that is, the length in the X-axis direction and the length in the Y-axis direction from the start point to the end point are compared to determine their length. As a result of discrimination, (L, xLax)≧I
When Lay L + yl, that is, when the X-axis direction is longer, the value of Lax Lax is set to the variable Ld indicating the length in the longer direction of movement distance, and the value of Lax Lax is set to variable Sd indicating the length in the shorter direction of movement distance. Input the numerical values of Lay Lay into , enter "0" into the predetermined processing variable, and enter "3" into the predetermined processing variable B. Also,
(L2x-L +x) < I L x M L ry
l, that is, if the Y-axis direction is longer, set the value of L2y-Lay to the variable Ld, and set LA to the variable Sd.
Input the numerical values of X-LAX, and input "1" into the predetermined processing variable and "3" into the predetermined processing variable B.
一方、ラインが右下がりとなるL ly> L ayの
場合について説明すれば、LaX−Laxと絶対値IL
ay L+ylとの大小関係、つまり、始点から終点ま
でのX軸方向の長さとY軸方向の長さとが比較され、そ
の長短が判別される。判別の結果、(L 2X−L I
X)≧l L 2y−L rylであるとき、つまりX
軸方向の方が長かった場合には、変数LdにL2X
LIXの数値を、変数SdにL’By−L iyの数値
をそれぞれ入力し、所定の処理用変数Aに「0」を、所
定の処理用変数Bには「4」をそれぞれ入力する。また
、(L、x −L、x) < l Lzy−L+ylで
あるとき、つまりY軸方向の方が長かった場合には、変
数LdにLay L2yの数値を、変数Sdに14□
xL+xの数値をそれぞれ入力し、所定の処理用変数A
には「2」を、所定の処理用変数Bに「4」をそれぞれ
入力する。On the other hand, to explain the case where the line slopes downward to the right, L ly > Lay, LaX-Lax and the absolute value IL
The magnitude relationship with ay L+yl, that is, the length in the X-axis direction and the length in the Y-axis direction from the start point to the end point are compared to determine the length. As a result of the discrimination, (L 2X-L I
When X)≧l L 2y−L ryl, that is, X
If the axial direction is longer, set L2X to the variable Ld.
The numerical value of LIX is inputted into the variable Sd, the numerical value of L'By-Liy is inputted into the variable Sd, "0" is inputted into the predetermined processing variable A, and "4" is entered into the predetermined processing variable B. Also, when (L, x - L, x) < l Lzy - L + yl, that is, when the Y-axis direction is longer, set the value of Lay L2y to the variable Ld and 14□ to the variable Sd.
Input the numerical values of xL+x and select the predetermined processing variable A.
Input "2" to "2" and "4" to predetermined processing variable B, respectively.
かくして、このようなパターン化処理を行なうことでラ
インの各パターンに対応させた入力処理を終了した後は
、それぞれのラインパターンについて−、変数Ctに対
しLd/ 2を入力することにより、ライン補間を実行
する際の座標移動の判断基準の初期設定を行なう。つま
り、変数Ctは、始点と終点とを直線で結ぶラインを理
想線とするとき、この理想線により近い方向に向けてラ
イン補間することができるようにするための変数である
。In this way, after completing the input processing corresponding to each line pattern by performing such patterning processing, line interpolation is performed by inputting Ld/2 for the variable Ct for each line pattern. Initializes the criteria for determining coordinate movement when executing . In other words, the variable Ct is a variable for making it possible to interpolate a line in a direction closer to the ideal line when the line connecting the starting point and the ending point is defined as an ideal line.
このようにして変数Cしを初期設定した後、始点がX−
Y記録用RAM6のどの位置にあるかを知るため、まず
、変数 ADHにX−Y記録用RAM6の先頭アドレス
(第2図 (ロ)による場合にはTOP)を入力する。After initializing the variable C in this way, the starting point is
In order to know the position of the Y recording RAM 6, first input the start address of the XY recording RAM 6 (TOP in the case of FIG. 2(b)) into the variable ADH.
次いで、先頭アドレスを入力した後の八〇Hに対し、前
記(り式に基づき、ADR+ 150 x L +y+
INT(L lx/ 8 )を入力することで、始点
のアドレスを算出する。また、この算出されたアドレス
に対応するバイトにおいて、始点の座標値が位置すべき
ビットを“I”にするたメツ変数B17Aニ2 t−I
LIxmad81 +7)値を入力することで、算出さ
れた当該アドレスにおける始点座標のビット位置にあた
る箇所のみを“1”の値とする処理を施し、X−Y記録
用RAM6における始点の位置を特定する。Next, for 80H after inputting the first address, based on the above formula, ADR+ 150 x L +y+
By inputting INT (L lx/ 8 ), the address of the starting point is calculated. In addition, in the byte corresponding to this calculated address, the bit where the coordinate value of the start point should be located is set to "I".
By inputting the LIxmad81 +7) value, only the portion corresponding to the bit position of the starting point coordinates in the calculated address is set to a value of "1", and the position of the starting point in the XY recording RAM 6 is specified.
X−Y記録用■(ΔM6における始点の位置を特定した
後は、次のステップ(第5図において結合子■に続くス
テップ)であるLayが偶数であるか奇数であるかを判
別するステップに移行する。この判別ステップにおいて
、Layが奇数であると判別されたときは、第3図にお
いてラインの濃さを決定するために予め設定しである変
数EVENと変数ODDのうちから所望する濃さのもの
を選択し、変数111TOには選択された濃さに対応す
る奇数用データとしてのODDを、変数BITCには選
択された濃さに対応する偶数用データとしてのEVEN
をそれぞれ入力する。また、Ltyが偶数であると判別
されたときは、BITBG:InはEVENを、 BI
TC+、:はODDをそれぞれ入力する。なお、ここで
いうBITBとBITCとは。After specifying the position of the starting point in X-Y recording ■ (ΔM6), proceed to the next step (the step following the connector ■ in Figure 5), which is the step of determining whether Lay is an even number or an odd number. In this determination step, when it is determined that Lay is an odd number, the desired density is selected from the variable EVEN and the variable ODD, which are preset to determine the density of the line in FIG. The variable 111TO contains ODD as data for odd numbers corresponding to the selected density, and the variable BITC contains EVEN as data for even numbers corresponding to the selected density.
Enter each. Also, when Lty is determined to be an even number, BITBG:In is set to EVEN, and BI
TC+ and : input ODD, respectively. Furthermore, what are BITB and BITC mentioned here?
ラインの濃さに応じて設定されるマスキングデータのE
VEN、 ODDを保存しておくための変数である。E of masking data set according to line density
This is a variable for storing VEN and ODD.
しかる後、始点が位置するX−Y記録用RAM8におけ
るアドレスである変数ADHの位置のバイトデータを、
(ADHの位置するバイトデータ) V ((BI
TA) Δ (BIT[l) )の論理式により算出
し、その結果をX−Y記録用RAM6の新しいバイトデ
ータとして書き換える。上、記論理式は、前記BITA
に対し、マスキングデータであるBITBとの論理積を
まずとり、次にこの論理積とバイトデータとの論理和を
とることにより、ラインを指定された濃さにマスキング
していくためのものである。After that, the byte data at the position of the variable ADH, which is the address in the XY recording RAM 8 where the start point is located, is converted to (byte data where ADH is located) V ((BI
TA) Δ(BIT[l))), and the result is rewritten as new byte data in the XY recording RAM 6. Above, the above logical formula is the above BITA
This is to mask the line to a specified density by first performing a logical AND with BITB, which is masking data, and then logically ORing this logical product with the byte data. .
しかして、繰り返し変数LO口PにLdの値を入力し、
LOGP= Oとなるまで、つまり、ライン補間が終了
するまで以下の処理を繰り返す。Therefore, input the value of Ld into the repeating variable LO port P,
The following process is repeated until LOGP=O, that is, until line interpolation is completed.
すなわち、変数CtとSdとの大小関係を比較し、Ct
≧Sdの場合(始点と終点とを直線で結ぶ理想線が移動
距離が長い方向に1ドツトずらせた位置に近い場合)に
は%Ct、をCL−Sdと設定し、既に特定されている
所定の処理用変数Aの設定数値に対応した後述の第6図
に基づく処理(移動距離の長い方の方向に1ドツト移動
させる)をし、CL< Sdの場合(理想線が、X、Y
両方向に1ドツトずつずらせた位置に近い場合)には、
CtをCt−Sd十Ldと設定し、同様に所定の処理用
変数Bの設定数値に対応した後述の第7図に基づく処理
(移動距離の長い、短い両方向に1ド゛ツトずつ移動さ
せる)をする。That is, the magnitude relationship between variables Ct and Sd is compared, and Ct
In the case of ≧Sd (when the ideal line connecting the starting point and the ending point is close to a position shifted by one dot in the direction of the long movement distance), %Ct is set as CL-Sd, and the predetermined value that has already been specified is set. Processing is performed based on the set value of processing variable A (one dot is moved in the direction of the longer movement distance) as shown in FIG.
(if it is close to the position shifted by one dot in both directions),
Ct is set as Ct - Sd + Ld, and the processing based on Fig. 7 described later corresponding to the numerical value set for a predetermined processing variable B (moves one dot at a time in both directions with long and short moving distances) do.
このように、それぞれの場合に対応させた処理を行なっ
た後は、ADHの位置のバイトデータを、論理式
(ADHの位置するバイトデータ) V ((BI
TA) △ (BITB) )により算出して再び
書き換え、しかる後、既に設定しである繰り返し変数L
OOPから1を減算し、 LOOP=0になるまで同様
の処理を繰り返し行なうことでライン補間を実行する。In this way, after performing processing corresponding to each case, the byte data at the ADH position is converted to the logical formula (byte data at the ADH position) V ((BI
TA) △ (BITB) ) and rewrite it again, and then set the repetition variable L that has already been set.
Line interpolation is performed by subtracting 1 from OOP and repeating the same process until LOOP=0.
第6図と第7図とは、第5図における1ステツプとして
挿入されている所定の処理用変数A及びBに対応させた
処理ルーチンについての具体的な手順を示すフローチャ
ート図である。6 and 7 are flowcharts showing specific procedures for a processing routine corresponding to predetermined processing variables A and B inserted as one step in FIG. 5.
このうち、処理用変数Aのルーチンを示す第6図につい
て説明すれば、処理用変数へが第5図において既に設定
されている数値「0」であるかrlJであるか「2」で
あるかを判別し、補間ラインが水平方向となるA=Oで
ある場合には、まず、X方向に1ドツトだけ移動させ(
具体例では、変数BITAの値を右へlビット分だけず
らし、LSBの数値は変数CYに代入するとともにMS
Bに代入する)、その際の変数旧TAにおけるLSBの
数値を入力するための変数CYが0であれば処理を終え
、IであればADHに1を加算して処理を終える。まだ
、補間ラインがY軸方向に垂直上昇するA=1である場
合には、ADHにADH+ 150を入力し、Yのプラ
ス方向に1ドツトだけ移動させ、BITBとBITCと
を入れ替えて処理を終える。Of these, if we explain about FIG. 6 showing the routine of processing variable A, we will determine whether the processing variable is the numerical value already set in FIG. 5, ``0'', rlJ, or ``2''. If A=O, where the interpolation line is horizontal, first move one dot in the X direction (
In a specific example, the value of the variable BITA is shifted to the right by l bits, the LSB value is assigned to the variable CY, and the MS
If the variable CY for inputting the value of the LSB in the variable old TA is 0, the process ends; if it is I, 1 is added to ADH and the process ends. If the interpolation line is still vertically rising in the Y-axis direction (A=1), input ADH+150 to ADH, move it by one dot in the positive direction of Y, swap BITB and BITC, and finish the process. .
一方、補間ラインがY軸方向に垂直下降するA=2であ
る場合には、ADHにADH−150を入力し、Yのマ
イナス方向に1ドツトだけ移動させ、やはり、BITB
とBITCとを入れ替える。このように、変数BITB
とBTTCとを入れ替えることにより、Y座標値が偶数
の場合にはBITB= EVENとし、奇数の場合には
旧TB=ODDとすることができる。On the other hand, if the interpolation line is vertically descending in the Y-axis direction (A=2), input ADH-150 to ADH, move it by one dot in the negative direction of Y, and again, BITB
and BITC. In this way, the variable BITB
By exchanging BTC and BTC, it is possible to set BITB=EVEN when the Y coordinate value is an even number, and set old TB=ODD when the Y coordinate value is an odd number.
一方、処理用変数Bのルーチンを示す第7図について説
明すれば、処理用変数Bが第5図において既に設定され
ている数値「3」であるか「4」であるかを判別し、右
上りのB=3であれば、ADHにADH+ 150を入
力し、Yのプラス方向に1ドツトだけ移動させる。右下
がりのB=4であれば、ADHにADH−150を入力
し、Yのマイナス方向に1ドツトだけ移動させる。しか
して、このような移動処理を終えた後は、いずれの場合
も、BIT[lとBITCとを入れ替える。このように
、変数81TBとBITCとを入れ替えることにより、
Y座標値が偶数の場合にはBITB= EVENとし、
奇数の場合にはBITB= ODDとすることができる
。このようなりITBとBVl’Cとの入れ替え処理を
終えた後は、X方向に1ドツトだけ移動させ(具体例で
は、変数BITAの値を右へ1ドツト分だけずらし、L
SBの数値は変数CYに代入するとともにMSBへ代入
する)、その際の変数BITAにおけるLSBの数値を
入力するための変数CYがOであれば処理を終え、1で
あればADHに1を加算して処理を終える。On the other hand, to explain the routine of processing variable B in FIG. If upstream B=3, input ADH+150 to ADH and move one dot in the positive direction of Y. If B=4, which is downward to the right, input ADH-150 to ADH and move it by one dot in the negative direction of Y. After completing such a movement process, BIT[l and BITC are exchanged in any case. In this way, by replacing the variables 81TB and BITC,
If the Y coordinate value is an even number, set BITB = EVEN,
In the case of an odd number, BITB=ODD can be set. After completing the process of exchanging ITB and BVl'C in this way, move it by one dot in the X direction (in the specific example, shift the value of the variable BITA by one dot to the right, and
The value of SB is assigned to the variable CY and also to the MSB), and if the variable CY for inputting the value of the LSB in the variable BITA at that time is O, the process ends, and if it is 1, add 1 to ADH. to finish processing.
このような手順により、それぞれのライン補間を行なう
ことにより、変数FUTO3A= 3の場合におけるラ
イン補間処理を終了する。By performing each line interpolation according to such a procedure, the line interpolation process in the case of variable FUTO3A=3 is completed.
第8図(イ)〜(:)は、上記処理手順を踏むことによ
り得られる濃さを異にするライン補間の模式的な状況を
示すものであり、(イ)を100%の濃さであるとする
とき、(ロ)は25%、(ハ)は50%、(ニ)は75
%の濃さでライン補間された場合を示すものである。Figures 8 (a) to (:) schematically show line interpolation with different densities obtained by following the above processing steps, and (a) is shown at 100% density. If so, (b) is 25%, (c) is 50%, and (d) is 75%.
This shows the case where line interpolation is performed at a density of %.
また、第9図と第1O図とは、この発明方法により実際
にライン補間を行なった後の記録状態を示すものである
。このうち第9図は、(イ)を濃さ100%であるとす
るとき、(ロ)が濃さ50%を、(ハ)が濃さ25%を
それぞれ示す。また、第1O図は、(イ)が第9図(イ
)と同様に濃さ100%であるとするとき、(ロ)が濃
さ75%を、(ハ)が濃さ50%ををそれぞれ示す。Moreover, FIG. 9 and FIG. 1O show the recording state after actually performing line interpolation using the method of this invention. In FIG. 9, when (a) is 100% density, (b) is 50% density, and (c) is 25% density. In addition, in Figure 1O, when (A) is assumed to have a density of 100% as in Figure 9 (A), (B) represents a density of 75%, and (C) represents a density of 50%. Each is shown below.
しかして、第9図と第1O図の実際のライン補間の記録
によっても、ラインの太さを同一に設定しながらも、各
ラインの彼此の識別が容易であることを確認することが
できた。Accordingly, by recording the actual line interpolation shown in Figures 9 and 1O, we were able to confirm that it was easy to identify each line even though the line thickness was set to be the same. .
[発明の効果]
以上述べたようにこの発明方法によれば、ラインの太さ
が同一であっても、その濃さを変えてライン補間するこ
とができるので、各ラインに対し見易さを保持させなが
らも、ライン相互の彼此の識別を容易に行なうことがで
きる。[Effects of the Invention] As described above, according to the method of this invention, even if the line thickness is the same, line interpolation can be performed by changing the density, so that the visibility of each line can be improved. Although the lines are maintained, the lines can be easily identified from each other.
第1図は、この発明方法を実施するためのX−Y記録計
の一実施例としての要部構成図、第2図(イ)、(ロ)
は、XY座標値とXY記録用RAMの相互関係を示す説
明図、第3図は、ラインの太さと濃さとを設定する場合
のフローチャート図、第4図は、ラインの太さを基本の
太さの3倍に設定した場合のライン補間手順を示すフロ
ーチャート図、第5図は、第4図におけるライン補間の
詳細な処理の手順を示すフローチャート図、第6図は、
第5図における「処理Δルーチン」ステップの詳細な手
順を示すフローチャート図1.第7図は、第5図におけ
る「処理Bルーチン」ステップの詳細な手順を示すフロ
ーチャート図、第8図は、この発明方法により濃さを変
えて行なったライン補間の状況を模式的に示す拡大パタ
ーン図、第9図と第10図は、この発明方法により行な
ったライン補間の実際の記録図、第1I図は、従来方法
により行なわれるライン補間の状況を模式的に示した拡
大パターン図である。
1−A / D変換手段、 2・・・入力制御手段、3
・−CP U 、 4・−ROM 。
5−RAM、’ 6・X−Y記録用RAIJ。
T1.Tx ”・入力端子
特 許 出 願 人 日置電機株式会社第1図
第6図
第7図
第8図
第9図 第10図Fig. 1 is a block diagram of the main parts of an embodiment of an X-Y recorder for carrying out the method of this invention, and Figs. 2 (a) and (b)
is an explanatory diagram showing the interrelationship between XY coordinate values and FIG. 5 is a flowchart showing the detailed line interpolation procedure in FIG. 4, and FIG.
Flowchart showing the detailed procedure of the "Processing Δ Routine" step in FIG. 5. FIG. 7 is a flowchart showing the detailed procedure of the "processing B routine" step in FIG. Pattern diagrams, Figures 9 and 10 are actual records of line interpolation performed by the method of the present invention, and Figure 1I is an enlarged pattern diagram schematically showing the state of line interpolation performed by the conventional method. be. 1-A/D conversion means, 2...input control means, 3
・-CPU, 4・-ROM. 5-RAM, '6.RAIJ for X-Y recording. T1. Tx”・Input terminal patent applicant Hioki Electric Co., Ltd. Figure 1 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10
Claims (1)
なう演算制御手段を備え、前記2点を始点と終点として
その相互間を前記演算制御手段のデータに基づきドット
プリンタによりライン補間するようにしたX−Y記録計
におけるライン補間方法であって、補間しようとするラ
インの太さと濃さとを設定する指定処理と、これらの指
定処理に応じて実行されるライン補間処理とで構成され
、このうち、前記指定処理は、1ドットを基本としてそ
の整数倍である太さの指定を可能とするとともに、必要
とするラインの濃さに応じた変数処理により濃さを設定
することで行ない、前記ライン補間処理は、まず、前記
指定処理により指定されたライン太さに応じた補間ライ
ンの位置設定を行ない、次いで、補間されるべきライン
の長手方向と傾き方向とを判断要素とし、それぞれの場
合に応じたパターン化処理を行なった後、メモリにおけ
る前記始点のアドレスとビット位置とを特定し、この場
合の始点のY座標値が偶数であるか奇数であるかにより
、ラインの濃さに応じて予め設定されている変数データ
に基づいたデータ処理を行ない、前記メモリにおける特
定されたアドレスが位置しているバイトデータを処理後
の前記データに応じて書き換えた後、ライン補間のため
予め定めてある処理ルーチンにより定められる移動方向
に向けて移動し、終点に至るまで同様の処理を繰り返し
行なうことを特徴とするX−Y記録計におけるライン補
間方法。(1) A calculation control means is provided to perform a predetermined calculation based on the coordinate values of two given points, and a dot printer performs line interpolation between the two points as a starting point and an end point based on the data of the calculation control means. This is a line interpolation method for an X-Y recorder, which consists of a specification process for setting the thickness and density of the line to be interpolated, and a line interpolation process executed in accordance with these specification processes. Among these, the specification process is performed by making it possible to specify a thickness that is an integral multiple of 1 dot as a base, and setting the density by variable processing according to the required line density. In the line interpolation process, first, the position of the interpolation line is set according to the line thickness specified by the specification process, and then the longitudinal direction and the inclination direction of the line to be interpolated are used as determining factors, respectively. After performing patterning processing according to the case, the address and bit position of the starting point in the memory are specified, and the density of the line is determined depending on whether the Y coordinate value of the starting point in this case is an even number or an odd number. After performing data processing based on variable data set in advance according to 1. A line interpolation method for an X-Y recorder, characterized by moving in a moving direction determined by a predetermined processing routine and repeating the same processing until reaching an end point.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25801387A JPH01100421A (en) | 1987-10-13 | 1987-10-13 | Line interpolation method in X-Y recorder |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25801387A JPH01100421A (en) | 1987-10-13 | 1987-10-13 | Line interpolation method in X-Y recorder |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01100421A true JPH01100421A (en) | 1989-04-18 |
| JPH0547049B2 JPH0547049B2 (en) | 1993-07-15 |
Family
ID=17314318
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP25801387A Granted JPH01100421A (en) | 1987-10-13 | 1987-10-13 | Line interpolation method in X-Y recorder |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01100421A (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5784313A (en) * | 1980-11-14 | 1982-05-26 | Yokogawa Hokushin Electric Corp | Chain line interpolating method for xy plotter |
-
1987
- 1987-10-13 JP JP25801387A patent/JPH01100421A/en active Granted
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5784313A (en) * | 1980-11-14 | 1982-05-26 | Yokogawa Hokushin Electric Corp | Chain line interpolating method for xy plotter |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0547049B2 (en) | 1993-07-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0285660B1 (en) | Curve producing method | |
| EP0076082B1 (en) | Display processing apparatus | |
| US4196430A (en) | Roll-up method for a display unit | |
| EP0362677B1 (en) | Method of and apparatus for producing cutout mask data | |
| JPS5833711A (en) | Numerical controller | |
| US4009338A (en) | Tablet with improved pen height compensation | |
| JPH01100421A (en) | Line interpolation method in X-Y recorder | |
| JPH025102A (en) | Input system for pc rudder graphic | |
| JPH07105362A (en) | Curve sample point generator | |
| JPH0225218B2 (en) | ||
| JP2856243B2 (en) | Checkered pattern automatic creation apparatus and method | |
| JPS6043532B2 (en) | Chain line interpolation method for XY plotter | |
| JP2000029383A (en) | Graphic display method, graphic display device, and recording medium | |
| EP0151184B1 (en) | Apparatus for emphasizing and displaying nc command program portion stored at specific address | |
| JPH10240918A5 (en) | ||
| JP3096123B2 (en) | Document processing apparatus and method | |
| JPH0737109A (en) | Line texture generation method | |
| JPH0296235A (en) | Computer system | |
| JP2753543B2 (en) | Graphic output device | |
| JPH0664534B2 (en) | Device for selecting unification candidate terms | |
| JPS60214010A (en) | Control system for interlocking between industrial robot and slider | |
| JPS58155474A (en) | Drawing method of parallel curve | |
| JPS61233809A (en) | Automatic programming generating device | |
| JPS61281375A (en) | Curved surface display method | |
| JPH0778271A (en) | 3D shape generation system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |