JPH01132270A - Clipping system - Google Patents

Clipping system

Info

Publication number
JPH01132270A
JPH01132270A JP62291602A JP29160287A JPH01132270A JP H01132270 A JPH01132270 A JP H01132270A JP 62291602 A JP62291602 A JP 62291602A JP 29160287 A JP29160287 A JP 29160287A JP H01132270 A JPH01132270 A JP H01132270A
Authority
JP
Japan
Prior art keywords
data
polygon
intersects
limit value
window
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
JP62291602A
Other languages
Japanese (ja)
Inventor
Takashi Yasui
安井 孝史
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.)
Kyocera Corp
Original Assignee
Kyocera Corp
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 Kyocera Corp filed Critical Kyocera Corp
Priority to JP62291602A priority Critical patent/JPH01132270A/en
Publication of JPH01132270A publication Critical patent/JPH01132270A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To extract only data in a rectangular window out of polygon printing data so as to display or print it by obtaining an intersecting point of each side of the polygon data and each limit value of x-direction and y-direction of the rectangular widow. CONSTITUTION:When the polygon data after coordinate transformation such as enlarging, reducing, rotating or moving, that is, address values corresponding to the start point and the finish point of the respective side are transmitted sequentially from a coordinate transformation circuit 13, a decision circuit 22 decides whether the side intersects the limit values Xmin, Xmax or not, and when it intersects the limit value, the coordinate value of the intersecting point is calculated by an arithmetic part 21, and is stored in a memory buffer 24. Consecutively, the decision circuit 26 decides whether the side intersects the limit values Ymin, Ymax or not, and when it intersects the limit value, the coordinate value of the intersecting point is calculated by the arithmetic part 25, and the polygon data after clipping is calculated, and is outputted to a straight line generator 15. It is written in a frame buffer memory 16 from the straight line generator 15, and outputted to an LBP or a CRT.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はグラフィックデイスプレー又はLBP(レーザ
ービームプリンタ)において、線分又は多角形を印刷す
る場合に、拡大、縮小、回転、移動等の座標変換を行な
った後に、ある任意の長方形ウィンドウ領域内に含まれ
る部分のみを抽出して表示又は印刷するクリッピング方
式に関するものである。
Detailed Description of the Invention [Industrial Application Field] The present invention is applicable to graphic displays or LBPs (laser beam printers) when printing line segments or polygons. The present invention relates to a clipping method that extracts and displays or prints only a portion contained within an arbitrary rectangular window area after conversion.

〔従来技術〕[Prior art]

従来、グラフィックデイスプレー又はLBPにおいて、
印刷対象の任意部分を抽出して、印刷するクリッピング
方式としては、印刷対象がy軸及びy軸にそれぞれ平行
な直線で囲まれた範囲の印刷データをy軸とy軸に平行
な直線で構成される長方形のクリッピング領域でクリッ
ピングする方式の場合は既に開発され、製品として存在
する。
Conventionally, in a graphic display or LBP,
The clipping method extracts and prints an arbitrary part of the print target, and the print data in the range where the print target is surrounded by the y-axis and straight lines parallel to the y-axis is composed of the y-axis and straight lines parallel to the y-axis. A method of clipping using a rectangular clipping area has already been developed and exists as a product.

しかしながら印刷対象が任意の多角形に囲まれた印刷デ
ータの内ある任意の長方形ウィンドウ領域内のみを抽出
して表示又は印刷する方式はいまた開発されていないの
が現状である。
However, at present, no method has been developed for extracting and displaying or printing only an arbitrary rectangular window area of print data in which the print object is surrounded by an arbitrary polygon.

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

し、かじながら、グラフィックデイスプレー又はLBP
において、線分又は多角形を印刷する場合に、拡大、縮
小、回転、移動等の座標変換を行なった後にある任意の
長方形ウィンドウ領域内に属する部分だけを抽出して印
刷したい場合がある。このような場合は、上記従来のク
リッピング方式では対処できないという問題があった。
While steering, use the graphic display or LBP.
When printing a line segment or a polygon, there are cases where it is desired to extract and print only the portion that falls within an arbitrary rectangular window area after coordinate transformation such as enlargement, reduction, rotation, and movement. In such a case, there is a problem that the above-mentioned conventional clipping method cannot deal with the problem.

本発明は上述の点に鑑みてなされたもので上記問題点を
除去し、線分又は多角形を印刷する場合に、拡大、縮小
、回転、移動等の座標変換をおこなった後に、ある任意
の長方形ウィンドウ領域内に属する部分だけを抽出して
表示又は印刷するクリッピング方式を提供することにあ
る。
The present invention has been made in view of the above points, and eliminates the above problems, and when printing line segments or polygons, after performing coordinate transformation such as enlargement, reduction, rotation, movement, etc. An object of the present invention is to provide a clipping method that extracts and displays or prints only a portion belonging to a rectangular window area.

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

上記問題点を解決するため本発明はクリッピング方式を
、座標変換回路及びウィンドウクリップ回路等を具備し
、入力される任意の多角形印刷データの該多角形を前記
座標変換回路で各辺の始点と終点に相当するアドレス値
で示される多角形データに変換し、ウィンドウクリップ
回路で該多角形データの各辺と長方形ウィンドウのX方
向及びy方向の各限界値との交点を求め、多角形印刷デ
ータから前記長方形ウィンドウ内のデータのみを抽出し
て出力するように構成した。
In order to solve the above problems, the present invention provides a clipping method that includes a coordinate conversion circuit, a window clip circuit, etc., and converts the polygon of input arbitrary polygon print data into the starting point of each side using the coordinate conversion circuit. It is converted into polygon data indicated by the address value corresponding to the end point, and the window clip circuit calculates the intersection of each side of the polygon data with each limit value in the X direction and the y direction of the rectangular window, and the polygon print data is The system is configured to extract and output only the data within the rectangular window.

〔作用〕[Effect]

クリッピング方式を上記の如く構成することにより、多
角形印刷データから長方形ウィンドウ内のデータのみを
抽出してグラフィックデイスプレー又はLBPに出力す
ることができる。
By configuring the clipping method as described above, only the data within the rectangular window can be extracted from the polygonal print data and output to a graphic display or LBP.

〔実施例〕〔Example〕

以下、本発明の実施例を図面に基づいて説明する。 Embodiments of the present invention will be described below based on the drawings.

第1図は、本発明に係る多角形クリッピング方式を実施
するシステムの構成を示すブロック図である。同図にお
いて、11はホストコンピュータ(HO8T)からのデ
ータを受は各部の制御を行なうコンピュータ、12は印
刷対象データを一時保管するメモリバッファ、13は印
刷データに対して拡大、縮小、回転及び移動等の処理を
施す座標変換回路、14は印刷対象の紙の大きさ又は任
意の長方形内のデータだけ抽出するウィンドクリップ回
路、15はフレームバッファメモリ16内へ直線を書き
込む直線発生器である。また、フレームバッファメモリ
16は印刷対象となる紙面の分解能と1:1に対応する
イメージメモリである。
FIG. 1 is a block diagram showing the configuration of a system that implements the polygon clipping method according to the present invention. In the figure, 11 is a computer that receives data from the host computer (HO8T) and controls each part, 12 is a memory buffer that temporarily stores data to be printed, and 13 is a computer that enlarges, reduces, rotates, and moves the print data. 14 is a window clip circuit that extracts only data within the size of the paper to be printed or an arbitrary rectangle; and 15 is a straight line generator that writes straight lines into the frame buffer memory 16. Further, the frame buffer memory 16 is an image memory that corresponds 1:1 to the resolution of the paper surface to be printed.

上記システムにおいて、ホストコンピュータから入力さ
れる多角形データはコンピュータ11の制御のもと座標
変換回路13で拡大、縮小、回転、移動等の座標変換を
おこなった後に、ウィンドクリップ回路14で任意の長
方形内のデータだけを抽出し、直接発生器15からフレ
ームバッファメモリ16に書き込み、LBP又はCRT
に出力する。
In the above system, polygonal data input from the host computer is subjected to coordinate transformations such as enlargement, reduction, rotation, and movement in the coordinate transformation circuit 13 under the control of the computer 11, and then is converted into an arbitrary rectangle by the wind clip circuit 14. Extract only the data in the frame buffer memory 16 from the generator 15 directly, and write it directly to the frame buffer memory 16 from the LBP or CRT.
Output to.

第2図は第1図の抽出ウィンドクリップ回路1イントウ
におけるX軸の限界値X a l a  X a a 
tを保持しており、Yウィンドウ値27はウィンドウに
おけるy軸の限界値Ymla+Yam*を保持している
。座標変換回路13(第1図参照)から拡大、縮小、回
転、移動等の座標変換をおこなった後の多角形データ、
即ち各辺の始点と終点に相当するアドレス値が順に送ら
れてくると、判別回路22はその辺が限界値Xaln*
Xmatと交わるか否かを判別し、交わる場合演算部2
1において交点の座標値を計算し、メモリバッファ24
に格納する。
Figure 2 shows the X-axis limit value X a l a X a a in the extraction window clip circuit 1 in Figure 1.
t, and the Y window value 27 holds the y-axis limit value Ymla+Yam* in the window. Polygonal data after coordinate transformations such as enlargement, reduction, rotation, and movement are performed by the coordinate transformation circuit 13 (see Fig. 1);
That is, when the address values corresponding to the start and end points of each side are sent in order, the discrimination circuit 22 determines that the side has the limit value Xaln*.
Determine whether or not it intersects with Xmat, and if it intersects, arithmetic unit 2
1, calculate the coordinates of the intersection point and store it in the memory buffer 24.
Store in.

続いて判別回路26は辺が限界値Y、。+Yaatと交
わるか否かを判別し、交わる場合演算部25において交
点の座標値を計算しクリップ後の多角形データを算出し
直線発生器15(第1図参照)に出力する。
Subsequently, the discriminating circuit 26 has the side set to the limit value Y. It is determined whether or not the line intersects with +Yaat, and if it does intersect, the arithmetic unit 25 calculates the coordinate values of the intersecting point, calculates the polygon data after clipping, and outputs it to the straight line generator 15 (see FIG. 1).

第4図は上記多角形データとして送られてくるデータの
フォーマットを示す図であり、図示するように最初の頂
点と最後の頂点とをアドレス値X0.y、で示し、各頂
点のアドレス値をX++ yt+Xz+ 3’*+ ”
”+ X□yISで示す。
FIG. 4 is a diagram showing the format of the data sent as the polygon data, and as shown in the figure, the first vertex and the last vertex are set to the address value X0. y, and the address value of each vertex is X++ yt+Xz+ 3'*+ ”
”+X□yIS.

第4図に示す多角形データをXのウィンドウ値x=X1
...x=X1o、によりクリップする場合の処理フロ
ーを第5図に示す。
The polygon data shown in Fig. 4 is converted to the window value x=X1 of
.. .. .. FIG. 5 shows a processing flow when clipping is performed by x=X1o.

先、ず始点X o r 3’ oを読み込み(ステップ
101)、該始点X o r 3”がウィンドウ値x 
=X ta +、、X”X、、、の内か外かを判定しく
ステップ102)、内であったらXo*yOを出力する
(ステッブ103)。次に次の点X I* 3’ Iを
読み込む(ステップ104)。前記始点と次の点につい
て、ウィンドウ値x=Xa+。HX = X n m 
zと比較し、第6図に示すような領域の内と外の判断を
する(ステップ105)。始点が内で次の点も内であっ
た場合、X 1+ 3’ Iを出力する(ステップ10
6)。
First, the starting point X o r 3' o is read (step 101), and the starting point X o r 3'' is the window value x.
=X ta +, , X" It is determined whether it is inside or outside of (Step 104).For the starting point and the next point, window value x=Xa+.HX=X n m
z, and it is determined whether the area is inside or outside the area as shown in FIG. 6 (step 105). If the starting point is within and the next point is also within, output X 1+ 3' I (step 10
6).

始点が内で次の点が外であった場合、x=X、、I。、
x”X、、、、の交点を求め(ステップ107)、その
交点を出力する(ステップ108)。始点が外で次の点
が内であった場合、”=Il+zX−X71、の交点を
求め(ステップ109)、その交点を出力する(ステッ
プ110)。始点が外で次の点x = X、a、 x 
” X、、、の範囲を越え外になった場合、x =x、
al x = X、Saxの2つの交点を求め(ステッ
プ111)、その交点を出力する(ステップ112)。
If the starting point is inside and the next point is outside, then x=X,,I. ,
Find the intersection of ``x'' (Step 109), and output the intersection point (Step 110). Starting point is outside and next point x = X, a, x
” If it goes beyond the range of X, , then x = x,
The two intersections of al x = X and Sax are found (step 111), and the intersections are output (step 112).

始点が外で次の点も外であった場合、終わりか否かを判
断しくステップ113)、もし全ての頂点に対して上記
処理が終了していない場合は、上記ステップ104に戻
り処理を繰り返す。また、全ての頂点に対して上記処理
が終了している場合は、次にyのウィンドウ値y=Y、
、。、y=y、、、、に付いても上記と同じ処理を実行
する。
If the starting point is outside and the next point is also outside, it is determined whether it is the end or not (step 113). If the above process has not been completed for all vertices, return to step 104 and repeat the process. . Also, if the above processing has been completed for all vertices, then the window value of y = Y,
,. , y=y, , , the same processing as above is performed.

これにより、多角形の各辺とウィンドウの各限界値Xm
lnrXrm*、+ y、nl Yffi−の交点と、
ウィンドウ内に属する多角形データの各頂点が求められ
る。これらの交点と頂点を直接発生器15に出力するこ
とにより、直接発生器15は交点と交点を結ぶ直線、交
点と頂点を結ぶ直線、頂点と頂点とを結ぶ直線を算出し
、フレームバッファメモリ16に書き込む。これにより
フレームバッファメモリ16には、ウィンドウに含まれ
る多角形データのみを抽出して書き込んだことになる。
As a result, each side of the polygon and each limit value Xm of the window
The intersection of lnrXrm*, + y, nl Yffi-,
Each vertex of the polygon data belonging to the window is determined. By outputting these intersection points and vertices to the direct generator 15, the direct generator 15 calculates a straight line connecting the intersection points, a straight line connecting the intersection points and the vertices, and a straight line connecting the vertices. write to. As a result, only the polygon data included in the window is extracted and written into the frame buffer memory 16.

従って、フレームバッファメモリ16の書き込まれたを
表示又は印刷することができる。
Therefore, the data written in the frame buffer memory 16 can be displayed or printed.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、ウィンドウクリッ
プ回路で該多角形データの各辺と長方形ウィンドウのX
方向及びy方向の各限界値との交点を求め、任意の多角
形印刷データから長方形ウィンドウ内の多角形データの
みを抽出して出力するから、多角形印刷データから長方
形ウィンドウ内のデータのみを抽出して表示又は印刷す
ることができるという優れた効果が得られる。
As explained above, according to the present invention, each side of the polygonal data and the
Find the intersection with each limit value in the direction and y direction, extract and output only the polygon data within the rectangular window from any polygon print data, and extract only the data within the rectangle window from the polygon print data. An excellent effect can be obtained in that the image can be displayed or printed.

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

第1図は本発明に係るクリッピング方式を実施するシス
テムの構成を示すブロック図、第2図は第1図の抽出ウ
ィンドクリップ回路の詳細を示す機能ブロック図、第3
図は本発明に係るクリッピング方式を説明するための図
、第4図は上記多角形データとして送られてくるデータ
のフォーマットを示す図、第5図はクリッピング処理の
フローを示す図、第6図は限界値X 、、m IIとX
 tm l nとの領域の内と外の判断をする説明図で
ある。 図中、11・・・・コンピュータ、12・・・・メモリ
バッファ、13・・・・座標変換回路、14・・・・ウ
ィンドクリップ回路、15・・・・直接発生器、16・
・・・フレームバッファメモリ。
FIG. 1 is a block diagram showing the configuration of a system that implements the clipping method according to the present invention, FIG. 2 is a functional block diagram showing details of the extraction window clipping circuit shown in FIG. 1, and FIG.
The figures are for explaining the clipping method according to the present invention, Figure 4 is a diagram showing the format of the data sent as the polygon data, Figure 5 is a diagram showing the flow of clipping processing, and Figure 6 is a diagram showing the format of the data sent as the polygon data. is the limit value X ,, m II and X
It is an explanatory diagram for determining whether it is inside or outside the area of tm l n. In the figure, 11... Computer, 12... Memory buffer, 13... Coordinate conversion circuit, 14... Wind clip circuit, 15... Direct generator, 16...
...Frame buffer memory.

Claims (1)

【特許請求の範囲】[Claims] 座標変換回路及びウィンドウクリップ回路等を具備し、
入力される任意の多角形印刷データの該多角形を前記座
標変換回路で各辺の始点と終点に相当するアドレス値で
示す多角形データに変換し、前記ウィンドウクリップ回
路で該多角形データの各辺と長方形ウィンドウのx方向
及びy方向の各限界値との交点を求め、前記任意の多角
形印刷データから前記長方形ウィンドウ内に含まれるデ
ータのみを抽出して出力することを特徴とするクリッピ
ング方式。
Equipped with a coordinate conversion circuit, a window clip circuit, etc.
The coordinate conversion circuit converts the polygon of any input polygon print data into polygon data indicated by address values corresponding to the start and end points of each side, and the window clip circuit converts each of the polygon data. A clipping method characterized in that the intersections between the sides and each limit value in the x direction and the y direction of the rectangular window are found, and only data included in the rectangular window is extracted from the arbitrary polygon print data and output. .
JP62291602A 1987-11-17 1987-11-17 Clipping system Pending JPH01132270A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62291602A JPH01132270A (en) 1987-11-17 1987-11-17 Clipping system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62291602A JPH01132270A (en) 1987-11-17 1987-11-17 Clipping system

Publications (1)

Publication Number Publication Date
JPH01132270A true JPH01132270A (en) 1989-05-24

Family

ID=17771071

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62291602A Pending JPH01132270A (en) 1987-11-17 1987-11-17 Clipping system

Country Status (1)

Country Link
JP (1) JPH01132270A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008207844A (en) * 2007-02-27 2008-09-11 Yoshino Kogyosho Co Ltd Quantitative distributor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008207844A (en) * 2007-02-27 2008-09-11 Yoshino Kogyosho Co Ltd Quantitative distributor

Similar Documents

Publication Publication Date Title
EP0396311B1 (en) Image processing apparatus and method
JPH08511638A (en) Anti-aliasing device and method for automatic high-speed alignment of horizontal and vertical edges to target grid
US4885699A (en) Data processing apparatus for editing, filing, and printing image data by means of visual observation of the data on a display screen
US5068803A (en) Method and apparatus for filling contours in digital typefaces
JPH0619773B2 (en) Document processor
JP2010224145A (en) Information processing apparatus, control device, and program
JPH01132270A (en) Clipping system
JP2770582B2 (en) Figure filling device
JPS63137378A (en) Graphics processing system
JP2782752B2 (en) Character pattern output device
JP2893836B2 (en) Document creation device and document creation method
JP3209359B2 (en) Image output device
JP3156729B2 (en) Drawing equipment
JPH0535912B2 (en)
JP3211591B2 (en) Image processing device
JP2845156B2 (en) Format setting device and format setting method
JP2937607B2 (en) Layout creation device
JP2538002Y2 (en) Graphic processing unit
JPS6151316B2 (en)
JPH05143743A (en) Vector image drawing device
JPS6121698Y2 (en)
JPH06175637A (en) Method for generating character
JPH05313634A (en) Outline font developing device
JPH0752466B2 (en) Raster operation device and method
JPH02308381A (en) Polygon painting-out system