JPS62251980A - Grid display system - Google Patents
Grid display systemInfo
- Publication number
- JPS62251980A JPS62251980A JP61094551A JP9455186A JPS62251980A JP S62251980 A JPS62251980 A JP S62251980A JP 61094551 A JP61094551 A JP 61094551A JP 9455186 A JP9455186 A JP 9455186A JP S62251980 A JPS62251980 A JP S62251980A
- Authority
- JP
- Japan
- Prior art keywords
- grid
- axis
- display
- area
- displayed
- 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
Links
- 238000000034 method Methods 0.000 claims abstract description 14
- 230000008859 change Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Landscapes
- Processing Or Creating Images (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、図形を描画・表示することが可能な図形処理
システムにおいて、描画補助としてグリッドを表示する
方式に係り、特に傾いた図形、透視図形を描画したり、
図形を変形させたりするのに好適なグリッドの表示方式
に関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a method of displaying a grid as a drawing aid in a graphic processing system capable of drawing and displaying figures, and particularly relates to a method for displaying a grid as a drawing aid, especially for tilted figures and perspective draw shapes or
The present invention relates to a grid display method suitable for transforming figures.
図形処理機能を備えたパーソナルコンピュータや、ワー
クステーションの出現に伴い、図形を描きたい場合、マ
ウス・デジタイザー等のポインティングデバイスを用い
て、ディスプレイ画面上で対話的に作図できるようにな
った。それらには二次元の簡易図形をサポートしたもの
から、三次元図形を扱えるものもある0図形処理で、図
形を描画したり編集したりする場合、人間が方眼紙を用
いて図形を描くのと同様に、描画の補助として、ディス
プレイ画面上に、グリッドと呼ばれる格子を表示する機
能がある0図形処理をサポートしたシステムで表示する
グリッドの多くは、縦横の格子状にドツト・破線等を用
いて、固定ピッチで表示される。また、グリッドには、
マウス等で入力した不正確な座標値を補正するための丸
め機能がある6
〔発明が解決しようとする問題点〕
従来のグリッド表示方式では、垂直/水平線からなる図
形とか、垂直/水平線が軸となっている図形を描く場合
、及びすでに描画済の図形をグリッドに揃えるといった
場合には有効である。しかし、傾いた図形や、三次元的
な透視図形を描く場合、グリッドを補助として利用でき
ない、傾いた図形を描く場合、最初に正立国形を描き、
それを任意角回転するという方法、あるいは、パラメー
タとして傾斜角度を与えて描画するという方法等で実現
できる。上記方法による場合、必ずしも所望の位置に描
画できずドラッギング等による位置調整が必要となる。With the advent of personal computers and workstations equipped with graphic processing functions, it has become possible to draw figures interactively on a display screen using a pointing device such as a mouse or digitizer. Some of them support simple two-dimensional figures, while others can handle three-dimensional figures.When drawing or editing figures in 0 figure processing, it is similar to how humans draw figures using graph paper. Similarly, many of the grids displayed in systems that support graphic processing, which have the function of displaying a grid called a grid on the display screen as a drawing aid, use dots, broken lines, etc. in a vertical and horizontal grid pattern. , displayed at a fixed pitch. Also, the grid has
There is a rounding function to correct inaccurate coordinate values entered with a mouse, etc. 6 [Problems to be solved by the invention] In the conventional grid display method, figures consisting of vertical/horizontal lines, etc. This is effective when drawing a figure that is , or when aligning already drawn figures to the grid. However, when drawing a tilted figure or a three-dimensional perspective figure, or when drawing a tilted figure for which the grid cannot be used as an aid, first draw an erect country shape.
This can be realized by rotating it by an arbitrary angle, or by giving a tilt angle as a parameter and drawing it. In the case of the above method, it is not necessarily possible to draw at the desired position, and position adjustment by dragging or the like is required.
また、三次元的な透視図形を二次元画面上で直接描画す
ることは困難である。Furthermore, it is difficult to draw three-dimensional perspective figures directly on a two-dimensional screen.
上記の様に、図形処理においてグリッドの機能を有効に
活用できない、また、図形描画時においても、操作性が
良くない。As mentioned above, the function of the grid cannot be used effectively in graphic processing, and the operability is not good even when drawing graphics.
本発明の目的は、」−記欠点を改良し、グリッドの機能
を有効活用することによって、容易な図形描画処理を提
供することと、操作性を良くすることにある。An object of the present invention is to provide easy graphic drawing processing and improve operability by improving the drawbacks mentioned above and effectively utilizing the functions of the grid.
上記目的を達成するために、本発明では1図形の描画目
的に応じて格子間隔・傾きを任意に設定・変更可能とす
ることによって実現する。In order to achieve the above object, the present invention is achieved by making it possible to arbitrarily set and change the grid spacing and inclination depending on the purpose of drawing one figure.
上述の如く本発明の構成によれば、任意の方向を持つグ
リッドを画面J二の任意の区画部分に開示せしめること
ができ、予め与えられた図形等の軸に合わせたグリッド
設定や変更が容易となり、単純な操作で複雑な図形処理
がtlJ能となる。As described above, according to the configuration of the present invention, a grid having an arbitrary direction can be displayed in an arbitrary section of the screen J2, and it is easy to set or change the grid according to the axis of a pre-given figure, etc. Therefore, complex graphical processing becomes possible with simple operations.
以下、本発明を図に従って詳細に説明する。 Hereinafter, the present invention will be explained in detail with reference to the drawings.
第1図は、本発明の一実施例を示すブロック図であり、
第2図は、第1図中のグリッド表示制御部12の動作を
説明する為のフローチャートである。FIG. 1 is a block diagram showing one embodiment of the present invention,
FIG. 2 is a flowchart for explaining the operation of the grid display control section 12 in FIG.
第1図において、11はコマンド入力装置である。1.
2のグリッド表示制御部は、コマンド入力装置11から
グリッド表示指示のコマンドを受は取ると、ディスプレ
イ画面上の指定領域内に表示すべく、あらたにグリッド
の表示位置を設定する。In FIG. 1, 11 is a command input device. 1.
When the grid display control section 2 receives a grid display instruction command from the command input device 11, it newly sets the display position of the grid so as to display it within a designated area on the display screen.
設定位置に基づき、フレームメモリ13を書き換える。The frame memory 13 is rewritten based on the set position.
14は、結果を表示するための表示装置である。14 is a display device for displaying the results.
次に、第2図のフローチャートに基づいて第]。Next, based on the flowchart of FIG.
図のグリッド表示制御部の動作を説明する。まず処理2
1で、X軸の格子間隔d8を入力する。処理22でY軸
の格子間隔d、を入力する。処理23で、X軸の傾斜角
度OKを入力する。処理24でX軸とY軸のなす角度θ
xyを入力する。このとき、θ8.θIFは、下記範囲
内とする。The operation of the grid display control section shown in the figure will be explained. First, process 2
1, input the X-axis grid spacing d8. In step 22, the Y-axis grid spacing d is input. In step 23, the OK inclination angle of the X axis is input. In process 24, the angle θ between the X axis and the Y axis
Enter xy. At this time, θ8. θIF is within the following range.
0(Ox−Oxy<L80’
また、d、、d、は、ディスプレイの解像度に関係する
ため、システム扱える最小単位以上とする。0(Ox-Oxy<L80' In addition, d,, d, is related to the resolution of the display, so it should be equal to or larger than the minimum unit that can be handled by the system.
次に処理25で、領域の表示位置、大きさ、領域内原点
座標位置等を管理する領域管理テーブルより、グリッド
を表示すべき対象領域の表示位置(、、y) 、大きさ
くw、h)、領域内原点座標位置(o、、oy)等の領
域情翰を検出する。入力データd X T d y H
Ot 1 0xyと、領域情報*H1gWHh、Ox、
Oyとから、処理26では、グリッドのX軸方向を構成
する線分列LXtの始点(s*+tllyt)、終点(
e□p e yi) (1” 1 v 2 +・・・
n〕座標を算出すると同様に、処理27では、Y軸方向
を構成する線分列L Y 7の始点(AxJ+ 5ya
)終点(0□+ eyt) (J=L + 2 、・・
・m)座標を算出する。T、X、LYにより領域内にグ
リッドを表示する。また、グリッドの機能であるマウス
等のポインティングデバイスにより人力した座櫟値(X
p。Next, in process 25, the display position (,,y), size w, h) of the target area where the grid should be displayed is determined from the area management table that manages the area display position, size, origin coordinate position within the area, etc. , area information such as the origin coordinate position (o, oy) within the area is detected. Input data d X T d y H
Ot 1 0xy, area information *H1gWHh, Ox,
Oy, in process 26, the starting point (s*+tllyt) and the ending point (
e□p e yi) (1” 1 v 2 +...
n] Similar to calculating the coordinates, in process 27, the starting point (AxJ+ 5ya
) End point (0□+eyt) (J=L+2,...
・m) Calculate the coordinates. A grid is displayed within the area using T, X, and LY. In addition, the command value (X
p.
yp)の補正は、LXと丁、Yの交点座標の集合、Pk
CPxk、 Pyk)(k = 1. 、2 、− Q
)から。yp) is a set of intersection coordinates of LX, D, and Y, Pk
CPxk, Pyk) (k = 1., 2, -Q
)from.
1 XF P Xb l≦ −d。1 XF P Xb l≦-d.
1yp−Pyhl≦ −dz
の条件を満たす座標Pb (Pxb、 Pyk)を補正
値とする。The coordinate Pb (Pxb, Pyk) that satisfies the condition 1yp-Pyhl≦-dz is set as the correction value.
次に具体例を示す。第3図は、0゜=O”、Dxv=9
0” とし従来のグリッドを表示した例である。A specific example is shown next. Figure 3 shows 0°=O'', Dxv=9
This is an example of displaying a conventional grid.
例えば、第3図の様に三角形を描き、更に、三角形の一
斜辺と矩形の一辺が平行で、かつ距@dである矩形を描
きたい場合、第3図の表示状態で、直接描画することは
困震である。上記処理を施すことによって、グリッドを
三角形の斜辺と一致するように傾けて表示する。つまり
、Oxを三角形の斜辺の傾きと同じに設定し、三角形の
斜辺を基準に、グリッドを変更表示することによって、
第4図の形に矩形を描くことができる。For example, if you want to draw a triangle as shown in Figure 3, and then draw a rectangle where one hypotenuse of the triangle is parallel to one side of the rectangle, and the distance is @d, you can draw directly in the display state of Figure 3. is a quake. By performing the above processing, the grid is displayed tilted to match the hypotenuse of the triangle. In other words, by setting Ox to be the same as the slope of the triangle's hypotenuse, and changing and displaying the grid based on the triangle's hypotenuse,
A rectangle can be drawn in the shape shown in Figure 4.
第4図では、従来のグリッドを回転した例を示したが、
次にOxy≠90°の例を示す、第5図の(a)の様な
図形を描きたい場合、第5図の(b)図の様にグリッド
を表示することによって、容易に描画することができる
。Figure 4 shows an example of rotating the conventional grid.
Next, if you want to draw a figure like the one shown in Figure 5 (a), which shows an example of Oxy≠90°, you can easily draw it by displaying a grid as shown in Figure 5 (b). Can be done.
また1本実施例では領域単位にグリッドを表示可能なた
め、第6図の様に、表示画面を領域単位に分割すること
によって、領域内描画目的に合わせてそれぞれ異なった
グリッドを表示できる。Furthermore, in this embodiment, since grids can be displayed in units of areas, by dividing the display screen into units of areas as shown in FIG. 6, different grids can be displayed depending on the purpose of drawing within the area.
本実施例では、X軸、Y軸の格子間隔が固定である例を
示したが、xmの傾斜角08.X軸とY軸のなす角OX
jを変化させることによって、第7図の様に、三次元的
な透視図を描画するのに有効なグリッドを表示すること
ができる。In this embodiment, an example was shown in which the grid spacing of the X-axis and Y-axis is fixed, but the inclination angle of xm is 08. Angle OX between the X and Y axes
By changing j, it is possible to display a grid that is effective for drawing a three-dimensional perspective view, as shown in FIG.
以上、本実施例によれば、描画目的に合った有効なグリ
ッドを表示することができる。As described above, according to this embodiment, it is possible to display an effective grid that matches the drawing purpose.
本発明によれば、回転・拡大/縮小等といった図形編集
機能、及び図形描画機能だけでは描画しにくい図形も描
画できるうえに、描画補助としてのグリッドの機能を有
効に活用できるので、図形処理の操作性に効果がある。According to the present invention, it is possible to draw figures that are difficult to draw only with figure editing functions such as rotation, enlargement, reduction, etc. and figure drawing functions, and it is also possible to effectively utilize the grid function as a drawing aid. It has an effect on operability.
また、本発明を既描画図形の編集と連動することによっ
て、図形変形が可能となる。Further, by linking the present invention with editing of already drawn figures, figure transformation becomes possible.
第1図は本発明の一実施例を示すブロック図。
第2図は、グリッド表示制御部の動作手順を示すフロー
チャート、第3図は従来のグリッド表示方式の例、第4
図、第5図は、本発明を適用し図形を描画した例、第6
図は本発明を、複数領域に適用した例、第7図は本発明
の変化形の適用例。
1・・・表示画面、2・・・グリッド、3・・・描画図
形、4・・・領域、11・・・コマンド入力装置、12
・・・グリッド表示制御部、13・・・フレームメモリ
、14・・・表Z Z 図
fJ 1 図
Z 3 図
舅 4 ロ
第 5 図
π 〆 口
■7図FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2 is a flowchart showing the operation procedure of the grid display control unit, FIG. 3 is an example of a conventional grid display method, and FIG.
Figure 5 shows an example of drawing a figure by applying the present invention, and Figure 6 shows an example of drawing a figure by applying the present invention.
The figure shows an example in which the present invention is applied to multiple areas, and FIG. 7 shows an example in which a variation of the present invention is applied. DESCRIPTION OF SYMBOLS 1... Display screen, 2... Grid, 3... Drawing figure, 4... Area, 11... Command input device, 12
...Grid display control unit, 13...Frame memory, 14...Table Z Z Figure fJ 1 Figure Z 3 Figure 4 B Figure 5 π End ■7 Figure
Claims (1)
する方式において、グリッドの格子間隔・傾きを任意に
設定・変更できる機能、更に画面上に複数個表示できる
ことを特徴とするグリッド表示方式。1. A grid display method for displaying a grid as a drawing aid in graphic processing, which is characterized by the ability to arbitrarily set and change the lattice spacing and inclination of the grid, and the ability to display a plurality of grids on the screen.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61094551A JPS62251980A (en) | 1986-04-25 | 1986-04-25 | Grid display system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61094551A JPS62251980A (en) | 1986-04-25 | 1986-04-25 | Grid display system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62251980A true JPS62251980A (en) | 1987-11-02 |
Family
ID=14113451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61094551A Pending JPS62251980A (en) | 1986-04-25 | 1986-04-25 | Grid display system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62251980A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6417156A (en) * | 1987-07-13 | 1989-01-20 | Hitachi Software Eng | Coordinate input system for graphic processor |
JPH01130264A (en) * | 1987-11-16 | 1989-05-23 | Canon Inc | Document processor |
JPH01236367A (en) * | 1988-03-17 | 1989-09-21 | Hitachi Software Eng Co Ltd | Coordinate inputting system for graphic processor |
JPH06223154A (en) * | 1992-11-26 | 1994-08-12 | Matsushita Electric Ind Co Ltd | Distance measuring instrument for stereo pattern |
-
1986
- 1986-04-25 JP JP61094551A patent/JPS62251980A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6417156A (en) * | 1987-07-13 | 1989-01-20 | Hitachi Software Eng | Coordinate input system for graphic processor |
JPH01130264A (en) * | 1987-11-16 | 1989-05-23 | Canon Inc | Document processor |
JPH01236367A (en) * | 1988-03-17 | 1989-09-21 | Hitachi Software Eng Co Ltd | Coordinate inputting system for graphic processor |
JPH06223154A (en) * | 1992-11-26 | 1994-08-12 | Matsushita Electric Ind Co Ltd | Distance measuring instrument for stereo pattern |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7446783B2 (en) | System and method for manipulating an image on a screen | |
US20040210852A1 (en) | System for dynamically mapping input device movement as a user's viewpoint changes | |
JPH05266167A (en) | Method for controlling movement of graphic object | |
CN107230239A (en) | Graph drawing method, device and equipment | |
JPS62251980A (en) | Grid display system | |
JPH0916803A (en) | Graphic input device | |
JP2002269579A (en) | Plotting method | |
JP2625600B2 (en) | Figure moving deformation method and apparatus | |
JP4236759B2 (en) | Graphic object allocation device | |
JP2854174B2 (en) | Enlargement drawing method in numerical controller | |
JPS62102369A (en) | Generation of 3-d perspective projection of graphic object | |
JP2972560B2 (en) | Display control method for tabular data | |
JP2751114B2 (en) | Character processing method | |
JPH07105395A (en) | Information processing equipment | |
JP4514943B2 (en) | Image creating method and apparatus | |
JPH01134521A (en) | Input/correction device for three-dimensional coordinate | |
JPS6334670A (en) | Three-dimensional coordinate value extraction method | |
JPH05257632A (en) | Multiwindow display processing system | |
JP3676399B2 (en) | 3D coordinate input method and apparatus | |
JP2004030135A (en) | Method and program for drawing part of circle in cad system | |
JPS6061866A (en) | Chamfering system of graphic processing system | |
JP2001046768A (en) | Sewing data creation device | |
JPH0583836U (en) | Mouse pad for optical mouse | |
JPH08287265A (en) | Segment display method | |
JPH0583951B2 (en) |