JPS6367690A - Sector generator - Google Patents

Sector generator

Info

Publication number
JPS6367690A
JPS6367690A JP21224186A JP21224186A JPS6367690A JP S6367690 A JPS6367690 A JP S6367690A JP 21224186 A JP21224186 A JP 21224186A JP 21224186 A JP21224186 A JP 21224186A JP S6367690 A JPS6367690 A JP S6367690A
Authority
JP
Japan
Prior art keywords
coordinate
sector
partial
boundary
clipping
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
JP21224186A
Other languages
Japanese (ja)
Inventor
Sanae Aoyanagi
早苗 青柳
Jun Yoshida
純 吉田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP21224186A priority Critical patent/JPS6367690A/en
Publication of JPS6367690A publication Critical patent/JPS6367690A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To quickly paint out a sector by using a coordinate Y in the center of the sector in a figure as a boundary, splitting said arc into partial figures deciding one line segment in the direction of a coordinate X, painting out the partial figures in response to the coordinate Y and obtaining the coordinates of start and end points in the direction of an axis X. CONSTITUTION:A sector splitter 1 splits the sector as symbols P, Q and R show, attains the partial figures, and sets the coordinate Y to partial scopes like y11-y12, y21-y22 and y31-y32. A clipping device 2 receives the partial figure Q, for instance, and a clipping frame, executes logical operations equivalent to 32 classifications, and outputs a resultant output figure Q' to a painting- out device 3. It paints out a having been clipped partial figure, whereby the figure is clipped. Thus hardware is simplified with only a few logical operations without generating coordinates at a point on the boundary of the invisible fan-shaped arc, and simultaneously the sector can be painted out quickly.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、扇形をクリッピングしその内部を塗りつぶす
扇形発生装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a sector generator for clipping a sector and filling the inside thereof.

従来の技術 以下、図面を参照しながら、従来の扇形発生装置におけ
る扇形の塗りつぶしの例を説明する。
BACKGROUND OF THE INVENTION An example of fan-shaped filling in a conventional fan-shaped generator will be described below with reference to the drawings.

第2図は、クリッピングを行う時の扇形発生の場合分け
を示す一例である。この図に示すような247通りの場
合分けを扇形の図形データとクリッピング枠を受は取っ
て施すためには、予め多くの場合分けに従った論理演算
ができるように用意しておかなければならない。これを
避けるため、従来の扇形発生装置は第3図のように構成
されている。即ち、入力した扇形の境界線上のすべての
点の座標値を座標演算装置1によって求め、その出力の
座標値をクリッピング枠の大きさが指定されたクリッピ
ング装置2で逐一クリップした後、図形塗りつぶし装置
3で内部を塗りつぶす。
FIG. 2 is an example showing the classification of fan-shaped occurrences when clipping is performed. In order to apply the 247 case classifications shown in this figure by combining fan-shaped graphic data and clipping frames, it is necessary to prepare in advance to be able to perform logical operations according to many case classifications. . In order to avoid this, a conventional fan-shaped generator is constructed as shown in FIG. That is, the coordinate values of all the points on the boundary line of the input fan shape are calculated by the coordinate calculation device 1, and the output coordinate values are clipped one by one by the clipping device 2 in which the size of the clipping frame is specified, and then the figure filling device Fill in the inside with 3.

発明が解決しようとする問題点 しかしながら、第3図の構成では、クリッピングされ結
果として見えない扇形の境界線上の点の座標もすべて計
算されるため無用の演算を行うことになり発生時間が遅
くなる。
Problems to be Solved by the Invention However, in the configuration shown in Figure 3, the coordinates of all the points on the boundary line of the fan shape that are clipped and cannot be seen are also calculated, which results in unnecessary calculations and slows down the generation time. .

本発明は、上記問題点に鑑み、高速に扇形を塗りつぶす
ための扇形発生装置を提供するものである。
In view of the above-mentioned problems, the present invention provides a fan-shaped generating device for filling in fan-shaped shapes at high speed.

問題点を解決するための手段 上記問題点を解決するために、本発明の扇形発生装置は
、入力図形を扇形の中心のX座標を境界として分割し、
さらに同じX座標に属するX軸方向の線分が一つだけ含
まれる部分図形に分割する図形分割装置と、複数の部分
図形に対して予めクリッピングを行うクリッピング装置
と、クリッピングされた後の部分図形を塗りつぶす図形
塗りつぶし装置をもつように構成した。
Means for Solving the Problems In order to solve the above problems, the sector generator of the present invention divides an input figure using the X coordinate of the center of the sector as a boundary,
Furthermore, a figure dividing device divides the figure into partial figures that include only one line segment in the X-axis direction belonging to the same The system is configured to have a figure filling device that fills in the shapes.

作用 本発明は、上記した構成によって、クリッピングされて
結果として見えない扇形の境界の点の座標を発生するこ
とな(少ない論理演算のみを用いてハードウェアを単純
化すると共に、高速で扇形を塗りつぶすことが可能とな
る。
Operation The present invention uses the above-described configuration to simplify the hardware by using only a few logical operations, and to fill the sector at high speed without generating the coordinates of the sector boundary points that are clipped and become invisible. becomes possible.

実施例 以下、本発明の一実施例の扇形発生装置について、図面
を参照しながら説明する。
EXAMPLE Hereinafter, a fan-shaped generator according to an example of the present invention will be described with reference to the drawings.

第1図は、本発明の一実施例における扇形発生装置のブ
ロック図である。1は扇形分割装置で、2はクリッピン
グ装置、3は塗りつぶし装置である。4はX座標の上限
および下限を規定するYレンジレジスタ、5はX座標発
生器、6および7は塗りつぶしの開始線または終了線を
定義するための定数を格納する定数レジスタ、8および
9は始線上または路線上の一点の座標を発生するための
関数演算器、10は塗りつぶしを開始するX座標を格納
する始線データレジスタ、11は塗りつぶしを終了する
X座標を格納する絡線デークレジスタ、12は塗りつぶ
しの始点および終点間に画素データを発生する直線発生
器、13はフレームメモリ、14は画素データのフレー
ムメモリ13上のアドレスを求めるアドレス発生器、1
5は画素データをフレームメモリ13に書込む時の制御
を行う書込み制御器である。
FIG. 1 is a block diagram of a sector generator according to an embodiment of the present invention. 1 is a sector dividing device, 2 is a clipping device, and 3 is a filling device. 4 is a Y range register that defines the upper and lower limits of the X coordinate, 5 is an X coordinate generator, 6 and 7 are constant registers that store constants for defining the start line or end line of filling, and 8 and 9 are start A functional operator for generating the coordinates of a point on a line or a route; 10 a start line data register for storing the X coordinate at which to start filling; 11 a connecting line data register for storing the X coordinate at which to end filling; 12 1 is a linear generator that generates pixel data between the start and end points of filling; 13 is a frame memory; 14 is an address generator that obtains the address of pixel data on the frame memory 13;
Reference numeral 5 denotes a write controller that controls when pixel data is written into the frame memory 13.

以上のように構成された扇形発生装置について、以下そ
の動作について説明する。
The operation of the fan-shaped generator configured as described above will be described below.

例えば第4図に示す扇形をクリッピングして塗りつ捧く
す場合、扇形分割装置1は、扇形を同図のP、Q、Rの
ように分割し 部分図形とし、X座標をy11〜y12
、y21〜y22、y31〜y32のような部分範囲に
設定する。図形分割装置1の出力に接続されたクリッピ
ング装置2は、部分図形、例えばQとクリッピング枠を
受は取り、32通りの場合分けに相当する論理演算を行
ってクリッピングし、その結果の出力図形Q″を塗りつ
ぶし装置3に出力する。塗りつぶし装置3は、まず第一
のクリッピング出力図形Ql’ を受は取り、y23〜
y24をYレンジレジスタ4に、塗りつぶしの境界の開
始線と終了線を求めるために必要な定数データ、11:
 y=a *x+b ; 12 :  (x  −c)本*2  +(y  −d
)*傘’l  =  r 車+b2  ;の(a、b)
、(c、d、r)を定数レジスフ6および7に設定して
、X座標発生器5にy23〜y24間のX座標を順次発
生させ関数演算器8および9に境界との交点のX座標を
計算させる。関数演算器8および9はマイクロプロセッ
サを含めた構成として指定された関数形の解を求めるこ
とができる。関数演算器8および9の出力は、始線デー
タレジスタ10と絡線データレジスタ11に接続される
。直線発生器12は始線データレジスタlOと絡線デー
タレジスタ11の内容に従って始点と終点の間の線分の
座標を発生してアドレス発生器14に転送する。アドレ
ス発生器14は直線発生器12の出力であるX座標とX
座標発生器5の出力であるX座標とからフレームメモリ
13のアドレスを計算し、書込み制御回路15に出力す
る。書込み制御回路15は画素データをフレームメモリ
13に書込み、扇形の一部を発生する。続いて第2のク
リッピング出力図形Q2’ についても同様の処理が施
される。
For example, when clipping and painting the sector shown in Fig. 4, the sector dividing device 1 divides the sector into parts like P, Q, and R in the figure, and sets the X coordinates from y11 to y12.
, y21 to y22, and y31 to y32. A clipping device 2 connected to the output of the figure dividing device 1 receives a partial figure, for example Q, and a clipping frame, performs logical operations corresponding to 32 case divisions, clips the figure, and outputs the resulting figure Q. " is output to the filling device 3. The filling device 3 first takes the first clipping output figure Ql', and outputs y23 to
y24 to Y range register 4, constant data necessary to find the start line and end line of the filling boundary, 11:
y=a *x+b; 12: (x - c) books *2 + (y - d
)*Umbrella'l = r car + b2 ;'s (a, b)
, (c, d, r) are set in constant registers 6 and 7, the X coordinate generator 5 sequentially generates the X coordinate between y23 and y24, and the function calculators 8 and 9 generate the X coordinate of the intersection with the boundary. Let them calculate. The functional calculators 8 and 9 are configured to include a microprocessor and are capable of finding a solution to a designated functional form. The outputs of the function operators 8 and 9 are connected to a starting line data register 10 and a connecting line data register 11. The straight line generator 12 generates the coordinates of a line segment between the starting point and the ending point according to the contents of the starting line data register IO and the connecting line data register 11, and transfers the coordinates to the address generator 14. The address generator 14 outputs the output of the linear generator 12, the X coordinate, and the
The address of the frame memory 13 is calculated from the X coordinate output from the coordinate generator 5 and output to the write control circuit 15. The write control circuit 15 writes pixel data into the frame memory 13 and generates a portion of the sector. Subsequently, similar processing is performed on the second clipping output figure Q2'.

発明の効果 以上のように本発明は、図形をX座標に対して扇形の中
心のX座標を境界とし、さらにX軸方向の線分が一つ定
まる部分図形に分割し、各部分図形に対してY座標に対
応して塗りつぶしX軸方向の始点座標ならびに終点座標
を求める構成にしたことにより、高速に扇形を塗りつぶ
すことが可能である。
Effects of the Invention As described above, the present invention divides a figure into sub-figures with the X-coordinate of the center of the sector as a boundary with respect to the X-coordinate, and further defines one line segment in the X-axis direction. By determining the starting point coordinates and ending point coordinates in the filling X-axis direction in correspondence with the Y coordinate, it is possible to fill in the fan shape at high speed.

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

第1図は本発明の一実施例に於ける図形発生装・りi&
に一一・−第4図は扇形を塗りつぶす場合の例を示す模
式図である。 1・・・・・・扇形分割装置、2・・・・・・クリフビ
ング装置、3・・・・・・図形塗りつぶし装置、4・・
・・・・Yレンジレジスタ、5・・・・・・Y座標発生
器、6・・・・・・定数レジスタ、7・・・・・・定数
レジスタ、8・・・・・・関数演算器、9・・・・・・
関数演算器、10・・・・・・始線データレジスフ、1
1・・・・・・絡線データレジスタ、12・・・・・・
直線発生器、13・・・・・・フレームメモリ、14・
・・・・・アドレス発生回路、15・・・・・・書込み
制御回路、1・・・・・・座標演算装置。 代理人の氏名 弁理士 中尾敏男 はか1名第2図 肝 ”44f)攻 fqx/3 = 2d’hXI)第4図
FIG. 1 shows a diagram of a graphic generation device in an embodiment of the present invention.
Figure 4 is a schematic diagram showing an example of filling in a fan shape. 1... Sector dividing device, 2... Cliffing device, 3... Shape filling device, 4...
... Y range register, 5 ... Y coordinate generator, 6 ... Constant register, 7 ... Constant register, 8 ... Function operator , 9...
Function calculator, 10... Starting line data register, 1
1... Connection data register, 12...
Linear generator, 13... Frame memory, 14.
... Address generation circuit, 15 ... Write control circuit, 1 ... Coordinate calculation device. Name of agent: Patent attorney Toshio Nakao (1 person) Figure 2 (44f) Attack fqx/3 = 2d'hXI) Figure 4

Claims (1)

【特許請求の範囲】[Claims] 扇形を一意的に定める図形データと矩形クリッピング枠
を入力とし、前記入力図形を扇形の中心のY座標を境界
として区分され且つY座標に対してX軸方向の線分が1
つ定まる複数の部分図形に分割する扇形分割装置と、前
記扇形分割装置で出力された前記部分図形を順次入力し
、各々の前記部分図形に対してクリッピングを行い可視
図形のY座標の範囲とX軸方向の塗りつぶしの開始線お
よびX軸方向の塗りつぶしの終了線の2つの境界線デー
タの組を複数個順次出力するクリッピング装置と、前記
クリッピング装置の出力に接続され前記Y座標の範囲と
前記境界線データを入力とし、前記Y座標の範囲のY座
標に対してX軸方向に前記2つの境界線間を塗りつぶす
図形塗りつぶし装置とを備えることを特徴とする扇形発
生装置。
Input graphic data that uniquely defines a fan shape and a rectangular clipping frame, and divide the input shape using the Y coordinate of the center of the fan shape as a boundary, and one line segment in the X axis direction with respect to the Y coordinate.
A sector dividing device that divides into a plurality of partial figures determined by a clipping device that sequentially outputs a plurality of sets of boundary line data of a fill start line in the axial direction and a fill end line in the X-axis direction; A fan shape generating device comprising: a figure filling device that inputs line data and fills in the space between the two boundary lines in the X-axis direction with respect to the Y coordinate of the Y coordinate range.
JP21224186A 1986-09-09 1986-09-09 Sector generator Pending JPS6367690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21224186A JPS6367690A (en) 1986-09-09 1986-09-09 Sector generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21224186A JPS6367690A (en) 1986-09-09 1986-09-09 Sector generator

Publications (1)

Publication Number Publication Date
JPS6367690A true JPS6367690A (en) 1988-03-26

Family

ID=16619308

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21224186A Pending JPS6367690A (en) 1986-09-09 1986-09-09 Sector generator

Country Status (1)

Country Link
JP (1) JPS6367690A (en)

Similar Documents

Publication Publication Date Title
JPS59124377A (en) Graphic display system
KR930005778B1 (en) Apparatus for processing of clipping image
JPS6367690A (en) Sector generator
JPH03233689A (en) Outline data drawing device
KR960009838B1 (en) Clipping circuit for graphic system
JPH03209499A (en) Forming method for outline font and drawing device for the same
JP2675169B2 (en) Graphic processing system
JPS62271186A (en) Graphic generating device
JPS6379187A (en) Graphic generating device
JPH0368086A (en) Linear interpolating circuit
JP2689815B2 (en) Vector font fill information generator
JPH0261779A (en) Coordinate data processing unit
JPH0535912B2 (en)
EP0293698A2 (en) Graphic controller having function of painting designated area
JPH07175937A (en) Plotting address calculating system
JPH04115379A (en) Method for clipping curve
JP3214722B2 (en) Stroke character generator
JPS6336388A (en) Graphic paint out control system
JPH0683972A (en) Curve generating device
JPH0588845A (en) Segment generating circuit of crt display device
JPH02126377A (en) Thick line plotting system
JPS6246372A (en) Drawing system
JPS61213884A (en) Graphic character generator
JPH04118786A (en) Image processor
JPH03257683A (en) Three-dimensionally analyzed figure drawing device