JPH04115378A - Graphic display control system in graphic processing system - Google Patents

Graphic display control system in graphic processing system

Info

Publication number
JPH04115378A
JPH04115378A JP23644090A JP23644090A JPH04115378A JP H04115378 A JPH04115378 A JP H04115378A JP 23644090 A JP23644090 A JP 23644090A JP 23644090 A JP23644090 A JP 23644090A JP H04115378 A JPH04115378 A JP H04115378A
Authority
JP
Japan
Prior art keywords
circle
basic data
coordinate transformation
radius
arc
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
JP23644090A
Other languages
Japanese (ja)
Inventor
Yoshiharu Takeuchi
義晴 竹内
Miwako Yonezawa
米澤 美和子
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
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP23644090A priority Critical patent/JPH04115378A/en
Publication of JPH04115378A publication Critical patent/JPH04115378A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To rapidly plot a circle an ellipse, a circular arc, or an elliptic arc by setting up circular reference data in a graphic processing mechanism through a required plotting processing system and setting up plotting data in the graphic processing mechanism. CONSTITUTION:A plotting processing system program 103 in a main storage device 101 is provided with a circular reference data holding means 131 for holding circular reference data, a storing means 132 for calculating the 1st coordinate conversion value based upon a value indicating a circle or an ellipse specified from an application program 102 and storing the calculated value in a memory holding means 133, a coordinate conversion value setting means 134 for calculating the 2nd coordinate conversion value based upon a value indicating the display position of the circle or ellipse specified from the program 102 and the coordinate conversion value stored in the means 133 and setting up the 2nd coordinate conversion value in a coordinate conversion function 107 in a graphic processing mechanism 108, a radius calculating means 135 for calculating the radius of the circle or ellipse on the device coordinates based upon the 2nd coordinate conversion value, and a circular reference data setting means 136 for forming circular reference data obtained by properly thinning the number of vertexes based upon the data held in the means 131 and the radius calculated by the means 135 and setting up the circular reference data in the graphic processing mechanism 108. Consequently, a circular, an ellipse, or their arcs can rapidly be plotted by the small quantity of calculation without calculating the coordinate points of a segment string.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は図形処理システムに関し、特に図形処理システ
ムにおいて円および楕円ならびに円弧および楕円弧(扇
形および弓形等を含む)の描画を制御する図形処理シス
テムにおける図形表示制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a graphic processing system, and particularly to a graphic processing system that controls the drawing of circles, ellipses, circular arcs, and elliptical arcs (including fan shapes, bow shapes, etc.) in the graphic processing system. This invention relates to a graphic display control method.

〔従来の技術〕[Conventional technology]

従来、この種の図形処理システムにおける図形表示制御
方式では、円または楕円の描画が行われる際には、アプ
リケーションプログラムから円または楕円の描画が指示
される毎に、その表示位置および半径(楕円の場合には
共役半径を示す)等の情報から線分列に展開された座標
点が計算され、それらの座標点が図形処理機構に送られ
て描画が行われていた。
Conventionally, in the graphic display control method of this type of graphic processing system, when drawing a circle or ellipse, the display position and radius (ellipse's The coordinate points expanded into a line segment sequence were calculated from information such as (indicates the conjugate radius in some cases), and these coordinate points were sent to a graphic processing mechanism to perform drawing.

また、円弧または楕円弧の描画が行われる際には、アプ
リケーションプログラムから円弧または楕円弧の描画が
指示される毎に、その表示位置。
Also, when drawing a circular arc or elliptical arc, the display position is determined every time the application program instructs the drawing of the circular arc or elliptical arc.

半径、開始角および終了角等の情報から線分列に展開さ
れた座標点が計算され、それらの座標点が図形処理機構
に送られ、それらの座標点に基づいて描画が行われてい
た。
Coordinate points expanded into a line segment sequence are calculated from information such as the radius, start angle, and end angle, and these coordinate points are sent to a graphic processing mechanism, where drawing is performed based on these coordinate points.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の図形処理システムにおける図形表示制御
方式では、アプリケーションプログラムから円もしくは
楕円または円弧もしくは楕円弧の描画が指示される毎に
、所定の情報に基づき線分列に展開された座標点が計算
されて図形処理機構に送られそれらの座標点に基づいて
描画が行われているので、図形処理システムにおける計
冨量および描画時のデータ量が大きくなり、高速に円等
の図形を描画することができないという欠点がある。
In the graphic display control method in the conventional graphic processing system described above, each time an application program instructs the drawing of a circle, ellipse, circular arc, or elliptical arc, coordinate points expanded into a line segment sequence are calculated based on predetermined information. Since the data is sent to the figure processing mechanism and drawing is performed based on those coordinate points, the amount of data in the figure processing system and the amount of data when drawing becomes large, making it possible to draw figures such as circles at high speed. The drawback is that it cannot be done.

本発明の目的は、上述の点に鑑み、従来の技術が持つ上
述のような欠点を解決し、高速に(特に、同一半径の円
および円弧を連続して描画する際に高速に)装置座標(
デイスプレィ装置上の座標)上に円、楕円1円弧および
楕円弧の描画を行うことができる図形処理システムにお
ける図形表示制御方式を提供することにある。
In view of the above-mentioned points, it is an object of the present invention to solve the above-mentioned drawbacks of the conventional technology, and to quickly (especially when continuously drawing circles and arcs of the same radius) use device coordinates. (
An object of the present invention is to provide a graphic display control system in a graphic processing system that can draw a circle, an elliptical arc, and an elliptical arc on a display device (coordinates on a display device).

〔課題を解決するための手段〕[Means to solve the problem]

本発明の図形処理システムにおける図形表示制御方式は
、座標変換機能を持った図形処理機構を持つ図形処理シ
ステムにおいて、円基本データを保持する円基本データ
保持手段と、アプリケーションプログラムから指定され
た円や楕円の形状を示す値を獲得しその値に基づき第1
の座標変換値を計算しその第1の座標変換値を記憶保持
手段に保存する保存手段と、アプリケーションプログラ
ムから指定された円や楕円の表示位置を示す値および前
記記憶保持手段内の第1の座標変換値に基づき第2の座
標変換値を計算し図形処理機構内の座標変換機能にその
第2の座標変換値を設定する座標変換値設定手段と、こ
の座標変換値設定手段により計算された第2の座標変換
値に基づき装置座標上の円や楕円の半径を算出する半径
算出手段と、前記円基本データ保持手段に保持されてい
る円基本データおよび前記半径算出手段により算出され
た装置座標上の円や楕円の半径に基づき適切に頂点数を
間引いた円基本データを生成しその円基本データを図形
処理機構に設定する円基本データ設定手段とを有する。
The graphic display control method in the graphic processing system of the present invention is a graphic processing system having a graphic processing mechanism with a coordinate conversion function, which includes a circle basic data holding means that holds circle basic data, and a circle or circle specified by an application program. Obtain the value that indicates the shape of the ellipse, and then calculate the first value based on that value.
storage means for calculating the coordinate transformation value of and storing the first coordinate transformation value in the memory retention means, and a value indicating the display position of the circle or ellipse designated by the application program and the first coordinate transformation value setting means for calculating a second coordinate transformation value based on the coordinate transformation value and setting the second coordinate transformation value in a coordinate transformation function within the graphic processing mechanism; Radius calculation means for calculating the radius of a circle or ellipse on device coordinates based on a second coordinate transformation value; and circle basic data held in the circle basic data storage means and device coordinates calculated by the radius calculation means. It has circle basic data setting means for generating circle basic data with the number of vertices appropriately thinned out based on the radius of the above circle or ellipse and setting the circle basic data in the graphic processing mechanism.

また、本発明の図形処理システムにおける図形表示制御
方式は、座標変換機能を持った図形処理機構を持つ図形
処理システムにおいて、円基本データを保持する円基本
データ保持手段と、アプリケーションプログラムから指
定された円弧や楕円弧の形状を示す値を獲得しその値に
基づき第1の座標変換値を計算しその第1の座標変換値
を記憶保持手段に保存する保存手段と、アプリケーショ
ンプログラムから指定された円弧や楕円弧の表示位置を
示す値および前記記憶保持手段内の第1の座標変換値に
基づき第2の座標変換値を計算し図形処理機構内の座標
変換機能にその第2の座標変換値を設定する座標変換値
設定手段と、この座標変換値設定手段により計算された
第2の座標変換値に基づき装置座標上の円弧や楕円弧の
半径を算出する半径算出手段と、アプリケーションプロ
グラムから指定された円や楕円の形状を示す値の中の開
始角および終了角に基づき前記円基本データ保持手段内
の円基本データ上での円弧や楕円弧の開始点および終端
点を算出する開始点終端点算出手段と、前記円基本デー
タ保持手段に保持されている円基本データ、前記半径算
出手段により算出された装置座標上の円弧や楕円弧の半
径ならびに前記開始点終端点算出手段により夏出された
円弧や楕円弧の開始点および終端点に基づき適切に頂点
数を間引いた円弧基本データを生成しその円弧基本デー
タを図形処理機構に設定する円弧基本データ設定手段と
を有する。
In addition, the graphic display control method in the graphic processing system of the present invention is such that, in a graphic processing system having a graphic processing mechanism with a coordinate conversion function, a circle basic data holding means for holding circle basic data and a circle basic data holding means that holds circle basic data, A storage means for acquiring a value indicating the shape of a circular arc or an elliptical arc, calculating a first coordinate transformation value based on the value, and storing the first coordinate transformation value in a memory storage means; A second coordinate transformation value is calculated based on the value indicating the display position of the elliptical arc and the first coordinate transformation value in the memory holding means, and the second coordinate transformation value is set in a coordinate transformation function in the graphic processing mechanism. a coordinate transformation value setting means; a radius calculation means for calculating the radius of a circular arc or an elliptical arc on the device coordinates based on the second coordinate transformation value calculated by the coordinate transformation value setting means; a start point and end point calculation means for calculating a start point and an end point of a circular arc or an elliptical arc on the circle basic data in the circle basic data holding means based on the start angle and end angle among the values indicating the shape of the ellipse; The circle basic data held in the circle basic data holding means, the radius of the circular arc or elliptical arc on the device coordinates calculated by the radius calculation means, and the start of the circular arc or elliptical arc calculated by the start point/end point calculation means The basic arc data setting means generates basic arc data with the number of vertices appropriately thinned out based on the points and end points, and sets the basic arc data in the graphic processing mechanism.

〔作用〕[Effect]

本発明の図形処理システムにおける図形表示制御方式で
は、円基本データ保持手段が円基本データを保持し、保
存手段がアプリケーションプログラムから指定された円
や楕円の形状を示す値を獲得しその値に基づき第1の座
標変換値を計算しその第1の座標変換値を記憶保持手段
に保存し、座標変換値設定手段がアプリケーションプロ
グラムから指定された円や楕円の表示位置を示す値およ
び記憶保持手段内の第1の座標変換値に基づき第2の座
標変換値を計算し図形処理機構内の座標変換機能にその
第2の座標変換値を設定し、半径算出手段が座標変換値
設定手段により計算された第2の座標変換値に基づき装
置座標上の円や楕円の半径を算出し、円基本データ設定
手段が円基本データ保持手段に保持されている円基本デ
ータおよび半径算出手段により算出された装置座標上の
円や楕円の半径に基づき適切に頂点数を間引いた円基本
データを生成しその円基本データを図形処理機構に設定
する。
In the graphic display control method in the graphic processing system of the present invention, the circle basic data holding means holds the circle basic data, and the storing means acquires a value indicating the shape of a circle or an ellipse specified from an application program, and based on the value. The first coordinate transformation value is calculated and the first coordinate transformation value is stored in the memory storage means, and the coordinate transformation value setting means is configured to calculate a value indicating the display position of the circle or ellipse specified from the application program and store the first coordinate transformation value in the memory retention means. A second coordinate transformation value is calculated based on the first coordinate transformation value of The device calculates the radius of a circle or ellipse on the device coordinates based on the second coordinate transformation value, and the circle basic data setting means calculates the radius using the circle basic data held in the circle basic data holding means and the radius calculation means. Circle basic data is generated by appropriately thinning out the number of vertices based on the radius of the circle or ellipse on the coordinates, and the circle basic data is set in the graphic processing mechanism.

また、本発明の図形処理システムにおける図形表示制御
方式では、円基本データ保持手段が円基本データを保持
し、保存手段がアプリケーションプログラムから指定さ
れた円弧や楕円弧の形状を示す値を獲得しその値に基づ
き第1の座標変換値を計算しその第1の座標変換値を記
憶保持手段に保存し、座標変換値設定手段がアプリケー
ションプログラムから指定された円弧や楕円弧の表示位
置を示す値および記憶保持手段内の第1の座標変換値に
基づき第2の座標変換値を計算し図形処理機構内の座標
変換機能にその第2の座標変換値を設定し、半径算出手
段が座標変換値設定手段により計算された第2の座標変
換値に基づき装置座標上の円弧や楕円弧の半径を夏出し
、開始点終端点算出手段がアプリケーションプログラム
から指定された円や楕円の形状を示す値の中の開始角お
よび終了角に基づき円基本データ保持手段内の円基本デ
ータ上での円弧や楕円弧の開始点および終端点を夏出し
、円弧基本データ設定手段が円基本データ保持手段に保
持されている円基本データ、半径算出手段により算出さ
れた装置座標上の円弧や楕円弧の半径ならびに開始点終
端点算出手段により算出された円弧や楕円弧の開始点お
よび終端点に基づき適切に頂点数を間引いた円弧基本デ
ータを生成しその円弧基本データを図形処理機構に設定
する。
Further, in the graphic display control method in the graphic processing system of the present invention, the circle basic data holding means holds the circle basic data, and the storing means acquires a value indicating the shape of a circular arc or elliptical arc specified from an application program. The coordinate transformation value setting means calculates a first coordinate transformation value based on and stores the first coordinate transformation value in the memory storage means, and the coordinate transformation value setting means calculates a value indicating the display position of the circular arc or elliptical arc specified from the application program and stores it in the memory. A second coordinate transformation value is calculated based on the first coordinate transformation value within the means, and the second coordinate transformation value is set in the coordinate transformation function within the graphic processing mechanism, and the radius calculation means calculates the second coordinate transformation value based on the first coordinate transformation value within the means. The radius of the circular arc or elliptical arc on the device coordinates is calculated based on the calculated second coordinate transformation value, and the start point/end point calculation means calculates the starting angle in the value indicating the shape of the circle or ellipse specified from the application program. The starting point and the ending point of a circular arc or elliptical arc on the circle basic data in the circle basic data holding means are set based on the basic circle data holding means and the end angle, and the basic arc data setting means sets the basic circle data held in the basic circle data holding means. , arc basic data in which the number of vertices is appropriately thinned out based on the radius of the circular arc or elliptical arc on the device coordinates calculated by the radius calculation means, and the start point and terminal point of the circular arc or elliptical arc calculated by the start point and end point calculation means. Generate and set the arc basic data to the graphic processing mechanism.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の図形処理システムにおける図形表示
制御方式の一実施例の構成を示すブロック図である。本
実施例の図形処理システムにおける図形表示制御方式は
、主記憶装置101と、ロード手段104と、補助記憶
装置105 (主記憶装置101にロードされるアプリ
ケーションプログラム102および描画処理システムプ
ログラム103が格納されている)と、デイスプレィ装
置106  (CRT (Cathode  Ray 
 Tube)表示装置等)と、座標変換機能107 (
例えば、1つのプロセッサからなる)を持った図形処理
機構108(整数演算プロセッサにより実現される)と
、中央処理装置109とを含んで構成されている。なお
、アプリケーションプログラム102や描画処理システ
ムプログラム103の処理は中央処理装置109によっ
て実現されるが、以下の説明においては中央処理装置1
09には言及しない。
FIG. 1 is a block diagram showing the configuration of an embodiment of a graphic display control method in a graphic processing system of the present invention. The graphic display control method in the graphic processing system of this embodiment consists of a main storage device 101, a loading means 104, and an auxiliary storage device 105 (in which the application program 102 and the drawing processing system program 103 loaded into the main storage device 101 are stored). display device 106 (CRT (Cathode Ray
(Tube) display device, etc.) and the coordinate conversion function 107 (
For example, it is configured to include a graphic processing mechanism 108 (consisting of one processor) (realized by an integer arithmetic processor) and a central processing unit 109. Note that the processing of the application program 102 and the drawing processing system program 103 is realized by the central processing unit 109, but in the following explanation, the central processing unit 1
No mention of 09.

主記憶装置101には、アプリケーションプログラム1
02と、描画処理ノステムプログラム103とがロード
される。
The main storage device 101 contains an application program 1.
02 and the drawing processing nostem program 103 are loaded.

描画処理システムプログラム103は、円基本データ保
持手段131と、保存手段132と、記憶保持手段13
3と、座標変換値設定手段134と、半径算出手段13
5と、円基本データ設定手段136とを含んで構成され
ている。
The drawing processing system program 103 includes a circle basic data holding means 131, a saving means 132, and a memory holding means 13.
3, coordinate conversion value setting means 134, and radius calculation means 13
5 and a circle basic data setting means 136.

図形処理機構108内の座標変換機能107に渡される
座標変換マトリックス(第2の座標変換値)において必
要な頭載(成分)は、2次元描画機構であれば6(−2
X3)6N域であり、3次元描画機構であれば12 (
=3X4) tiI域である(本実施例では、2次元描
画機構対応として説明する)。
In the coordinate transformation matrix (second coordinate transformation value) passed to the coordinate transformation function 107 in the graphic processing mechanism 108, the necessary head (component) is 6 (-2
X3) 6N area, 12 ( if it is a three-dimensional drawing mechanism)
= 3×4) tiI range (in this embodiment, the description will be made assuming that it is compatible with a two-dimensional drawing mechanism).

第2図は、描画処理システムプログラム103(円基本
データ保持手段131.保存手段132記憶保持手段1
33.座標変換値設定手段134゜半径算出手段135
および円基本データ設定手段136)の処理を示す流れ
図である。この処理は、半径比較ステップ1031と、
マトリックスMD計算ステップ1032と、マトリック
スMD’計算ステップ1033と、半径およびマトリッ
クスMD’格納ステップ1034と、マトリックスMD
計算ステップ1035と、楕円マトリックスMD計算ス
テップ1036と、マトリックスMD設定ステップ10
37と、装置座標上半径算出ステップ1038と、円ま
たは楕円描画ステップ1039とからなる。
FIG. 2 shows the drawing processing system program 103 (circle basic data storage means 131. storage means 132 memory storage means 1).
33. Coordinate conversion value setting means 134° radius calculation means 135
and a flowchart showing the processing of the circle basic data setting means 136). This process includes a radius comparison step 1031;
Matrix MD calculation step 1032, matrix MD' calculation step 1033, radius and matrix MD' storage step 1034, matrix MD
Calculation step 1035, elliptic matrix MD calculation step 1036, and matrix MD setting step 10
37, a radius calculation step 1038 on device coordinates, and a circle or ellipse drawing step 1039.

第3図は、座標変換値設定手段134により座標変換機
能107に設定される座標変換マトリックスの生成過程
の考え方を詳細に示す図である(後述する第5図中の座
標変換値設定手段534により座標変換機能507に設
定される座標変換マトリックスに関しても同様である)
FIG. 3 is a diagram showing in detail the concept of the generation process of the coordinate transformation matrix set in the coordinate transformation function 107 by the coordinate transformation value setting means 134 (the coordinate transformation value setting means 534 in FIG. The same applies to the coordinate transformation matrix set in the coordinate transformation function 507)
.

第4図(a)および(b)は、アプリケーションプログ
ラム102から描画処理システムプログラム103に描
画が指示される円および楕円の一例を示す図である。
FIGS. 4(a) and 4(b) are diagrams showing examples of circles and ellipses that the application program 102 instructs the drawing processing system program 103 to draw.

次に、このように構成された本実施例の図形処理システ
ムにおける図形表示制御方式の動作について説明する。
Next, the operation of the graphic display control method in the graphic processing system of this embodiment configured as described above will be explained.

ロード手段104は、補助記憶装置105から主記憶装
置101にアプリケーションプログラム102および描
画処理システムプログラム103をロードする。
Loading means 104 loads application program 102 and drawing processing system program 103 from auxiliary storage device 105 to main storage device 101 .

主記憶装置101に格納された描画処理システムプログ
ラム103内の円基本データ保持手段131には、左下
点を原点とする座標系に円を折れ線(線分列)に分解し
て描画するための座標点列(線分列からなる多角形の頂
点の座標値の集合)である円基本データが格納されてい
る。例えば、円基本データは次のような座標点列からな
る(整数プロセッサである図形処理機構108で表現可
能なように以下の各座標値は整数化されて使用される)
The circle basic data holding means 131 in the drawing processing system program 103 stored in the main storage device 101 contains coordinates for dividing the circle into polygonal lines (segment sequences) and drawing them in a coordinate system with the lower left point as the origin. Circle basic data, which is a sequence of points (a set of coordinate values of vertices of a polygon made up of a sequence of line segments), is stored. For example, circle basic data consists of the following coordinate point sequence (each of the following coordinate values is converted into an integer and used so that it can be expressed by the graphic processing mechanism 108, which is an integer processor)
.

(rxs in  (2πx  (i/72))  +
r。
(rxs in (2πx (i/72)) +
r.

rxcos  (2πX  (i/72)l  +r)
(i=0.1.  ・・・、72) ここで、半径rは、十分な精度を得るために図形処理機
構108で表現可能な座標範囲内で十分大きな値であり
、2ハイドの整数であれば「4096」とかr8192
Jといった値となる。
rxcos (2πX (i/72)l +r)
(i=0.1...., 72) Here, the radius r is a sufficiently large value within the coordinate range that can be expressed by the graphic processing mechanism 108 in order to obtain sufficient accuracy, and is a 2-hyde integer. If so, "4096" or r8192
The value is J.

ここで、第3図を参照して、座標変換値設定手段134
により座標変換機能107に設定される座標変換マトリ
ックスの生成過程の考え方を説明する。
Here, referring to FIG. 3, coordinate transformation value setting means 134
The concept of the generation process of the coordinate transformation matrix set in the coordinate transformation function 107 will be explained below.

まず、円基本データ保持手段132で保持されている円
基本データは、上述の例のように中心が原点、(0,0
)となっていないので、左下点から中心に原点を補正す
るためのマトリックスMA(補正マトリックス)が求め
られる(ステップ31)。中心から左下点までの距離は
円基本データの半径rであるので、マトリックスMAは
第3図中の(1)式に示すようになる。
First, the circle basic data held in the circle basic data holding means 132 has an origin at the center and (0,0
), a matrix MA (correction matrix) for correcting the origin from the lower left point to the center is obtained (step 31). Since the distance from the center to the lower left point is the radius r of the circle basic data, the matrix MA becomes as shown in equation (1) in FIG.

次に、アプリケーションプログラム102から指定され
た円または楕円の半径の大きさや形状に適合するように
円または楕円を拡大縮小(楕円の場合には傾き等の変化
も含む)するためのマトリックスMB(変形マトリック
ス)が求められる(ステップ32)。
Next, a matrix MB (deformed matrix) is determined (step 32).

ここで、マトリックスMBで使用される座標値の(xi
、yi)および(x 2.  y 2)は次のような座
標値である。
Here, the coordinate values (xi
, yi) and (x2.y2) are the following coordinate values.

第4図(a)のような半径Rの円の描画がアプリケーシ
ョンプログラム102から指定される場合には、(xi
、yl)= (R,O)であり、(x2.y2)= (
0,R)である。
When drawing a circle with radius R as shown in FIG. 4(a) is specified by the application program 102, (xi
, yl) = (R, O), and (x2.y2) = (
0,R).

第4図(b)のようなベクトル(xi、yl)および(
x2.y2)(点0から点Aへのベクトルおよび点0か
ら点Bへのベクトル)で表される共役半径を持つ楕円の
描画がアプリケーションプログラム102から指定され
る場合には、それらのベクトルのX成分およびy成分が
そのまま(Xl、yl)および(x2.y2)の座標値
になる。
The vectors (xi, yl) and (
x2. y2) (vector from point 0 to point A and vector from point 0 to point B), if the application program 102 specifies drawing of an ellipse with a conjugate radius, the X component of those vectors. and the y component become the coordinate values of (Xl, yl) and (x2.y2) as they are.

なお、アプリケーションプログラム102からの上述の
ベクトルの指定の態様としては、それらの2つのベクト
ルを特定するための大きさおよび傾き(角αおよびβ)
が指定されたり、または中心(点○)と2つの共役半径
の終点(点AおよびB)との座標値が指定されたりする
Note that the manner in which the above-mentioned vectors are specified by the application program 102 includes the size and inclination (angles α and β) for specifying these two vectors.
is specified, or the coordinate values of the center (point ○) and the end points of the two conjugate radii (points A and B) are specified.

マトリックスMBは、以上の(xl、yl)および(x
2.y2)ならびに円基本データの半径rにより、第3
図中の(2)式に示すようになる。
The matrix MB is larger than or equal to (xl, yl) and (x
2. y2) and the radius r of the circle basic data, the third
The result is as shown in equation (2) in the figure.

次に、拡大縮小された円または楕円を装置座標(デイス
プレィ装置106やデイスプレィ装置506上の座標)
上の円または楕円の表示位置、すなわちアプリケーショ
ンプログラム102から指定された中心(Xc、Yc)
で特定される位置に移動するためのマトリックスMC(
移動マトリックス)が求められる(ステップ33)。こ
のマトリックスMCは第3図中の(3)式に示すように
なる。
Next, the scaled circle or ellipse is converted into device coordinates (coordinates on the display device 106 or display device 506).
Display position of the upper circle or ellipse, that is, the center specified by the application program 102 (Xc, Yc)
Matrix MC (
movement matrix) is determined (step 33). This matrix MC becomes as shown in equation (3) in FIG.

最後に、以上のマトリックスMA、MBおよびMCを掛
は合わせて、円基本データの原点補正を行い、円または
楕円の拡大縮小を行い、装置座標上の任意の表示位置へ
の移動を行うためのマトリックスMDが求められる(ス
テップ34)、このマトリックスMDが円基本データを
アプリケーションプログラム102から指定された円ま
たは楕円に変換するための座標変換マトリックスであり
、このマトリックスMDは第3図中の(4)式に示すよ
うになる。
Finally, the above matrices MA, MB, and MC are multiplied and combined to correct the origin of the basic circle data, scale the circle or ellipse, and move it to any display position on the device coordinates. A matrix MD is obtained (step 34). This matrix MD is a coordinate transformation matrix for converting the circle basic data into a circle or ellipse designated by the application program 102, and this matrix MD is calculated as (4) in FIG. ) as shown in the formula.

なお、第3図中の(5)式に示すように、マトリックス
MDの一部である「マトリックスMBXマトリックスM
AJがマトリックスMD’として定義される。このマト
リックスMD’を、第2の座標変換値であるマトリック
スMDに対して、第1の座標変換値という。
In addition, as shown in equation (5) in FIG.
AJ is defined as matrix MD'. This matrix MD' is referred to as a first coordinate transformation value with respect to matrix MD which is a second coordinate transformation value.

記憶保持手段133には、このマトリックスMD′と前
回の円の描画におけるその円の半径とが記憶されている
The memory holding means 133 stores this matrix MD' and the radius of the circle in the previous drawing of the circle.

さて、アプリケーションプログラム102から第4図(
a)に示すような円の描画が描画処理システムプログラ
ム103に要求されると、描画処理システムプログラム
103は以下に示すような処理を行う。
Now, from the application program 102 in FIG.
When the drawing processing system program 103 is requested to draw a circle as shown in a), the drawing processing system program 103 performs the following processing.

まず、保存手段132は、アプリケーションプログラム
102から指定された円の半径R(円の形状を示す値)
を獲得し、その時点で記憶保持手段133に設定されて
いる半径(前回に円が描画された際のその円の半径)と
指定された半径Rとが等しいが否かを比較する(ステッ
プ1031>。
First, the storage means 132 stores a radius R of a circle (a value indicating the shape of the circle) specified by the application program 102.
is obtained, and it is compared whether the radius set in the memory holding means 133 at that time (the radius of the circle when the circle was drawn last time) is equal to the specified radius R (step 1031 >.

この比較で両者が等しい場合には、座標変換値設定手段
134は、アプリケーションプログラム102から指定
された円の中心の座標値(円の表示位置を示す値)を獲
得し、そのX座標(Xc)およびX座標(Yc)を記憶
保持手段133に設定されているマトリックスMD’の
(1,3)成分および(2,3)成分にそれぞれ加えて
マトリックスMDを生成しく第3図参照) (ステップ
1032)、そのマトリックスMDを図形処理機構10
8に転送し座標変換機能107に設定する(上述したよ
うにこのような設定は中央処理装置109によって実現
される)(ステップ1037)。
If the two are equal in this comparison, the coordinate conversion value setting means 134 acquires the coordinate value of the center of the circle specified from the application program 102 (value indicating the display position of the circle), and converts it to its X coordinate (Xc). and the X coordinate (Yc) respectively to the (1, 3) and (2, 3) components of the matrix MD' set in the memory holding means 133 to generate the matrix MD (see FIG. 3) (Step 1032 ), the matrix MD is processed by the graphic processing mechanism 10
8 and set in the coordinate transformation function 107 (as described above, such setting is realized by the central processing unit 109) (step 1037).

次に、半径算出手段135は、座標変換値設定手段13
4によって生成されたマトリックスMDに基づき、装置
座標上の円の半径(デイスプレィ装置106上に描画さ
れる円の半径)を算出する。
Next, the radius calculation means 135 calculates the coordinate transformation value setting means 13.
4, the radius of the circle on the device coordinates (radius of the circle drawn on the display device 106) is calculated.

この半径は後述するように円基本データからいくつかの
頂点を間引くための目安として使用されるものなので、
その算出は概算で足りる。ここでは、マトリックスMD
の成分(1,1)、成分(1゜2)、成分(2,1)お
よび成分(2,2)の値の中で最大のものの2′″倍を
その半径として算出する(ステップ1038)。
This radius is used as a guide for thinning out some vertices from the basic circle data, as described later.
A rough estimate is sufficient for the calculation. Here, matrix MD
2'' times the largest value among the values of component (1,1), component (1°2), component (2,1), and component (2,2) is calculated as the radius (step 1038) .

最後に、円基本データ設定手段136は、ステップ10
38で算出された半径に基づいて、円基本データ保持手
段131内の円基本データからいくつかの頂点を間引い
て(それらの頂点に関する座標値を円基本データから取
り除いて)適切に頂点数を間引いた円基本データ(上述
の半径から鑑みて十分に円と認識でき、かつデータ量(
頂点数)を減じた円基本データ)を生成し、その円基本
データを図形処理機構108に転送して設定する。
Finally, the circle basic data setting means 136 performs step 10.
Based on the radius calculated in step 38, some vertices are thinned out from the circle basic data in the circle basic data holding means 131 (coordinate values regarding those vertices are removed from the circle basic data), and the number of vertices is appropriately thinned out. Basic circle data (can be sufficiently recognized as a circle considering the radius mentioned above, and the amount of data (
The circle basic data is generated by subtracting the number of vertices), and the circle basic data is transferred to the graphic processing mechanism 108 and set.

これにより、マトリックスMDが設定されている座標変
換機能107の写像によって、アプリケーションプログ
ラム102から指定された円がデイスプレィ装置106
上に適切な精度でかつ高速に描画される(ステップ10
39)。
As a result, the circle specified by the application program 102 is transformed into the display device 106 by the mapping of the coordinate transformation function 107 in which the matrix MD is set.
(Step 10)
39).

例えば、実際に描画される円が半径10ドツト程度のも
のであれば8角形が16角形で十分に円と認識できるの
で、そのような多角形になるように頂点数を間引いた円
基本データにより描画を行うと適切な精度でかつ高速に
円を描画することができる(後述する楕円1円弧および
楕円弧についても同様である)。
For example, if the circle actually drawn has a radius of about 10 dots, an octagon can be recognized as a 16-sided circle. When drawing is performed, a circle can be drawn with appropriate precision and at high speed (the same applies to one ellipse arc and an elliptical arc, which will be described later).

また、ステップ1032の処理で分かるように、同一半
径の円が連続して描画される際の表示処理は高速に行わ
れる。
Furthermore, as can be seen from the process in step 1032, the display process when circles with the same radius are drawn consecutively is performed at high speed.

ステップ1031の比較で両者が等しくない場合には、
保存手段132は、アプリケーションプログラム102
から指定された円の半径Rおよび円の中心の座標値を獲
得し、それらの値に基づいて新たにマトリックスMD’
を計算しくステップ1033)、新しい半径(半径R)
および生成されたマトリックスMD’を記憶保持手段1
33に格納する(ステップ1034)。
If the two are not equal in the comparison at step 1031,
The storage means 132 stores the application program 102.
Obtain the radius R of the specified circle and the coordinate values of the center of the circle, and create a new matrix MD' based on these values.
Step 1033), calculate the new radius (radius R)
and the generated matrix MD' is stored in the memory holding means 1
33 (step 1034).

座標変換値設定手段134は、マトリックスMD′と円
の中心の座標値とからマトリックスMDを計算しくステ
ップ1035)、そのマトリックスMDを図形処理機構
108に転送し座標変換機能107に設定する(ステッ
プ1037)。
The coordinate transformation value setting means 134 calculates the matrix MD from the matrix MD' and the coordinate values of the center of the circle (step 1035), transfers the matrix MD to the graphic processing mechanism 108, and sets it in the coordinate transformation function 107 (step 1037). ).

次に、半径算出手段135は、座標変換値設定手段13
4によって計算されたマトリックスMDに基づき、装置
座標上の円の半径を算出する(ステップ1038)。
Next, the radius calculation means 135 calculates the coordinate transformation value setting means 13.
4, the radius of the circle on the device coordinates is calculated (step 1038).

最後に、円基本データ設定手段136は、円基本データ
保持手段131内の円基本データおよびステップ103
8で算出された装置座標上の円の半径に基づいて適切に
頂点数を間引いた円基本データを生成し、その円基本デ
ータを図形処理機構108に転送して設定する。これに
より、アプリケ−シランプログラム102から指定され
た円がデイスプレィ装置106上に適切な精度でかつ高
速に描画される(ステップ1039)。
Finally, the circle basic data setting means 136 sets the circle basic data in the circle basic data holding means 131 and step 103.
Based on the radius of the circle on the device coordinates calculated in step 8, circle basic data is generated by appropriately thinning out the number of vertices, and the circle basic data is transferred to the graphic processing mechanism 108 and set. As a result, the circle specified by the application run program 102 is drawn on the display device 106 with appropriate precision and at high speed (step 1039).

また、アプリケーションプログラム102から第4図(
b)に示すような楕円の描画が描画処理システムプログ
ラム103に要求されると、描画処理システムプログラ
ム103は以下に示すような処理を行う。
In addition, the application program 102 can also be used as shown in FIG.
When the drawing processing system program 103 is requested to draw an ellipse as shown in b), the drawing processing system program 103 performs the following processing.

まず、座標変換値設定手段134は、アプリケーション
プログラム102から指定された2つの共役半径を表す
ベクトル(楕円の形状を示す値)および楕円の中心の座
標値(楕円の表示位置を示す値)を獲得し、それらの値
に基づいて新たにマトリックスMDを計算しくステップ
1036)、そのマトリックスMDを図形処理機構10
8に転送し座標変換機能107に設定する(ステップ1
037)。
First, the coordinate transformation value setting means 134 obtains a vector representing two conjugate radii (a value indicating the shape of the ellipse) and a coordinate value of the center of the ellipse (a value indicating the display position of the ellipse) specified by the application program 102. Then, a new matrix MD is calculated based on these values (step 1036), and the matrix MD is sent to the graphic processing mechanism 10.
8 and set it in the coordinate transformation function 107 (Step 1
037).

次に、半径算出手段135は、座標変換値設定手段13
4によって計算されたマトリックスMDに基づき、装置
座標上の楕円の半径(デイスプレィ装置106上に描画
される楕円の半径)を算出する。この算出は概夏で足り
、マトリックスMDの成分(1,1)、成分(1,2)
、成分く2゜1)および成分(2,2)の値の中で最大
のものの2′″倍をその半径として算出する(ステップ
1038)。
Next, the radius calculation means 135 calculates the coordinate transformation value setting means 13.
4, the radius of the ellipse in device coordinates (the radius of the ellipse drawn on the display device 106) is calculated. This calculation is sufficient around summer, and the components (1, 1) and (1, 2) of the matrix MD
, component (2°1) and component (2,2), 2'' times the largest value is calculated as its radius (step 1038).

最後に、円基本データ設定手段136は、円基本データ
保持手段131内の円基本データおよびステップ103
8で算出された装置座標上の楕円の半径に基づいて適切
に頂点数を間引いた円基本データを生成し、その円基本
データを図形処理機構108に転送して設定する。これ
により、アプリケーションプログラム102から指定さ
れた楕円がデイスプレィ装置106上に適切な精度でか
つ高速に描画される(ステップ1039)。
Finally, the circle basic data setting means 136 sets the circle basic data in the circle basic data holding means 131 and step 103.
Based on the radius of the ellipse on the device coordinates calculated in step 8, circle basic data is generated with the number of vertices appropriately thinned out, and the circle basic data is transferred to the graphic processing mechanism 108 and set. As a result, the ellipse specified by the application program 102 is drawn on the display device 106 with appropriate precision and at high speed (step 1039).

第5図は、本発明の図形処理システムにおける図形表示
制御方式の他の実施例の構成を示すブロック図である。
FIG. 5 is a block diagram showing the configuration of another embodiment of the graphic display control method in the graphic processing system of the present invention.

本実施例の図形処理システムにおける図形表示制御方式
は、主記憶装置501と、ロード手段504と、補助記
憶装置505(主記憶装置501にロードされるアプリ
ケーションプログラム502および描画処理システムプ
ログラム503が格納されている)と、デイスプレィ装
置506(CRT表示装置等)と、座標変換機能507
(例えば、1つのプロセッサからなる)を持った図形処
理機構508 (整数演夏プロセッサにより実現される
)と、中央処理装置509とを含んで構成されている。
The graphic display control method in the graphic processing system of this embodiment includes a main storage device 501, a loading means 504, and an auxiliary storage device 505 (in which an application program 502 and a drawing processing system program 503 to be loaded into the main storage device 501 are stored). ), a display device 506 (such as a CRT display device), and a coordinate conversion function 507
It is configured to include a graphic processing mechanism 508 (realized by an integer processor) having a processor (for example, consisting of one processor) and a central processing unit 509.

なお、アプリケーションプロクラム502や描画処理シ
ステムプログラム503の処理は中央処理装置509に
よって実現されるが、以下の説明においては中央処理装
置509には言及しない。
Note that although the processing of the application program 502 and the drawing processing system program 503 is realized by the central processing unit 509, the central processing unit 509 will not be referred to in the following description.

主記憶装置501には、アプリケーションプログラム5
02と、描画処理システムプログラム503とがロード
される。
The main storage device 501 contains an application program 5.
02 and the drawing processing system program 503 are loaded.

描画処理システムプログラム503は、円基本データ保
持手段531と、保存手段532と、記憶保持手段53
3と、座標変換値設定手段534と、半径算出手段53
5と、開始点終端点算出手段536と、円弧基本データ
設定手段537とを含んで構成されている。
The drawing processing system program 503 includes a circle basic data holding means 531, a saving means 532, and a memory holding means 53.
3, coordinate conversion value setting means 534, and radius calculation means 53
5, a start point/end point calculation means 536, and an arc basic data setting means 537.

図形処理機構508内の座標変換機能507に渡される
座標変換マトリックス(第2の座標変換値)において必
要な領域(成分)は、2次元描画機構であれば6(=2
X3)81域であり、3次元描画機構であれば12(=
3x4)fil域である(本実施例では、2次元描画機
構対応として説明する)。
The required area (component) in the coordinate transformation matrix (second coordinate transformation value) passed to the coordinate transformation function 507 in the graphic processing mechanism 508 is 6 (=2
X3) 81 area, and 12 (=
3x4) fil area (this embodiment will be explained as being compatible with a two-dimensional drawing mechanism).

第6図は、描画処理システムプログラム503(円基本
データ保持手段531.保存手段532゜記憶保持手段
533.座標変換値設定手段534゜半径算出手段53
5.開始点終端点夏出手段536および円弧基本データ
設定手段537)の処理を示す流れ図である。この処理
は、半径比較ステップ5031と、マトリックスMD計
夏ステップ5032と、マトリックスMD’計夏ステッ
プ5033と、半径およびマトリックスMD’格納ステ
ップ5034と、マトリックスMD計夏ステップ503
5と、楕円弧マトリックスMD計算ステップ5036と
、マトリックスMD設定ステップ5037と、装置座標
上半径算出ステップ5038と、開始点および終端点計
算ステップ5o39と、円弧または楕円弧描画ステップ
5040とからなる。
FIG. 6 shows the drawing processing system program 503 (circle basic data holding means 531. saving means 532° memory holding means 533. coordinate conversion value setting means 534° radius calculating means 53).
5. 5 is a flowchart showing the processing of the start point/end point summer output means 536 and arc basic data setting means 537). This process includes a radius comparison step 5031, a matrix MD measurement step 5032, a matrix MD' measurement step 5033, a radius and matrix MD' storage step 5034, and a matrix MD measurement step 503.
5, an elliptical arc matrix MD calculation step 5036, a matrix MD setting step 5037, a radius calculation step 5038 on device coordinates, a start point and end point calculation step 5o39, and a circular arc or elliptic arc drawing step 5040.

第7図(a)および(b)は、アプリケーションプログ
ラム502から描画処理システムプログラム503に描
画が指示される円弧および楕円弧の一例を示す図である
FIGS. 7(a) and 7(b) are diagrams showing examples of circular arcs and elliptical arcs that are instructed to be drawn by the drawing processing system program 503 from the application program 502.

次に、このように構成された本実施例の図形処理システ
ムにおける図形表示制御方式の動作について説明する。
Next, the operation of the graphic display control method in the graphic processing system of this embodiment configured as described above will be explained.

ロード手段504は、補助記憶装置505から主記憶装
置501にアプリケーションプログラム502および描
画処理システムプログラム503をロードする。
Loading means 504 loads application program 502 and drawing processing system program 503 from auxiliary storage device 505 to main storage device 501 .

主記憶装置501に格納された描画処理システムプログ
ラム503内の円基本データ保持手段531には、左下
点を原点とする座標系に円を折れ線(線分列)に分解し
て描画するための座標点列(線分列からなる多角形の頂
点の座標値の集合)である円基本データが格納されてい
る。これは、第1図中の円基本データ保持手段131内
の円基本データと同様のものである。
The circle basic data holding means 531 in the drawing processing system program 503 stored in the main storage device 501 contains coordinates for dividing the circle into polygonal lines (segment sequences) and drawing them in a coordinate system with the lower left point as the origin. Circle basic data, which is a sequence of points (a set of coordinate values of vertices of a polygon made up of a sequence of line segments), is stored. This is similar to the circle basic data in the circle basic data holding means 131 in FIG.

また、座標変換値設定手段534により座標変換機能5
07に設定される座標変換マトリックス(第2の座標変
換値)の生成過程の考え方は、第1図中の座標変換値設
定手段134に関する第3図に示した考え方と同様であ
る。
Further, the coordinate transformation function 5 is set by the coordinate transformation value setting means 534.
The concept of the generation process of the coordinate transformation matrix (second coordinate transformation value) set to 07 is the same as the concept shown in FIG. 3 regarding the coordinate transformation value setting means 134 in FIG. 1.

したがって、記憶保持手段533には、第3図中のマト
リックスMD′ (第1の座標変換値)と前回の円弧の
描画におけるその円弧の半径とが記憶されている。
Therefore, the memory holding means 533 stores the matrix MD' (first coordinate transformation value) in FIG. 3 and the radius of the arc in the previous drawing of the arc.

さて、アプリケーションプログラム502から第7図(
a)に示すような円弧の描画が描画処理システムプログ
ラム503に要求されると、描画処理システムプログラ
ム503は以下に示すような処理を行う。
Now, from the application program 502 in FIG.
When the drawing processing system program 503 is requested to draw an arc as shown in a), the drawing processing system program 503 performs the following processing.

まず、保存手段532は、アプリケージタンプログラム
502から指定された円弧の半径R(円弧の形状を示す
値の一部)を獲得し、その時点で記憶保持手段533に
設定されている半径(前回に円弧が描画された際のその
円弧の半径)と指定された半径Rとが等しいか否かを比
較する(ステップ5031)。
First, the storage means 532 acquires the radius R (part of the value indicating the shape of the arc) of the specified arc from the applicator program 502, and acquires the radius R (part of the value indicating the shape of the arc) set in the memory storage means 533 at that time (previously set). The radius of the circular arc when the circular arc is drawn is compared with the designated radius R (step 5031).

この比較で両者が等しい場合には、座標変換値設定手段
534は、アプリケーションプログラム502から指定
された円弧の中心の座標値(円弧の表示位置を示す値)
を獲得し、そのX座標(XC)およびY座標(Yc)を
記憶保持手段533に設定されているマトリックスMD
’の(1,3)成分および(2,3)成分にそれぞれ加
えてマトリックスMDを生成しく第3図参照)(ステッ
プ5032)、そのマトリックスMDを図形処理機構5
08に転送し座標変換機能507に設定する(上述した
ようにこのような設定は中央処理装置509によって実
現される)(ステップ5037)。
If the two are equal in this comparison, the coordinate conversion value setting means 534 sets the coordinate value of the center of the arc (a value indicating the display position of the arc) specified by the application program 502.
is acquired, and its X coordinate (XC) and Y coordinate (Yc) are set in the memory holding means 533.
(see FIG. 3) (step 5032), and add the matrix MD to the (1, 3) and (2, 3) components of ', respectively.
08 and set in the coordinate transformation function 507 (as described above, such setting is realized by the central processing unit 509) (step 5037).

次に、半径算出手段535は、座標変換値設定手段53
4によって生成されたマトリックスMDに基づき、装置
座標上の円弧の半径(デイスプレィ装置506上に描画
される円弧の半径)を算出する。この半径は後述するよ
うに円弧基本データからいくつかの頂点を間引くための
目安として使用されるものなので、その算出は概真で足
りる。
Next, the radius calculation means 535 calculates the coordinate transformation value setting means 53.
4, the radius of the arc on the device coordinates (the radius of the arc drawn on the display device 506) is calculated. Since this radius is used as a guideline for thinning out some vertices from the arc basic data as will be described later, it is sufficient that the calculation is approximately true.

ここでは、マトリックスMDの成分(1,1)成分(1
,2)、成分(2,1)および成分(2゜2)の値の中
で最大のものの217を倍をその半径として算出する(
ステップ5038)。
Here, the component (1,1) of the matrix MD is the component (1,1)
, 2), calculate the radius by multiplying 217 of the largest value among the values of component (2, 1) and component (2゜2) (
Step 5038).

さらに、開始点終端点算出手段536は、アプリケーシ
ョンプログラム502から指定された円弧の開始角およ
び終了角(円弧の形状を示す値の一部)を獲得し、それ
らの値と円基本データ保持手段531内の円基本データ
とに基づき円基本データ上での円弧の開始点および終端
点を計算する(ステップ5039)。
Furthermore, the start point and end point calculation means 536 acquires the start angle and end angle (part of the value indicating the shape of the arc) of the arc specified from the application program 502, and uses these values and the circle basic data holding means 531. The start point and end point of the arc on the circle basic data are calculated based on the circle basic data in (step 5039).

最後に、円弧基本データ設定手段537は、円基本デー
タ保持手段531内の円基本データの中で上述の開始点
と終端点との間に存在するデータを円弧基本データとし
て生成し、さらにステップ5038で算出された半径に
基づいてその円弧基本データからいくつかの頂点を間引
いて(それらの頂点に関する座標値を円弧基本データか
ら取り除いて)適切に頂点数を間引いた円弧基本データ
(上述の半径から鑑みて十分に円弧と認識でき、かつデ
ータ量(頂点数)を減じた円弧基本データ)を生成し、
その円弧基本データを図形処理機構508に転送して設
定する。これにより、マトリックスMDが設定されてい
る座標変換機能507の写像によって、アプリケーショ
ンプログラム502から指定された円弧がデイスプレィ
装置506上に適切な精度でかつ高速に描画される(ス
テップ5040)。
Finally, the arc basic data setting means 537 generates data existing between the above-mentioned starting point and end point among the circle basic data in the circle basic data holding means 531 as arc basic data, and further, in step 5038 Based on the radius calculated, some vertices are thinned out from the arc basic data (by removing the coordinate values related to those vertices from the arc basic data), and the number of vertices is appropriately thinned out (from the radius above). Generate arc basic data that can be sufficiently recognized as an arc in view of the above, and reduce the amount of data (number of vertices),
The arc basic data is transferred to the graphic processing mechanism 508 and set. As a result, the arc specified by the application program 502 is drawn on the display device 506 with appropriate precision and at high speed by mapping by the coordinate conversion function 507 in which the matrix MD is set (step 5040).

また、ステップ5032の処理で分かるように、同一半
径の円弧が連続して描画される際の表示処理は高速に行
われる。
Further, as can be seen from the processing in step 5032, the display processing when circular arcs with the same radius are drawn consecutively is performed at high speed.

ステップ5031の比較で両者が等しくない場合には、
保存手段532は、アプリケーションプログラム502
から指定された円弧の半径Rおよび円弧の中心の座標値
を獲得し、それらの値に基づいて新たにマトリックスM
D’を計算しくステップ5033)、新しい半径(半径
R)および生成されたマトリックスMD’を記憶保持手
段533に格納する(ステップ5034)。
If the two are not equal in the comparison at step 5031,
The storage means 532 stores the application program 502
Obtain the radius R of the specified arc and the coordinate values of the center of the arc, and create a new matrix M based on those values.
D' is calculated (step 5033), and the new radius (radius R) and the generated matrix MD' are stored in the storage means 533 (step 5034).

座標変換値設定手段534は、マトリックスMD′と円
の中心の座標値とからマトリックスMDを計算しくステ
ップ5035)、そのマトリックスMDを図形処理機構
508に転送し座標変換機能507に設定する(ステッ
プ5037)。
The coordinate transformation value setting means 534 calculates the matrix MD from the matrix MD' and the coordinate value of the center of the circle (step 5035), transfers the matrix MD to the graphic processing mechanism 508, and sets it in the coordinate transformation function 507 (step 5037). ).

次に、半径算出手段535は、座標変換値設定手段53
4によって計算されたマトリックスMDに基づき、装置
座標上の円弧の半径を算出する(ステップ5038)。
Next, the radius calculation means 535 calculates the coordinate transformation value setting means 53.
4, the radius of the circular arc on the device coordinates is calculated (step 5038).

さらに、開始点終端点算出手段536は、アプリケーシ
ョンプログラム502から指定された円弧の開始角およ
び終了角を獲得し、それらの値と円基本データ保持手段
531内の円基本データとに基づき円基本データ上での
円弧の開始点および終端点を計算する(ステップ503
9)。
Further, the start point and end point calculation means 536 obtains the start angle and end angle of the arc specified from the application program 502, and based on these values and the circle basic data in the circle basic data holding means 531, the circle basic data is calculated. Calculate the starting and ending points of the arc above (step 503
9).

最後に、円弧基本データ設定手段537は、円基本デー
タ保持手段131内の円基本データ、ステップ5038
で算出された装置座標上の円弧の半径および上述の開始
点および終端点に基づいて適切に頂点数を間引いた円弧
基本データを生成し、その円弧基本データを図形処理機
構lO8に転送して設定する。これにより、アプリケー
ションプログラム502から指定された円弧がデイスプ
レィ装置506上に適切な精度でかつ高速に描画される
(ステップ5040)。
Finally, the arc basic data setting means 537 sets the circle basic data in the circle basic data holding means 131 in step 5038.
Generate arc basic data with the number of vertices appropriately thinned out based on the radius of the arc on the device coordinates calculated in , and the above-mentioned start and end points, and transfer the arc basic data to the graphic processing mechanism lO8 and set it. do. As a result, the arc specified by the application program 502 is drawn on the display device 506 with appropriate precision and at high speed (step 5040).

また、アプリケーションプログラム502から第7図(
)l)に示すような楕円弧の描画が描画処理システムプ
ログラム503に要求されると、描画処理システムプロ
グラム503は以下に示すような処理を行う。
Also, from the application program 502 as shown in FIG.
) When the drawing processing system program 503 is requested to draw an elliptical arc as shown in (l), the drawing processing system program 503 performs the following processing.

まず、座標変換値設定手段534は、アプリケーション
プログラム502から指定された2つの共役半径を表す
ベクトル(楕円弧の形状を示す値の一部)および楕円弧
の中心の座標値(楕円弧の表示位置を示す値)を獲得し
、それらの値に基づいて新たにマトリックスMDを計算
しくステップ5036)、そのマトリックスMDを図形
処理機構508に転送し座標変換機能507に設定する
(ステップ5037)。
First, the coordinate transformation value setting means 534 sets a vector representing two conjugate radii specified by the application program 502 (a part of the value indicating the shape of the elliptical arc) and a coordinate value of the center of the elliptical arc (a value indicating the display position of the elliptical arc). ), a new matrix MD is calculated based on these values (step 5036), and the matrix MD is transferred to the graphic processing mechanism 508 and set in the coordinate transformation function 507 (step 5037).

次に、半径算出手段535は、座標変換値設定手段53
4によって計算されたマトリックスMDに基づき、装置
座標上の楕円弧の半径(デイスプレィ装置506上に描
画される楕円弧の半径)を算出する。この算出は概夏で
足り、マトリックスMDの成分(1,1)、成分(1,
2)、成分(2、■)および成分(2,2)の値の中で
最大のものの21″倍をその半径として算出する(ステ
ップ5038) 。
Next, the radius calculation means 535 calculates the coordinate transformation value setting means 53.
4, the radius of the elliptical arc on the device coordinates (the radius of the elliptical arc drawn on the display device 506) is calculated. This calculation is sufficient in about summer, and the component (1, 1) of the matrix MD, the component (1,
2), 21'' times the largest value among the values of component (2, ■) and component (2, 2) is calculated as its radius (step 5038).

さらに、開始点終端点算出手段535は、アプリケーシ
ョンプログラム502から指定された楕円弧の開始角お
よび終了角(楕円弧の形状を示す値の一部)を獲得し、
それらの値と円基本データ保持手段531内の円基本デ
ータとに基づき円基本データ上での楕円弧の開始点およ
び終端点を計算する(ステップ5039)。
Furthermore, the start point and end point calculation means 535 obtains the start angle and end angle (part of the value indicating the shape of the elliptical arc) of the elliptical arc specified from the application program 502,
Based on these values and the circle basic data in the circle basic data holding means 531, the starting point and end point of the elliptical arc on the circle basic data are calculated (step 5039).

最後に、円弧基本データ設定手段535は、円基本デー
タの中で上述の開始点と終端点との間に存在するデータ
を円弧基本データとして生成し、その円弧基本データお
よびステップ5038で算出された装置座標上の楕円弧
の半径に基づいて適切に頂点数を間引いた円弧基本デー
タを生成し、その円弧基本データを図形処理機構508
に転送して設定する。これにより、アプリケーションプ
ログラム502から指定された楕円弧がデイスプレィ装
置506上に適切な精度でかつ高速に描画される(ステ
ップ5040)。
Finally, the arc basic data setting means 535 generates data existing between the above-mentioned start point and end point in the circle basic data as arc basic data, and uses the arc basic data and the data calculated in step 5038. Generate basic arc data with the number of vertices appropriately thinned out based on the radius of the elliptical arc on the device coordinates, and send the basic arc data to the graphic processing mechanism 508.
Transfer to and configure. As a result, the elliptical arc specified by the application program 502 is drawn on the display device 506 with appropriate precision and at high speed (step 5040).

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

以上説明したように本発明は、円、楕円2円弧または楕
円弧の描画において座標変換マトリックスを1つ求める
ことで円、楕円3円弧または楕円弧のWi画を可能にし
、描画すべき頂点数(描画時のデータ量)を適切に削減
することにより、大量の円、楕円2円弧または楕円弧を
描画する際に適切な精度で高速な図形処理を行うことが
可能になり、利用者に対してレスポンスのよい図形処理
システムを提供することができるという効果がある。
As explained above, the present invention makes it possible to draw a circle, three elliptical arcs, or an elliptical arc by determining one coordinate transformation matrix when drawing a circle, two elliptical arcs, or an elliptical arc. By appropriately reducing the amount of data (data amount), it becomes possible to perform high-speed graphic processing with appropriate accuracy when drawing large amounts of circles, elliptical arcs, or elliptical arcs, resulting in a better response for users. This has the advantage of being able to provide a graphics processing system.

特に、大量の同一半径の円または円弧を連続して描画す
る際には、上述の効果が顕著になる。
In particular, when a large number of circles or arcs with the same radius are continuously drawn, the above-mentioned effect becomes noticeable.

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

第1図は本発明の一実施例の構成を示すブロック図、 第2図は第1図中の描画処理システムプログラムの処理
を示す流れ図、 第3図は座標変換マトリックスの生成過程の考え方を説
明するための図、 第4図(a)および(b)は第1図中のアプリケーショ
ンプログラムから描画処理システムプログラムに描画が
指定される円および楕円の一例を示す図、 第5図は本発明の他の実施例の構成を示すブロック図、 第6図は第5図中の描画処理システムプログラムの処理
を示す流れ図、 第7図(a)および(b)は第5図中のアプリケーショ
ンプログラムから描画処理システムプログラムに描画が
指定される円弧および楕円弧の一例を示す図である。 図において、 101.501・・・主記憶装置、 102.502・・・アプリケーションプログラム、 103.503・・・描画処理システムプログラム、 104.504・・・ロード手段、 105.505・・・補助記憶装置、 106、 506  ・ 107、 507  ・ 108  508  ・ 109  509  ・ 131、 531  ・ 132、 532  ・ 133、 533  ・ 134、 534  ・ 135、 535  ・ 136 ・ ・ ・ ・ ・ 536 ・ ・ ・ ・ 537 ・ ・ ・ ・ である。 デイスプレィ装置、 座標変換機能、 図形処理機構、 中央処理装置、 円基本データ保持手段、 保存手段、 記憶保持手段、 座標変換値設定手段、 半径算出手段、 円基本データ設定手段、 開始点終端点夏山手段、 円弧基本データ設定手段 第1図
Fig. 1 is a block diagram showing the configuration of an embodiment of the present invention, Fig. 2 is a flow chart showing the processing of the drawing processing system program in Fig. 1, and Fig. 3 explains the concept of the coordinate transformation matrix generation process. FIGS. 4(a) and 4(b) are diagrams showing examples of circles and ellipses whose drawing is specified from the application program in FIG. 1 to the drawing processing system program, and FIG. A block diagram showing the configuration of another embodiment; FIG. 6 is a flowchart showing the processing of the drawing processing system program in FIG. 5; FIGS. 7(a) and (b) are drawings from the application program in FIG. 5. FIG. 3 is a diagram illustrating an example of a circular arc and an elliptical arc whose drawing is specified by a processing system program. In the figure, 101.501...Main storage device, 102.502...Application program, 103.503...Drawing processing system program, 104.504...Loading means, 105.505...Auxiliary memory Device, 106, 506 ・ 107, 507 ・ 108 508 ・ 109 509 ・ 131, 531 ・ 132, 532 ・ 133, 533 ・ 134, 534 ・ 135, 535 ・ 136 ・ ・ ・ ・ 536 ・ ・ ・・ 537 ・ ・・ ・ It is. Display device, coordinate conversion function, graphic processing mechanism, central processing unit, circle basic data holding means, storage means, memory holding means, coordinate conversion value setting means, radius calculation means, circle basic data setting means, starting point ending point summer means , Arc basic data setting means Fig. 1

Claims (2)

【特許請求の範囲】[Claims] (1)座標変換機能を持った図形処理機構を持つ図形処
理システムにおいて、 円基本データを保持する円基本データ保持手段と、 アプリケーションプログラムから指定された円や楕円の
形状を示す値を獲得しその値に基づき第1の座標変換値
を計算しその第1の座標変換値を記憶保持手段に保存す
る保存手段と、 アプリケーションプログラムから指定された円や楕円の
表示位置を示す値および前記記憶保持手段内の第1の座
標変換値に基づき第2の座標変換値を計算し図形処理機
構内の座標変換機能にその第2の座標変換値を設定する
座標変換値設定手段と、 この座標変換値設定手段により計算された第2の座標変
換値に基づき装置座標上の円や楕円の半径を算出する半
径算出手段と、 前記円基本データ保持手段に保持されている円基本デー
タおよび前記半径算出手段により算出された装置座標上
の円や楕円の半径に基づき適切に頂点数を間引いた円基
本データを生成しその円基本データを図形処理機構に設
定する円基本データ設定手段と を有することを特徴とする図形処理システムにおける図
形表示制御方式。
(1) In a graphics processing system that has a graphics processing mechanism with a coordinate transformation function, there is a circle basic data holding means that holds circle basic data, and a value that indicates the shape of a circle or ellipse specified from an application program is acquired and stored. a storage means that calculates a first coordinate transformation value based on the value and stores the first coordinate transformation value in a memory storage means; a value indicating a display position of a circle or an ellipse designated by an application program; and the storage storage means coordinate transformation value setting means for calculating a second coordinate transformation value based on the first coordinate transformation value in the graphics processing mechanism and setting the second coordinate transformation value in a coordinate transformation function within the graphic processing mechanism; a radius calculation means for calculating the radius of a circle or an ellipse on the device coordinates based on the second coordinate transformation value calculated by the means; and circle basic data held in the circle basic data holding means and the radius calculation means. The apparatus is characterized by comprising circle basic data setting means for generating circle basic data with the number of vertices appropriately thinned out based on the radius of the circle or ellipse on the calculated device coordinates and setting the circle basic data in the graphic processing mechanism. A graphic display control method for graphic processing systems.
(2)座標変換機能を持った図形処理機構を持つ図形処
理システムにおいて、 円基本データを保持する円基本データ保持手段と、 アプリケーションプログラムから指定された円弧や楕円
弧の形状を示す値を獲得しその値に基づき第1の座標変
換値を計算しその第1の座標変換値を記憶保持手段に保
存する保存手段と、 アプリケーションプログラムから指定された円弧や楕円
弧の表示位置を示す値および前記記憶保持手段内の第1
の座標変換値に基づき第2の座標変換値を計算し図形処
理機構内の座標変換機能にその第2の座標変換値を設定
する座標変換値設定手段と、 この座標変換値設定手段により計算された第2の座標変
換値に基づき装置座標上の円弧や楕円弧の半径を算出す
る半径算出手段と、 アプリケーションプログラムから指定された円や楕円の
形状を示す値の中の開始角および終了角に基づき前記円
基本データ保持手段内の円基本データ上での円弧や楕円
弧の開始点および終端点を算出する開始点終端点算出手
段と、 前記円基本データ保持手段に保持されている円基本デー
タ、前記半径算出手段により算出された装置座標上の円
弧や楕円弧の半径ならびに前記開始点終端点算出手段に
より算出された円弧や楕円弧の開始点および終端点に基
づき適切に頂点数を間引いた円弧基本データを生成しそ
の円弧基本データを図形処理機構に設定する円弧基本デ
ータ設定手段と を有することを特徴とする図形処理システムにおける図
形表示制御方式。
(2) In a graphics processing system that has a graphics processing mechanism with a coordinate conversion function, there is a circle basic data holding means that holds circle basic data, and a value that indicates the shape of a circular arc or elliptical arc specified from an application program. a storage means for calculating a first coordinate transformation value based on the value and storing the first coordinate transformation value in a memory storage means; a value indicating a display position of a circular arc or an elliptical arc specified by an application program; and the storage storage means. the first of
coordinate transformation value setting means for calculating a second coordinate transformation value based on the coordinate transformation value and setting the second coordinate transformation value in a coordinate transformation function within the graphic processing mechanism; a radius calculation means for calculating the radius of a circular arc or elliptical arc on the device coordinates based on the second coordinate transformation value; a start point and end point calculation means for calculating the start point and end point of a circular arc or an elliptical arc on the circle basic data in the circle basic data holding means; the circle basic data held in the circle basic data holding means; Arc basic data in which the number of vertices is appropriately thinned out based on the radius of the circular arc or elliptical arc on the device coordinates calculated by the radius calculation means and the start point and end point of the circular arc or elliptical arc calculated by the start point and end point calculation means. 1. A graphic display control method in a graphic processing system, comprising arc basic data setting means for generating and setting the arc basic data in a graphic processing mechanism.
JP23644090A 1990-09-06 1990-09-06 Graphic display control system in graphic processing system Pending JPH04115378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23644090A JPH04115378A (en) 1990-09-06 1990-09-06 Graphic display control system in graphic processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23644090A JPH04115378A (en) 1990-09-06 1990-09-06 Graphic display control system in graphic processing system

Publications (1)

Publication Number Publication Date
JPH04115378A true JPH04115378A (en) 1992-04-16

Family

ID=17000787

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23644090A Pending JPH04115378A (en) 1990-09-06 1990-09-06 Graphic display control system in graphic processing system

Country Status (1)

Country Link
JP (1) JPH04115378A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009245334A (en) * 2008-03-31 2009-10-22 Brother Ind Ltd Image generating device and printing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009245334A (en) * 2008-03-31 2009-10-22 Brother Ind Ltd Image generating device and printing device
JP4561858B2 (en) * 2008-03-31 2010-10-13 ブラザー工業株式会社 Image generating apparatus and printing apparatus
US8300272B2 (en) 2008-03-31 2012-10-30 Brother Kogyo Kabushiki Kaisha Image generating device, image generating method and printing device

Similar Documents

Publication Publication Date Title
JP2634851B2 (en) Image processing device
JPH04115378A (en) Graphic display control system in graphic processing system
JPH06162159A (en) Method and device for processing graphic data
JPH06176107A (en) Method and device for processing distance picture
JPH0423084A (en) Graphic display control system for graphic processing system
JP2768331B2 (en) Curve linear approximation device
JP3029553B2 (en) 3D graphics processor
JPH0350686A (en) Graphic processing system
JP4138018B2 (en) System for modeling a three-dimensional shape of an object by shading a two-dimensional image of the object and a method for realizing the same by a computer
JP2507812B2 (en) Square root calculation method
JP2787497B2 (en) Graphic drawing method and apparatus
JP2910101B2 (en) Vector font data component point correction device
JP2521756B2 (en) Pattern data generator
JP2786098B2 (en) Figure enlargement editing method
JPS62205482A (en) Segment generating circuit of crt display device
JPH02130689A (en) Graphic processor
JPS60179793A (en) Graphic drawing apparatus
JPS61245254A (en) Display device having data base function
JPH10143676A (en) Picture processor and method for processing the same and recording medium
JPH0776988B2 (en) Straight line drawing device
JPH07334695A (en) Plotter and line width determining method
JPH11203489A (en) Method and device for plotting bezier curve and recording medium storing bezier curve plotting program
JPH01156881A (en) Plotting method for stroke character
JPH06150013A (en) Elliptic arc generator
JPH0214373A (en) Three-dimensional point designating system