JPH06340199A - Control method in pen plotter painting - Google Patents
Control method in pen plotter paintingInfo
- Publication number
- JPH06340199A JPH06340199A JP15287893A JP15287893A JPH06340199A JP H06340199 A JPH06340199 A JP H06340199A JP 15287893 A JP15287893 A JP 15287893A JP 15287893 A JP15287893 A JP 15287893A JP H06340199 A JPH06340199 A JP H06340199A
- Authority
- JP
- Japan
- Prior art keywords
- grid
- item
- plotter
- distance
- pen
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 23
- 238000010422 painting Methods 0.000 title 1
- 238000010586 diagram Methods 0.000 description 8
- 238000007781 pre-processing Methods 0.000 description 7
- 238000001514 detection method Methods 0.000 description 5
- 238000007796 conventional method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012938 design process Methods 0.000 description 1
Abstract
(57)【要約】
【目的】 いわゆるパソコンクラスの計算機でも大量の
作画を充分に高速にペンプロッタに実施させ得るペンプ
ロッタ作画制御方式を提供する。
【構成】 1:ペンの作画範囲を示す格子テーブルを設定
する。2 〜4:各作画項目についてその座標から格子テー
ブルの対応格子の番号位置を算出し、その作画項目の番
号を設定する。5:項目番号を設定した格子テーブルにお
いて項目番号の存する格子同士間の距離を算出し、格子
番号と関連付けて記録した距離テーブルを設定する。6
〜10:項目番号を設定した格子テーブルにおいて、ある
格子に存する項目番号が1つの場合はそれに対応する作
画項目をプロッタに出力し、複数の場合はそれぞれの項
目番号に対応する作画項目を順次プロッタに出力し、そ
の後距離テーブルを参照して当該格子に距離が最も近い
格子を検出しその格子において同様にプロッタへの作画
項目の出力をすることを項目番号の存する全ての格子に
ついて実行する。
(57) [Abstract] [Purpose] To provide a pen plotter drawing control system that allows a pen plotter to perform a large amount of drawing at a sufficiently high speed even on a so-called personal computer class computer. [Structure] 1: Set the grid table that shows the drawing range of the pen. 2 to 4: For each drawing item, calculate the number position of the corresponding grid in the grid table from the coordinates and set the number of that drawing item. 5: Calculate the distance between the grids having the item numbers in the grid table in which the item numbers are set, and set the distance table recorded in association with the grid numbers. 6
~ 10: In the grid table where the item numbers are set, if there is one item number in a certain grid, the corresponding drawing item is output to the plotter. If there are multiple item numbers, the drawing item corresponding to each item number is sequentially plotted. Then, the lattice table having the closest distance to the lattice is detected by referring to the distance table, and the drawing item is output to the plotter in the lattice in the same manner for all lattices having item numbers.
Description
【0001】[0001]
【産業上の利用分野】本発明は、ペンプロッタ作画制御
方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pen plotter drawing control system.
【0002】[0002]
【従来の技術】ペンプロッタによる作画の制御方式は、
制御装置たるコンピュータにて所定の作画プログラムを
実行して線や図形、文字等の作画項目を示す作画データ
を形成し、それをペンプロッタに与え、ペンプロッタに
て作画データを解析してX−Yの位置データへ変換し、
その位置にペンを移動させ、指定された作画項目の作画
を行う方式である。2. Description of the Related Art The control system for drawing with a pen plotter is
A computer, which is a control device, executes a predetermined drawing program to form drawing data indicating drawing items such as lines, figures, and characters, gives it to a pen plotter, analyzes the drawing data with the pen plotter, and analyzes the X- Convert to Y position data,
In this method, the pen is moved to that position to draw the specified drawing item.
【0003】かかるペンプロッタ作画制御方式では、ペ
ンの移動速度は、作図精度が要求されることもあって一
般に遅いので、高速化を図る方法としてペンの移動距離
を少なくして移動時間を減らす方法が採用される。In such a pen plotter image drawing control system, the moving speed of the pen is generally slow because drawing accuracy is required. Therefore, as a method of increasing the speed, a method of reducing the moving distance of the pen to reduce the moving time is used. Is adopted.
【0004】具体的には、例えば図8において実線の□
枠は、ペンプロッタの作画可能範囲を示すが、この作画
可能範囲内にA〜Iの作画項目が図示するように散在す
る場合、ペンのスタート位置が左上隅であれば、ペンを
A→B→C→D→E→F→G→H→Iの順に移動させる
と全体の移動距離は最も短くなる。Concretely, for example, in FIG.
The frame shows the drawing range of the pen plotter. When the drawing items A to I are scattered in this drawing range as shown in the figure, if the start position of the pen is the upper left corner, the pen is moved from A to B. The overall movement distance becomes the shortest if the movement is performed in the order of C → D → E → F → G → H → I.
【0005】これを実現するため、従来では、例えばA
の作画項目を作画している際に、AとB間,AとC間,
AとD間,……,AとI間の距離をそれぞれ求め、最も
近い位置に在る作画項目Bを検出し、Bを次回実行の作
画項目と決定し、Aの作画項目の作画を終了するとBの
作画項目の作画に移り、その作画と並行して同様に、作
画項目Bを基準にC〜Iの各作画項目との間の距離を求
め、最も近い位置にある作画項目Cを次回実行の作画項
目と決定する、ということを繰り返し行うことで、高速
作画を実現している。In order to realize this, conventionally, for example, A
While drawing the drawing item of, between A and B, between A and C,
The distance between A and D, ..., A and I is calculated respectively, the drawing item B located at the closest position is detected, B is decided as the drawing item for the next execution, and the drawing of the drawing item A is completed. Then, the process moves to the drawing of the drawing item B, and in parallel with the drawing, similarly, the distance between each drawing item C to I is calculated based on the drawing item B, and the drawing item C closest to the drawing item C is selected next time. High-speed drawing is realized by repeatedly determining the drawing item to be executed.
【0006】なお、XY座標値が(x1 、y1 )の作画
項目とXY座標値が(x2 、y2 )の作画項目と間の距
離rは、式1で示される。The distance r between the drawing item having the XY coordinate value (x 1 , y 1 ) and the drawing item having the XY coordinate value (x 2 , y 2 ) is expressed by the equation 1.
【0007】[0007]
【数1】r={(x1 −x2)2 +(y1 −y2)2 }1/2 [Number 1] r = {(x 1 -x 2 ) 2 + (y 1 -y 2) 2} 1/2
【0008】[0008]
【発明が解決しようとする課題】ここに、近年、パーソ
ナルコンピュータの普及に伴い、設計作業等でパーソナ
ルコンピュータによりペンプロッタに作画させることが
多くなってきたが、その一方で設計構造等の複雑化によ
り作画項目は増大傾向にあり、また設計過程では図の一
部を変更し再度作画を行うことも往々にしてあり、従っ
て、高速に作画して次々と作画を迅速に繰り返し実施で
きることが望まれている。In recent years, with the spread of personal computers, it has become more common for a personal computer to draw an image on a pen plotter in design work, but on the other hand, the design structure becomes more complicated. Due to this, the number of drawing items is increasing, and in the design process, it is often the case that part of the diagram is changed and the drawing is performed again.Therefore, it is desirable to be able to draw at high speed and to repeat the drawing rapidly one after another. ing.
【0009】しかし、上述した従来のペンプロッタ作画
制御方式では、作画項目の数が増えるに従い作画項目間
の相対的な距離を求める計算回数が増大し、しかも距離
計算は浮動小数点を含む計算となるので、作画項目が大
量となるとパーソナルコンピュータクラスの計算機で
は、処理能力との関係から計算時間及び最小移動距離の
検出時間が増大し、次回作画の項目の決定に相当の時間
を要するという事態を招来することになる。However, in the above-described conventional pen plotter drawing control system, the number of calculations for obtaining the relative distance between drawing items increases as the number of drawing items increases, and the distance calculation includes calculations including floating point. Therefore, when the number of drawing items becomes large, the calculation time and the detection time of the minimum movement distance will increase in the personal computer class computer due to the relation with the processing capacity, and it will take a considerable time to decide the next drawing item. Will be done.
【0010】このことは、ペンプロッタへ作画データを
出力するまでに時間がかかることを意味するから、現在
の作画項目から次の作画項目へ移動するまでの間にペン
が動作停止をする空き時間が発生し、しかもこの空き時
間は各作画項目毎に発生するので、結局作画終了までの
時間が増大し、高速作画の趣旨に沿わないことになると
いう問題がある。This means that it takes a long time to output the drawing data to the pen plotter. Therefore, the pen has an idle time during which the operation is stopped from the current drawing item to the next drawing item. However, since this idle time occurs for each drawing item, there is a problem in that the time until the end of drawing is eventually increased and the purpose of high-speed drawing is not met.
【0011】本発明は、このような従来の問題に鑑みな
されたもので、その目的は、パーソナルコンピュータク
ラスの計算機でも大量の作画を充分に高速にペンプロッ
タに実施させ得るペンプロッタ作画制御方式を提供する
ことにある。The present invention has been made in view of such a conventional problem, and an object thereof is to provide a pen plotter image forming control system which enables a pen plotter to execute a large amount of image forming sufficiently fast even on a personal computer class computer. To provide.
【0012】[0012]
【課題を解決するための手段】前記目的を達成するた
め、本発明のペンプロッタ作画制御方式は次の如き構成
を有する。即ち、本発明のペンプロッタ作画制御方式
は、ペンプロッタの作画可能範囲を格子状に分割した格
子テーブルを設定する手段と; 各作画項目についてそ
の座標から前記格子テーブルにおける対応する格子の座
標(格子番号)を算出し、その作画項目の識別符号をそ
の算出した格子番号の格子に記録する手段と; 前記作
画項目の識別符号を設定した格子テーブルにおいて作画
項目の識別符号の存する格子同士間の距離を算出し、そ
の距離を格子番号と関連付けて記録した距離テーブルを
設定する手段と; 前記作画項目の識別符号を設定した
格子テーブルにおいて、ある格子に存する識別符号が1
つの場合はそれに対応する作画項目をプロッタに出力
し、複数の場合はそれぞれの識別符号に対応する作画項
目を順次プロッタに出力し、その後前記距離テーブルを
参照して当該格子に距離が最も近い格子を検出してその
格子において同様にプロッタへの作画項目の出力をする
ことを識別符号の存する全ての格子について実行する手
段と; を備えたことを特徴とするものである。In order to achieve the above object, the pen plotter drawing control system of the present invention has the following configuration. That is, the pen plotter drawing control system of the present invention is a means for setting a grid table that divides the pen plotter's drawable range into a grid shape; and for each drawing item, the coordinates of the corresponding grid in the grid table (grid table). Number) and records the identification code of the drawing item in the lattice of the calculated grid number; the distance between the lattices in which the identification code of the drawing item exists in the lattice table in which the identification code of the drawing item is set. And a distance table in which the distance is recorded in association with a grid number; and in the grid table in which the identification code of the drawing item is set, the identification code existing in a certain grid is 1
In the case of one, the drawing item corresponding to it is output to the plotter, and in the case of multiple, the drawing item corresponding to each identification code is sequentially output to the plotter, and then the distance table is referred to and the grid whose distance is the closest For detecting all the grids having the identification code, and outputting the drawing item to the plotter in the grid in the same manner.
【0013】[0013]
【作用】次に、前記の如く構成される本発明のペンプロ
ッタ作画制御方式の作用を説明する。本発明では、作画
制御の前処理として、格子テーブルの設定、その格子テ
ーブルに作画項目の識別符号の設定及び距離テーブルの
作成をし、距離テーブルを参照しつつ格子テーブルにお
ける識別符号の存する全ての格子をアクセスして間断な
く作画項目をペンプロッタへ出力できる。Next, the operation of the pen plotter image forming control system of the present invention constructed as described above will be described. In the present invention, as preprocessing of drawing control, a lattice table is set, identification codes of drawing items are set in the lattice table, and a distance table is created, and all the identification codes in the lattice table exist while referring to the distance table. You can access the grid and output the drawing items to the pen plotter without interruption.
【0014】従って、作画項目が増大しても、ペンプロ
ッタはペンの動作を停止させることなく連続して所定の
作画動作とペン移動を実施でき、また作画項目間の移動
距離は小さくなるように配慮してあるので作画に要する
時間は従来よりも大幅に短縮できる。Therefore, even if the number of drawing items increases, the pen plotter can continuously perform a predetermined drawing operation and pen movement without stopping the operation of the pen, and the moving distance between the drawing items can be reduced. Since it is considered, the time required for drawing can be shortened significantly compared to the past.
【0015】特に、前処理では、浮動小数点を含むよう
な繁雑な計算はなく、また計算量も作画項目が増大して
もそれ程増加しないので、この前処理での処理量はパー
ソナルコンピュータクラスの計算機でも充分に高速処理
ができる程度のものであり、パーソナルコンピュータク
ラスの計算機でも大量の作画を充分に高速にペンプロッ
タに実施させ得ることになる。Particularly, in the pre-processing, there is no complicated calculation including floating point, and the calculation amount does not increase so much even if the number of drawing items increases. Therefore, the processing amount in the pre-processing is a personal computer class computer. However, it is only capable of sufficiently high-speed processing, and even a personal computer-class computer can allow a pen plotter to perform large-scale drawing at sufficiently high speed.
【0016】[0016]
【実施例】以下、本発明の実施例を図面を参照して説明
する。図1は、本発明の一実施例に係るペンプロッタ作
画制御方式の作画処理のフローチャートである。図1に
おいて、パーソナルコンピュータは、まず最初のステッ
プ1で、ペンプロッタの作画可能範囲を格子状に分割し
た格子テーブルを設定する。具体的には、例えば図2
は、9×9個の格子に分割した場合を示すが、横方向
(X方向)では左から右へ順にA,B,C,D,E,
F,G,H,Iなる番号が付され、縦方向(Y方向)で
は上から下へ順に1,2,3,4,5,6,7,8,9
なる番号が付され、横と縦の組み合わせで1つの格子を
特定するが、このような形式で2次元配列の格子テーブ
ルを設定する。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a flowchart of a drawing process of a pen plotter drawing control system according to an embodiment of the present invention. In FIG. 1, the personal computer sets a grid table in which the image plottable range of the pen plotter is divided into grids in the first step 1. Specifically, for example, FIG.
Shows a case of dividing into 9 × 9 lattices, but in the horizontal direction (X direction), A, B, C, D, E, from left to right.
The numbers F, G, H, and I are attached, and in the vertical direction (Y direction), 1, 2, 3, 4, 5, 6, 7, 8, 9 are sequentially arranged from top to bottom.
Numbers are assigned, and one lattice is specified by a combination of horizontal and vertical, and a lattice table of a two-dimensional array is set in such a format.
【0017】一方パーソナルコンピュータでは、従前の
方法で作画データを形成するが、その作画データが示す
作画項目及び作画位置は、例えば図3に示すように、項
目数が20個で作画範囲内に散在しているとする。な
お、各項目には1から20までの対応する番号が付され
る。図示例では○の中に数字を入れて表記してあるが、
説明では単に数字のみを用いて説明する。On the other hand, in the personal computer, the drawing data is formed by the conventional method. The drawing items and the drawing positions indicated by the drawing data have 20 items and are scattered in the drawing range as shown in FIG. 3, for example. Suppose Each item is assigned a corresponding number from 1 to 20. In the example shown in the figure, numbers are shown in the circles,
In the description, only numbers will be used for description.
【0018】次のステップ2では、作画項目の座標値
(X、Y)と格子テーブルの1個の格子の大きさ(Δ
X、ΔY)とから横方向の格子番号(A〜I)と縦方向
の格子番号(1〜9)を求める(式2)。In the next step 2, the coordinate values (X, Y) of the drawing item and the size (Δ) of one grid in the grid table.
The lattice numbers (A to I) in the horizontal direction and the lattice numbers (1 to 9) in the vertical direction are obtained from (X, ΔY) (equation 2).
【0019】[0019]
【数2】横方向格子番号=作画項目のX座標値/1個の
格子の大きさΔX 縦方向格子番号=作画項目のY座標値/1個の格子の大
きさΔY[Equation 2] Horizontal grid number = X coordinate value of drawing item / size of one grid ΔX Vertical grid number = Y coordinate value of drawing item / size of one grid ΔY
【0020】次に、ステップ3では、求めた横と縦の格
子番号で特定される格子に作画項目の番号を記録し、ス
テップ4に進み、全ての作画項目についてステップ2と
同3の処理が終了したか否かを判断する。Next, in step 3, the numbers of the drawing items are recorded in the lattice specified by the obtained horizontal and vertical lattice numbers, and the process proceeds to step 4, where the processes of steps 2 and 3 are performed for all the drawing items. Determine if it is finished.
【0021】ステップ4の判定が否定(NO)である間
は、ステップ2と同3の処理を繰り返し実行し、判定が
肯定(YES)となるとステップ5に進む。While the determination in step 4 is negative (NO), the processes in steps 2 and 3 are repeatedly executed, and when the determination is positive (YES), the process proceeds to step 5.
【0022】ここで、図2と図3の比較からも明らかな
ように、1つの格子には、1つの作画項目の番号が記録
される場合と複数の作画項目の番号が記録される場合と
がある。この関係の理解を容易にするため、ステップ3
が行う作画項目の格子番号割当動作の結果を表にして示
せば、表1のようになる。Here, as is clear from the comparison between FIG. 2 and FIG. 3, the case where one drawing item number is recorded and the case where a plurality of drawing item numbers are recorded in one grid are shown. There is. To facilitate understanding of this relationship, step 3
Table 1 shows the result of the grid number assigning operation of the drawing items performed by the table.
【0023】[0023]
【表1】 [Table 1]
【0024】そこで、ステップ3の割当動作では、1つ
の格子に複数の作画項目番号が割り当てられる場合に
は、リスト構造のポインタにより相互に接続することを
行う。即ち、例えば番号G−6の格子では、「5」と
「7」と「11」の3つの作画項目番号が割り当てられ
ているので、図4に示すように、「5」のポインタで
「7」を指定し、「7」のポインタで「11」を指定す
るリスト構造となる。なお、この番号G−6の格子で
は、「11」で終わりなので、「11」のポインタ部分
には最終を示す「−1」が設定される。Therefore, in the assigning operation in step 3, when a plurality of drawing item numbers are assigned to one grid, they are connected to each other by a pointer of a list structure. That is, for example, in the lattice of number G-6, three drawing item numbers “5”, “7”, and “11” are assigned, so that as shown in FIG. Is designated and "11" is designated by the pointer of "7". It should be noted that in the lattice of this number G-6, since it ends with "11", "-1" indicating the end is set in the pointer portion of "11".
【0025】従って、図2に示した格子テーブルにおい
て作画項目番号が記録された格子は図5に*の記号を付
した格子であり、これらの格子のみが作画対象となるの
で、ステップ5では、この作画対象となった格子同士間
の距離を1格子間の水平距離または垂直距離を1として
算出し、その距離を格子番号と関連付けて記録した距離
テーブルを作成する(図6)。なお、図6において、
「−1」は、距離ではなく対象外のデータであることを
示す。Therefore, the grid in which the drawing item numbers are recorded in the grid table shown in FIG. 2 is the grid marked with * in FIG. 5, and only these grids are targets for drawing. The distance between the grids to be drawn is calculated with the horizontal distance or the vertical distance between the grids being 1, and the distance table is created by associating the distance with the grid number (FIG. 6). In addition, in FIG.
“−1” indicates that the data is not the distance but the target data.
【0026】さて、以上の前処理を終了すると、次に作
画処理を次のようにして実行する。ペンのスタート位置
格子は特に限定されないが、例えば番号A−1の格子が
スタート位置格子であるとすれば、図5に示すようにこ
の番号A−1の格子は作画対象の格子となっている。従
って、作画処理は、この番号A−1の格子を作画対象の
先頭格子として開始される。When the above pre-processing is completed, the drawing processing is executed as follows. The start position grid of the pen is not particularly limited. For example, if the grid of number A-1 is the start position grid, the grid of number A-1 is the grid to be drawn as shown in FIG. . Therefore, the drawing process is started with the grid having the number A-1 as the leading grid to be drawn.
【0027】ステップ6では、格子テーブルの該当格子
番号をアクセスしてその格子から作画項目番号を取り出
す。先頭格子は、番号A−1の格子であるから、その格
子から作画項目番号「6」を取り出すことになる。In step 6, the corresponding grid number in the grid table is accessed to extract the drawing item number from the grid. Since the top grid is the grid of number A-1, the drawing item number "6" is extracted from the grid.
【0028】ステップ7では、取り出した作画項目番号
に対応した作画項目(具体的には作画データ)を通常の
方法でペンプロッタへ出力する。In step 7, the drawing item (specifically, drawing data) corresponding to the taken-out drawing item number is output to the pen plotter by a normal method.
【0029】ステップ8では、当該格子に更に取り出す
べき作画項目番号が存するか否かを判定する。これは、
ステップ6において取り出した作画項目番号のポインタ
(図4)が「−1」であるか否かにより判断する。例え
ば番号A−1の格子では番号「6」以外に作画項目番号
が存在せずそのポインタは「−1」であるので、判定は
肯定(YES)となりステップ9に進む。In step 8, it is determined whether or not there is a drawing item number to be extracted in the grid. this is,
It is determined whether or not the pointer (FIG. 4) of the drawing item number extracted in step 6 is "-1". For example, in the grid of number A-1, since there is no drawing item number other than the number "6" and the pointer is "-1", the determination is affirmative (YES) and the process proceeds to step 9.
【0030】一方、例えば番号E−5や同G−6の格子
のように複数の作画項目番号が記録されている場合は、
ポインタに「−1」が検出されるまではこのステップ8
の判定は否定(NO)となり、ステップ6→同7→同8
→同6の処理が繰り返し実行され、その格子に存する全
ての作画項目番号それぞれについての作画項目が順次ペ
ンプロッタへ出力される。全ての作画項目番号について
の終了がポインタの「−1」検出により確認されると、
ステップ8の判定が肯定(YES)となり、ステップ9
に進む。On the other hand, in the case where a plurality of drawing item numbers are recorded, such as the grid of number E-5 or G-6,
This step 8 is executed until "-1" is detected in the pointer.
Is negative (NO), and steps 6 → 7 → 8
→ The process of 6 is repeatedly executed, and the drawing items for all the drawing item numbers in the grid are sequentially output to the pen plotter. When the end for all drawing item numbers is confirmed by the detection of "-1" of the pointer,
The determination in step 8 becomes affirmative (YES), and step 9
Proceed to.
【0031】ステップ9では、距離テーブルを参照して
最も近い格子番号を求める。その際に、終了した格子番
号に対する終了処理を行う。In step 9, the closest lattice number is obtained by referring to the distance table. At that time, the ending process for the finished lattice number is performed.
【0032】即ち図6において、各格子番号の位置に
は、距離と無関係のデータ「−1」が設定されている
が、例えば番号A−1の位置から横方向に設定される数
値のうち最も小さい値「1.0」の存在する位置の格子
番号B−1を検出する。そして、番号A−1の格子に設
定した作画項目は既に作画済みであるので、A−1の作
画項目を再度検出しないように、距離テーブルにおいて
番号A−1の位置における横と縦の配列に「−1」を設
定する(図7)終了処理を行う。That is, in FIG. 6, data "-1" irrelevant to the distance is set at the position of each grid number, but for example, the most numerical value set in the lateral direction from the position of number A-1. The grid number B-1 at the position where the small value "1.0" exists is detected. Then, since the drawing item set in the grid of number A-1 has already been drawn, the horizontal and vertical arrangement at the position of number A-1 is arranged in the distance table so that the drawing item of A-1 is not detected again. Set "-1" (FIG. 7) and perform termination processing.
【0033】ステップ10では、かかる「−1」設定の
終了処理の状態により全格子番号について作画処理を終
了したか否かを判定する。終了していなければ判定は否
定(NO)となり、先のステップ6に進み、以上説明し
た作画処理を続行することになる。In step 10, it is determined whether or not the drawing process has been completed for all the lattice numbers depending on the state of the ending process of the setting of "-1". If it has not been completed, the determination is negative (NO), the process proceeds to the previous step 6, and the above-described drawing process is continued.
【0034】即ち、番号B−1の格子において作画項目
の出力処理が行われるが、それが終了すると、次に距離
テーブルにおいて、番号B−1の位置から横方向に設定
される数値のうち最も小さい値「4.1」の存在する位
置の格子番号F−2を検出し「−1」設定の終了処理を
する。That is, the output processing of the drawing item is performed in the grid of number B-1, but when it is completed, next, in the distance table, the most of the numerical values set in the horizontal direction from the position of number B-1. The lattice number F-2 at the position where the small value "4.1" exists is detected, and the ending process of the "-1" setting is performed.
【0035】同様に格子番号F−2の位置から横方向に
設定される数値のうち最も小さい値「2.8」の存在す
る位置の格子番号H−4を検出し、「−1」設定の終了
処理をする。Similarly, the grid number H-4 at the position where the smallest value "2.8" among the numerical values set in the lateral direction from the position of the grid number F-2 is detected is set to "-1". Perform termination processing.
【0036】以下同様に、横方向への検出動作により、
G−7,H−7,G−6,E−5,D−9,B−8の順
に格子番号が検出される。なお、縦方向への検出動作で
もほぼ同様の順序、即ちA−1,B−1,F−2,H−
4,H−7,G−7,G−6,E−5,D−9,B−8
の順序で格子番号が検出される。Similarly, by the detection operation in the lateral direction,
The lattice numbers are detected in the order of G-7, H-7, G-6, E-5, D-9, B-8. It should be noted that, in the detection operation in the vertical direction, almost the same order, that is, A-1, B-1, F-2, H-
4, H-7, G-7, G-6, E-5, D-9, B-8
The lattice numbers are detected in the order of.
【0037】つまり、ペンは、従来と同様にほぼ最短距
離を移動して作画を行うが、その際に、ペンは停止する
ことなく連続して作画と移動を行うことが以上の説明で
理解できる。In other words, it can be understood from the above description that the pen moves substantially the shortest distance as in the conventional case to draw an image, but at that time, the pen continuously draws and moves without stopping. .
【0038】[0038]
【発明の効果】以上説明したように、本発明のペンプロ
ッタ作画制御方式は、作画制御の前処理として、格子テ
ーブルの設定、その格子テーブルに作画項目の識別符号
の設定及び距離テーブルの作成をし、距離テーブルを参
照しつつ格子テーブルにおける識別符号の存する全て格
子をアクセスして間断なく作画項目をペンプロッタへ出
力する。従って、作画項目が増大しても、ペンプロッタ
はペンの動作を停止させることなく連続して所定の作画
動作とペン移動を実施でき、また作画項目間の移動距離
は小さくなるように配慮してあるので、作画に要する時
間は従来よりも大幅に短縮できる効果がある。As described above, according to the pen plotter drawing control method of the present invention, the grid table is set, the identification code of the drawing item is set in the grid table, and the distance table is created as the preprocessing of the drawing control. Then, while referring to the distance table, all grids having the identification code in the grid table are accessed to output the drawing items to the pen plotter without interruption. Therefore, even if the number of drawing items increases, the pen plotter can perform the predetermined drawing operation and pen movement continuously without stopping the operation of the pen, and consider that the movement distance between the drawing items becomes small. Therefore, there is an effect that the time required for drawing can be significantly shortened as compared with the conventional method.
【0039】特に、前処理では、浮動小数点を含むよう
な繁雑な計算はなく、計算量も作画項目が増大してもそ
れ程増加しないので、この前処理での処理量はパーソナ
ルコンピュータクラスの計算機でも充分に高速処理がで
きる程度のものである。従って、パーソナルコンピュー
タクラスの計算機でも大量の作画を充分に高速にペンプ
ロッタに実施させ得るペンプロッタ作画制御方式を提供
できる効果もある。In particular, in the preprocessing, there is no complicated calculation including floating point, and the amount of calculation does not increase so much even when the number of drawing items increases. Therefore, the amount of processing in this preprocessing can be performed by a personal computer class computer. This is a high speed processing. Therefore, there is also an effect that it is possible to provide a pen plotter image drawing control system that enables a pen plotter to perform a large amount of image drawing at a sufficiently high speed even with a personal computer class computer.
【図1】本発明の一実施例に係るペンプロッタ作画制御
方式の作画処理手順のフローチャートである。FIG. 1 is a flowchart of a drawing processing procedure of a pen plotter drawing control system according to an embodiment of the present invention.
【図2】格子テーブルの一例を示す図である。FIG. 2 is a diagram showing an example of a lattice table.
【図3】作画項目と作画範囲との関係図である。FIG. 3 is a relationship diagram between a drawing item and a drawing range.
【図4】複数の作画項目番号が設定される格子(例えば
番号G−6の格子)で採用されるリスト構造の例を示す
図である。FIG. 4 is a diagram showing an example of a list structure adopted in a lattice (for example, a lattice having a number G-6) in which a plurality of drawing item numbers are set.
【図5】作画項目番号を設定した格子テーブルを示す図
である。FIG. 5 is a diagram showing a lattice table in which drawing item numbers are set.
【図6】距離テーブルを示す図である。FIG. 6 is a diagram showing a distance table.
【図7】格子番号A−1検出後に行われる「−1」設定
処理(終了処理)の説明図である。FIG. 7 is an explanatory diagram of “−1” setting processing (end processing) performed after detection of the lattice number A-1.
【図8】従来の作画動作の説明図である。FIG. 8 is an explanatory diagram of a conventional drawing operation.
Claims (1)
分割した格子テーブルを設定する手段と; 各作画項目
についてその座標から前記格子テーブルにおける対応す
る格子の座標(格子番号)を算出し、その作画項目の識
別符号をその算出した格子番号の格子に記録する手段
と; 前記作画項目の識別符号を設定した格子テーブル
において作画項目の識別符号の存する格子同士間の距離
を算出し、その距離を格子番号と関連付けて記録した距
離テーブルを設定する手段と;前記作画項目の識別符号
を設定した格子テーブルにおいて、ある格子に存する識
別符号が1つの場合はそれに対応する作画項目をプロッ
タに出力し、複数の場合はそれぞれの識別符号に対応す
る作画項目を順次プロッタに出力し、その後前記距離テ
ーブルを参照して当該格子に距離が最も近い格子を検出
してその格子において同様にプロッタへの作画項目の出
力をすることを識別符号の存する全ての格子について実
行する手段と; を備えたことを特徴とするペンプロッ
タ作画制御方式。1. A means for setting a grid table obtained by dividing an imageable range of a pen plotter in a grid pattern; calculating coordinates (grid number) of a corresponding grid in the grid table from the coordinates of each drawing item, A means for recording the identification code of the drawing item in the grid of the calculated grid number; calculating the distance between the grids in which the identification code of the drawing item exists in the grid table in which the identification code of the drawing item is set; Means for setting a distance table recorded in association with a grid number; in the grid table in which the identification codes of the drawing items are set, when there is one identification code in a certain grid, the corresponding drawing item is output to the plotter, In the case of more than one, the drawing items corresponding to each identification code are sequentially output to the plotter, and then the distance table is referred to and And a means for executing the output of the drawing item to the plotter in that grid for all the grids having the identification code, and the pen plotter drawing. control method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP15287893A JPH06340199A (en) | 1993-05-31 | 1993-05-31 | Control method in pen plotter painting |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP15287893A JPH06340199A (en) | 1993-05-31 | 1993-05-31 | Control method in pen plotter painting |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06340199A true JPH06340199A (en) | 1994-12-13 |
Family
ID=15550101
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP15287893A Pending JPH06340199A (en) | 1993-05-31 | 1993-05-31 | Control method in pen plotter painting |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06340199A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5157214A (en) * | 1989-04-10 | 1992-10-20 | Matsushita Electric Industrial Co., Ltd. | Musical sound synthesizing apparatus |
| US5200568A (en) * | 1990-01-31 | 1993-04-06 | Yoshiko Fukushima | Method of controlling sound source for electronic musical instrument, and electronic musical instrument adopting the method |
| US5229536A (en) * | 1990-06-20 | 1993-07-20 | Yamaha Corporation | Musical tone synthesizing apparatus |
| US5247131A (en) * | 1989-12-14 | 1993-09-21 | Yamaha Corporation | Electronic musical instrument with multi-model performance manipulator |
-
1993
- 1993-05-31 JP JP15287893A patent/JPH06340199A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5157214A (en) * | 1989-04-10 | 1992-10-20 | Matsushita Electric Industrial Co., Ltd. | Musical sound synthesizing apparatus |
| US5247131A (en) * | 1989-12-14 | 1993-09-21 | Yamaha Corporation | Electronic musical instrument with multi-model performance manipulator |
| US5200568A (en) * | 1990-01-31 | 1993-04-06 | Yoshiko Fukushima | Method of controlling sound source for electronic musical instrument, and electronic musical instrument adopting the method |
| US5229536A (en) * | 1990-06-20 | 1993-07-20 | Yamaha Corporation | Musical tone synthesizing apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2626153B2 (en) | Layout compaction method | |
| JP2651009B2 (en) | Information recognition device | |
| CN110968039A (en) | Graph cutting and sorting processing method applied to laser cutting numerical control machining | |
| JPS59119438A (en) | Display of current position of locator | |
| CN119311122A (en) | Cloud game virtual reality gesture interaction method, device and storage medium based on adaptive multimodal fusion | |
| US5617520A (en) | Three-dimensional pattern editing apparatus having moving distance calculator and/or a dragging pattern holding unit | |
| JPH06340199A (en) | Control method in pen plotter painting | |
| US8749834B2 (en) | Information processing apparatus that perform margin reduction depending on the column group structure, method for controlling same, and storage medium on which computer program has been recorded | |
| JP4752066B2 (en) | Handwriting input processing device, handwriting input processing method, and program for handwriting input processing | |
| JP2002074381A (en) | Figure editing apparatus and method | |
| CN119203280A (en) | A method and system for automatically avoiding size numbers | |
| JP2005222138A (en) | Cluster analysis device using k-means method, cluster analysis method, cluster analysis program, and recording medium recording the program | |
| US5471536A (en) | Figure digitizing system | |
| JP2933932B2 (en) | Character recognition method and apparatus | |
| JP7611571B2 (en) | IMAGE EXTRACTION METHOD, IMAGE EXTRACTION DEVICE, IMAGE EXTRACTION PROGRAM, AND RECORDING MEDIUM | |
| CN119437033B (en) | A method and device for plane touch measurement obstacle avoidance path planning on a measuring machine | |
| JPH05303644A (en) | Grahic recognition method for picture processor | |
| JPH069064B2 (en) | Handwriting recognition device | |
| JPH05299327A (en) | Electron beam writing equipment | |
| JPH04245383A (en) | High-speed processing method and device for figure ID recognition | |
| JP3096123B2 (en) | Document processing apparatus and method | |
| CN118819340A (en) | Capacitive touch screen and touch detection method thereof | |
| CN114818625A (en) | Method and device for processing document area | |
| JPH05341938A (en) | Grid display | |
| JP2614356B2 (en) | Closed figure extraction method |