JPH01266683A - Broken line generator - Google Patents

Broken line generator

Info

Publication number
JPH01266683A
JPH01266683A JP9523288A JP9523288A JPH01266683A JP H01266683 A JPH01266683 A JP H01266683A JP 9523288 A JP9523288 A JP 9523288A JP 9523288 A JP9523288 A JP 9523288A JP H01266683 A JPH01266683 A JP H01266683A
Authority
JP
Japan
Prior art keywords
line
broken line
broken
straight
straight line
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
Application number
JP9523288A
Other languages
Japanese (ja)
Inventor
Toshiya Sakka
目 俊哉
Yasuhiko Kataoka
康彦 片岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Software Chubu 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 NEC Corp, NEC Software Chubu Ltd filed Critical NEC Corp
Priority to JP9523288A priority Critical patent/JPH01266683A/en
Publication of JPH01266683A publication Critical patent/JPH01266683A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To slat either a curve or a straight line with an arbitrary broken line such as an alternate long and short dash line and an alternate long and two short dashes line and to plot an especially smooth broken-line curve by providing a broken line table part, a control part, a small straight-line segment dividing means, a straight-line segment generating means, etc. CONSTITUTION:A broken line table 106a is provided for a broken line table part 106, and a coordinate point sequence for one cycle is previously written to the table 106a for each of plural kinds of line types. Further, a control part 102 obtains the positions of two arbitrary points on one cycle of the broken line and coordinates corresponding to the positions based on the coordinate point sequence inputted from an input means 101 and outputs the obtained positions and coordinates to a small straight-line segment dividing means 103. Thus, the means 103 refers to information given from the control part 102 and the table 106a, divides the information into small straight-line segments, and outputs the small straight-line segments. Next, a straight-line segment generating means 104 inputs the small straight-line segments, generates a straight-lined segment between the coordinates indicated as a start point and an end point, and outputs a prescribed broken line to an output device 105. Thus, either the curve or the straight line can be plotted with the broken line such s the alternate long and short dash line and to alternatelong and two short dashes line, and the smooth broken-line curve can be plotted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ処理装置分野に利用される。特に、CA
D装置に利用できる。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is applied to the field of data processing equipment. In particular, CA
Can be used for D device.

本発明は破線発生装置に関し、特に直線あるいは座標点
列の間隔の細かい曲線に対して、−点鎖線゛や二点鎖線
等の破線を発生する破線発生装置に関する。
The present invention relates to a broken line generating device, and more particularly to a broken line generating device that generates broken lines such as a dashed-dot line and a dashed-two dotted line for straight lines or curves with small intervals between coordinate point sequences.

〔概要〕〔overview〕

本発明は、曲線あるいは直線を構成する座標点列および
線種を入力して破線を発生し出力する破線発生装置にお
いて、 一周期の破線を表す破線テーブルを基に、座標点列を微
小直線分に分割し、この分割された微小直線分を所定の
直線分を介して順次出力することにより、 曲線あるいは直線を任意の破線で描画でき、特に滑らか
な破線曲線を描画できるようにしたものである。
The present invention provides a broken line generator that generates and outputs a broken line by inputting a coordinate point sequence and line type constituting a curve or a straight line. By dividing the line into two segments and sequentially outputting the divided minute straight line segments via predetermined straight line segments, it is possible to draw a curve or a straight line with any broken line, and in particular, it is possible to draw a smooth broken line curve. .

〔従来の技術〕[Conventional technology]

従来、この種の破線発生装置は、第7図に示すように、
始点および終点で表される2点の座標点間に対して、常
に始点から破線を発生させていた。
Conventionally, this type of broken line generator has the following characteristics, as shown in FIG.
A broken line is always generated from the starting point between two coordinate points represented by the starting point and the ending point.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

前述した従来の破線発生装置は、二つの座標点間に対し
て、常に始点から一点鎖線、二点鎖線等の破線を発生さ
せていたため、破線の一周期に比べ座標点間の距離が十
分長くない座標点列に対しては、美しい破線を発生する
ことができない欠点があった。また滑らかな曲線を描画
する場合、座標点間の距離を十分小さくする必要があり
、滑らかな曲線を一点鎖線、二点鎖線等の破線で描画す
ることができない欠点があった。
The conventional broken line generator mentioned above always generates a broken line such as a dashed line or a dashed double dot line from the starting point between two coordinate points, so the distance between the coordinate points is sufficiently long compared to one cycle of the broken line. There is a drawback that beautiful broken lines cannot be generated for coordinate point sequences that do not exist. Furthermore, when drawing a smooth curve, it is necessary to make the distance between the coordinate points sufficiently small, and there is a drawback that it is not possible to draw a smooth curve with a broken line such as a dash-dot line or a dash-double-dot line.

本発明の目的は、前記の欠点を除去することにより、曲
線あるいは直線を一点鎖線、二点鎖線等の任意の破線で
描画でき、特に、滑らかな破線曲線を描画できる破線発
生装置を提供することにある。
An object of the present invention is to provide a broken line generator that can draw curves or straight lines as arbitrary broken lines such as one-dot chain lines and two-dot chain lines, and in particular can draw smooth broken line curves, by eliminating the above-mentioned drawbacks. It is in.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、曲線あるいは直線を構成する座標点列および
線種を入力する入力手段と、入力された前記座標点列お
よび前記線種に基づいて所定の破線を発生する破線発生
手段と、発生された前記破線を出力する出力袋−とを含
む破線発生装置において、前記破線発生手段は、あらか
じめ複数種類の線種についてその一周期の座標点列が書
き込まれた破線テーブルを格納出力する破線テーブル部
と、入力された前記座標点列を基に破線の一周期上の任
意の2点の位置およびそれに対応する座標を求め出力す
る制御部と、前記制御部から゛与えられた情報および前
記破線テーブルを参照し微小直線分に分割、出力する微
小直線分分割手段と、前記微小直線分を入力し直線分を
発生し所定の破線を前記出力装置に対して゛出力する直
線分発生手段とを含むことを特徴とする。
The present invention provides an input means for inputting a sequence of coordinate points and a line type constituting a curve or a straight line, a broken line generating means for generating a predetermined broken line based on the inputted sequence of coordinate points and the line type, and In the broken line generating device, the broken line generating means includes a broken line table section that stores and outputs a broken line table in which coordinate point sequences of one cycle are written in advance for a plurality of types of line types. a control unit that calculates and outputs the positions of arbitrary two points on one cycle of the broken line and their corresponding coordinates based on the input coordinate point sequence; and information given from the control unit and the broken line table. a minute straight line segment dividing means for dividing and outputting the minute straight line segments with reference to the minute straight line segments, and a straight line segment generating means for inputting the minute straight line segments, generating straight line segments, and outputting a predetermined broken line to the output device. It is characterized by

〔作用〕[Effect]

破線テーブル部には、あらかじめ、複数種類のき込まれ
た破線テーブルが格納される。制御部□は入力された座
標点列について、破線−周期上の任意の2点の位置とそ
れに対応する座標を求め順次微小直線分分割手段へ出力
する。微小直線分分割手段は前記制御部から入力された
情報と前記破線テーブルとを参照し破線を構成する微小
直線分に分割し順次直線分発生手段へ出力する。直線分
発生手段は入力された微小直線分に対して所定の直線分
を発生し、所定の破線として出力装置へ出力する。
The broken line table section stores in advance a plurality of types of broken line tables. The control unit □ determines the positions of two arbitrary points on the broken line-period and the corresponding coordinates for the inputted coordinate point sequence, and sequentially outputs them to the minute straight line segment dividing means. The minute straight line segment dividing means refers to the information inputted from the control section and the broken line table, divides the broken line into minute straight line segments, and sequentially outputs the divided line segments to the straight line segment generating means. The straight line segment generation means generates a predetermined straight line segment from the inputted minute straight line segment, and outputs it as a predetermined broken line to the output device.

従って、微小直線分分剤手段による微小直線分の発生お
よび直線分発生手段による直線分の発生は、入力される
線種に応じて任意に発生され任意の破線を描画すること
が可能となる。さらに座標点列の間隔をより細かく与え
ることにより滑らかな曲線破線を描画することが可能と
なる。
Therefore, the generation of a minute straight line segment by the minute straight line segment dividing means and the generation of a straight line segment by the straight line segment generation means are arbitrarily generated depending on the input line type, and it is possible to draw an arbitrary broken line. Furthermore, by providing finer intervals between coordinate point sequences, it becomes possible to draw smooth curved broken lines.

〔実施例〕〔Example〕

以下、本発明の実施例について図面を参照して説明する
Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例を示すブロック構成図である
FIG. 1 is a block diagram showing one embodiment of the present invention.

本実施例は、曲線あるいは直線を構成する座標点列およ
び線種を入力する入力手段101と、入力された前記座
標点列沿よび前記線種に基づいて所定の破線を発生する
破線発生手段と、発生された前記破線を出力する例えば
グラフィックデイスプレィまたはX−Yブロック等の出
力装置105とを含む破線発生装置において、 前記破線発生手段は、あらかじめ複数種類の線種につい
てその一周期の座標点列が書き込まれた破線テーブル1
06aを格納し出力する破線テーブル部106と、入力
された前記座標点列を基に破線の一周期上の任意の2点
の位置およびそれに対応する座標を求め出力する制御部
102と、制御部102から与えられた情報と破線テー
ブル106aとを参照し微小直線分に分割小°力する微
小直線分分割手役103と、前記微小直線分を入力し始
点および終点で表される座標間に直線分を発生し所定の
破線を出力装置105に対して出力する直線分発生手段
104とを含んでいる。
This embodiment includes an input means 101 for inputting a coordinate point sequence and line type constituting a curve or a straight line, and a broken line generation means for generating a predetermined broken line based on the inputted coordinate point sequence and the line type. , and an output device 105 such as a graphic display or an X-Y block for outputting the generated broken line, wherein the broken line generating means determines in advance the coordinate points of one period for a plurality of types of line types. Dashed line table 1 with columns written
06a, a control section 102 that calculates and outputs the positions of two arbitrary points on one period of the broken line and their corresponding coordinates based on the inputted coordinate point sequence; The minute straight line segment dividing hand 103 divides the minute straight line segments by referring to the information given from 102 and the dashed line table 106a, and inputs the minute straight line segments and creates a straight line between the coordinates represented by the start point and the end point. and a straight line segment generating means 104 for generating a predetermined broken line and outputting a predetermined broken line to an output device 105.

本発明の特徴は、第1図において、制御部102、微小
直線分分割手段103、直線分発生手段104および破
線テーブル106aを含む破線テーブル部106を設け
たことにある。
A feature of the present invention is that, in FIG. 1, a broken line table section 106 including a control section 102, a minute straight line segment dividing means 103, a straight line segment generating means 104, and a broken line table 106a is provided.

次に、本実施例の動作について説明する。まず初めに、
破線テーブル106a、制御部102および微小直線分
分割手段103についてより詳細に説明し、最後に全体
の動作について説明する。
Next, the operation of this embodiment will be explained. First of all,
The broken line table 106a, the control unit 102, and the minute straight line segment dividing means 103 will be explained in more detail, and finally the overall operation will be explained.

初めに、破線テーブル106aについて説明する。First, the broken line table 106a will be explained.

第2図は破線テーブル106aを作るための破線データ
の一例を示す説明図である。破線の一周期の長さを24
とし、破線の切れ目に一周期上の値を求める。例えば−
点鎖線゛であれば、18.20.22.24がその値と
なる。
FIG. 2 is an explanatory diagram showing an example of broken line data for creating the broken line table 106a. The length of one period of the dashed line is 24
Then, find the value one period above the broken line. For example -
If it is a dotted chain line, the value is 18.20.22.24.

(以下本頁余白) 第1表 破線テーブル106a 第1表は破線テーブル106aの一例である。線種とし
て(1)は実線、(2)は短波線、(3)は半輝度線、
(4)は長波線、(5)は−点鎖線、(6)は極長線、
(7)は二点鎖線および(8)は極短破線を示す。内容
およびデータ数は第2図を基に求めた値であり、例えば
線種(5)の−点鎖線の内容は、18.20.22.2
4となり、データ数は内容の個数であり、4となる。
(Hereinafter, this page margin) Table 1: Broken line table 106a Table 1 is an example of the broken line table 106a. Line types (1) are solid lines, (2) are short wave lines, (3) are half-bright lines,
(4) is a long wave line, (5) is a - dotted chain line, (6) is a very long line,
(7) shows a two-dot chain line and (8) shows an extremely short broken line. The contents and number of data are values obtained based on Figure 2. For example, the contents of the - dotted chain line in line type (5) are 18.20.22.2
4, and the number of data is the number of contents, which is 4.

次に制御部102について説明する。制御部102は入
力手段101により入力した座標点列を基に、微小直線
分分割手段103へ渡す情報、すなわち破線の一周期上
の任意の2点の位置とその座標を求め、制御を行う。
Next, the control unit 102 will be explained. The control unit 102 determines the information to be passed to the minute straight line segment dividing unit 103 based on the coordinate point sequence inputted by the input unit 101, that is, the positions of two arbitrary points on one cycle of the broken line and their coordinates, and performs control.

第3図(a)およびら)と第4図とを用いて、微小直線
分分割手段103へ渡す情報を求める方法を説明する。
A method for obtaining information to be passed to the minute straight line segment dividing means 103 will be explained using FIGS. 3(a) and 4).

第3図(a)およびら)は制御部による分割の説明図、
および第4図は制御部から微小直線分分割手段へ渡す情
報の説明図である。
FIGS. 3(a) and 3) are explanatory diagrams of division by the control unit,
and FIG. 4 is an explanatory diagram of information passed from the control section to the minute straight line segment dividing means.

第3図において、与えられた二つの座標点g。、go。In FIG. 3, two given coordinate points g. , go.

1と一周期の長さALの破線とをマツピングした場合、
第3図(a)に示すように、数周期に渡って二つの座標
点がある場合(パターン■)と、第3図ら)に示すよう
に、−周期内に二つの座標点がある場合(パターン■)
とが考えられる。T1、T、。l  、Tkは破線−周
期ごとの識別を表す周期であり、それぞれの周期の先頭
の座標点をC1、C1゜l  、Ckとする。dl、は
座標点C1とgnとの距離、dh+1 は座標点Ckと
g h+1の距離で、距離d。の初期値を0とする。
1 and the broken line of one cycle length AL,
As shown in Figure 3 (a), there are two coordinate points over several periods (pattern ■), and as shown in Figure 3, etc., there are two coordinate points within a - period (pattern ■). Pattern ■)
You could think so. T1, T. 1 and Tk are dashed lines - periods representing identification for each period, and the coordinate points at the beginning of each period are C1, C1゜l, and Ck. dl is the distance between the coordinate points C1 and gn, dh+1 is the distance between the coordinate points Ck and g h+1, and the distance is d. The initial value of is set to 0.

座標点g7とghや、の距離をH,とすると、AL≦H
1l−drl がなり立つ場合はパターン■、 AL>Hll−d、1 がなり立つ場合はパターン■と判断できる。
If the distance between coordinate point g7 and gh is H, then AL≦H
If 1l-drl holds true, it can be judged as pattern ■, and if AL>Hll-d, 1 holds true, pattern ■.

一方、第4図によると、微小直線分分割手段103に渡
す情報は、破線−周期の先頭を81最後をEl−周期の
長さをALとし、Sからの距離で表されるポインタP1
お゛よびP2と、ポインタPL、P2の座標(X、PI
、y、1)および(XP2、y、2)である。
On the other hand, according to FIG. 4, the information to be passed to the minute straight line segment dividing means 103 is the broken line - the beginning of the period is 81, the end is El, the length of the period is AL, and the pointer P1 is expressed as the distance from S.
and P2, pointer PL, coordinates of P2 (X, PI
, y, 1) and (XP2, y, 2).

第3図(a)のパターン■において、まず同期T1に関
して、線分g。、g、、。1上で座標点g。から距離A
L−d、、である座標点C1+1を求めることにより、
第4図のポインタP1の値をdnsポインタP2の値を
AL、ポインタP1の座標をg。
In pattern (2) in FIG. 3(a), first, line segment g regarding synchronization T1. ,g,. Coordinate point g on 1. distance A from
By finding the coordinate point C1+1 which is L-d, ,
The value of the pointer P1 in FIG. 4 is the value of the dns pointer P2, and the coordinate of the pointer P1 is g.

の座標、ポインタP2の座標をC1+、の座標とする。Let the coordinates of pointer P2 be the coordinates of C1+.

次に、周期T+a++ に関して、座標点C1゜、から
距離ALで線分gtl、gn+1上の点C1+2の座標
を求め、第4図のポインタP1の値を01ポインタP2
の値をAL、ポインタP1の座標をCas+の座標、ポ
インタP2の座標をC,。2の座標とする。同様に同期
T、+2、 、Twに関しても第4図の情報を求めるこ
とができる。同期TIIに関し、座標点C8とg、。1
の距離d h+1を求め、第4図のポインタP1の値を
0、ポインタP2の値をdo。1、ポインタP1の座標
をC8の座標、ポインタP2の座標をg h+1の座標
とする。
Next, regarding the period T+a++, find the coordinates of point C1+2 on line segment gtl,gn+1 at distance AL from coordinate point C1°, and change the value of pointer P1 in FIG. 4 to 01 pointer P2
The value of is AL, the coordinates of pointer P1 are the coordinates of Cas+, and the coordinates of pointer P2 are C. 2 coordinates. Similarly, the information shown in FIG. 4 can be obtained regarding the synchronization T, +2, , Tw. Regarding the synchronization TII, the coordinate points C8 and g,. 1
Find the distance d h+1, set the value of pointer P1 to 0, and set the value of pointer P2 to do in FIG. 1. Let the coordinates of pointer P1 be the coordinates of C8, and the coordinates of pointer P2 be the coordinates of gh+1.

第3図ら)のパターン■において、座標点ghとg h
a+の距離と距離d、の和dイや、を求め、第4図のポ
インタP1の値をdR、ポインタP2の値をd、、+l
sポインタP1の値をg1%、ポインタP2の座標をg
7゜、とする。
In pattern ① of Fig. 3 et al., the coordinate points gh and gh
Find the sum d of the distance a+ and the distance d, and set the value of pointer P1 in Fig. 4 to dR, and the value of pointer P2 to d, , +l.
s The value of pointer P1 is g1%, the coordinates of pointer P2 is g
7°.

座標点に対し、第4図の情報を求めることができる。The information shown in FIG. 4 can be obtained for the coordinate points.

を用いて説明する。第5図は破線の形状とポインタの関
係を示す説明図である。微小直線分分割手段103では
、制御部102から与えられた情報すなわち、第4図に
示すように破線−周期上の任意の2点の位置とその座標
と破線テーブル106aとを参照し、破線を構成する微
小直線分に分割する。
Explain using. FIG. 5 is an explanatory diagram showing the relationship between the shape of the broken line and the pointer. The minute straight line segment dividing means 103 refers to the information given from the control unit 102, that is, the positions of two arbitrary points on the broken line-period, their coordinates, and the broken line table 106a as shown in FIG. Divide into constituent minute straight lines.

説明を簡単にするため、破線テーブル106aの内容゛
として配列WLTを(1,2,3,4,5,6)、デー
タ数ITを6、−周期長ALを6とし、−周期上の任意
の2点の位置すなわちポインタP1およびP2(ただし
P 1 <P 2)とした場合、破線の形状とポインタ
の関係を第5図に示す。破線の形状と二つのポインタP
1およびP2の関係は、五つのパターンとなる。パター
ン■は、破線内の線分数個にまたがって二つのポインタ
P1およびP2が入っている場合であり、パターン■は
、破線内の一つの線分内に二つのポインタP1およびP
2が入っている場合であり、パターン■は、破線内の線
分に二つともポインタP1およびP2が入っていない場
合であり、パターン■は、破線内の一つの線分にポイン
タP2が入っている場合であり、パターン■は、破線内
の一つの線分にポインタP1が入っている場合である。
To simplify the explanation, the contents of the broken line table 106a are the array WLT (1, 2, 3, 4, 5, 6), the number of data IT is 6, - the period length AL is 6, and - an arbitrary number on the period. The relationship between the shape of the broken line and the pointer is shown in FIG. 5, assuming the positions of the two points, that is, the pointers P1 and P2 (where P 1 <P 2). Broken line shape and two pointers P
1 and P2 have five patterns. Pattern ■ is a case where two pointers P1 and P2 are included across several line segments within the broken line, and pattern ■ is a case where two pointers P1 and P2 are included within one line segment within the broken line.
2 is included, pattern ■ is a case where pointers P1 and P2 are not included in both line segments within the broken line, and pattern ■ is a case where pointer P2 is included in one line segment within the broken line. Pattern (2) is a case where the pointer P1 is in one line segment within the broken line.

配列WLT(Nl)≧P1 となる最小の値N1と、配列 WLT(N2)≧P2 となる最小の値N2を求め、N1とN2を比べることに
より、パターン■〜■を判別することができる。
By finding the minimum value N1 such that the array WLT(Nl)≧P1 and the minimum value N2 such that the array WLT(N2)≧P2 is satisfied, and comparing N1 and N2, patterns ① to ② can be determined.

第2表は、第5図の例を基にN1とN2を求め比べた表
である。
Table 2 is a table in which N1 and N2 are determined and compared based on the example shown in FIG.

N2>N1+1の場合、パターン■、N1=N2でN1
が奇数の場合パターン■、N1=N2でN1が偶数の場
合パターン■、N2=N1+1でN1が偶数の場合パタ
ーン■、N2=N1+1でN1第2表 パターンの比較 が奇数の場合パターン■となる。
If N2>N1+1, pattern ■, N1=N2 and N1
If is an odd number, pattern ■, if N1 = N2 and N1 is even, pattern ■, if N2 = N1 + 1 and N1 is even, pattern ■, if N2 = N1 + 1, N1 Table 2 If the pattern comparison is odd, pattern ■ .

次に、直線分発生手段104へ渡す微小直線分を求める
。ポインタP1およびP2に対応する座標をそれぞれ(
X p IS’l p + )および(Xp2、yPl
)とすると、パターン■の場合、明らかにポインタP1
およびP2に対応する座標(XP1% 3’Pl)、(
x、2、y、2)が微小直線分となる。パターン■の場
合、明らかに直線分を発生させない部分である。パター
ン■の場合、線分(X41、y、2)、(XP2、y、
2)上の座標点であり、座標点(XPl、yPl)から
距離 WLT(N 1)−P 1 の点(x、y)を求め、線分(x、y)、(X、2、y
、2)が微小直線分となる。パターン■の場合、線分(
x、1、yl、)、(x、2、y、2)上の座標点であ
り、座標点(x、1、yPl)から距離WLT (Nl
)−PL の点(x、y)を求め、線分(Xp+s yPl)、(
X、y)が微小直線分となる。パターン■の場合、Pl
、WLT (Nl)間、WLT (Nl) 、WLT(
N 1 + 1 )間11、WLT (N2−2) 、
WLT(N2−1)間、WLT (N2−1) 、P2
間にそれぞれパターン■〜■に当てはめることにより、
微小直線分を求めることができる。
Next, a minute straight line segment to be passed to the straight line segment generating means 104 is determined. The coordinates corresponding to pointers P1 and P2 are respectively (
X p IS'l p + ) and (Xp2,yPl
), then in the case of pattern ■, it is obvious that pointer P1
and the coordinates corresponding to P2 (XP1% 3'Pl), (
x, 2, y, 2) are minute straight line segments. In the case of pattern (2), it is clearly a part where no straight line segment is generated. In the case of pattern ■, line segments (X41, y, 2), (XP2, y,
2) Find the point (x, y) which is the coordinate point above and the distance WLT(N 1) - P 1 from the coordinate point (XPl, yPl), and calculate the line segment (x, y), (X, 2, y
, 2) becomes a minute straight line segment. In the case of pattern ■, the line segment (
x, 1, yl, ), (x, 2, y, 2), and the distance WLT (Nl
)-PL, find the point (x, y), and calculate the line segment (Xp+s yPl), (
X, y) becomes a minute straight line segment. In the case of pattern ■, Pl
, WLT (Nl), WLT (Nl) , WLT (
N 1 + 1) between 11, WLT (N2-2),
Between WLT (N2-1), WLT (N2-1), P2
By applying each pattern ■~■ in between,
Minute straight line segments can be found.

次に、全体の動作例を第6図および第1図を用  ゛い
て説明する。第6図において、201は入力手段101
により入力した座標点列の一例であり、202は入力手
段101により入力した線種すなわち一点鎖線である。
Next, an example of the overall operation will be explained using FIG. 6 and FIG. 1. In FIG. 6, 201 is the input means 101
This is an example of a coordinate point sequence input by , and 202 is the line type input by the input means 101, that is, a dashed-dotted line.

入力した座標点列201は、制御部102により破線−
周期上の任意の2点の位置とそれに対応する座標を求め
、順次微小直線分分割手段103へ渡される。微小直線
分分割手段103は、制御部102より与えられた情報
と破線の一周期を表す破線テーブル106aとを参照し
、破線を構成する微小直線分に分割する。分割された微
小直線分は順次直線分発生手段104に渡され出力装置
105へ出力される。203は、本実施例の破線発生装
置により出力した11点鎖線の出力破線曲線の一例を示
したものである。
The input coordinate point sequence 201 is plotted by the control unit 102 as a dashed line -
The positions of two arbitrary points on the period and their corresponding coordinates are determined and sequentially passed to the minute straight line segment dividing means 103. The minute straight line segment dividing means 103 refers to the information given by the control unit 102 and the broken line table 106a representing one period of the broken line, and divides the broken line into minute straight line segments. The divided minute straight line segments are sequentially passed to the straight line segment generation means 104 and output to the output device 105. Reference numeral 203 shows an example of an output broken line curve of an 11-dot chain line outputted by the broken line generator of this embodiment.

〔発明の効果〕 以上説明したように、本発明は、曲線あるいは直線を構
成する座標点列および線種を入力し、−周期の破線を表
す破線テーブルを基に座標点列を微小直線分に分割し、
直線分発生手段により出力装置に出力することにより、
曲線あるいは直線を一点鎖線二点鎖線等の破線で描画す
ることができ、また、座標点列の間隔をより細く与える
ことにより、より滑らかな破線曲線を描画できる効果が
ある。
[Effects of the Invention] As explained above, the present invention inputs a coordinate point sequence and line type constituting a curve or a straight line, and divides the coordinate point sequence into minute straight line segments based on a broken line table representing -periodic broken lines. divide,
By outputting to the output device by the straight line segment generation means,
A curve or a straight line can be drawn using a dashed line such as a dashed-dotted line or a dashed-double-dotted line, and a smoother dashed curve can be drawn by narrowing the intervals between the coordinate point sequences.

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

第1図は本発明の一実施例を示すブロック構成図。 第2図はその破線テーブルの破線データを示す説明図。 第3図(a)およびら)はその制御部による分割の説明
図。 第4図はその制御部から微小直線分分割手段へ渡す情報
の説明図。 第5図はその破線の形状とポインタの関係を示す説明図
。 第6図はその動作例を示す説明図。 第7図は従来例による破線の説明図。 101・・・入力手段、102・・・制御部、103・
・・微小直線分分割手段、104・・・直線分発生手段
、105・・・出力装置、106・・・破線テーブル部
、106a・・・破線テーブル、201・・・入力デー
タ、202・・・入力線種、203・・・出力破線曲線
FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is an explanatory diagram showing the broken line data of the broken line table. FIGS. 3(a) and 3(a) are explanatory diagrams of division by the control unit. FIG. 4 is an explanatory diagram of information passed from the control section to the minute straight line segment dividing means. FIG. 5 is an explanatory diagram showing the relationship between the shape of the broken line and the pointer. FIG. 6 is an explanatory diagram showing an example of its operation. FIG. 7 is an explanatory diagram of broken lines according to a conventional example. 101... Input means, 102... Control unit, 103.
. . . minute straight line segment dividing means, 104 . . . straight line segment generation means, 105 . . . output device, 106 . Input line type, 203...Output broken line curve.

Claims (1)

【特許請求の範囲】 1、曲線あるいは直線を構成する座標点列および線種を
入力する入力手段(101)と、入力された前記座標点
列および前記線種に基づいて所定の破線を発生する破線
発生手段と、発生された前記破線を出力する出力装置(
105)とを含む破線発生装置において、 前記破線発生手段は、 あらかじめ複数種類の線種についてその一周期の座標点
列が書き込まれた破線テーブル(106a)を格納出力
する破線テーブル部(106)と、入力された前記座標
点列を基に破線の一周期上の任意の2点の位置およびそ
れに対応する座標を求め出力する制御部(102)と、
前記制御部から与えられた情報および前記破線テーブル
を参照し微小直線分に分割出力する微小直線分分割手段
(103)と、前記微小直線分を入力し直線分を発生し
所定の破線を前記出力装置に対して出力する直線分発生
手段(104)とを含む ことを特徴とする破線発生装置。
[Claims] 1. Input means (101) for inputting a coordinate point sequence and line type constituting a curve or straight line, and generating a predetermined broken line based on the inputted coordinate point sequence and line type. a broken line generating means, and an output device (
105), wherein the broken line generating means includes: a broken line table section (106) that stores and outputs a broken line table (106a) in which coordinate point sequences of one cycle of a plurality of line types are written in advance; , a control unit (102) that calculates and outputs the positions of two arbitrary points on one period of the broken line and their corresponding coordinates based on the input coordinate point sequence;
a minute straight line segment dividing means (103) for dividing and outputting minute straight line segments by referring to information given from the control unit and the broken line table; A broken line generating device characterized by comprising a straight line segment generating means (104) for outputting to the device.
JP9523288A 1988-04-18 1988-04-18 Broken line generator Pending JPH01266683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9523288A JPH01266683A (en) 1988-04-18 1988-04-18 Broken line generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9523288A JPH01266683A (en) 1988-04-18 1988-04-18 Broken line generator

Publications (1)

Publication Number Publication Date
JPH01266683A true JPH01266683A (en) 1989-10-24

Family

ID=14132017

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9523288A Pending JPH01266683A (en) 1988-04-18 1988-04-18 Broken line generator

Country Status (1)

Country Link
JP (1) JPH01266683A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04332091A (en) * 1991-05-07 1992-11-19 Fujitsu Ltd Vector control device
US8096445B2 (en) 2007-02-01 2012-01-17 Simplehuman, Llc Electric soap dispenser
US8109411B2 (en) 2007-02-01 2012-02-07 Simplehuman, Llc Electric soap dispenser
WO2019193741A1 (en) * 2018-04-06 2019-10-10 三菱電機株式会社 Broken line correction device and broken line correction method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04332091A (en) * 1991-05-07 1992-11-19 Fujitsu Ltd Vector control device
JP2773458B2 (en) * 1991-05-07 1998-07-09 富士通株式会社 Vector controller
US8096445B2 (en) 2007-02-01 2012-01-17 Simplehuman, Llc Electric soap dispenser
US8109411B2 (en) 2007-02-01 2012-02-07 Simplehuman, Llc Electric soap dispenser
WO2019193741A1 (en) * 2018-04-06 2019-10-10 三菱電機株式会社 Broken line correction device and broken line correction method

Similar Documents

Publication Publication Date Title
Bresenham Algorithm for computer control of a digital plotter
US4758965A (en) Polygon fill processor
JPH075838A (en) Driving method of dot-matrix display panel, drive circuit for dot- matrix display panel, dot-matrix display device and information processing system provided with dot-matrix display device
US4538144A (en) Graphic display device having graphic generator for shading graphs
US5046026A (en) Method and apparatus for precisely varying the display rate of computer generated graphic images
JP2797435B2 (en) Display controller
JPH01266683A (en) Broken line generator
US4819185A (en) Method and apparatus for drawing wide lines in a raster graphics display system
JPH0567216A (en) Graphic painting-out device
JPH0729022A (en) Straight line plotting device
JPS6339947B2 (en)
JP2605609B2 (en) Dot display processing device
JP3092154B2 (en) Digital drawing equipment
JP3004993B2 (en) Image processing device
JP2959612B2 (en) Method and apparatus for generating vector coordinates from dot pattern
JP2611098B2 (en) Vector / raster conversion method
JPS62258495A (en) Character generator
JPS6170633A (en) Character and cursor generating circuit
JPS6330945A (en) Memory access synchronizing circuit
JPS6274148A (en) Cumulative adder
JPH02153392A (en) Vector figure display method
JPH01250178A (en) Device and method for raster operation
JPH01282679A (en) Cad system
JPH02210394A (en) Graphic display controller
JPH0261779A (en) Coordinate data processing unit