JPH0279170A - System for storing graphic data in segment - Google Patents

System for storing graphic data in segment

Info

Publication number
JPH0279170A
JPH0279170A JP23113888A JP23113888A JPH0279170A JP H0279170 A JPH0279170 A JP H0279170A JP 23113888 A JP23113888 A JP 23113888A JP 23113888 A JP23113888 A JP 23113888A JP H0279170 A JPH0279170 A JP H0279170A
Authority
JP
Japan
Prior art keywords
ratio
coordinate value
coordinate
graphic data
page
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
JP23113888A
Other languages
Japanese (ja)
Inventor
Yoshiharu Takeuchi
義晴 竹内
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 JP23113888A priority Critical patent/JPH0279170A/en
Publication of JPH0279170A publication Critical patent/JPH0279170A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To relieve the limit to preservable coordinate values by correcting coordinate values contained in a coordinate value row in accordance with a ratio calculated by a ratio calculating means and storing graphic data in a page having a ratio within a segment. CONSTITUTION:A ratio calculating means 21 calculates a ratio at which all coordinate values can be set within a range which can be expressed by graphic data on each coordinate row contained in the storing designation for a user program 1. A coordinate correcting means 22 stores a ratio of coordinate value rows in a newly produced page in a segment. The coordinate value correcting means 22 stores graphic data containing the coordinate value rows corrected by the corresponding ratio calculated by the means 21 in the newly produced page to each coordinate value row until a coordinate value row having a different ratio appears. Therefore, the limit to preservable coordinate values can be relieved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は図形処理システムに関し、特に図形の再描画や
ピック入力のために図形データを一時的に保存するセグ
メントへ図形データを格納する図形データのセグメント
への格納方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a graphic processing system, and particularly to a graphic processing system that stores graphic data in a segment that temporarily stores graphic data for redrawing a graphic or inputting a pick. Regarding the storage method in segments.

〔従来の技術〕[Conventional technology]

図形の再描画等のために、第9図に示すような図形デー
タを利用者プログラムの指示に従って一時的にセグメン
トに保存しておき、セグメント単位の再描画等を可能に
するということは従来より行なわれている。第9図は座
標値(PIX、  P+v)。
In order to redraw figures, etc., it has been conventional practice to temporarily save figure data as shown in Figure 9 in segments according to instructions from the user program, making it possible to redraw each segment. It is being done. Figure 9 shows the coordinate values (PIX, P+v).

・・・、  (P −x、  P−y)で規定される点
P、 〜P、を持つ成る種の図形の表示を行なう図形デ
ータの形弐例を示した図であり、各エントリE1〜E!
は例えば16ビノト構成である。エントリE1にはこの
図形データによって表示しようとする図形の種別(例え
ば各座標値を実線で結んだ図形とするのか、或いはその
内部を塗り潰した図形とするのか等)を示すOP(オペ
レーションコード)がセットされ、エントリE3.E4
. ・・・、Elには各点P、〜P、lのX、 Y座標
値pHx、  pHv、・・・、  pHに。
. . . This is a diagram showing an example of the shape of graphic data for displaying a type of graphic having points P, ~P, defined by (P - x, P - y), and each entry E1 ~ E!
has a 16 bit configuration, for example. Entry E1 contains an OP (operation code) indicating the type of figure to be displayed using this figure data (for example, whether it is a figure in which each coordinate value is connected with a solid line, or a figure whose interior is filled in, etc.). set, entry E3. E4
.. ..., El has the X and Y coordinate values pHx, pHv, ..., pH of each point P, ~P, l.

P++yが、エントリE2には座標値を指定した点P1
〜P、の総数nがセットされる。
P++y is the point P1 whose coordinate values are specified in the entry E2
The total number n of ~P is set.

第10図は第9図に示した図形データの座標値の表現形
式の一例を示した図である。同図に示すように、一つの
座標値(X座標値或いはY座標値)は16ビツトで表現
され、15ビツト目は座標値の正。
FIG. 10 is a diagram showing an example of the expression format of the coordinate values of the graphic data shown in FIG. 9. As shown in the figure, one coordinate value (X coordinate value or Y coordinate value) is expressed by 16 bits, and the 15th bit is the positive value of the coordinate value.

負を、14ビツト目は座標値の整数部を、13ビツト目
〜0ビツト目は座標値の小数部分をそれぞれ示す、従っ
て、第10図の表現形式で表現可能な座標値の範囲Wは
−2<W<2に限られる。
The 14th bit indicates the integer part of the coordinate value, and the 13th to 0th bits indicate the decimal part of the coordinate value. Therefore, the range W of coordinate values that can be expressed using the expression format shown in Figure 10 is - It is limited to 2<W<2.

ところで、従来の図形処理システムでは利用者プログラ
ムが指定できる座標値は、上述した図形データの座標値
の表現形式で表現可能な範囲Wに収まる範囲のものに限
られており、上記範囲Wを越えた座標値が一つでも含ま
れる座標値列の指定が為された場合は、利用者プログラ
ムによって指定された通りの図形を正常な形でセグメン
トに格納することができなかったので、エラーとして利
用者プログラムに通知していた。
By the way, in conventional graphic processing systems, the coordinate values that a user program can specify are limited to those that fall within the range W that can be expressed in the coordinate value expression format of the graphic data mentioned above. If a coordinate value string that contains at least one coordinate value is specified, it will be used as an error because the figure specified by the user program could not be stored in the segment in a normal manner. program was notified.

(発明が解決しようとするR題) 上述したように、従来方式では、利用者プログラムがセ
グメントに格納することができる図形は、その図形を特
定する全ての座標値が図形データの座標値の表現形式で
表現可能な範囲にあるものに限られるという制限があっ
た。
(Problem R to be Solved by the Invention) As described above, in the conventional method, for a figure that a user program can store in a segment, all the coordinate values that specify the figure are expressions of the coordinate values of the figure data. There was a restriction that it was limited to what could be expressed in the form.

本発明は保存することができる座標値の制限を緩和し、
利用者に広範囲の座標空間を提供することにある。
The present invention relaxes the restrictions on the coordinate values that can be stored,
The purpose is to provide users with a wide range of coordinate spaces.

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

本発明は上記目的を達成するため、 利用者プログラムからの図形対応の座標値列を含む図形
データの格納指示に従って図形データをセグメントに格
納する図形データのセグメントへの格納方式に於いて、 前記利用者プログラムからの格納指示に含まれる各座標
値列それぞれについて、座標値列に含まれる全ての座標
値を図形データの座標値の表現形式で表現可能な範囲内
の座標値にすることができる比率を算出する比率算出手
段と、 該比率算出手段で算出された今回処理対象となっている
座標値列の比率と前回処理対象となった座標値列の比率
とが異なるものとなることにより、前記セグメントに新
たなページを生成して該新たなページに今回処理対象と
なった座標値列の比率を格納すると共に、前記新たなペ
ージに格納した比率と異なる比率を有する座標値列が現
れるまでの間に現れた各座標値列それぞれに対して、座
標値列の全ての座標値を前記比率算出手段で算出された
対応する比率で補正し、補正の済んだ座標値列を含む図
形データを前記新たに生成したページに格納する座標補
正手段とを設けたものである。
In order to achieve the above object, the present invention provides a method for storing graphic data in a segment, in which graphic data is stored in a segment according to an instruction from a user program to store graphic data including a coordinate value string corresponding to a graphic. For each coordinate value string included in the storage instruction from the user program, the ratio at which all coordinate values included in the coordinate value string can be converted into coordinate values within the range that can be expressed in the coordinate value expression format of the graphic data. , and the ratio of the coordinate value string to be processed this time calculated by the ratio calculation means to the ratio of the coordinate value string to be processed last time is different, so that the above-mentioned A new page is generated in the segment, the ratio of the coordinate value string that is currently being processed is stored in the new page, and the process is performed until a coordinate value string with a ratio different from the ratio stored in the new page appears. For each coordinate value string that appears in between, all coordinate values of the coordinate value string are corrected by the corresponding ratio calculated by the ratio calculation means, and the graphic data including the corrected coordinate value string is A coordinate correction means for storing in a newly generated page is provided.

〔作 用〕[For production]

比率算出手段は利用者プログラムからの格納指示に含ま
れている各座標値列それぞれについて、座標値列に含ま
れる全ての座標値を図形データの座標値の表現形式で表
現可能な範囲内の座!l!値にすることができる比率を
算出する。座標補正手段は比率算出手段で算出された今
回処理対象となっている座標値列の比率と前回処理対象
となった座標値列との比率が異なるものとなることによ
り、セグメントに新たなページを生成し、その新たなペ
ージに今回処理対象となっている座標値列の比率を格納
する。また、座標値補正手段は新たなページに格納した
比率と異なる比率を有する座標値列が現れるまでに現れ
た各座標値列それぞれに対して、座標値列の全ての座標
値を比率算出手段で算出された対応する比率で補正し、
補正の済んだ座標値列を含む図形データを上記新たに生
成したページに格納する。
For each coordinate value string included in the storage instruction from the user program, the ratio calculation means calculates a position within a range where all coordinate values included in the coordinate value string can be expressed in the coordinate value expression format of the graphic data. ! l! Calculates a ratio that can be a value. The coordinate correction means adds a new page to the segment because the ratio of the coordinate value string to be processed this time calculated by the ratio calculation means and the ratio of the coordinate value string to be processed last time is different. The ratio of the coordinate value string that is currently being processed is stored in the new page. Further, the coordinate value correction means calculates all the coordinate values of the coordinate value string using the ratio calculation means for each coordinate value string that appears until a coordinate value string having a ratio different from the ratio stored in the new page appears. Corrected with the corresponding calculated ratio,
Graphic data including the corrected coordinate value string is stored in the newly generated page.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して詳細に説明
する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明の実施例のブロック図であり、利用者プ
ログラム1と、図形処理システム2と、図形表示装置3
と、図形処理システム2と図形表示装置3とを接続する
伝送路4とを含んでいる。
FIG. 1 is a block diagram of an embodiment of the present invention, which includes a user program 1, a graphic processing system 2, and a graphic display device 3.
and a transmission line 4 that connects the graphic processing system 2 and the graphic display device 3.

図形処理システム2は比率算出手段21と、座標補正手
段22と、メモリ、ディスク等からなる格納手段23と
、読出手段24と、出力手段25とを含み、図形表示装
置3は座標変換手段32を含む図形処理部31と、表示
手段33とを含んでいる。
The graphic processing system 2 includes a ratio calculation means 21, a coordinate correction means 22, a storage means 23 consisting of a memory, a disk, etc., a reading means 24, and an output means 25, and the graphic display device 3 includes a coordinate conversion means 32. It includes a graphic processing section 31 and a display means 33.

第2図は格納手段23の記憶内容を示す図であり、複数
のセグメントSE1.SE2.・・・、SEmが格納さ
れ、各セグメントSEL、SE2.・・・、SEmはそ
れぞれ固定長のベージP1−1〜Pl−5、P2−1〜
P2−4.−、Pm−1〜Pm−5から構成されている
。また、セグメントSEmのベージPm−2のエントリ
E1には次のページPm−3へのボインクがセントされ
、エントリE2にはベージPm−2のデータ長βが、エ
ントリE3には座標データの比率りが、エントリE4〜
E(k−1>、エントリEk−E(k+i)にはそれぞ
れ第9図に示した図形データと同様の形式を有する図形
データがセントされている。尚、他のページもベージP
m−2と同様の構成を有している。また、実施例では各
ページを固定長とするが、各ページを可変長にすること
も勿論可能である。
FIG. 2 is a diagram showing the storage contents of the storage means 23, in which a plurality of segments SE1. SE2. ..., SEm are stored, and each segment SEL, SE2 . ..., SEm are fixed-length pages P1-1 to Pl-5, P2-1 to
P2-4. -, Pm-1 to Pm-5. Additionally, a blank to the next page Pm-3 is written to the entry E1 of the page Pm-2 of the segment SEm, the data length β of the page Pm-2 is written to the entry E2, and the ratio of the coordinate data is written to the entry E3. However, entry E4~
E(k-1> and entry Ek-E(k+i) respectively contain graphic data having the same format as the graphic data shown in FIG. 9. Other pages also have page P.
It has the same configuration as m-2. Further, in the embodiment, each page has a fixed length, but it is of course possible to make each page a variable length.

第3図は比率算出手段21の処理例を示す流れ図、第4
図は座標補正手段22の処理例を示す流れ図、第5図は
比率算出手段21及び座標補正手段22の動作を説明す
るための図、第6図は座標補正手段22の動作を説明す
るための図、第7図は続出手段24の処理例を示す流れ
図、第8図は出力手段25の処理例を示す流れ図であり
、以下各図を参照して本実施例の動作を説明する。
FIG. 3 is a flowchart showing an example of processing by the ratio calculation means 21;
The figure is a flowchart showing an example of the processing of the coordinate correction means 22, FIG. 5 is a diagram for explaining the operations of the ratio calculation means 21 and the coordinate correction means 22, and FIG. 7 is a flowchart showing an example of processing by the outputting means 24, and FIG. 8 is a flowchart showing an example of processing by the outputting means 25.The operation of this embodiment will be described below with reference to each figure.

利用者プログラム1は図形処理システム2に図形データ
をセグメントに格納することを依頼する場合、セグメン
トに格納する各図形データ対応の図形を規定する座標値
列、OPコード、上記図形の頂点の個数を含む格納指示
を図形処理システム2に加える3図形処理システム2内
の比率算出手段21は利用者プログラムlから格納指示
が加えられると、第3図の流れ図に示す処理を開始する
When the user program 1 requests the graphic processing system 2 to store graphic data in a segment, the user program 1 sends a coordinate value string, an OP code, and the number of vertices of the graphic that define the graphic corresponding to each graphic data to be stored in the segment. 3. When a storage instruction is added to the graphic processing system 2 from the user program 1, the ratio calculating means 21 in the graphic processing system 2 starts the process shown in the flowchart of FIG.

先ず、比率算出手段21は格納指示が加えられると、カ
ウンタiを1、比率D11を1.0、カウンタNを1と
する初期化を行ない(ステップSL>、次いで格納指示
に含まれているN番目の座標値列に対する処理を開始す
る(ステップS2)。
First, when a storage instruction is applied to the ratio calculation means 21, the ratio calculation means 21 initializes the counter i to 1, the ratio D11 to 1.0, and the counter N to 1 (step SL>, then the N included in the storage instruction Processing for the th coordinate value string is started (step S2).

今、例えば、利用者プログラム1からの格納指示に含ま
れているN番目の座標値列(N番目の図形を規定する座
標値列)が、 P+ = (P+x、P+V) Pz ” (Pzx、  Pzy) P、 =(Pfix、P、ly) であるとすると、比率算出手段21はステップS3゜S
6.S9.312により、上記N番目の座標値列に含ま
れている各点P、 (i−1〜n)のx、  y座標値
P、。、P、7が図形データの座標値の表現形式で表現
可能か否かを判定する。ここで、流れ図中のminは表
現可能範囲の負の限界値、maxは正の限界値である。
Now, for example, the Nth coordinate value string (coordinate value string that defines the Nth figure) included in the storage instruction from user program 1 is P+ = (P+x, P+V) Pz '' (Pzx, Pzy ) P, = (Pfix, P, ly), the ratio calculation means 21 performs step S3゜S.
6. According to S9.312, the x and y coordinate values P of each point P (i-1 to n) included in the Nth coordinate value string. , P, 7 can be expressed in the coordinate value expression format of graphic data. Here, min in the flowchart is a negative limit value of the expressible range, and max is a positive limit value.

そして、X、  Y座標値PiX。Then, the X and Y coordinate values PiX.

piyの一方或いは双方が範囲外であった場合にはステ
ップS4.S5、ステップS7.S8、ステップSI0
. 311、ステップS13.  S14によりN番目
の座標値列に対する新たな比率DHを計算する。
If one or both of piy is out of range, step S4. S5, step S7. S8, step SI0
.. 311, step S13. In S14, a new ratio DH for the Nth coordinate value sequence is calculated.

これをステップ315. 316によりN番目の座標値
列の全座標値に対して行なう。そして、ステップ317
により処理結果の比率DHが1.0か否かを判定し、1
.0であると判定した場合は、ステップS19により比
率り、とじて1.0を座標補正手段22に通知する。ま
た、処理結果の比率り、iが1.0でなければ、ステッ
プ318によりそのり、Iの値より大きい最小の2の乗
数を比率りおとし、ステップS19により、それを座標
補正手段22に通知する。比率D8を通知すると、比率
算出手段21はカウンタNを+1しくステップ520)
、次いで格納指示に含まれている全ての座標値列に対し
て上述した処理を行なったか否かを判断する(ステップ
521)。
This is done in step 315. Step 316 is performed for all coordinate values of the Nth coordinate value string. And step 317
Determine whether the ratio DH of the processing result is 1.0 or not by
.. If it is determined that it is 0, the ratio is calculated in step S19, and 1.0 is notified to the coordinate correction means 22. Further, if the ratio of the processing result, i, is not 1.0, the minimum multiplier of 2 larger than the value of I is reduced in step 318, and this is notified to the coordinate correction means 22 in step S19. do. Upon notification of the ratio D8, the ratio calculation means 21 increments the counter N by +1 (step 520).
Then, it is determined whether the above-described processing has been performed on all coordinate value sequences included in the storage instruction (step 521).

そして、全ての座標値列に対して処理を行なったと判断
した場合は、その処理を終了し、行なっていないと判断
した場合は、iを1.  Nを2としだ後(ステップ5
22)、ステップS2の処理に戻る。
If it is determined that all the coordinate value sequences have been processed, the processing is terminated, and if it is determined that the processing has not been performed, i is set to 1. After setting N to 2 (Step 5
22), the process returns to step S2.

例えば、座標表現形式で表現できる範囲が、第9図で説
明したように、−2(m i n) <W< 2(ma
x)であり、座標列中に(−5,0,1,0)という座
標値が含まれていたとすると、そのX座標値の負の限界
値との比較を行なうステップS3でPixく 2を満た
し、ステップ34.S5が実行され、比率DNは−5,
0/−2,0=2.5として求められる。そして、全て
の座標値に対するチエツクが完了し、ステップS17で
NOと判定され、比率り、が2.5であったとすると、
ステップ318で求まる最終的な比率データはDH−2
”=4となる。
For example, as explained in FIG. 9, the range that can be expressed in coordinate expression format is -2(min)<W<2(ma
x) and the coordinate string contains the coordinate value (-5, 0, 1, 0), then in step S3, which compares the X coordinate value with the negative limit value, Pix 2 is Fill, step 34. S5 is executed and the ratio DN is -5,
It is obtained as 0/-2, 0=2.5. Then, suppose that the check for all coordinate values is completed, the determination is NO in step S17, and the ratio is 2.5.
The final ratio data found in step 318 is DH-2
”=4.

また、座標補正手段22は利用者プログラム1がら格納
指示が加えられると、第4図の流れ図に示す処理を開始
し、先ず、カウンタNを1とする初期化を行ない(ステ
ップ531)、次いで格納指示に含まれている情報(各
図形を規定する座標値列。
Further, when the coordinate correction means 22 receives a storage instruction from the user program 1, it starts the process shown in the flowchart of FIG. 4, first initializing the counter N to 1 (step 531), and then Information included in the instructions (coordinate value string that defines each shape.

○Pコード、各図形の頂点の数)を−時的に保持しくス
テップ532) 、次いでN=1であるか否かを判断す
る(ステップ533)。ステップS33でN=1である
と判断した場合は、座標補正手段22は比率算出手段2
1から通知された1番目の座標値列に対する比率D1が
1.0であるか否かを判断する(ステップ534)。そ
して、DI =1.0であると判断した場合は新たなセ
グメントを生成し、その先頭ページにステップS32で
保持した情報中の1番目の座標値列を含む図形データを
格納した後、(ステップ535) 、そのページの所定
部分にデータ長及び比率D+をセットしくステップ53
7)、また、D、≠1.0であると判断した場合は1番
目の座標値列に含まれている全ての座標値を比率算出手
段21から通知された比率D1で割ることにより全ての
座標値を表現範囲内のものとした座標値列を含む図形デ
ータを新たな生成したセグメントの先頭ページに格納し
た後(ステップ536)、ステップS37の処理を行な
う。例えば、ステップS32で一時的に保持した1番目
の座標値列が、P+ = (Pix、  Pay) Pz = (Pzx、  PRY) P、l =  (P、lX、  P−y)であるとする
と、補正済みの座標値列は、P l= (P lx/ 
DI 、  P Iv/ DI )Pg = (Ptx
/D+ 、Pzv/D+ )P、l= (P、1x/D
+ 、P−y/D+ )となり、この補正済みの座標値
列を含む図形データがセグメントの先頭ページに格納さ
れる。
○P code, number of vertices of each figure) is temporarily held (step 532), and then it is determined whether N=1 (step 533). If it is determined in step S33 that N=1, the coordinate correction means 22
It is determined whether the ratio D1 to the first coordinate value sequence notified from 1 is 1.0 (step 534). If it is determined that DI = 1.0, a new segment is generated, and after storing graphic data including the first coordinate value string in the information held in step S32 in the first page of the segment, (step 535) Set the data length and ratio D+ in a predetermined portion of the page (step 53).
7), and if it is determined that D≠1.0, all the coordinate values included in the first coordinate value sequence are divided by the ratio D1 notified from the ratio calculation means 21. After storing the graphic data including the coordinate value string whose coordinate values are within the expression range in the first page of the newly generated segment (step 536), the process of step S37 is performed. For example, if the first coordinate value string temporarily held in step S32 is P+ = (Pix, Pay) Pz = (Pzx, PRY) P, l = (P, lX, P-y), The corrected coordinate value sequence is P l= (P lx/
DI, PIv/DI)Pg = (Ptx
/D+ , Pzv/D+ )P, l= (P, 1x/D
+, P-y/D+), and the graphic data including this corrected coordinate value string is stored in the first page of the segment.

また、ステップS33でN≠1と判断した場合は現在図
形データの格納を行なっているセグメントの最終ページ
の比率りえを求め(ステップ838)、次いで、比率算
出手段21から通知されたN番目の座標値列に対する比
率り、とステップ338で求めた比率り、とを比較する
(ステップ539)、そして、DH=Dゎであると判断
した場合は、D、=1.0であるか否かを判断する(ス
テップ340)。
If it is determined in step S33 that N≠1, the ratio of the last page of the segment in which graphic data is currently stored is determined (step 838), and then the N-th coordinate notified from the ratio calculation means 21 is calculated. The ratio to the value string is compared with the ratio obtained in step 338 (step 539), and if it is determined that DH=D, it is determined whether D, = 1.0. A determination is made (step 340).

そして、ステップ340で比率算出手段21がら通知さ
れた比率DNが1.0であると判断した場合は、最終ペ
ージにステップS32で一時的に保持したN番目の座標
値列を含む図形データを格納するのに十分な空き領域が
あれば最終ページに、なければ新たなページを生成して
そのページに上記図形データを格納する(ステップ54
1)。座標補正手段22はその後、上記最終ページの所
定部分にセントされているデータ長を変更する。また、
ステップS40でDH≠1.0であると判断した場合は
、最終ページに比率D9で補正したN番目の座標値列を
含む図形データを格納するのに十分な空き領域があれば
最終ページに、なければ新たなページを生成してそのペ
ージに上記図形データを格納しくステップ543) 、
その後、ステップ342の処理を行なう。
If it is determined in step 340 that the ratio DN notified by the ratio calculation means 21 is 1.0, graphic data including the Nth coordinate value string temporarily held in step S32 is stored in the final page. If there is enough free space to do so, the graphic data is stored in the final page, or if not, a new page is generated and the graphic data is stored in that page (step 54).
1). Thereafter, the coordinate correction means 22 changes the data length that is marked in a predetermined portion of the final page. Also,
If it is determined in step S40 that DH≠1.0, if there is sufficient free space on the last page to store the graphic data including the Nth coordinate value sequence corrected by the ratio D9, then If not, generate a new page and store the above graphic data in that page (step 543).
Thereafter, the process of step 342 is performed.

また、ステップS39でり、≠D8であると判断した場
合は、比率算出手段21から通知されたN番目の座標値
列に対する比率DHが1.0であるか否かを判断する(
ステップ544)。そして、DH=1.0であると判断
した場合はステップ332で一時的に保持したN番目の
座標値を含む図形データを新たに生成したページに格納
しくステップ545)、DH≠1.0であると判断した
場合は、ステップS32で一時的に保持したN番目の座
標値列を比率D8で補正し、補正の済んだ座標値列を含
む図形データを新たに生成したページに格納する(ステ
ップ546)。そして、ステップ345或いはステップ
S46の処理が終了すると、座標補正手段22は前ペー
ジに上記新たなページへのボインクをセットしくステッ
プ547) 、次いで上記新たなページの所定部分にデ
ータ長及び比率DNをセットしくステップ゛548) 
、次いでNを+1しくステップ゛549)、次いでステ
ップ332で保持した全ての座標値列について上述した
処理を行なったか否かを判断する(ステップ550)。
Further, if it is determined in step S39 that ≠D8, it is determined whether the ratio DH for the Nth coordinate value sequence notified from the ratio calculation means 21 is 1.0 (
Step 544). If it is determined that DH=1.0, the graphic data including the Nth coordinate value temporarily held in step 332 is stored in the newly generated page (step 545), and if DH≠1.0, If it is determined that there is, the Nth coordinate value string temporarily held in step S32 is corrected by the ratio D8, and the graphic data including the corrected coordinate value string is stored in the newly generated page (step 546). When the processing in step 345 or step S46 is completed, the coordinate correction means 22 sets a blank ink to the new page in the previous page (step 547), and then sets the data length and ratio DN to a predetermined portion of the new page. Set step 548)
Then, in step 549, N is increased by +1, and then it is determined whether the above-described processing has been performed on all the coordinate value strings held in step 332 (step 550).

そして、全ての座標値列についての処理が終了したと判
断した場合はその処理を終了し、終了していないと判断
した場合はステップS33の処理に戻る。
If it is determined that the processing for all coordinate value strings has been completed, the processing is terminated; if it is determined that the processing has not been completed, the process returns to step S33.

従って、今、例えば、第5図に一点鎖線で示すように、
図形データの表現形式で表現できる範囲Wが−2<W<
2であるときに、折線LL、L2をセグメントに格納す
るとすると、以下に述べる処理が行なわれる。
Therefore, for example, as shown by the dashed line in FIG.
The range W that can be expressed in the representation format of graphic data is -2<W<
2, and if the broken lines LL and L2 are stored in the segment, the following processing will be performed.

利用者プログラム1は4つの頂点PII+  PI!+
P+s、P+aの座標値列(1,0,1,0) 、<1
.0.−1.0) 。
User program 1 consists of four vertices PII+ PI! +
Coordinate value sequence of P+s, P+a (1,0,1,0),<1
.. 0. -1.0).

(−1,0,−1,0) 、(−1,0,1,0) 、
4つの頂点P、、、PIfi  p!!、  Pe4を
実線で結ぶことを示す。pコード及び頂点の数が4個で
あることを示す数値データを含む折線Llについての情
報と頂点Pt+、  P。+  P t3=  P !
4の座標値列(0,0,0,0)、(0,0,−4,0
)。
(-1,0,-1,0) , (-1,0,1,0) ,
Four vertices P,,,PIfi p! ! , Pe4 are shown to be connected by a solid line. Information about the broken line Ll including the p code and numerical data indicating that the number of vertices is 4, and the vertices Pt+, P. +Pt3=P!
4 coordinate value sequence (0, 0, 0, 0), (0, 0, -4, 0
).

(−4,0,−4,0) 、 (−4,0,0,0)、
4つの頂点P !1.  P 21P zx+  P 
taを実線で結ぶことを示すOPコード及び頂点の数が
4であることを示す数値を含む折線L2についての情報
とを含む格納指示を図形処理システム2に加える。
(-4,0,-4,0), (-4,0,0,0),
Four vertices P! 1. P 21P zx+ P
A storage instruction is added to the graphic processing system 2 including an OP code indicating that ta is connected with a solid line and information about the broken line L2 including a numerical value indicating that the number of vertices is four.

図形処理システム2内の比率算出手段21は上記格納指
示が加えられることにより、1番目の座標値列(折線L
Lの座標値列)についての処理を開始しくステップ52
)、4つの頂点P II+  P+2゜PI3I  P
+4の座標値に対して順次ステップS3゜S6.S9.
312の処理を行ない、それらが図形データの座標値の
表現形式で表現可能な範囲内であるか否かを判定する。
The ratio calculation means 21 in the graphic processing system 2 calculates the first coordinate value string (broken line L) by adding the above storage instruction.
Step 52 to start processing for the coordinate value string of L.
), four vertices P II+ P+2゜PI3I P
For the coordinate value of +4, steps S3 to S6 are performed sequentially. S9.
312 is performed to determine whether or not these are within a range that can be expressed in the coordinate value expression format of the graphic data.

折線Llの座標値列に含まれる座標値は全て図形データ
の座標値の表現範囲Wに入るものであるので、ステップ
S3.S6゜S9.S12の判断結果は全てNoとなる
。従って、第1番目の座標値列である折線L1の座標値
列の比率D1は1.0となり、座標補正手段22に通知
される。折線L1の座標値列についての処理が終了する
と、比率算出手段21は2番目の座標値列(折線L2の
座標値列)についての処理を開始しくステップ32)、
4つの頂点P□、  Pzi、  Pts、  P、4
の座標値に対してステップ33. 36. 39゜S1
2の処理を順次行なう。この例では図形データの座標値
の表現形式で表現可能な範囲Wは−2〈W<2であるの
で、先ず、頂点pigについて上記判定処理を行なった
時、ステップS9の判定結果がYESとなり、頂点P。
Since all the coordinate values included in the coordinate value string of the broken line Ll fall within the expression range W of the coordinate values of the graphic data, step S3. S6゜S9. All determination results in S12 are No. Therefore, the ratio D1 of the coordinate value sequence of the broken line L1, which is the first coordinate value sequence, becomes 1.0, which is notified to the coordinate correction means 22. When the processing for the coordinate value string of the broken line L1 is completed, the ratio calculation means 21 starts processing for the second coordinate value string (the coordinate value string of the broken line L2).Step 32)
Four vertices P□, Pzi, Pts, P, 4
Step 33. 36. 39°S1
Processes 2 are performed sequentially. In this example, the range W that can be expressed in the representation format of the coordinate values of the graphic data is -2<W<2, so first, when the above judgment process is performed for the vertex pig, the judgment result in step S9 is YES, Vertex P.

のY座標値−4,0が範囲Wを越えると判定される。そ
して、頂点、のY座標値−4,0が範囲Wを越えると判
定することにより、比率算出手段21はステップ310
の処理を行なう。
It is determined that the Y coordinate value of −4,0 exceeds the range W. Then, by determining that the Y coordinate value -4,0 of the vertex exceeds the range W, the ratio calculation means 21 performs step 310
Process.

この時点では、比率り、は初期値1.0であり、また、
Y座標値は−4,0、+mim=−2であるので、ステ
ップ510の判断結果はYESとなり比率算出手段21
はステップ311の処理を行ない、比率り、を2.0と
する。この後、頂点P0について上記判定処理を行なう
ことにより、ステップS3,39の判定結果がYESと
なり、ステップ34,310の処理が行なわれ、頂点オ
、について上記処理を行なうことにより、ステップS3
の判定結果がYESとなり、ステップS4の処理が行な
われるが、その時点に於いては比率D2は2.0になっ
ているので、ステップ34.SIOの判断結果はNoと
なり、比率D2の更新は行われない。そして、全ての頂
点P !L+  P tt+  P !L  P ta
について上述した処理を行なうと、比率算出手段21は
ステップ31.7の処理を行なう。この例では比率Dt
−2,0となっているので、ステップ317の判断結果
はNOとなり、比率算出手段21はステップ318. 
 S19の処理を行ない、D! =2”−4,0を座標
補正手段22に通知する。
At this point, the ratio is the initial value 1.0, and
Since the Y coordinate value is -4,0, +mim=-2, the judgment result in step 510 is YES, and the ratio calculation means 21
performs the process of step 311, and sets the ratio to 2.0. Thereafter, by performing the above determination process on vertex P0, the determination results in steps S3 and 39 become YES, and the processes in steps 34 and 310 are performed, and by performing the above process on vertex O, step S3
The determination result is YES, and the process of step S4 is performed, but since the ratio D2 is 2.0 at that point, step S34. The SIO determination result is No, and the ratio D2 is not updated. And all the vertices P! L+Ptt+P! L P ta
After performing the processing described above for the ratio, the ratio calculation means 21 performs the processing of step 31.7. In this example, the ratio Dt
-2.0, the determination result in step 317 is NO, and the ratio calculation means 21 executes step 318.
After processing S19, D! =2''-4,0 is notified to the coordinate correction means 22.

また、座標補正手段22は利用者プログラム1から上記
格納指示が加えられると、カウンタNを1としだ後(ス
テップ531) 、上記格納指示に含まれている折線L
L、L2についての情報を一時的に保持しくステップ5
32) 、次いでカウンタNが1であるか否かを判断す
る(ステップ533)。この場合、カウンタNは1とな
っているので、ステップ333の判断結果はYESとな
り、座標補正手段22はステップS34の処理を行なう
。ステップS34では比率算出手段21から通知された
1番目の座標値列(折線L1の座標値列)の比率D1が
1.0であるか否かを判定する処理が行なわれる。この
例では比率D1は1.0であるので、ステップ334の
判断結果はYESとなり、座標補正手段22は第6図に
示すように、格納手段23上に新たなセグメントSEn
を生成し、その先頭ベージPn−1に1番目の座標値列
(折線L1の座標値列)を含む図形データを格納しくス
テップ535)、その後、先頭ページPn−1の所定部
分にデータ長及び比率D+=1.0をセットする (ス
テップ537)。
Further, when the above-mentioned storage instruction is added from the user program 1, the coordinate correction means 22 sets the counter N to 1 (step 531), and then calculates the broken line L included in the above-mentioned storage instruction.
Step 5: Temporarily retain information about L and L2
32) Then, it is determined whether the counter N is 1 (step 533). In this case, since the counter N is 1, the determination result in step 333 is YES, and the coordinate correction means 22 performs the process in step S34. In step S34, a process is performed to determine whether the ratio D1 of the first coordinate value sequence (the coordinate value sequence of the broken line L1) notified from the ratio calculation means 21 is 1.0. In this example, the ratio D1 is 1.0, so the determination result in step 334 is YES, and the coordinate correction means 22 stores the new segment SEn on the storage means 23 as shown in FIG.
, and store graphic data including the first coordinate value sequence (coordinate value sequence of broken line L1) on the first page Pn-1 (step 535), and then store the data length and Set the ratio D+=1.0 (step 537).

1番目の座標値列である折線L1の座標値列に対する処
理が終了すると(折線L1対応の図形データの格納が終
了すると)、座標補正手段22はステップ349に於い
てカウンタNの値を2にし、その後ステップS33の処
理に戻る。ステップS33では前述したと同様にカウン
タNの値が1であるか否かを判定する処理が行なわれる
。この時、カウンタNは2になっているので、ステップ
333の判断結果はNoはなり、座標補正手段22はス
テップ338の処理を行なう。ステップ338ではセグ
メントSEnの最終ページPn−1の比率D!(この場
合1.0)を求める処理が行なわれ、続くステップ33
9ではステップ338で求めた比率り、 =1.0と比
率算出手段21から通知された2番目の座標値列(折線
L2の座標値列)の比率Dtとを比較する処理が行なわ
れる。この場合、2番目の座標値列の比率D!は4.0
であるので、ステップS39の判断結果はNoとなり、
ステップS44の処理が行なわれる。ステップ544に
於いてはDrが1.0であるか否かを判定する処理が行
なわれる。この例ではり、は4.0であるので、ステッ
プS46の処理が行なわれる。
When the processing for the coordinate value string of the broken line L1, which is the first coordinate value string, is completed (when the storage of the graphic data corresponding to the broken line L1 is finished), the coordinate correction means 22 sets the value of the counter N to 2 in step 349. , and then returns to the process of step S33. In step S33, the process of determining whether the value of the counter N is 1 is performed in the same manner as described above. At this time, since the counter N is 2, the determination result in step 333 is No, and the coordinate correction means 22 performs the process in step 338. In step 338, the ratio D of the last page Pn-1 of segment SEn! (1.0 in this case) is performed, followed by step 33
In step 9, a process is performed in which the ratio calculated in step 338, =1.0, is compared with the ratio Dt of the second coordinate value sequence (coordinate value sequence of broken line L2) notified from the ratio calculation means 21. In this case, the ratio of the second coordinate value sequence D! is 4.0
Therefore, the judgment result in step S39 is No.
The process of step S44 is performed. In step 544, processing is performed to determine whether Dr is 1.0. In this example, since the value is 4.0, the process of step S46 is performed.

ステップS46ではステップS32で一時的に格納した
情報中の2番目の座標値列(折線L2の座標値列) P Z、 = (0,0,0,0) P、、= (0,0,−4,0) P zj” (−4,0,−4,0) P、、= (−4,0,0,0) を比率算出手段21から通知された比率Dz=4.0で
割算し、座標値列中の全ての座標値が表現範囲W内に入
るようにする補正を行ない、補正の済んだ座標値列 p 、、 = (0,0,0,0) p、、= (0,0,−1,0) Pzs= (−1,0,−1,0) P 24 = (−1,0,0,0) を含む図形データを第6図に示すように、セグメントS
En内の新たなページPn−2に格納する。
In step S46, the second coordinate value string in the information temporarily stored in step S32 (coordinate value string of broken line L2) P Z, = (0,0,0,0) P,, = (0,0, −4,0) P zz” (−4,0,−4,0) P,, = (−4,0,0,0) is divided by the ratio Dz=4.0 notified from the ratio calculation means 21. Then, all the coordinate values in the coordinate value string are corrected so that they fall within the expression range W, and the corrected coordinate value string p,, = (0,0,0,0) p,,= (0,0,-1,0) Pzs = (-1,0,-1,0) P24 = (-1,0,0,0) As shown in Figure 6, the graphic data including S
It is stored in a new page Pn-2 in En.

この補正の済んだ図形データに含まれる座標値は第5図
の点線の折線L2’ で示す図形の頂点対応のものとな
り、全て表現範囲W内に入る。補正の済んだ座標値を含
む図形データをページPn−2に格納すると、座標補正
手段22は前ページPn−1に新たなページPn−2へ
のポインタをセットしくステップ547)、次いでデー
タ長及び比率りをページPn−2の所定部分にセットし
くステップ848)、その処理を終了する。
The coordinate values included in this corrected graphic data correspond to the vertices of the graphic indicated by the dotted broken line L2' in FIG. 5, and all fall within the expression range W. When the graphic data including the corrected coordinate values is stored in page Pn-2, the coordinate correction means 22 sets a pointer to the new page Pn-2 in the previous page Pn-1 (step 547), and then sets the data length and The ratio is set to a predetermined portion of page Pn-2 (step 848), and the process ends.

次に、格納手段23に格納されている図形データ対応の
図形を表示手段33に表示させる場合の動作を説明する
Next, an explanation will be given of the operation when displaying a figure corresponding to the figure data stored in the storage means 23 on the display means 33.

利用者プログラム1は格納手段23に格納されている図
形データ対応の図形を表示手段33に表示させる場合、
セグメント名を含む描画指示を出力する。図形処理シス
テム2内の続出手段24は利用者プログラム1から描画
指示が加えられると、第7図の流れ図に示す処理を開始
し、描画指示によって指定されたセグメント内のページ
を先頭ページから順次読出し、出力手段25に加える 
(ステップ551)。
When the user program 1 causes the display means 33 to display a figure corresponding to the figure data stored in the storage means 23,
Outputs drawing instructions including segment names. When a drawing instruction is applied from the user program 1, the successive output means 24 in the graphic processing system 2 starts the process shown in the flowchart of FIG. 7, and sequentially reads pages in the segment specified by the drawing instruction from the first page. , added to the output means 25
(Step 551).

出力手段25は読出手段24からページが加えられると
、第8図の流れ図に示すように、先ず、そのページの比
率DHが1.0であるか否かを判断する(ステップ56
1)。そして、比率り、が1.0であると判断した場合
は、加えられたページに含まれている図形データを伝送
路4を介して図形表示装置3に転送する(ステップ56
5)。また、比率D8が1.0でないと判断した場合は
、先ず、加えられたページの比率D8に見合った座標変
換のコマンドを生成し、生成した上記コマンドを図形表
示装置3に転送しくステップ562) 、次いで加えら
れたページに含まれている図形データを図形表示装置3
に転送しくステップ563)、次いで座標変換は行なわ
ないように指示するコマンドを生成して図形表示装置3
に転送する(ステップ564)。ここで、図形表示装置
3内の図形処理部31は図形処理システム2から伝送路
4を介して座標変換のコマンドが加えられた場合は、そ
のコマンドで示される座標変換の内容を保持しておき、
以後受信される図形データに対しては、座標変換手段3
2を使用して、その保持された内容に応じた座標変換を
行なわせ、座標変換の結果に基づいて表示手段33に表
示を行ない、また、座標変換を行なわないことを指示す
るコマンドを受信した場合は座標変換手段32を介して
図形を表示する処理を停止して通常通りの表示制御を行
なうものである。従って、図形表示装置3は比率り、が
1.0のページに含まれている図形データが図形処理シ
ステム2から転送された場合は、通常通り比率DH−1
,0でその図形データで規定される図形を表示手段33
に表示し、比率り、が1.0でないページに含まれてい
る図形データが転送された場合は、座標変換手段32を
使用して座標変換を行ない、座標変換の済んだ図形デー
タによって規定される図形を表示手段33に表示するこ
とになる。
When a page is added from the reading means 24, the output means 25 first determines whether the ratio DH of the page is 1.0, as shown in the flowchart of FIG. 8 (step 56).
1). If it is determined that the ratio is 1.0, the graphic data included in the added page is transferred to the graphic display device 3 via the transmission path 4 (step 56
5). If it is determined that the ratio D8 is not 1.0, first generate a command for coordinate transformation commensurate with the ratio D8 of the added page, and then transfer the generated command to the graphic display device 3 (step 562). Then, the graphic data included in the added page is displayed on the graphic display device 3.
(step 563), then generates a command instructing not to perform coordinate transformation and sends it to the graphic display device 3.
(step 564). Here, when a coordinate transformation command is added from the graphics processing system 2 via the transmission path 4, the graphics processing unit 31 in the graphics display device 3 retains the contents of the coordinate transformation indicated by the command. ,
For graphic data to be received thereafter, the coordinate conversion means 3
2 to perform coordinate transformation according to the retained contents, display the result on the display means 33 based on the result of the coordinate transformation, and receive a command instructing not to perform coordinate transformation. In this case, the process of displaying the figure via the coordinate conversion means 32 is stopped and normal display control is performed. Therefore, when graphic data included in a page with a ratio of 1.0 is transferred from the graphic processing system 2, the graphic display device 3 displays the ratio DH-1 as usual.
, 0, the display means 33 displays the figure defined by the figure data.
If graphics data contained in a page whose ratio is not 1.0 is transferred, coordinate transformation is performed using the coordinate conversion means 32, and the graphics data specified by the coordinate transformation is converted. The figure will be displayed on the display means 33.

従って、例えば、利用者プログラムlからの描画指示が
第6図に示したセグメントSEnに格納されている図形
データの描画を指示するものであるとすると、以下の処
理が行なわれる。
Therefore, for example, if the drawing instruction from the user program 1 is to draw the graphic data stored in the segment SEn shown in FIG. 6, the following processing will be performed.

続出手段24は利用者プログラムlからセグメン)SE
nを指定した描画指示が加えられると、セグメントSE
nに含まれているページPn−1゜Pn−2を先頭ペー
ジPn−1から順次読出し、出力手段25に加える (
ステップ551)。
The successive means 24 is a segment) SE from the user program l.
When a drawing instruction specifying n is added, segment SE
Pages Pn-1 and Pn-2 included in page n are sequentially read out from the first page Pn-1 and added to the output means 25 (
Step 551).

出力手段25は読出手段24からページPn−1が加え
られると、そのページPn−1の比率D8が1.0であ
るので(ステップ561) 、ページPn−1に含まれ
ている図形データを伝送路4を介して図形表示装置3に
転送する(ステップ565)。これにより、図形表示装
置3は通常通り比率DH=1.0で図形データによって
規定される図形を表示手段33に表示する。
When page Pn-1 is added from the reading means 24, the output means 25 transmits the graphic data included in page Pn-1 since the ratio D8 of that page Pn-1 is 1.0 (step 561). The data is transferred to the graphic display device 3 via the path 4 (step 565). As a result, the graphic display device 3 displays the graphic defined by the graphic data on the display means 33 with the ratio DH=1.0 as usual.

ページPn−1に引き続きページPn−2が加えられる
と、出力手段25はそのページPn−2の比率り、が4
.0であるので(ステップ561) 、比率1)ll=
4.0に見合った座標変換のコマンドを生成して出力し
くステップ562)、次いでページPn−2に含まれて
いる図形コマンドを図形表示装置3に転送しくステップ
363) 、次いで座標変換を行なわないことを指示す
るコマンドを生成して図形表示装置3に転送する(ステ
ップ564)。図形表示装置3は図形処理システム2か
ら比率DN=4.0に見合った座標変換のコマンドが加
えられると、その内容を保持し、その後、ページPn−
2に含まれている図形データが加えられると、座標変換
手段32を使用して座標変換(この場合、図形データに
含まれているX、Y座標値を4.0倍する座標変換)を
行ない、座標変換の済んだ図形データによって規定され
る図形を表示手段33に表示させる。
When page Pn-2 is subsequently added to page Pn-1, the output means 25 outputs that the ratio of page Pn-2 is 4.
.. Since it is 0 (step 561), the ratio 1)ll=
4.0, generate and output a command for coordinate transformation (step 562), then transfer the graphics command included in page Pn-2 to the graphics display device 3 (step 363), and then do not perform coordinate transformation. A command instructing this is generated and transferred to the graphic display device 3 (step 564). When the graphic display device 3 receives a command for coordinate transformation commensurate with the ratio DN=4.0 from the graphic processing system 2, it retains the contents and thereafter displays the page Pn-
When the graphic data included in 2 is added, the coordinate transformation means 32 is used to perform coordinate transformation (in this case, coordinate transformation that multiplies the X and Y coordinate values included in the graphic data by 4.0). , causes the display means 33 to display a figure defined by the figure data that has undergone coordinate transformation.

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

以上説明したように、本発明は、比率算出手段で利用者
プログラムからの格納指示に含まれる各座標値列に対す
る比率を求め、座標補正手段でその比率に従って座標値
列に含まれる座標値を補正し、補正の済んだ座標値列を
含む図形データをセグメント内の比率を有するページに
格納するようにしたものであるので、図形データの座標
値の表現形式で表現可能な範囲内の座標値は精度を落と
すことなくセグメントに格納することができ、図形デー
タの座標値の表現形式で表現可能な範囲外の座標値であ
っち多少精度を落とすだけでセグメントに格納すること
ができる効果がある。
As explained above, in the present invention, the ratio calculation means calculates the ratio for each coordinate value string included in the storage instruction from the user program, and the coordinate correction means corrects the coordinate values included in the coordinate value string according to the ratio. However, since the graphic data including the corrected coordinate value string is stored in a page with the ratio within the segment, the coordinate values within the range that can be expressed in the coordinate value expression format of the graphic data are It has the effect that it can be stored in a segment without reducing accuracy, and that coordinate values that are outside the range that can be expressed in the coordinate value expression format of graphic data can be stored in a segment with only a slight loss of accuracy.

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

第1図は本発明の実施例のブロック図、第2図は格納手
段23の記憶内容を示す図、第3図は比率算出手段21
の処理例を示す流れ図、第4図は座標補正手段22の処
理例を示す流れ図、第5図は比率算出手段21.座標補
正手段22の動作を説明するための図、 第6図は座標補正手段22の動作を説明するための図、 第7図は続出手段24の処理例を示す流れ図、第8図は
出力手段25の処理例を示す流れ図、第9図は図形デー
タの形式例を示す図及び、第10図は座標値の表現形式
例を示す図である。 図に於いて、1・・・利用者プログラム、2・・・図形
処理システム、3・・・図形表示装置、4・・・伝送路
、21・・・比率算出手段、22・・・座標補正手段、
23・・・格納手段、24・・・読出手段、25・・・
出力手段、31・・・図形処理部、32・・・座標変換
手段、33・・・表示手段。 本発明の実施例のブロック図 第1図 Ij竿W出手殺21の足埋例)示T流老図第3図(1) 比重算出手段21の処理例Σ示千流杉図男3図(2) 度緯補正手奴22の廻理例玄示す流れ図比千罪出手殺2
1及び庖オ票ネ市正手殺22の重カイ乍“た乏日月図 第5図 度標補正手段22の動作説明図 第6図 斂出手段24の処バク琢示す流パ図 第7図 出力生殺25の処理例j示T:A、れ図男8図
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing the storage contents of the storage means 23, and FIG. 3 is a diagram showing the ratio calculation means 21.
4 is a flowchart showing an example of the processing of the coordinate correction means 22, and FIG. 5 is a flowchart showing an example of the processing of the coordinate correction means 21. A diagram for explaining the operation of the coordinate correction means 22, FIG. 6 is a diagram for explaining the operation of the coordinate correction means 22, FIG. 7 is a flowchart showing a processing example of the successive means 24, and FIG. 8 is an output means FIG. 9 is a flowchart showing an example of processing No. 25, FIG. 9 is a diagram showing an example of the format of graphic data, and FIG. 10 is a diagram showing an example of the expression format of coordinate values. In the figure, 1... User program, 2... Graphic processing system, 3... Graphic display device, 4... Transmission path, 21... Ratio calculation means, 22... Coordinate correction means,
23... Storage means, 24... Reading means, 25...
Output means, 31... Graphic processing section, 32... Coordinate conversion means, 33... Display means. Block diagram of an embodiment of the present invention Fig. 1 Example of foot filling of Ij rod W output hand kill 21) Fig. 3 (1) Processing example of specific gravity calculation means 21 Fig. 3 (2) Processing example of specific gravity calculation means 21 ) The flowchart showing the example of the rotation of the latitude correction hand 22
Figure 5: An explanatory diagram of the operation of the index correction means 22; Figure 6: A diagram showing the operation of the ejection means 24 Processing example of figure output life/kill 25 j Show T: A, Re figure man 8 figure

Claims (1)

【特許請求の範囲】 利用者プログラムからの図形対応の座標値列を含む図形
データの格納指示に従って図形データをセグメントに格
納する図形データのセグメントへの格納方式に於いて、 前記利用者プログラムからの格納指示に含まれる各座標
値列それぞれについて、座標値列に含まれる全ての座標
値を図形データの座標値の表現形式で表現可能な範囲内
の座標値にすることができる比率を算出する比率算出手
段と、 該比率算出手段で算出された今回処理対象となっている
座標値列の比率と前回処理対象となった座標値列の比率
とが異なるものとなることにより、前記セグメントに新
たなページを生成して該新たなページに今回処理対象と
なった座標値列の比率を格納すると共に、前記新たなペ
ージに格納した比率と異なる比率を有する座標値列が現
れるまでの間に現れた各座標値列それぞれに対して、座
標値列の全ての座標値を前記比率算出手段で算出された
対応する比率で補正し、補正の済んだ座標値列を含む図
形データを前記新たに生成したページに格納する座標補
正手段とを含むことを特徴とする図形データのセグメン
トへの格納方式。
[Scope of Claims] In a method for storing graphic data in a segment in accordance with an instruction from a user program to store graphic data including a coordinate value string corresponding to a graphic, the method for storing graphic data in a segment comprises: For each coordinate value string included in the storage instruction, a ratio that calculates the ratio at which all coordinate values included in the coordinate value string can be converted into coordinate values within the range that can be expressed in the coordinate value expression format of the graphic data. The calculation means calculates that the ratio of the coordinate value sequence to be processed this time and the ratio of the coordinate value sequence to be processed last time calculated by the ratio calculation means are different, so that a new value is added to the segment. A page is generated and the ratio of the coordinate value string that is currently being processed is stored in the new page, and the coordinate value string that has a ratio different from the ratio stored in the new page appears before it appears. For each coordinate value string, all the coordinate values of the coordinate value string are corrected by the corresponding ratio calculated by the ratio calculation means, and the graphic data including the corrected coordinate value string is newly generated. A method for storing graphic data in a segment, the method comprising: coordinate correction means for storing in a page.
JP23113888A 1988-09-14 1988-09-14 System for storing graphic data in segment Pending JPH0279170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23113888A JPH0279170A (en) 1988-09-14 1988-09-14 System for storing graphic data in segment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23113888A JPH0279170A (en) 1988-09-14 1988-09-14 System for storing graphic data in segment

Publications (1)

Publication Number Publication Date
JPH0279170A true JPH0279170A (en) 1990-03-19

Family

ID=16918879

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23113888A Pending JPH0279170A (en) 1988-09-14 1988-09-14 System for storing graphic data in segment

Country Status (1)

Country Link
JP (1) JPH0279170A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6740999B1 (en) 1999-07-23 2004-05-25 Nidec Copal Corporation Motor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6740999B1 (en) 1999-07-23 2004-05-25 Nidec Copal Corporation Motor
US6954015B2 (en) 1999-07-23 2005-10-11 Nidec Copal Corporation Motor
US7129607B2 (en) 1999-07-23 2006-10-31 Nidec Copal Corporation Motor

Similar Documents

Publication Publication Date Title
US4984183A (en) Graphics display controller for transferring figure data to overlapping portions of destination area and drawing-enable area defined by clipping rectangle
JPH0279170A (en) System for storing graphic data in segment
US4991117A (en) Figure data display method and system
JPH07118024B2 (en) Pattern data generation method
JPH06133241A (en) Screen display device
JPS5854440A (en) Display picture changing device in display device
JP2606580B2 (en) Numerical data calculation method
JP2000029383A (en) Graphic display method, graphic display device and recording medium
JPS5882296A (en) Dot matrix display system
JPH0715623B2 (en) Display device
JPH0344347B2 (en)
JPH09185882A (en) First-in first-out memory device with different size of input output data and its method
JP2592793B2 (en) Character processing method
JP2776347B2 (en) Drawing device for printer
JP2762768B2 (en) Outline data drawing device
JPH0133794B2 (en)
JPS6242238A (en) Storage device for queue
JPS603035A (en) Storage device
JP2996583B2 (en) Document processing apparatus and document processing method
JPH02114327A (en) Dynamic changing system for access information
JPH01172994A (en) Display device
JPH0584939B2 (en)
JPH06314089A (en) Character display device
JPS62231346A (en) Data storage system
JPS5831381A (en) Graphic generator