JPS58115484A - Vector generation system - Google Patents

Vector generation system

Info

Publication number
JPS58115484A
JPS58115484A JP21332481A JP21332481A JPS58115484A JP S58115484 A JPS58115484 A JP S58115484A JP 21332481 A JP21332481 A JP 21332481A JP 21332481 A JP21332481 A JP 21332481A JP S58115484 A JPS58115484 A JP S58115484A
Authority
JP
Japan
Prior art keywords
vector
line type
counter
generation circuit
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
JP21332481A
Other languages
Japanese (ja)
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP21332481A priority Critical patent/JPS58115484A/en
Publication of JPS58115484A publication Critical patent/JPS58115484A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 (1)発明の技術分野 本発明は、図形装置におけるベクトル方式、特に破線や
1点鎖線などの実線以外のベクトルの発生方式に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION (1) Technical Field of the Invention The present invention relates to a vector method in a graphics device, and particularly to a method for generating vectors other than solid lines such as broken lines and dash-dotted lines.

(2)従来技術と問題点 例えばクラフィックeディスプレイ装置などの図形装置
において、ベクトルを発生させる時は一般に始点座標、
終点座標および線種音指定して表示全行うが、線種が破
11!!+1点鎖線などの実線以外のベクトルでは各線
分およびそれらの間隔が一定である次めに、始点から順
にベクトル管発生していくと、第1図に示すようにベク
トルの長さにより終点で線分が跡切れてしま−)たり、
また、1点鎖線などでは短線で終ったりすることがある
ため、きれいなベクトルを発生できない。
(2) Prior art and problems When generating a vector in a graphics device such as a graphic e-display device, generally the starting point coordinates,
I specify the end point coordinates and line type sound and display everything, but the line type is broken 11! ! For vectors other than solid lines, such as the +1-dotted chain line, each line segment and the interval between them are constant.Next, if a vector tube is generated in order from the starting point, the line will change at the end point depending on the length of the vector, as shown in Figure 1. The minute mark is gone.)
Furthermore, since a dashed line may end up as a short line, it is not possible to generate a clean vector.

(3)発明の目的 本発明は、上記の欠点を除去するものであって、実線以
外のベクトル管きれいに描くことが出来るようにしたベ
クトル発生方式全提供することを目的としている。
(3) Purpose of the Invention The present invention eliminates the above-mentioned drawbacks, and aims to provide an entire vector generation system that allows vector tubes other than solid lines to be clearly drawn.

(4)発明の構成 そしてその次め1本発明のベクトル発生方式は1図形装
置全体を制御するコントローラと、描くべき図形の位置
1定めるアドレス発生回路と、指定された線種のベクト
ル會発生するベクトル発生回路と全具備する図形装置に
おいて、上記ベクトル発生回路は、カウンタと、咳カウ
ンタの桁信号に基づいて各種のベクトルを生成する複数
のベクトル信号発生回路と、線種情報がセットされる線
種レジスタと、該線種レジスタの内容にしたがって上記
複数のベクトル信号発生回路の出力信号の内の1個管選
択するマルチプレクサとを有し、上記コントローラは、
ベクトルの長さおよび線種情報にし九がって上記カウン
タへの初期値會算出し、該初期値會上記カウンタにセッ
トすると共に線種情報音上記線種レジスタにセットする
よう構成されていることを特徴とするものである。
(4) Structure of the invention and the next step 1 The vector generation method of the present invention includes: 1 a controller that controls the entire graphic device; an address generation circuit that determines the position of the figure to be drawn; and a vector generator of the specified line type. In a graphics device that is fully equipped with a vector generation circuit, the vector generation circuit includes a counter, a plurality of vector signal generation circuits that generate various vectors based on digit signals of a cough counter, and a line in which line type information is set. The controller includes a line type register and a multiplexer for selecting one of the output signals of the plurality of vector signal generation circuits according to the contents of the line type register, and the controller includes:
An initial value for the counter is calculated based on the vector length and line type information, and the initial value is set in the counter and a line type information sound is set in the line type register. It is characterized by:

(5)  発明の実施例 以下、本発明を図面を参照しつつ説明する。(5) Examples of the invention Hereinafter, the present invention will be explained with reference to the drawings.

第2図は本発明の図形装置の概要を示す図、第3図は実
線、破線、点線および1点鎖線のパターンの例な示す図
、第4図は本発明のべ・クトル発生回路の1実施例のブ
ロック図、第5図は破線および1点鎖線における線分の
長さとその間隔を説明するための図、WJ6図は本vh
明の実施例によるベクトルの発生例な示す図である。
FIG. 2 is a diagram showing an outline of the graphical device of the present invention, FIG. 3 is a diagram showing examples of solid line, broken line, dotted line, and one-dot chain line patterns, and FIG. 4 is a diagram showing one example of the vector vector generation circuit of the present invention. A block diagram of the embodiment, FIG. 5 is a diagram for explaining the length of line segments and intervals between dashed lines and dashed-dotted lines, and WJ6 diagram is from this vh
FIG. 3 is a diagram illustrating an example of vector generation according to the embodiment of the present invention;

第2図において、lは図形装置とホスト・プロセッサと
を接続するためのインタフェース回路、2はマイクロプ
ロセッサなどで構成されて29図形装装置体の制御を司
どるコントローラ、3は図形メモリ、4は図形メモリ3
へのベクトルの書込みアドレスを発生するアドレス発生
回路、5は各s種のベクトルを発生するベクトル発生回
路、6は表示制御(ロ)路をそれぞれ示している。
In FIG. 2, 1 is an interface circuit for connecting the graphics device and the host processor, 2 is a controller composed of a microprocessor, etc., and controls the 29 graphics devices, 3 is a graphics memory, and 4 is a controller. Shape memory 3
Reference numeral 5 designates an address generation circuit that generates vector write addresses for vectors, numeral 5 designates a vector generation circuit that generates each of the s types of vectors, and 6 designates a display control (b) path.

ホスト・プロセッサ(−示せず)は、インメツエース回
路1f介して各種の図形発生コマンドおよびそのコマン
ドの関連データをコントローラ2に転送する。コマンド
がベクトル発生コマンドの場合には、関連データとして
始点座標、終点座標および線種情報をコントローラに転
送する。コント四−22は、転送されて米た関連データ
より始点座標と終点座標會アドレス発生回路4にセット
する。また、コントローラ3は。
A host processor (-not shown) transfers various graphic generation commands and related data of the commands to the controller 2 via the image forming circuit 1f. If the command is a vector generation command, the starting point coordinates, ending point coordinates, and line type information are transferred to the controller as related data. Control 4-22 sets the start point coordinates and end point coordinates in the address generation circuit 4 from the transferred related data. Also, the controller 3.

始点座標と終点座標より算出されるベクトルの長さと線
種情報から始点に接する線分の長さ管求め、この長さを
発生するためのカウンタの初期値と線種情報と會ベクト
ル発生回路5にセットする。なお、ベクトル発生装置5
については後で詳述する。アドレス発生回路4は、セッ
トされた始点座標から履に終点座標まで図形メモリ3の
アドレス管発生して行くoベクトル発生回路5ti、内
部カウンタ値と線種情報から第3図に示すようなパター
ンを発生する回路で6って、第3図において0印のとき
には図形メモリ3に書込みを行い、x印のと1には書込
み會行わない。これらのアドレス発生回路4とベクトル
発生回路5とにより、図形メモリ3にコマンドで指定さ
れたベクトルが書込まれる。表示制御回路DCは、図形
の書込まれた図形メモリ3よ!IcRTディスプレイ等
への出力の制御を行うO 第4図はベクトル発生回路5のl’j!施例のブロック
図である。第4図において、7はカウンタ、8はレジス
タ、9はマルチプレクサ、 10はAND回路、 11
はNANDl路%12はNOR回路全それぞれ示してい
る。さきに述べたように、コントローラ2が初期値管カ
ウンタ7に送り。
The length of the line segment that touches the starting point is calculated from the length of the vector calculated from the starting point coordinates and the ending point coordinates and the line type information, and the initial value of the counter and line type information for generating this length are calculated using the vector generation circuit 5. Set to . Note that the vector generator 5
This will be explained in detail later. The address generation circuit 4 generates an address tube in the graphic memory 3 from the set starting point coordinates to the ending point coordinates, and generates a pattern as shown in FIG. 3 from the internal counter value and line type information. In the circuit that generates 6, in FIG. 3, when the mark is 0, writing is performed in the graphic memory 3, and when the mark is x and 1, no writing is performed. These address generation circuit 4 and vector generation circuit 5 write a vector specified by a command into the graphic memory 3. The display control circuit DC is the graphic memory 3 in which graphics are written! O which controls the output to the IcRT display etc. Figure 4 shows l'j! of the vector generation circuit 5. It is a block diagram of an example. In FIG. 4, 7 is a counter, 8 is a register, 9 is a multiplexer, 10 is an AND circuit, 11
%12 shows all NOR circuits. As mentioned earlier, the controller 2 sends the initial value to the tube counter 7.

セット信号をオンとすると、初期値がカウンタ7にセッ
トされ、カウント信号全オンとすると。
When the set signal is turned on, the initial value is set in the counter 7, and when all the count signals are turned on.

カウンタ7の内容は順次に更新される。コントローラ2
がレジスタ8に対して線種情報を送p。
The contents of the counter 7 are updated sequentially. controller 2
sends line type information to register 8 p.

そのセット信号全オンにすると、線種情報がレジスタ8
にセットされる。レジスタ8は、ベクトル線種指示信号
VTOおよびVTI會出力出力が線種とミクトル線株指
示信号VTO,VTlの関係は下肥の表で示される0 AND回路lOは、カウンタの第1桁(2′の桁)およ
び第2桁が「1」のときrlJt出力し、その他の場合
には「0」全出力する。NAND回路12Fi、@1桁
、第3桁および第4桁が「1」のときにrQJt出力し
、その他の場合には「1」を出力する。NOT回路12
は、AND回路lOの出力管反転したもの全出力する。
When all the set signals are turned on, the line type information is set to register 8.
is set to The register 8 indicates that the vector line type instruction signal VTO and VTI output are 0. ' digit) and the second digit are "1", rlJt is output, and in other cases, all "0" is output. NAND circuit 12Fi outputs rQJt when @1 digit, 3rd digit, and 4th digit are "1", and outputs "1" in other cases. NOT circuit 12
The inverted version of the output tube of the AND circuit IO outputs the entire output.

マルチプレクサ12は、実線の場合には「l」の固定信
号l!Il會選択し、破線の場合にはNOT回路12の
出力管選択し1点線の場合にはAND回路lOの出力管
選択し、1点鎖線の場合にはN A N f) 1gl
路11の出力管選択する。
The multiplexer 12 outputs a fixed signal l! of "l" in the case of the solid line. In the case of the dashed line, the output tube of the NOT circuit 12 is selected; in the case of the one-dot line, the output tube of the AND circuit 10 is selected; in the case of the one-dot chain line, N A N f) 1gl
Select the output tube of path 11.

さきに述べ友ように、コン)R−92はベクトルの長さ
と線種情報から始点に接する線分の長さを求め、この値
を初期値としてカウンタ7にセットする。いま、ベクト
ルの長さし1締分の長さa、それらの間隔をhとしたと
きL=&(α十II )十り十k (ただし、ルは整数、a −b (k≦2a)で表わさ
れるkの111’求め、始点および終点に接する線分の
長さかに/’lの長さになるようにする。第5図に線分
aと間隔すの関係を示している。いま、ベクトルの長さ
Lが70の1点鎖線を発生する場合、aを届、hを6と
すると、kは32と求まり、したがって始点に接する線
分の長さが16になるようにカウンタ7には初期値とし
て、α−に/2=10を、2進数表現で[01010J
をセットし、レジスタ8には「11」をセットする。こ
の状態よりカウンタ7をカウント争アップしていくと、
マルチプレクサ9の出力から。
As mentioned earlier, the CONR-92 calculates the length of the line segment touching the starting point from the length of the vector and the line type information, and sets this value in the counter 7 as the initial value. Now, if the length of the vector is one length a, and the interval between them is h, then L = & (α 1 II ) 10 k (where, le is an integer, a - b (k≦2a) Find k, expressed as 111', so that the length of the line segment touching the starting point and the ending point is /'l.The relationship between the line segment a and the distance is shown in Figure 5. , when generating a dashed-dotted line with vector length L of 70, if a is reached and h is 6, then k is found to be 32, and therefore the counter 7 is set so that the length of the line segment touching the starting point is 16. As an initial value, α-/2=10 is expressed in binary as [01010J
and set "11" in register 8. From this state, if you increase the count of counter 7,
From the output of multiplexer 9.

第6図に示すような図形メモリ3への書込み制御信号が
得られる。このとき、始点および終点に接する両線分の
長さは16となり、ベクトルは中点に対称となる。
A write control signal to the graphic memory 3 as shown in FIG. 6 is obtained. At this time, the length of both line segments touching the starting point and the ending point is 16, and the vector is symmetrical about the midpoint.

上記の実施例では、ベクトルをいったん図形メモリ3に
書込むために、ベクトル発生回路3の出力を書込み制御
信号として用いたが、X−Yプロッタ装置ではペンのア
ップ/ダウン信号として直接使用できる。
In the above embodiment, the output of the vector generation circuit 3 is used as a write control signal in order to temporarily write the vector into the graphic memory 3, but it can be used directly as a pen up/down signal in an XY plotter device.

(6)発明の効果 以上の説明から明らか表ように、本発明によれば、ベク
トルの長さの如何に関係なく、常にきれいなベクトルを
描くことが出来る。
(6) Effects of the Invention As is clear from the above description, according to the present invention, a clean vector can always be drawn regardless of the length of the vector.

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

第1図は従来のベクトル発生方式の問題点を説明する図
、第2図は本発明の図形装置の概要を示す図、第3図は
実線、破線、点線および1点鎖線のパターンを示す図、
第4図は本発明のベクトル発生回路の1実施例のブロッ
ク図、第5図は破線および1点破線における線分の長さ
とその間隔ケ説明するための図、第6図は本発明の実施
例によるベクトルの発生例を示す図である。 1・・・インタフェース回路、2・・・コントローラ、
3・・・図形メモリ、4・・・アドレス発生回路、5・
・・ベクトル発生回路、6・・・表示制御回路、7・・
・カウンタ、8・・・レジスタ、9・・・マルチプレク
サ。 %許出願人 富士通株式会社 代理人弁理士  京 谷 四 部
FIG. 1 is a diagram explaining the problems of the conventional vector generation method, FIG. 2 is a diagram showing an outline of the graphic device of the present invention, and FIG. 3 is a diagram showing patterns of solid lines, broken lines, dotted lines, and one-dot chain lines. ,
FIG. 4 is a block diagram of one embodiment of the vector generation circuit of the present invention, FIG. 5 is a diagram for explaining the lengths of line segments and intervals between dashed lines and dot-dashed lines, and FIG. 6 is a diagram illustrating the implementation of the present invention. FIG. 6 is a diagram illustrating an example of the generation of vectors; 1... Interface circuit, 2... Controller,
3...Graphic memory, 4...Address generation circuit, 5.
...Vector generation circuit, 6...Display control circuit, 7...
- Counter, 8... register, 9... multiplexer. % Applicant: Fujitsu Limited Representative Patent Attorney: Yobu Kyotani

Claims (1)

【特許請求の範囲】[Claims] 図形装置全体管制御するコントローラと、□描くべき図
形の位置を定めるアドレス発生回路と、指定された線種
のベクトル管発生するベクトル発生回路と全具備する図
形装置において、上記ベクトル発生回路は、カウンタと
、該カウンタの桁信号に基づいて各種のベクトル管生成
する複数のベクトル信号発生回路と、線種情報がセット
される線種レジスタとS咳線種レジスタの内容圧したが
って上記複数のベクトル信号発生回路の出力信号の内の
1個を選択するマルチプレクサとを有し、上記コントロ
ーラは、ベクトルの長さおよび線種情報にしたがって上
記カウンタへの初期値全算出し、該初期値全上記カウン
タにセットすると共に線種情報管上記線種レジスタにセ
ットするよう構成されていること全特徴とするベクトル
発生方式。
In a graphic device that is fully equipped with a controller that controls the entire graphic device, an address generation circuit that determines the position of the figure to be drawn, and a vector generation circuit that generates a vector tube of the specified line type, the vector generation circuit is a counter. , a plurality of vector signal generation circuits that generate various vector tubes based on the digit signals of the counter, and a line type register in which line type information is set, and the content pressure of the S cough line type register, and thus generate the plurality of vector signals. and a multiplexer for selecting one of the output signals of the circuit, the controller calculates all initial values for the counter according to the vector length and line type information, and sets all the initial values to the counter. The vector generation method is characterized in that the line type information tube is set in the above-mentioned line type register.
JP21332481A 1981-12-28 1981-12-28 Vector generation system Pending JPS58115484A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21332481A JPS58115484A (en) 1981-12-28 1981-12-28 Vector generation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21332481A JPS58115484A (en) 1981-12-28 1981-12-28 Vector generation system

Publications (1)

Publication Number Publication Date
JPS58115484A true JPS58115484A (en) 1983-07-09

Family

ID=16637259

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21332481A Pending JPS58115484A (en) 1981-12-28 1981-12-28 Vector generation system

Country Status (1)

Country Link
JP (1) JPS58115484A (en)

Similar Documents

Publication Publication Date Title
JPS6057457A (en) Dma device
US4706213A (en) Graphic memory system for interarea transfer of X-Y coordinate data
JPH0640259B2 (en) Data processing device
JPS58115484A (en) Vector generation system
JP2828643B2 (en) Straight line drawing device
JP2773458B2 (en) Vector controller
JPS5968779A (en) Coordinate input system
JPS54108534A (en) Cathode-ray tube graphic display unit
JPS59152779A (en) Picture data transmission system
JPS6249570A (en) Picture processor
JP2605609B2 (en) Dot display processing device
JP2771350B2 (en) Image processing device
JPS61129683A (en) Character generation system
JP3004993B2 (en) Image processing device
JPS6231892A (en) Bit map memory operation circuit
JPS5994156A (en) Memory access control system
JPS6324475A (en) Frame memory control system
JPS59111190A (en) Line generation processing system
JPS6165292A (en) Graphic display unit
JPH01175087A (en) Image display device
JPS6145366A (en) Picture rotation and conversion device
JPH0290274A (en) Raster operation device
JPS62231287A (en) Display unit
JPS61226833A (en) Displaying system for picture information
JPS6149248A (en) High-speed writing system of pattern