JP2977330B2 - Plotter control method and plotter device - Google Patents

Plotter control method and plotter device

Info

Publication number
JP2977330B2
JP2977330B2 JP3167564A JP16756491A JP2977330B2 JP 2977330 B2 JP2977330 B2 JP 2977330B2 JP 3167564 A JP3167564 A JP 3167564A JP 16756491 A JP16756491 A JP 16756491A JP 2977330 B2 JP2977330 B2 JP 2977330B2
Authority
JP
Japan
Prior art keywords
end point
vector
vector data
data
selecting
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 - Fee Related
Application number
JP3167564A
Other languages
Japanese (ja)
Other versions
JPH04364997A (en
Inventor
正明 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mutoh Industries Ltd
Original Assignee
Mutoh Industries 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 Mutoh Industries Ltd filed Critical Mutoh Industries Ltd
Priority to JP3167564A priority Critical patent/JP2977330B2/en
Publication of JPH04364997A publication Critical patent/JPH04364997A/en
Application granted granted Critical
Publication of JP2977330B2 publication Critical patent/JP2977330B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、ペンプロッタのような
プロッタに係り、特にペン動作の効率を改善し得るプロ
ッタ制御方法およびプロッタ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a plotter such as a pen plotter, and more particularly to a plotter control method and a plotter apparatus capable of improving the efficiency of pen operation.

【0002】[0002]

【従来の技術】一般に、ペンプロッタでは、ホストコン
ピュータから送られてくる作画データが、例えば上位C
PU(中央処理装置)により構成される作画データ解析
部にて解析され、ペンの移動に対応する描画ベクトルデ
ータに変換されて例えば下位CPUにより構成される描
画制御部に与えられる。この描画制御部では、前記ベク
トルデータに基づいて、実際のペンのXY移動処理およ
びペンのアップ/ダウン処理が行われる。
2. Description of the Related Art Generally, in a pen plotter, drawing data sent from a host computer is, for example, a high-order C.
The image data is analyzed by a drawing data analysis unit configured by a PU (Central Processing Unit), converted into drawing vector data corresponding to the movement of the pen, and provided to a drawing control unit configured by, for example, a lower CPU. In this drawing control unit, the actual pen XY movement processing and pen up / down processing are performed based on the vector data.

【0003】1本の直線に係るペンの移動を考えた場
合、作画データ解析部の処理時間は線分の長さに関係な
く例えば数msecでほぼ一定であるのに対し、描画制
御部の処理は、実際にペンの移動が終了するまでであ
り、作画データの内容によって変動する例えば数mse
cから1secの時間が必要である。したがって、極端
に短い線分が多数連続するような特殊な場合を除いて、
作画データ解析部のデータ処理時間は描画制御部のペン
移動処理時間に対し充分に短い。
[0003] When the movement of a pen along a single straight line is considered, the processing time of the drawing data analysis unit is almost constant at, for example, several milliseconds regardless of the length of the line segment. Is the time until the movement of the pen is actually completed, and varies for example by several milliseconds depending on the contents of the drawing data.
A time from c to 1 sec is required. Therefore, except in the special case where many extremely short line segments continue,
The data processing time of the drawing data analysis unit is sufficiently shorter than the pen movement processing time of the drawing control unit.

【0004】このため、作画データ解析部で変換された
描画ベクトルデータが描画制御部のバッファを満たし、
描画制御部が作画データ解析部に対しデータ要求をしな
くなると、作画データ解析部はデータ解析を停止し、描
画制御部のバッファに空きが生じるのを待っていた。つ
まり、作画データ解析部のデータ解析の処理速度は、実
質的に描画制御部の動作にともなう、実際のペン移動速
度によって制限されていた。
For this reason, the drawing vector data converted by the drawing data analysis unit fills the buffer of the drawing control unit,
When the drawing control unit stops making a data request to the drawing data analysis unit, the drawing data analysis unit stops the data analysis and waits for a free space in the buffer of the drawing control unit. That is, the data analysis processing speed of the drawing data analysis unit is limited by the actual pen movement speed, which is substantially associated with the operation of the drawing control unit.

【0005】これに対し、実際のペン移動速度による制
限を緩和し、作画データ解析部に設けたバッファ内に解
析済みのデータをため込み、描画制御部からのデータ要
求のタイミングに合わせて、解析済みデータのうちの最
適なデータを描画制御部に送るようにすることが考えら
れている。
On the other hand, the restriction imposed by the actual pen moving speed is relaxed, the analyzed data is stored in a buffer provided in the drawing data analysis unit, and the analysis is performed in accordance with the data request timing from the drawing control unit. It has been considered that optimal data of the already processed data is sent to the drawing control unit.

【0006】ここで、作画データ解析部による解析済み
データのうちの最適なデータを得るための順序付けを全
作画データを通じて行えば、最も効率のよい作画が行え
るはずであるが、全作画データを通じて順序付けをする
ためには、全作図データを解析する必要がある。この場
合、その処理を行う間(例えば、数secから数分の
間)プロッタが停止してしまうばかりでなく、解析済み
データの量が膨大になり、著しく大容量のメモリが必要
となるため現実的でない。
Here, if the ordering for obtaining the optimum data among the data analyzed by the drawing data analysis unit is performed through all the drawing data, the most efficient drawing should be performed. To do this, it is necessary to analyze all drawing data. In this case, not only does the plotter stop during the processing (for example, for several seconds to several minutes), but also the amount of analyzed data becomes enormous, and a remarkably large capacity memory is required. Not a target.

【0007】そこで、従来行われあるいは考えられてい
る方法として、双方向プロットによる方法と最近点選択
による方法とがある。これらの方法について次に説明す
る。
[0007] Therefore, as a method conventionally performed or considered, there are a method based on bidirectional plotting and a method based on nearest point selection. These methods will now be described.

【0008】(1) 双方向プロット 与えられた作画データを解析して得られる描画線分を示
すベクトルデータを、与えられた順序に従って処理する
にあたり、次の線分のベクトルデータの両端点のうちで
現在位置(処理の起点となる基準位置)に近い端点を選
択して、その端点から描画する。
(1) Bidirectional plot When processing vector data indicating a drawing line segment obtained by analyzing given drawing data according to a given order, the end point of the next line segment vector data is processed. Then, an end point close to the current position (a reference position serving as a starting point of processing) is selected, and drawing is performed from the end point.

【0009】例えば、図5に示すように、線分のベクト
ルデータL1〜L5が順次与えられたとすると、ベクト
ルデータL1〜L5は与えられた順序に従って順次描画
される。このとき、ベクトルデータL1が端点L1aか
ら端点L1bに描画された時点での現在位置CPは端点
L1bであり、次のベクトルデータL2の描画にあたっ
ては端点L2aおよびL2bのうちの現在位置CP(す
なわちL1b)に近いほうの端点L2bが選択され、端
点L2bを起点としてベクトルデータL2が描画され
る。次のベクトルデータL3については、ベクトルデー
タL2の端点L2aに近いほうの端点L3aから端点L
3bに向かって描画される。同様に、順次、次のベクト
ルデータの示す線分の近いほうの端点が選択されて、ベ
クトルデータL4およびL5が与えられた順序に従って
描画される。
For example, as shown in FIG. 5, if vector data L1 to L5 of a line segment are sequentially given, the vector data L1 to L5 are sequentially drawn in the given order. At this time, the current position CP at the time when the vector data L1 is drawn from the end point L1a to the end point L1b is the end point L1b. When drawing the next vector data L2, the current position CP of the end points L2a and L2b (that is, L1b Is selected, and the vector data L2 is drawn starting from the end point L2b. For the next vector data L3, the end point L3a closer to the end point L2a of the vector data L2
3b is drawn. Similarly, the nearest end point of the line segment indicated by the next vector data is sequentially selected, and the vector data L4 and L5 are drawn in the given order.

【0010】(2) 最近点選択 未処理の所定本数のベクトルデータの各両端点のうち現
在位置に最も近い端点を順次選択して行く。すなわち、
1つの線分のベクトルデータだけでなく、所定本数の線
分のベクトルデータの各両端点のうち現在位置に最も近
い端点を起点として、その端点を含むベクトルデータを
優先して描画する。
(2) Nearest point selection The end point closest to the current position is sequentially selected from both end points of a predetermined number of unprocessed vector data. That is,
In addition to the vector data of one line segment, the end point closest to the current position among the two end points of the vector data of a predetermined number of line segments is used as a starting point, and the vector data including the end point is preferentially drawn.

【0011】例えば、図6に示すように未処理のベクト
ルデータのうちの所定本数(この場合4本)のベクトル
データL1〜L4の各両端点に着目し、現在位置に最も
近い端点L4aを起点として、その端点L4aを含むベ
クトルデータL4を優先して描画する。ベクトルデータ
L4の次に描画するデータの選択にあたっては、残った
ベクトルデータL1〜L3に新たなベクトルデータを加
え、それらのベクトルデータの両端点のうちからその時
点での現在位置すなわちベクトルデータL4の端点L4
bに最も近い端点を選択する。
For example, as shown in FIG. 6, attention is paid to each end point of a predetermined number (four in this case) of vector data L1 to L4 among unprocessed vector data, and the end point L4a closest to the current position is set as a starting point. , The vector data L4 including the end point L4a is preferentially drawn. When selecting data to be drawn next to the vector data L4, new vector data is added to the remaining vector data L1 to L3, and the current position at that time, that is, the vector data L4 is selected from both end points of the vector data. End point L4
Select the endpoint closest to b.

【0012】[0012]

【発明が解決しようとする課題】上述した双方向プロッ
トによる方法(1) では、与えられるベクトルデータの順
序に従って描画され、各線分の端点の選択のみを制御す
るため、描画時間、描画効率等は、ベクトルデータの与
えられる順序によって大きく左右される。例えば、図5
のようなデータを描画する場合は順序付けによる効果が
あまり得られない。
In the method (1) based on the bidirectional plot, the drawing is performed in accordance with the order of the given vector data, and only the selection of the end point of each line segment is controlled. , The order in which the vector data is provided. For example, FIG.
In the case of drawing such data, the effect of the ordering is not so much obtained.

【0013】一方、上述した最近点選択による方法(2)
は、ある種のベクトルデータ群に対しては、かなりの効
果が期待できる。しかしながら、この方法は、基本的
に、複数個のベクトルデータ自体の比較から、次にどの
ベクトルデータを選択して描画するかを判断するだけの
手法であり、充分に効率的な描画は望めない。
On the other hand, the above-mentioned method (2) based on nearest point selection
Can be expected to have a considerable effect on certain types of vector data groups. However, this method is basically a method of judging which vector data is to be selected and drawn next, based on a comparison of a plurality of vector data itself, and a sufficiently efficient drawing cannot be expected. .

【0014】本発明は、このような事情に鑑みてなされ
たもので、効率のよいペン移動が行え、描画時間の短縮
にも寄与し得るプロッタ制御方法およびプロッタ装置を
提供することを目的としている。
SUMMARY OF THE INVENTION The present invention has been made in view of such circumstances, and has as its object to provide a plotter control method and a plotter apparatus capable of performing efficient pen movement and contributing to shortening of drawing time. .

【0015】[0015]

【課題を解決するための手段】本発明に係るプロッタ制
御方法は、逐次与えられる作画データに基づく描画ベク
トルデータをバッファ手段に一旦格納し、このバッファ
手段に格納されたベクトルデータに基づいて次に描画す
べき最適のベクトル端点を選定して、逐次ベクトルデー
タの描画を行うプロッタの制御方法において、前記バッ
ファ手段に格納された所定数の未描画のベクトルデータ
の各両端点について処理起点から少なくとも2本以上先
のベクトルを描画するまでに要するペンアップ状態での
移動量の合計を演算する移動量演算ステップと、この移
動量演算ステップの演算結果をもとに最小移動量のベク
トル端点を次に描画すべきベクトル端点として選定する
端点選定ステップと、これら移動量演算ステップおよび
端点選定ステップを各ベクトルデータ描画処理毎に繰り
返すステップとを具備することを特徴としている。
According to a plotter control method of the present invention, drawing vector data based on sequentially provided drawing data is temporarily stored in a buffer means, and a next step is performed based on the vector data stored in the buffer means. In a plotter control method for selecting an optimal vector end point to be drawn and sequentially drawing vector data, at least two points from a processing start point for each end point of a predetermined number of undrawn vector data stored in the buffer means. A movement amount calculation step for calculating the total movement amount in the pen-up state required to draw the vector more than this, and a vector end point of the minimum movement amount based on the calculation result of the movement amount calculation step, An end point selecting step for selecting as a vector end point to be drawn, and a moving amount calculating step and an end point selecting step It is characterized by comprising the steps of repeating for each vector data rendering process.

【0016】本発明に係るプロッタ装置は、逐次与えら
れる作画データに基づく描画ベクトルデータを格納する
バッファ手段と、このバッファ手段に格納された所定数
の未描画のベクトルデータの各両端点について処理起点
から少なくとも2本以上先のベクトルを描画するまでに
要するペンアップ状態での移動量の合計を演算する移動
量演算手段と、この移動量演算手段の演算結果をもとに
最小移動量のベクトル端点を選定する端点選定手段と、
この端点選定手段で選定された端点を起点として逐次次
のベクトルを描画させる描画制御手段とを具備すること
を特徴としている。
A plotter device according to the present invention has a buffer means for storing drawing vector data based on sequentially given drawing data, and a processing starting point for each end point of a predetermined number of undrawn vector data stored in the buffer means. Moving amount calculating means for calculating the total moving amount in the pen-up state required to draw at least two vectors ahead of the vector, and a vector end point of the minimum moving amount based on the calculation result of the moving amount calculating means Endpoint selection means for selecting
It is characterized by comprising drawing control means for drawing successive vectors starting from the end point selected by the end point selecting means.

【0017】[0017]

【作用】本発明のプロッタ制御方法およびプロッタ装置
においては、各ベクトルデータ処理毎に、所定数の未描
画のベクトルデータの各両端点について処理起点から少
なくとも2本以上先のベクトルを描画するまでに要する
ペンアップ状態での移動量の合計を演算し、この演算結
果をもとに最小移動量のベクトル端点を次に描画すべき
ベクトル端点として選定する処理を繰り返すので、バッ
ファ手段に格納されたベクトルデータに基づいて次に描
画すべき最適のベクトル端点を選定して、逐次ベクトル
データの描画を行うにあたり、効率のよいペン移動が行
え、描画時間も短縮することができる。
According to the plotter control method and the plotter apparatus of the present invention, for each vector data processing, it is required to draw at least two or more vectors ahead of the processing start point for each end point of a predetermined number of undrawn vector data. The sum of the necessary movement amounts in the pen-up state is calculated, and the process of selecting the vector end point of the minimum movement amount as the vector end point to be drawn next based on the calculation result is repeated. In selecting the optimal vector end point to be drawn next based on the data and sequentially drawing the vector data, efficient pen movement can be performed and the drawing time can be shortened.

【0018】[0018]

【実施例】以下、図面を参照して、本発明の実施例を説
明する。図1は本発明の一実施例に係るプロッタ装置の
要部の構成を示している。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a configuration of a main part of a plotter device according to an embodiment of the present invention.

【0019】ホストコンピュータから供給される作画デ
ータは、例えば作画データ解析部(図示していない)に
て解析処理されて描画ベクトルデータに変換され、複数
のペンが用いられる場合はペン毎のデータ群にまとめら
れて、ペン毎にソート用バッファ11に逐次格納され
る。ソート用バッファ11にペン毎に格納された描画ベ
クトルデータは、次に述べるようにしてペン毎に処理さ
れる。
The drawing data supplied from the host computer is analyzed and converted into drawing vector data by, for example, a drawing data analysis unit (not shown). When a plurality of pens are used, a data group for each pen is used. And stored sequentially in the sort buffer 11 for each pen. The drawing vector data stored for each pen in the sorting buffer 11 is processed for each pen as described below.

【0020】ソート用バッファ11に格納された描画ベ
クトルデータは、ソート処理部12にて、逐次、所定数
ずつ処理されて次に描画すべきベクトルデータおよび描
画起点となる端点が選定され、その端点を起点とするそ
のベクトルデータが、ソート用バッファ11から描画制
御部13に転送される。描画制御部13は与えられたデ
ータに従って駆動機構部14を作動させ、ペン移動およ
びペンのアップ/ダウンを行わせる。
The drawing vector data stored in the sorting buffer 11 is sequentially processed by the sorting unit 12 by a predetermined number, and vector data to be drawn next and an end point serving as a drawing start point are selected. Is transferred from the sort buffer 11 to the drawing control unit 13. The drawing control unit 13 operates the driving mechanism unit 14 according to the given data, and causes the pen to move and the pen to be moved up and down.

【0021】ソート処理部12は、所定数のベクトルデ
ータの各端点について例えば2本先のベクトルデータを
描画するまでに要するペンアップ状態での移動量の合計
を演算する移動量演算部15と、この移動量演算部15
で演算された各端点のうち前記ペンアップ状態での移動
量の合計が最小となる端点およびベクトルデータを選定
する端点選定部16とを有している。
The sort processing unit 12 includes a movement amount calculation unit 15 for calculating a total movement amount in a pen-up state required to draw, for example, two vectors ahead of each end point of a predetermined number of vector data; This movement amount calculation unit 15
And an end point selection unit 16 for selecting the end point and the vector data that minimize the total amount of movement in the pen-up state among the end points calculated in (1).

【0022】この実施例においては、単に現在位置すな
わち処理起点に最も近い端点を求めるのではなく、所定
数の未描画の描画ベクトルデータについて、処理起点か
ら各描画ベクトルデータに対応する線分の一方の端点ま
での距離とさらにその線分の他方の端点から最も近い他
のベクトルデータの一つの端点までの距離との合計、す
なわち2本先のベクトルデータを描画するまでに要する
ペンアップ状態での移動量の合計を求め、その中で最も
経路の短くなる経路に対応する次の端点および描画ベク
トルデータによる線分を選定し、これに従って次の線分
を前記選定された端点を起点として作図する。このとき
描画される線分の終点から先は、所定数の未描画の描画
ベクトルデータについて、前述と同様の処理を繰り返
す。このようにすることにより、最も近い端点を起点と
する線分の終点の端点の近くに他の描画すべき線分がな
いために生じる無駄なペンアップ移動を効果的に低減す
ることができる。
In this embodiment, not only the current position, that is, the end point closest to the processing start point, but also a predetermined number of undrawn drawing vector data, one of line segments corresponding to each drawing vector data from the processing starting point. The sum of the distance to the end point of the line segment and the distance from the other end point of the line segment to one end point of the other vector data closest to the line segment, that is, the pen-up state required to draw the vector data two points ahead The total amount of movement is obtained, and the next endpoint corresponding to the shortest route and a line segment based on the drawing vector data are selected, and the next line segment is drawn with the selected endpoint as a starting point. . From the end point of the line segment to be drawn at this time, the same processing as described above is repeated for a predetermined number of undrawn drawing vector data. By doing so, it is possible to effectively reduce unnecessary pen-up movement that occurs because there is no other line segment to be drawn near the end point of the end point of the line segment starting from the closest end point.

【0023】図2に示すフローチャートを参照して、図
1の装置のソート処理部12を中心とする動作を具体的
に説明する。
With reference to the flowchart shown in FIG. 2, the operation centering on the sort processing section 12 of the apparatus shown in FIG. 1 will be specifically described.

【0024】ホストコンピュータから供給される作画デ
ータに基づいて得られた描画ベクトルデータは、ステッ
プS1で、ソート用バッファ11に順次格納される。こ
の動作は作画データがなくなるまで随時行われる。
The drawing vector data obtained based on the drawing data supplied from the host computer is sequentially stored in the sorting buffer 11 in step S1. This operation is performed as needed until there is no image data.

【0025】ステップS2で、ベクトルデータカウンタ
(変数)nが、1にセットされ、ステップS3でソート
用バッファ11に演算すべきデータがないか否かが確認
され、ソート用バッファ11に演算すべきデータがあれ
ば、ステップS4に進む。ステップS4では、ソート用
バッファ11内のデータ順に従って描画ベクトルデータ
の線分端点すなわちベクトル端点が選択され、ステップ
S5で処理起点(現在位置)からのペンアップ移動量演
算が行われる。
In step S2, the vector data counter (variable) n is set to 1, and in step S3 it is checked whether there is any data to be calculated in the sort buffer 11, and the sort buffer 11 should calculate. If there is data, the process proceeds to step S4. In step S4, the line segment end point, that is, the vector end point of the drawing vector data is selected in accordance with the data order in the sort buffer 11, and in step S5, the pen-up movement amount calculation from the processing start point (current position) is performed.

【0026】ステップS5のペンアップ移動量演算で
は、前述したように、現在位置から選択されたベクトル
端点までのペン移動量(ペンアップ移動量)とそのベク
トルの他方の端点から最も近い他のベクトル端点までの
ペン移動量(ペンアップ移動量)との合計を演算する。
ステップS4およびS5でのベクトル端点選択およびペ
ンアップ移動量の合計演算は選択されたベクトルデータ
の両端点について行われる。ステップS5での、ペンア
ップ移動量の合計演算後、ステップS6でデータカウン
タnが所定の描画ベクトルデータ数Nであるか否かが判
定され、n=Nでないとき、すなわちnがN未満である
ときはステップS7でnを1インクリメントしてステッ
プS3に戻り、ソート用バッファ11に演算すべきデー
タがあれば、ステップS4〜S5の処理が繰り返され、
上述と同様に他のベクトル端点が選択されてペンアップ
移動量の演算が行われる。
In the pen-up movement amount calculation in step S5, as described above, the pen movement amount (pen-up movement amount) from the current position to the selected vector end point and another vector closest to the other end point of the vector. The sum with the pen movement amount to the end point (pen-up movement amount) is calculated.
The vector end point selection and the total calculation of the pen-up movement amount in steps S4 and S5 are performed for both end points of the selected vector data. After the total calculation of the pen-up movement amount in step S5, it is determined in step S6 whether or not the data counter n is a predetermined number N of drawing vector data. When n = N is not satisfied, that is, n is less than N. At this time, n is incremented by 1 in step S7, and the process returns to step S3. If there is data to be calculated in the sorting buffer 11, the processing of steps S4 to S5 is repeated.
Similarly to the above, other vector endpoints are selected and the pen-up movement amount is calculated.

【0027】ステップS6でn=Nであると判定された
とき、すなわちnがNに達したときは、ステップS8に
進み、それまでに演算された各ベクトル端点毎のペンア
ップ移動量から最小移動量の経路が選択される。なお、
ステップS3でソート用バッファ11に演算すべきデー
タがないと判定された場合、すなわちnがNに達しない
状態でソート用バッファ11に演算すべきデータがなく
なった場合は、ステップS3から直ちにステップS8に
進み、それまでに演算された各ベクトル端点毎のペンア
ップ移動量から最小移動量の経路が選択される。
If it is determined in step S6 that n = N, that is, if n has reached N, the flow advances to step S8 to calculate the minimum movement from the pen-up movement amount for each vector endpoint calculated so far. A quantity route is selected. In addition,
If it is determined in step S3 that there is no data to be calculated in the sort buffer 11, that is, if there is no more data to be calculated in the sort buffer 11 in a state where n does not reach N, step S8 immediately follows from step S3. , And the path with the minimum movement amount is selected from the pen-up movement amount for each vector endpoint calculated so far.

【0028】ステップS8で、最小移動量の経路が選択
された後、ステップS9に進み、ステップS9では、ス
テップS8で選択された最小移動量の経路が1通りであ
るか否かが判定される。ステップS9で、最小移動量の
経路が複数個あると判定された場合は、ステップS10
でそれら複数個の経路のうちの最も古いベクトルデータ
を含むものを選択し、ステップS11に進む。ステップ
S9で最小移動量の経路が1通りであると判定された場
合もステップS11に進む。
After the route with the minimum movement amount is selected in step S8, the process proceeds to step S9, and in step S9, it is determined whether there is one route with the minimum movement amount selected in step S8. . If it is determined in step S9 that there are a plurality of routes with the minimum movement amount, step S10
Selects the path including the oldest vector data from the plurality of paths, and proceeds to step S11. If it is determined in step S9 that there is only one route with the minimum movement amount, the process also proceeds to step S11.

【0029】ステップS2〜ステップS7の処理はソー
ト処理部12の移動量演算部15で行われ、ステップS
8〜S10の処理はソート処理部12の端点選定部16
で行われる。
The processing of steps S2 to S7 is performed by the movement amount calculation unit 15 of the sort processing unit 12,
8 to S10 are performed by the endpoint selecting unit 16 of the sort processing unit 12.
Done in

【0030】ステップS11では、ステップS8または
S10で選択された経路に従って、ソート用バッファ1
1から描画制御部13に描画ベクトルデータが転送され
る。描画制御部13では、選択されたベクトル端点を起
点とする線分の描画処理が行われる。ステップS11の
処理の後、ステップS12で、描画処理済みのベクトル
データがソート用バッファ11から消去され、ステップ
S13で、ソート用バッファ11にベクトルデータがな
いか否かが判定される。
In step S11, according to the route selected in step S8 or S10, the sort buffer 1
1 to the drawing control unit 13. The drawing control unit 13 performs a line segment drawing process starting from the selected vector end point. After the processing in step S11, the vector data that has been subjected to the drawing processing is deleted from the sorting buffer 11 in step S12, and it is determined in step S13 whether there is no vector data in the sorting buffer 11.

【0031】ステップS13で、ソート用バッファ11
にベクトルデータがあると判定された場合は、ステップ
S2に戻り、ソート用バッファ11にベクトルデータが
なくなるまで上述と同様の処理を繰り返す。ステップS
13で、ソート用バッファ11にベクトルデータがない
と判定された場合は、処理を終了し、次の処理、例えば
他のペンデータの処理等に移行する。
In step S13, the sort buffer 11
Is determined to have vector data, the process returns to step S2, and the same processing as described above is repeated until there is no more vector data in the sorting buffer 11. Step S
If it is determined in step 13 that there is no vector data in the sort buffer 11, the processing is terminated, and the processing shifts to the next processing, for example, processing of other pen data.

【0032】上述の処理について、具体的な例について
さらに詳細に説明する。図3に示すように、ペンが現在
位置すなわち処理起点0にある状態で、線分1〜5に対
応するベクトルデータが、ソート用バッファ11に格納
されている場合を考える。
A specific example of the above processing will be described in more detail. As shown in FIG. 3, a case is considered in which the vector data corresponding to the line segments 1 to 5 is stored in the sorting buffer 11 in a state where the pen is at the current position, that is, the processing starting point 0.

【0033】図6に関連して説明したような従来の最近
点選択による方法では、0〜b−a〜c−d〜f−e〜
g−h〜j−iの経路で描画され、ペンアップの移動量
の合計は図示の場合で10+60+10+10+10=
100mmとなる。
In the conventional nearest point selection method as described with reference to FIG. 6, 0 to ba to cd to fe to
It is drawn along the route of gh to ji, and the total amount of pen-up movement is 10 + 60 + 10 + 10 + 10 =
100 mm.

【0034】一方、本実施例の方式では、第1点目を求
めるにあたり、ベクトルデータから線分1〜5の各端点
が端点a〜jの順に選択され、各端点までの距離とその
線分の他方の端点から次の最も近い他の端点までの距離
とのペンアップ移動距離の合計が計算される。ここで
は、便宜上、斜めの移動距離に代えて縦横の移動距離の
うちの長いほうを用い、短いほうを無視して計算してい
る。
On the other hand, in the method of the present embodiment, in order to obtain the first point, the end points of the line segments 1 to 5 are selected in order of the end points a to j from the vector data, and the distance to each end point and the line segment are determined. The sum of the pen-up travel distance and the distance from the other endpoint of the to the next closest other endpoint is calculated. Here, for convenience, instead of the oblique movement distance, the longer one of the vertical and horizontal movement distances is used, and the shorter one is ignored, and the calculation is performed.

【0035】 (0〜a)+(b〜c)=40+20=60mm (0〜b)+(a〜c)=10+60=70mm (0〜c)+(d〜f)=20+10=30mm (0〜d)+(c〜e)=60+10=70mm (0〜e)+(f〜d)=20+10=30mm (0〜f)+(e〜c)=60+10=70mm (0〜g)+(h〜f)=20+10=30mm (0〜h)+(g〜e)=60+10=70mm (0〜i)+(j〜h)=20+10=30mm (0〜j)+(i〜g)=60+10=70mm(0-a) + (bc) = 40 + 20 = 60 mm (0-b) + (ac) = 10 + 60 = 70 mm (0-c) + (df) = 20 + 10 = 30 mm (0 -D) + (ce) = 60 + 10 = 70 mm (0-e) + (f-d) = 20 + 10 = 30 mm (0-f) + (e-c) = 60 + 10 = 70 mm (0-g) + ( h-f) = 20 + 10 = 30 mm (0-h) + (g-e) = 60 + 10 = 70 mm (0-i) + (j-h) = 20 + 10 = 30 mm (0-j) + (i-g) = 60 + 10 = 70mm

【0036】これらのうち、端点c、e、gおよびiを
第1点とする経路が30mmで最も短い、このうちで最
初のすなわち最も古い端点cを第1点とする。
Of these, the path having the end points c, e, g and i as the first points is the shortest path of 30 mm, and the first, that is, the oldest end point c is the first point.

【0037】次に、端点cを一端とする線分2の他端点
dを処理起点として、線分1、3〜5について同様の計
算を行うと端点fが選択される。(この場合、理解を容
易にするためソート用バッファ11には図3に示したデ
ータ以外のデータは存在しないものとする。)
Next, the same calculation is performed for the line segments 1, 3 to 5 with the other end point d of the line segment 2 having the end point c as one end, and the end point f is selected. (In this case, it is assumed that data other than the data shown in FIG. 3 does not exist in the sort buffer 11 for easy understanding.)

【0038】これを繰り返すと、0〜c−d〜f−e〜
g−h〜j−i〜b−aの経路が選定され、その場合の
ペンアップ移動量の合計は20+10+10+10+3
0=80mmとなり、最近点選択による方法よりも改善
されていることがわかる。
When this is repeated, 0 to cd to fe to
The routes gh to ji to ba are selected, and the total pen-up movement amount in this case is 20 + 10 + 10 + 10 + 3.
0 = 80 mm, which indicates that the method is improved over the method based on the nearest point selection.

【0039】なお、上述において、ペンアップ移動量の
演算に際し、図4に示すように、最初の端点を含む第1
本目の候補となるベクトルデータ本数を20本とする
と、第2本目の候補とするベクトルデータ数を1本多く
して21本とする。すなわち、図4において、線分1か
ら線分20までの順に線分データが格納されている場
合、移動量演算において最初の距離計算の対象となる線
分の候補は線分1〜20であり、2番目の距離計算の対
象となる線分の候補が線分1から線分21になる。
In the above description, when the pen-up movement amount is calculated, as shown in FIG.
Assuming that the number of vector data as a candidate for the second line is 20, the number of vector data as a second candidate is increased by one to 21. That is, in FIG. 4, when line segment data is stored in the order from line segment 1 to line segment 20, the line segment candidates to be initially subjected to distance calculation in the movement amount calculation are line segments 1 to 20. The line segment candidates for the second distance calculation are line segments 1 to 21.

【0040】これは、20番目の線分20が現在位置
(処理起点)に最も近く、しかもその次の線分21も線
分20に近いのに、線分20の終点からその前の線分1
〜19の19本の線分までの距離が長いため線分20の
端点が選択されなくなることを防ぐためである。
This is because the twentieth line segment 20 is closest to the current position (processing start point), and the next line segment 21 is also close to the line segment 20. 1
This is to prevent the end point of the line segment 20 from being selected because the distance to the 19 line segments of to 19 is long.

【0041】このようにすることにより、最も近い端点
の他端点の近くに線分がないための無駄なペンアップ移
動に起因する描画効率の低下を防止し、描画効率を高め
ることができる。
By doing so, it is possible to prevent a drop in drawing efficiency due to useless pen-up movement due to no line segment near the other end point of the closest end point, and increase drawing efficiency.

【0042】なお、より最適な経路を得るためには、3
本以上先のベクトルデータまでのペンアップ移動量を演
算すればよい。この場合、距離計算の距離計算の対象と
なる線分の候補には、順次先の候補を含めるようにし、
図4に示すようにk番目の距離計算の対象となる線分の
候補は線分(19+k)までの(19+k)本の線分と
することが望ましい。
In order to obtain a more optimal route, 3
What is necessary is just to calculate the pen-up movement amount up to the vector data beyond this one. In this case, the line segment candidates to be subjected to the distance calculation in the distance calculation include the candidates ahead in order,
As shown in FIG. 4, it is desirable that the k-th line segment candidate to be subjected to distance calculation is (19 + k) line segments up to the line segment (19 + k).

【0043】また、移動量演算および端点選定を含むソ
ート処理に次のような処理を加えれば、ソート処理に係
る演算量を低減することができる。
If the following processing is added to the sort processing including the movement amount calculation and the end point selection, the amount of calculation related to the sort processing can be reduced.

【0044】処理起点からの距離が「0」の端点を有す
る線分が見つかったときには、移動量演算を中止し、そ
の端点を起点とする線分を次に描画すべく選定する。
When a line segment having an end point whose distance from the processing start point is "0" is found, the calculation of the moving amount is stopped, and a line segment starting from the end point is selected to be drawn next.

【0045】移動量演算の最終番目、例えば上述の実施
例における2番目の距離が、予め設定した所定距離より
も短いことがその距離の正確な算定以前に判明した場合
は、前記所定距離を2番目の距離とみなし、それ以上正
確な2番目の距離の計算は行わない。前記所定距離は、
通常、加減速距離の半分程度に設定する。多くの場合、
2番目の距離計算の量はかなり大量であり、充分に距離
が短いことがわかれば、厳密に距離を算定するよりも、
演算を早く打ち切るようにしたほうが演算量と実際の移
動時間との関係からみても効率がよい。
If it is found that the final distance of the movement amount calculation, for example, the second distance in the above-described embodiment is shorter than a predetermined distance, before the accurate calculation of the distance, the predetermined distance is set to two. The distance is regarded as the second distance, and no more accurate calculation of the second distance is performed. The predetermined distance is
Usually, it is set to about half of the acceleration / deceleration distance. In many cases,
The amount of the second distance calculation is quite large, and if it turns out that the distance is short enough, rather than calculating the distance exactly,
It is more efficient to terminate the calculation earlier than in view of the relationship between the amount of calculation and the actual travel time.

【0046】また、本発明は、XY両方向にペンが移動
するいわゆるフラットベッドタイプのプロッタはもちろ
ん、XY両方向の一方にペンが移動し、他方については
作画用紙が移動するいわゆるペーパムービングタイプの
プロッタにも適用することができる。
Further, the present invention is applicable not only to a so-called flat bed type plotter in which a pen moves in both directions of XY, but also to a so-called paper moving type plotter in which a pen moves in one direction of XY and the drawing paper moves in the other direction. Can also be applied.

【0047】[0047]

【発明の効果】以上述べたように、本発明によれば、バ
ッファ手段に格納されたベクトルデータに基づいて次に
描画すべき最適のベクトル端点を選定して、逐次ベクト
ルデータの描画を行うにあたり、各ベクトルデータ処理
毎に、所定数の未描画のベクトルデータの各両端点につ
いて処理起点から少なくとも2本以上先のベクトルを描
画するまでに要するペンアップ状態での移動量の合計を
演算し、この演算結果をもとに最小移動量のベクトル端
点を次に描画すべきベクトル端点として選定する処理を
繰り返して、効率のよいペン移動および描画時間の短縮
を可能とするプロッタ制御方法およびプロッタ装置を提
供することができる。
As described above, according to the present invention, when the next optimal vector end point to be drawn is selected based on the vector data stored in the buffer means, and the vector data is drawn sequentially, For each vector data process, calculate the total amount of movement in the pen-up state required to draw at least two or more vectors ahead of the processing start point for each end point of a predetermined number of undrawn vector data, A plotter control method and a plotter apparatus that enable efficient pen movement and shortening of drawing time by repeating a process of selecting a vector end point having the minimum movement amount as a vector end point to be drawn next based on the calculation result. Can be provided.

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

【図1】 本発明の一実施例に係るプロッタ装置の要部
の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a main part of a plotter device according to an embodiment of the present invention.

【図2】 図1のプロッタ装置の制御動作を説明するた
めのフローチャートである。
FIG. 2 is a flowchart illustrating a control operation of the plotter device of FIG. 1;

【図3】 図1のプロッタ装置の具体的な動作を説明す
るための描画線分の模式図である。
FIG. 3 is a schematic diagram of drawing line segments for explaining a specific operation of the plotter device of FIG. 1;

【図4】 図1のプロッタ装置に用いるベクトルデータ
の演算範囲を説明するための模式図である。
FIG. 4 is a schematic diagram for explaining a calculation range of vector data used in the plotter device of FIG. 1;

【図5】 従来のプロッタ装置における双方向プロット
と称される制御動作を説明するための描画線分の模式図
である。
FIG. 5 is a schematic diagram of drawing line segments for explaining a control operation called bidirectional plot in a conventional plotter device.

【図6】 従来のプロッタ装置における最近点選択と称
される制御動作を説明するための描画線分の模式図であ
る。
FIG. 6 is a schematic diagram of a drawing line segment for explaining a control operation referred to as nearest point selection in a conventional plotter device.

【符号の説明】[Explanation of symbols]

1〜5…線分、11…ソート用バッファ、12…ソート
処理部、13…描画制御部、14…駆動機構部、15…
移動量演算部、16…端点選定部。
1-5 line segment, 11 sort buffer, 12 sort processing unit, 13 drawing control unit, 14 drive mechanism unit, 15
Movement amount calculation unit, 16 ... End point selection unit.

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 逐次与えられる作画データに基づく描画
ベクトルデータをバッファ手段に一旦格納し、このバッ
ファ手段に格納されたベクトルデータに基づいて次に描
画すべき最適のベクトル端点を選定して、逐次ベクトル
データの描画を行うプロッタの制御方法において、前記
バッファ手段に格納された所定数の未描画のベクトルデ
ータの各両端点について処理起点から少なくとも2本以
上先のベクトルを描画するまでに要するペンアップ状態
での移動量の合計を演算する移動量演算ステップと、こ
の移動量演算ステップの演算結果をもとに最小移動量の
ベクトル端点を次に描画すべきベクトル端点として選定
する端点選定ステップと、これら移動量演算ステップお
よび端点選定ステップを各ベクトルデータ描画処理毎に
繰り返すステップとを具備することを特徴とするプロッ
タ制御方法。
1. An image processing apparatus according to claim 1, wherein the drawing vector data based on the sequentially provided drawing data is temporarily stored in a buffer means, and an optimum vector end point to be drawn next is selected based on the vector data stored in the buffer means. In the method of controlling a plotter for drawing vector data, a pen-up required for drawing at least two or more vectors ahead of the processing start point for each end point of a predetermined number of undrawn vector data stored in the buffer means. A moving amount calculating step of calculating the total moving amount in the state, an end point selecting step of selecting a vector end point of the minimum moving amount as a vector end point to be drawn next based on a calculation result of the moving amount calculating step; Repeating the moving amount calculating step and the end point selecting step for each vector data drawing process; A plotter control method comprising:
【請求項2】 端点選定ステップは、移動量演算ステッ
プの演算結果による最小移動量のベクトル端点が複数個
存在する場合は、それらのうち最も古いベクトルデータ
のベクトル端点を選定するステップを含むことを特徴と
する請求項1に記載のプロッタ制御方法。
2. The method according to claim 1, wherein the step of selecting the end point includes the step of selecting the vector end point of the oldest vector data among a plurality of vector end points having the minimum movement amount based on the calculation result of the movement amount calculation step. The plotter control method according to claim 1, wherein:
【請求項3】 逐次与えられる作画データに基づく描画
ベクトルデータを格納するバッファ手段と、このバッフ
ァ手段に格納された所定数の未描画のベクトルデータの
各両端点について処理起点から少なくとも2本以上先の
ベクトルを描画するまでに要するペンアップ状態での移
動量の合計を演算する移動量演算手段と、この移動量演
算手段の演算結果をもとに最小移動量のベクトル端点を
選定する端点選定手段と、この端点選定手段で選定され
た端点を起点として逐次次のベクトルを描画させる描画
制御手段とを具備することを特徴とするプロッタ装置。
3. A buffer means for storing drawing vector data based on successively applied drawing data, and at least two points ahead of a processing start point for each end point of a predetermined number of undrawn vector data stored in the buffer means. Moving amount calculating means for calculating the total moving amount in the pen-up state required to draw the vector, and end point selecting means for selecting the vector end point of the minimum moving amount based on the calculation result of the moving amount calculating means. And a drawing control means for drawing successive vectors starting from the end point selected by the end point selecting means.
【請求項4】 端点選定手段は、移動量演算手段の演算
結果による最小移動量のベクトル端点が複数個存在する
場合は、それらのうち最も古いベクトルデータのベクト
ル端点を選定する手段を含むことを特徴とする請求項3
に記載のプロッタ装置。
4. When there are a plurality of vector endpoints having the minimum movement amount based on the calculation result of the movement amount calculation means, the end point selection means includes means for selecting the vector end point of the oldest vector data. Claim 3
A plotter device according to claim 1.
JP3167564A 1991-06-12 1991-06-12 Plotter control method and plotter device Expired - Fee Related JP2977330B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3167564A JP2977330B2 (en) 1991-06-12 1991-06-12 Plotter control method and plotter device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3167564A JP2977330B2 (en) 1991-06-12 1991-06-12 Plotter control method and plotter device

Publications (2)

Publication Number Publication Date
JPH04364997A JPH04364997A (en) 1992-12-17
JP2977330B2 true JP2977330B2 (en) 1999-11-15

Family

ID=15852072

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3167564A Expired - Fee Related JP2977330B2 (en) 1991-06-12 1991-06-12 Plotter control method and plotter device

Country Status (1)

Country Link
JP (1) JP2977330B2 (en)

Also Published As

Publication number Publication date
JPH04364997A (en) 1992-12-17

Similar Documents

Publication Publication Date Title
EP0393632A2 (en) Apparatus for road path searching applicable to car navigation system and operation method thereof
EP0250705B1 (en) Method and apparatus for retrieval of symbol strings from data
JPH0128412B2 (en)
JP2977330B2 (en) Plotter control method and plotter device
JPH0981682A (en) Character recognition device, method therefor and computer controller
JP3007443B2 (en) Plotter control method and plotter device
JP3007445B2 (en) Plotter control method and plotter device
JP3007444B2 (en) Plotter control method and plotter device
CN113673154A (en) Diameter searching method, device, equipment and storage medium in grain sorting process
JPH1026535A (en) Optimum route searching method
JP3107416B2 (en) Buffer control method and buffer device
JPH04358900A (en) Plotter control and plotter
JPH05303644A (en) Grahic recognition method for picture processor
JPH09318374A (en) Navigator
JP2650803B2 (en) Full screen editor control processor
JPH05257610A (en) Device and method for reading file
JPH02171977A (en) Method for segmenting character made contact with line segment
JP2620735B2 (en) Printer control device
SU1059586A2 (en) Device for recognition of particle tracks
JPH09229704A (en) Route seeking device
JPH09293008A (en) System for controlling sort work file space
JPH07282073A (en) Data retrieving device and its method
JPH08329244A (en) Minimum error storage device
JPH0525329B2 (en)
JPH0577596A (en) Drawing of diagram

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070910

Year of fee payment: 8

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080910

Year of fee payment: 9

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090910

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100910

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees