JPH02309460A - Method for plotting graphic - Google Patents
Method for plotting graphicInfo
- Publication number
- JPH02309460A JPH02309460A JP1131811A JP13181189A JPH02309460A JP H02309460 A JPH02309460 A JP H02309460A JP 1131811 A JP1131811 A JP 1131811A JP 13181189 A JP13181189 A JP 13181189A JP H02309460 A JPH02309460 A JP H02309460A
- Authority
- JP
- Japan
- Prior art keywords
- graphic data
- graphic
- data
- enlarged
- original
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 16
- 238000010586 diagram Methods 0.000 description 8
- 238000007796 conventional method Methods 0.000 description 2
Landscapes
- Image Processing (AREA)
- Digital Computer Display Output (AREA)
- Image Generation (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は元の図形を同じ表示画面上に拡大して描画する
ための図形描画方法に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a graphic drawing method for enlarging and drawing an original graphic on the same display screen.
第6図は従来の図形描画方法の説明図である。 FIG. 6 is an explanatory diagram of a conventional graphic drawing method.
いま、第6図(イ)に実線で示す図形データaをその描
画領域が重複した状態で破線で示す如き図形Aに拡大し
て描画する場合には、図形データaをそのまま単純に拡
大すると図形データa、従ってまた図形データAが損な
われることがある。このため通常は図形データaを一時
的に第6図(ロ)に示す如く一時的記憶領域に図形デー
タaそのままの態様で、又は図形データAの如くに拡大
した態様で転送した後、次にこの一時的記憶領域の図形
データaを転送先に拡大転送し、又は図形データAをそ
のままの態様で転送して図形データaを図形データAに
拡大した描画を行うようになっている。Now, when drawing the figure data a shown by the solid line in FIG. 6(a) by enlarging it into a figure A as shown by the broken line with its drawing area overlapping, if the figure data a is simply enlarged as it is, the figure Data a, and thus also graphic data A, may be damaged. For this reason, usually, the graphic data a is temporarily transferred to a temporary storage area as shown in FIG. The graphic data a in this temporary storage area is enlarged and transferred to the transfer destination, or the graphic data A is transferred as is, and the graphic data a is enlarged to the graphic data A and drawn.
ところで上述した如き従来方法にあっては図形データa
を一旦一時的記憶領域に転送した後、再び転送先の位置
に転送するため、2度の処理過程が必要となり、実行速
度の低下は避れ得ず、また一時的記憶領域のためのメモ
リの使用負担が増大する等の問題があった。By the way, in the conventional method as described above, the graphic data a
is transferred to the temporary storage area and then transferred again to the destination location, so two processing steps are required, which inevitably reduces execution speed and also reduces the amount of memory available for the temporary storage area. There were problems such as increased usage burden.
本発明はかかる事情にNろなされたものであって、その
目的とするところは一時的記憶領域のためのメモリの使
用を不必要化すると共に、拡大描画の実行速度の高速化
を図れるようにした図形描画方法を提供するにある。The present invention has been made in consideration of such circumstances, and its purpose is to make it unnecessary to use memory for a temporary storage area, and to speed up the execution speed of enlarged drawing. To provide a graphic drawing method.
本発明に係る図形描画方法は図形の拡大中心点を求め、
この中心点を通る直線で図形を複数部分に分割し、分割
された図形部分毎に拡大描画を行う。The figure drawing method according to the present invention calculates the enlarged center point of the figure,
The figure is divided into a plurality of parts by a straight line passing through this center point, and each divided figure part is enlarged and drawn.
本発明にあってはこれによって、元の図形データと拡大
後の図形データとが同時的に描画状態となることを回避
し得て、拡大描画に伴う図形データの損傷を生じない。According to the present invention, it is thereby possible to prevent the original graphic data and the enlarged graphic data from being drawn at the same time, and damage to the graphic data due to enlarged drawing does not occur.
[実施例]
以下本発明をその実施例を示す図面に基づき具体的に説
明する。[Examples] The present invention will be specifically described below based on drawings showing examples thereof.
第1図〜第3図は本発明方法の主要過程を示す説明図で
ある。先ず第1図に実線で示す元の図形データaをこの
位置とオーバラップした状態で拡大して破線で示す如き
拡大図形データAを得ようとする場合には、元の図形デ
ータaの各頂点と拡大図形データAの各頂点とを結ぶ直
線p+q1r、 Sを表す式を求めて直線p+q+r+
Sの交点Oを求める。1 to 3 are explanatory diagrams showing the main steps of the method of the present invention. First, when trying to obtain enlarged graphic data A as shown by the broken line by enlarging the original graphic data a shown by the solid line in FIG. 1 while overlapping this position, each vertex of the original graphic data a is A straight line p+q1r connecting the vertices and each vertex of the enlarged figure data A, and a straight line p+q+r+
Find the intersection O of S.
この交点Oは元の図形データaを拡大図形データAに拡
大する拡大中心点である。This intersection O is an expansion center point for expanding the original graphic data a to enlarged graphic data A.
次に第2図に示す如く交点Oを原点とする二次元座標軸
(例えば横軸にy軸、縦軸にy軸)を作成し、このy軸
、y軸で分割して各象限r、 n。Next, as shown in Figure 2, create a two-dimensional coordinate axis (for example, the horizontal axis is the y-axis and the vertical axis is the y-axis) with the intersection point O as the origin, and divide it along the y-axis and the y-axis to create each quadrant r, n. .
m、 ■に含まれる図形データ部分a l+ a II
l a llI+alVとし、各象限、例えば第1象限
についてみると、第3図に示す如く第1象附中に含まれ
る分割された図形データ部分a、について拡大描画を行
って拡大図形データ部分A、を得る。Figure data part a l+ a II included in m, ■
l a llI+alV, and looking at each quadrant, for example, the first quadrant, as shown in FIG. obtain.
以下同様にして第n、I[I’、IV象限についても同
様にして各象限毎に含まれる図形データ部分a1.。Similarly, for the n-th, I[I', and IV quadrants, the graphic data portion a1 included in each quadrant. .
a IIl、 a IVを拡大描画して第2図に示す如
き拡大図形データ部分A、、AH□1.AHを得る。a IIl, a IV are enlarged and drawn to produce enlarged figure data portions A,, AH□1. as shown in FIG. Get AH.
第4図は本発明方法の主要過程を示すフローチャートで
あり、第1図に示す如き元の図形データaと拡大図形デ
ータAとの相対応する頂点を結ぶ直線p+q+r+ S
の交点である中心点Oを求め(ステップS1)、次いで
第2図に示す如くこの中心点0を原点として二次元座標
系を作成しくステップS2)、第3図に示す如くI〜■
象限の夫々に含まれる図形データ部分aI+a!l+
alll+aIV毎に夫々拡大描画を行う (ステッ
プS3)。FIG. 4 is a flowchart showing the main steps of the method of the present invention, in which a straight line p+q+r+S connecting corresponding vertices of the original graphic data a and the enlarged graphic data A as shown in FIG.
Find the center point O, which is the intersection of
Graphic data portion aI+a! included in each quadrant! l+
Enlarged drawing is performed for each all+aIV (step S3).
第5図は拡大描画の詳細を示すフローチャートであり、
先ず各象限I〜■毎に含まれる図形データ部分a+、a
++、a++++a+vについて夫々各頂点のX座標値
、y座標値夫々についての最大値と最小値を求める(ス
テップ511)。例えば第3図に示す第■象限の場合に
ついてみると、X座標値XI+Xt+1座標値:)’+
+y2の最大値はX 7.y Iまた最小値はχ2.y
2である。FIG. 5 is a flowchart showing details of enlarged drawing,
First, the graphic data parts a+, a included in each quadrant I~■
The maximum and minimum values of the X and Y coordinates of each vertex are determined for ++, a++++a+v (step 511). For example, in the case of quadrant ■ shown in Fig. 3, the X coordinate value XI + Xt + 1 coordinate value:)' +
The maximum value of +y2 is X7. y I and the minimum value is χ2. y
It is 2.
次に例えばX座標値における最大値X、と最小値XZと
についてX、≧χ2か否かを判断しくステップ512)
、X1≧X2でないときは終了し、またx1≧Xtのと
きは座標点(x l+ y +)から(X、。Next, for example, it is determined whether or not X≧χ2 for the maximum value X and the minimum value XZ in the X coordinate value (Step 512)
, when X1≧X2, the process ends, and when x1≧Xt, from the coordinate point (x l+ y +) to (X,.
yz)にわたる垂直方向の図形データについて、図形の
拡大を行う (ステップ513)。例えば垂直方向のメ
モリセルの一列又は複数部分(例えば垂直走査線)のデ
ータを1単位として、これを拡大描画する。X軸座標値
X1から1を減算しくステップ514)、再びステップ
512にてX1≧X2か否かを判断し、上記した過程を
反復する。yz), the graphic is expanded in the vertical direction (step 513). For example, the data of one column or a plurality of parts (for example, vertical scanning lines) of memory cells in the vertical direction is taken as one unit and is enlarged and drawn. 1 is subtracted from the X-axis coordinate value X1 (step 514), and it is determined again in step 512 whether X1≧X2, and the above-described process is repeated.
これによって座標点(X+、y+)側から座標点(X2
゜y+)側に向けて複数回にわたって拡大描画が行われ
X1≧X2でなくなると、換言すれば(χz+Y+)に
迄拡大描画されると終了する。As a result, from the coordinate point (X+, y+) side to the coordinate point (X2
Enlarged drawing is performed multiple times toward the °y+) side and ends when X1≧X2 is no longer satisfied, in other words, when enlarged drawing is performed to (χz+Y+).
なお、上述の実施例では、元の図形データaを2次元座
標系のy軸、y軸に分割する構成について説明したが、
これに限らず、例えば第1図のp。Note that in the above embodiment, a configuration was explained in which the original graphic data a is divided into the y-axis and the y-axis of a two-dimensional coordinate system.
For example, p in FIG. 1 is not limited to this.
q、r、 s直線で分割することとしてもよい。It may also be divided by q, r, s straight lines.
また、上述の実施例では縦方向のデータを一単位毎に拡
大描画する場合について説明したが、何らこれに限るも
のではなく、例えば横方向のデータを一単位毎又は複数
単位毎に拡大描画してよいことはいうまでもない。Furthermore, in the above-described embodiment, a case has been described in which data in the vertical direction is enlarged and drawn for each unit, but the invention is not limited to this. For example, data in the horizontal direction may be enlarged and drawn for each unit or multiple units. Needless to say, it is a good thing.
更に、一単位はメモリセルの一列分に限らず、複数列或
いは複数行を一単位としてもよいことは勿論である。Furthermore, one unit is not limited to one column of memory cells, but it goes without saying that one unit may include multiple columns or multiple rows.
〔発明の効果]
以上の如く本発明方法にあっては元の図形データと拡大
図形データとが重なる場合においても一時的記憶領域を
用いることなく拡大描画することが可能になって処理の
高速化が図れる等、本発明は優れた効果を奏するもので
ある。[Effects of the Invention] As described above, in the method of the present invention, even when the original graphic data and enlarged graphic data overlap, it is possible to perform enlarged drawing without using a temporary storage area, thereby speeding up the processing. The present invention has excellent effects such as being able to achieve the following.
第1図〜第3図は本発明方法の主要過程を示す説明図、
第4図、第5図は本発明方法の主要過程を示すフローチ
ャート、第6図は従来方法の主要過程を示す説明図であ
る。
a・・・元の図形データ A・・・拡大図形データp
、q、r、s・・・直線
なお、図中、同一符号は同一、又は相当部分を示す。
代理人 大 岩 増 雄第 1
図
第 2 図
■
第 3 図
弔 4 図
弔5図1 to 3 are explanatory diagrams showing the main steps of the method of the present invention,
4 and 5 are flowcharts showing the main steps of the method of the present invention, and FIG. 6 is an explanatory diagram showing the main steps of the conventional method. a...Original figure data A...Enlarged figure data p
, q, r, s...straight line In the drawings, the same reference numerals indicate the same or equivalent parts. Agent Masuo Oiwa 1st
Diagram 2 Diagram ■ Diagram 3 Condolence 4 Diagram 5
Claims (1)
ータを描画する方法において、 元の図形データと拡大後の図形データとに基づいて拡大
中心点を求める過程と、この拡大中心点を通る直線にて
元の図形を複数の図形部分に分割する過程と、分割され
た各図形部分毎に拡大描画する過程とを含むことを特徴
とする図形描画方法。(1) In a method of drawing enlarged figure data in a state where it overlaps with the original figure data, there is a process of finding an enlargement center point based on the original figure data and the enlarged figure data, and a process through which the enlarged center point is drawn. A figure drawing method comprising the steps of dividing an original figure into a plurality of figure parts along straight lines, and enlarging and drawing each divided figure part.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1131811A JP2784591B2 (en) | 1989-05-24 | 1989-05-24 | Drawing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1131811A JP2784591B2 (en) | 1989-05-24 | 1989-05-24 | Drawing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH02309460A true JPH02309460A (en) | 1990-12-25 |
JP2784591B2 JP2784591B2 (en) | 1998-08-06 |
Family
ID=15066662
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1131811A Expired - Fee Related JP2784591B2 (en) | 1989-05-24 | 1989-05-24 | Drawing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2784591B2 (en) |
-
1989
- 1989-05-24 JP JP1131811A patent/JP2784591B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2784591B2 (en) | 1998-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH087126A (en) | Projection drawing preparing method | |
JP3642259B2 (en) | Multi-screen display device | |
JPH02309460A (en) | Method for plotting graphic | |
JP3943975B2 (en) | Information processing method and apparatus | |
JP3492138B2 (en) | Linear fisheye magnification display method | |
JP3433763B2 (en) | Region inside / outside determination method and computer game machine using the same | |
JPH021634Y2 (en) | ||
JPH0383183A (en) | Broken line drawing system | |
JPH05257632A (en) | Multiwindow display processing system | |
JP2642374B2 (en) | Figure clipping method | |
JPH0373073A (en) | Information processor with picture editing function | |
JP3492897B2 (en) | 3D spatial plane fisheye enlarged display method, recording medium storing 3D spatial plane fisheye enlarged display program, and 3D spatial plane fisheye enlarged display device | |
JPH03211675A (en) | Cad drawing display system | |
JPH03189880A (en) | Copying system for bit map rectangular data | |
JPS63158671A (en) | Stereoscopic picture display method | |
JPS62293383A (en) | Graphic processing system | |
JPH01250178A (en) | Device and method for raster operation | |
JPS6386080A (en) | Cad system | |
JPS63231681A (en) | Hidden-line detecting method | |
JPH03168879A (en) | Method for plotting graphic | |
JPS6224371A (en) | Graphic processing system | |
JPH0821085B2 (en) | Clipping circuit | |
JPH05210480A (en) | Rectangular cursor display device | |
JPH02309452A (en) | Graphic data control system for display device | |
JPH05165974A (en) | Network diagram plotting system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |