JPH01283679A - Circle clip processing system - Google Patents

Circle clip processing system

Info

Publication number
JPH01283679A
JPH01283679A JP11377788A JP11377788A JPH01283679A JP H01283679 A JPH01283679 A JP H01283679A JP 11377788 A JP11377788 A JP 11377788A JP 11377788 A JP11377788 A JP 11377788A JP H01283679 A JPH01283679 A JP H01283679A
Authority
JP
Japan
Prior art keywords
circle
display area
processing
clip processing
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
JP11377788A
Other languages
Japanese (ja)
Inventor
Takahiro Ito
隆弘 伊藤
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP11377788A priority Critical patent/JPH01283679A/en
Publication of JPH01283679A publication Critical patent/JPH01283679A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To perform a clip processing of a circle at a low cost and at a high speed by deciding a display area by a regular square frame segment circumscribed to its circle and executing the clip processing of the circle of the outside of the display area, at the time of executing a display processing of the circle. CONSTITUTION:At the time of executing a display processing of a circle, a clip processing of the circle of the outside of a display area is executed by deciding the display area by regular square A-D segments circumscribed to its circle. That is, before converting the circle to a polygon or a sequence of points, the regular square frame segments circumscribed to the circle are generated, and whether this circle exists in the display area or not is decided in advance by bringing these regular squares A-D to clip processing. In case when the circle does not exist in the display area, a command processing of the circle is ended without converting the circle to a polygon or a sequence of points. In such a way, the clip processing of the circle which does not exist in the display area can be executed at a high speed.

Description

【発明の詳細な説明】 [産業上の利用分野コ この発明は、円形表示装置における円クリップ処理方式
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a circular clip processing method in a circular display device.

[従来の技術] 第2図は従来のラスクスキャン型の円形表示装置の構成
を示すブロック図である。図において、lはインタフェ
ース回路、2はインタフェース回路1を通じて計算機(
図示しない)より送られた表示データ、表示コマンドを
内部フォーマットに変換する制御装置、3は内部フォー
マットに変換された表示データ、表示コマンドを記憶す
る記憶H置である。制御装置2は記憶装置3に記憶され
た表示コマンドを解析して表示するための座標値を生成
する。制御装置2により生成された座標値は、この制御
装置2の指示に基づき座標変換回路4、クリップ回路5
を介して直線発生器6に与えられる。また、図中の7は
フレームバッファ、8はCRT (陰極線管)、9は入
力機器である。
[Prior Art] FIG. 2 is a block diagram showing the configuration of a conventional rask scan type circular display device. In the figure, l is an interface circuit, and 2 is a computer (
A controller 3 converts display data and display commands sent from a controller (not shown) into an internal format, and a storage H 3 stores display data and display commands that have been converted into the internal format. The control device 2 analyzes the display commands stored in the storage device 3 and generates coordinate values for display. The coordinate values generated by the control device 2 are transferred to a coordinate conversion circuit 4 and a clip circuit 5 based on instructions from the control device 2.
is applied to the straight line generator 6 via. Further, in the figure, 7 is a frame buffer, 8 is a CRT (cathode ray tube), and 9 is an input device.

第3図は第2図の円形表示装置による円のコマンド処理
を示すフローチャートである。
FIG. 3 is a flowchart showing circle command processing by the circular display device of FIG.

次に、上記従来の円形表示装置による円のコマンド処理
について説明する。制御装置2にて円コマンドを受は取
ると、次にパラメータとして円の中心座標値、円の半径
を読み取る。もしも、円を多角形近似するならば円の半
径と座標変換の拡大、縮小項より角数な決定する。もし
も、円を点列として作成するならば角点の座標値を算出
する。以上の処理により生成された多角形線分列もしく
は点列の座標値は座標変換回路4へ入力される。座標変
換回路4にて拡大、縮小、回転、移動の座標変換を行っ
た後の該当座標値は、表示領域の判定のためにクリップ
回路5に入力され、このクリップ回路5による円のクリ
ップ処理の結果、CRT8に表示される線分列もしくは
点列のみが直線発生器6に送られる。このようにして円
のコマンド処理を終了する。
Next, circle command processing by the conventional circular display device will be described. When the control device 2 receives the circle command, the center coordinate value of the circle and the radius of the circle are read as parameters. If a circle is approximated as a polygon, the number of angles is determined by the radius of the circle and the expansion and contraction terms of coordinate transformation. If a circle is created as a sequence of points, calculate the coordinate values of the corner points. The coordinate values of the polygon line segment sequence or point sequence generated by the above processing are input to the coordinate conversion circuit 4. The corresponding coordinate values after coordinate transformations such as enlargement, reduction, rotation, and movement are performed in the coordinate transformation circuit 4 are input to the clipping circuit 5 for determining the display area, and the clipping process of the circle by the clipping circuit 5 is performed. As a result, only the line segment sequence or dot sequence displayed on the CRT 8 is sent to the straight line generator 6. In this way, the circle command processing is completed.

[発明が解決しようとする課題] 上記従来の円形表示装置は以上のように構成されている
ので、円のクリップ処理を座標変換後の線分列、点列ご
とに行っていたから、第4図の円の表示例に示すように
表示領域内の円が表示領域外の円に比べて少ない場合、
本来は不要であるべき表示領域外の円の線分列、点列の
座標値に対するクリップ処理に要する時間が長くなり、
その結果として全体の表示処理を行う時間が長くかかる
という問題点があった。
[Problems to be Solved by the Invention] Since the conventional circular display device described above is configured as described above, the circle clipping process is performed for each line segment sequence and point sequence after coordinate transformation, so that the conventional circular display device shown in FIG. As shown in the circle display example, if there are fewer circles within the display area than circles outside the display area,
The time required to clip the coordinate values of circle line segments and point sequences outside the display area, which should not be necessary, becomes longer.
As a result, there is a problem in that it takes a long time to perform the entire display process.

この発明は上記のような問題点を解消するためになされ
たもので、表示領域外の円のクリップ処理を簡易に、か
つ高速に行う円クリップ処理方式を得ることを目的とす
る。
The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide a circle clipping method that easily and quickly clips circles outside the display area.

[課題を解決するための手段] この発明に係る円クリップ処理方式は、円を表示処理す
る際に、その円に外接する正方形枠線分によって表示領
域の判定を行うことにより、表示領域外の円のクリップ
処理を実行するようにしたものである。
[Means for Solving the Problems] The circle clip processing method according to the present invention, when displaying a circle, determines the display area based on the square frame line circumscribing the circle, thereby clipping the area outside the display area. It is designed to perform circle clipping processing.

[作用] この発明における円クリップ処理方式は、円を多角形も
しくは点列に変換する以航に円に外接する正方形枠線分
を作成し、この正方形をクリップ処理することにより、
あらかじめ該当円が表示領域内にあるかどうかを判定し
、該当円が表示領域外の場合、円を多角形もしくは点列
に変換ぜずに円のコマンド処理を終了させることにより
、表示領域外の円のクリップ処理の高速化を図るように
する。
[Operation] The circle clip processing method in this invention creates a square frame line segment circumscribing the circle after converting a circle into a polygon or a point sequence, and clips this square, thereby
It is determined in advance whether the relevant circle is within the display area, and if the relevant circle is outside the display area, the circle command processing is terminated without converting the circle to a polygon or point sequence. Try to speed up the circle clipping process.

[実施例コ 第5図は円に外接する正方形枠の定義例を示す図である
。図において、PX、PYは円の中心点で、座標変換時
の移動項としてあらかじめ計算されている値である。R
は円の半径で、座標変換時の拡大、縮小項としてあらか
じめ計算されている値である。正方形枠の頂点A、B、
C,Dは、(PX+R,PY+R)、  (PX−R,
PY+R)。
[Embodiment FIG. 5 is a diagram showing an example of the definition of a square frame circumscribing a circle. In the figure, PX and PY are the center points of the circle, and are values calculated in advance as movement terms during coordinate transformation. R
is the radius of the circle, and is a value calculated in advance as an expansion and contraction term during coordinate transformation. Vertices A, B of the square frame,
C, D are (PX+R, PY+R), (PX-R,
PY+R).

(PX−R,PY−R)、  (PX+R,PY−R)
で示される。
(PX-R, PY-R), (PX+R, PY-R)
It is indicated by.

第1図はこの発明の一実施例である円クリップ処理方式
において、円のコマンド処理を示すフローチャートであ
る。この発明による円のコマンド処理では、まず第5図
に示す正方形枠の頂点A(PX+R,PY+R)につい
て座標変換、クリップ処理を行い、これが表示領域内で
あれは上記した従来例と同様な円の発生処理を実施する
。正方形枠の頂点A (PX十R,PY+R)が表示領
域外の場合は、第1図に示すフローチャートに従って正
方形枠線分のクリップ処理を行い、正方形枠線分の4本
のうち1本でも表示領域内にかかった場合は、上記した
従来例と同様な円の発生処理を実施する。正方形枠線分
がすべて表示領域外であれば該当円も表示領域外である
ので、この時点て円のコマンド処理を終了する。
FIG. 1 is a flowchart showing circle command processing in a circle clip processing method according to an embodiment of the present invention. In the circle command processing according to the present invention, coordinate transformation and clip processing are first performed on the apex A (PX+R, PY+R) of the square frame shown in FIG. Perform occurrence processing. If the apex A (PX + R, PY + R) of the square frame is outside the display area, clip the square frame lines according to the flowchart shown in Figure 1, and display even one of the four square frame lines. If it falls within the area, the same circle generation process as in the conventional example described above is performed. If all the square frame line segments are outside the display area, the corresponding circle is also outside the display area, so the circle command processing ends at this point.

[発明の効果コ 以上のように、この発明の円クリップ処理方式によれば
、円を表示処理する際に、その円に外接する正方形枠線
分によって表示領域の判定を行うことにより、表示領域
外の円のクリップ処理を実行するようにしたので、安価
に、かつ高速に円のクリップ処理を施行でき、全体の処
理速度を短縮することができるという優れた効果を奏す
るものである。
[Effects of the Invention] As described above, according to the circle clip processing method of the present invention, when displaying a circle, the display area is determined by the square frame lines circumscribing the circle. Since the outer circle is clipped, the circle can be clipped at low cost and at high speed, and the overall processing speed can be reduced, which is an excellent effect.

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

第1図はこの発明の一実施例である円クリップ処理方式
において、円のコマンド処理を示すフローチャート第2
図は従来のラスクスキャン型の円形表示装置の構成を示
す図、第3図は第2図の円形表示装置による円のコマン
ド処理を示すフローチャー1・、第4図は円の表示例を
示す図、第5図は円に外接する正方形枠の定義例を示す
図である。 図において、1・・・インタフェース回路、2・・・制
御装置、3・・・記憶装置、4・・・座標変換回路、5
・・・クリップ回路、6・・・直線発生器、7・・・フ
レームバッファ、8・・・CRT、9・・・入力機器 
である。 なお、図中、同一符号は同一、  又は相当部分を示す
。 代  理  人      大  岩  増  雄@+
  図 第3図 fj4t、  図 第5図 昭和  年  月  日
FIG. 1 is a second flowchart showing circle command processing in the circle clip processing method which is an embodiment of the present invention.
The figure shows the configuration of a conventional rask scan type circular display device, FIG. 3 shows flowchart 1 showing the circle command processing by the circular display device of FIG. 2, and FIG. 4 shows an example of displaying a circle. FIG. 5 is a diagram showing an example of the definition of a square frame circumscribing a circle. In the figure, 1... interface circuit, 2... control device, 3... storage device, 4... coordinate conversion circuit, 5
...Clip circuit, 6...Line line generator, 7...Frame buffer, 8...CRT, 9...Input device
It is. In addition, the same symbols in the figures indicate the same or equivalent parts. Agent Masuo Oiwa @+
Figure 3 fj4t, Figure 5 Showa year month day

Claims (1)

【特許請求の範囲】[Claims] 半径と円の中心座標を入力することにより円あるいは円
の多角形近似線分列、もしくは多角面を発生させる機能
と、出力された円成分座標値に対して拡大、縮小、回転
、移動の座標変換を行う機能と、座標変換後の各座標点
に対して表示領域の判定によるクリップ処理を行う機能
を備えた円形表示装置において、円のクリップ判定を円
に外接する正方形枠線分にて行うことにより、表示領域
外の円のクリップ処理を実行する手段を備えたことを特
徴とする円クリップ処理方式。
A function that generates a circle, a polygonal line segment sequence of a circle, or a polygon by inputting the radius and center coordinates of the circle, and coordinates for enlarging, contracting, rotating, and moving the output circle component coordinate values. In a circular display device that is equipped with a function to perform conversion and a function to perform clipping processing by determining the display area for each coordinate point after coordinate conversion, clipping of a circle is determined using square frame line segments circumscribing the circle. A circle clipping method characterized by comprising means for clipping a circle outside a display area.
JP11377788A 1988-05-11 1988-05-11 Circle clip processing system Pending JPH01283679A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11377788A JPH01283679A (en) 1988-05-11 1988-05-11 Circle clip processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11377788A JPH01283679A (en) 1988-05-11 1988-05-11 Circle clip processing system

Publications (1)

Publication Number Publication Date
JPH01283679A true JPH01283679A (en) 1989-11-15

Family

ID=14620852

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11377788A Pending JPH01283679A (en) 1988-05-11 1988-05-11 Circle clip processing system

Country Status (1)

Country Link
JP (1) JPH01283679A (en)

Similar Documents

Publication Publication Date Title
US5115402A (en) Scan-conversion process and processor for converting a graphic primitive to a pixel map
JP3031825B2 (en) Method, system and apparatus for filling a polygon
JP3547250B2 (en) Drawing method
JP3060761B2 (en) Drawing equipment
JPH01283679A (en) Circle clip processing system
JPH0350686A (en) Graphic processing system
JP2991591B2 (en) Multi-window display device and method
JP2690385B2 (en) Enlarged display method of arc
JP2802890B2 (en) Display control device in graphic display system
JPH01241681A (en) Image processor
JPS62271187A (en) Vector drawing system
JPH0259871A (en) Image processor
JP2714114B2 (en) Graphic processing method and graphic system
JP2004078994A (en) Drawing method
JPH01283589A (en) Character string clip processing system
JPH02186435A (en) Circle drawing system for graphic display system
JPH0442712B2 (en)
JPH0371377A (en) Image processing method
JPH01156881A (en) Plotting method for stroke character
JPH01103784A (en) Clipping system
JPS6283790A (en) Image processor
JPH0423179A (en) Method and device for plotting thick line
JPS63240682A (en) Clipping processing system for graphic display
JPH02308381A (en) Polygon painting-out system
JPH04178886A (en) Graphic display device