JPH0451870B2 - - Google Patents

Info

Publication number
JPH0451870B2
JPH0451870B2 JP57042244A JP4224482A JPH0451870B2 JP H0451870 B2 JPH0451870 B2 JP H0451870B2 JP 57042244 A JP57042244 A JP 57042244A JP 4224482 A JP4224482 A JP 4224482A JP H0451870 B2 JPH0451870 B2 JP H0451870B2
Authority
JP
Japan
Prior art keywords
conversion
vector
converted
calculation circuit
movement
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.)
Expired - Lifetime
Application number
JP57042244A
Other languages
Japanese (ja)
Other versions
JPS58159192A (en
Inventor
Osamu Kato
Hiromichi Iwase
Shinichi Shimizu
Masumi Yoshida
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP57042244A priority Critical patent/JPS58159192A/en
Publication of JPS58159192A publication Critical patent/JPS58159192A/en
Publication of JPH0451870B2 publication Critical patent/JPH0451870B2/ja
Granted legal-status Critical Current

Links

Classifications

    • G06T3/02

Description

【発明の詳細な説明】 (a) 発明の技術分野 本発明は図形の変換方法に係り、特に二次元座
標入力装置を用いて入力される二次元上の座標点
系列から変換種類に応じた変換パラメータを計算
して図形変換を行なう方法に関する。
[Detailed Description of the Invention] (a) Technical Field of the Invention The present invention relates to a method for converting figures, and in particular, a method for converting a two-dimensional coordinate point series input using a two-dimensional coordinate input device according to the type of conversion. It relates to a method of calculating parameters and performing graphical transformation.

(b) 従来技術と問題点 従来、図形変換装置による図形変換方法では、
例えば第1図に示すようにキーボード1に配列さ
れたキー2を押下することにより変換装置3に入
力された情報が計算機cpuにより処理された後、
変換装置3により図形変換されていた。
(b) Prior art and problems Conventionally, in the figure conversion method using a figure conversion device,
For example, as shown in FIG. 1, after the information input to the conversion device 3 by pressing the keys 2 arranged on the keyboard 1 is processed by the computer CPU,
The figure had been converted by the conversion device 3.

例えば、図形を変換して編集し直す場合、対象
図面を横に移動するとか、或いは上にあげて間に
追加する等いろいろあるが、その変換の種類に応
じた変換パラメータをキーボード1に入力する。
For example, when converting and re-editing a figure, there are various ways to move the target drawing horizontally, or to move it up and add it in between. Enter the conversion parameters on keyboard 1 according to the type of conversion. .

例えば「移動」の場合はX方向およびY方向の
移動量、「回転」の場合は回転角、また「拡大」
の時は拡大率は数値で入力していた。
For example, for "movement", the amount of movement in the X and Y directions, for "rotation", the rotation angle, and for "enlargement"
At the time, the magnification rate was entered numerically.

しかしながら、この方法では入力すべきパラメ
ータ(移動量、回転角、拡大率)を数値に置き換
えてテンキーにより入力するとか、或いは移動量
だけカーソルキー操作する。このとき、入力すべ
き数値について、変換種類により、移動では移動
量ΔX、ΔY、回転では回転角Δθ、拡大では拡大
率ΔX、ΔYの数値の入力回数及び桁数等が異な
るため、キー操作に入力誤りが生じ易いという欠
点があつた。
However, in this method, the parameters to be input (amount of movement, angle of rotation, magnification) are replaced with numerical values and input using a numeric keypad, or the cursor keys are operated by the amount of movement. At this time, the numbers to be entered differ depending on the conversion type, such as the number of inputs and the number of digits for the movement amount ΔX and ΔY for movement, the rotation angle Δθ for rotation, and the enlargement ratio ΔX and ΔY for enlargement. The drawback was that input errors were likely to occur.

(c) 発明の目的 本発明の目的は二次元座標入力装置から座標点
列を入力することにより、変換種類に共通な変換
パラメータの指定方法を提供することにある。
(c) Object of the Invention The object of the present invention is to provide a method of specifying transformation parameters common to various types of transformation by inputting a sequence of coordinate points from a two-dimensional coordinate input device.

(d) 発明の構成 この目的は本発明によれば、メモリ、ベクトル
計算回路、移動量・回転角・伸縮率等の計算回路
及び変換装置を有する処理装置と座標入力装置と
を備え、座標入力装置上に画かれた変換対象図形
及び変換対象図形の変換方向と変換量を示すベク
トル図形のうち、変換対象図形の各座標点列情報
は処理装置のメモリに格納され、ベクトル図形の
情報はベクトル計算回路でベクトルの始点及び終
点の検出と計算が行なわれ、この計算結果は別途
入力される変換種類信号(移動、回転等)に対応
して計算回路で移動量、回転角、伸縮率等が計算
され、この計算結果とメモリよりの座標点列情報
とによつて変換装置で変換対象図形の図形変換が
行なわれることを特徴とする図形変換方法によつ
て達成される。
(d) Structure of the Invention According to the present invention, the present invention has a processing device having a memory, a vector calculation circuit, a calculation circuit for movement amount, rotation angle, expansion/contraction ratio, etc., and a conversion device, and a coordinate input device, and a coordinate input device. Among vector figures drawn on the device that indicate the transformation direction and amount of transformation of the transformation target figure, each coordinate point sequence information of the transformation target figure is stored in the memory of the processing device, and the information of the vector figure is stored in the vector The calculation circuit detects and calculates the start point and end point of the vector, and the calculation results are used to calculate the amount of movement, rotation angle, expansion/contraction rate, etc. in response to the conversion type signal (movement, rotation, etc.) that is input separately. This is achieved by a figure conversion method characterized in that a figure to be converted is converted by a converter using the calculation result and coordinate point sequence information stored in a memory.

(e) 発明の実施例 以下本発明を図面により詳細に説明する。(e) Examples of the invention The present invention will be explained in detail below with reference to the drawings.

本発明は二次元座標入力装置、例えばデジタイ
ザ、タブレツト等で入力される座標点系列のもつ
二次元的性質を利用し、座標点系列より移動、回
転、伸縮等の図形変換パラメータを計算するよう
にしたものである。
The present invention utilizes the two-dimensional nature of a coordinate point series input with a two-dimensional coordinate input device such as a digitizer, tablet, etc., and calculates figure transformation parameters such as movement, rotation, and expansion/contraction from the coordinate point series. This is what I did.

第2図は二次元の座標入力装置4を示し、装置
4にはペン5がついていて、該ペン5で盤面(例
えばタブレツト)6をなぞると、その座標点が連
続的に処理装置のメモリに入力格納される。
FIG. 2 shows a two-dimensional coordinate input device 4. The device 4 is equipped with a pen 5, and when the pen 5 is traced on a board surface (for example, a tablet) 6, the coordinate points are continuously stored in the memory of the processing device. Input is stored.

例えば、タブレツト6上で画いた図形を移動さ
せ、或いは縮小の編集操作を行なつて図形変換す
る場合、本発明ではタブレツト上に画いた変換対
象図形はその座標点列が読取られて処理装置のメ
モリに入力格納されるが、図形の変換方向及び変
換量はそれに対応するベクトルをタブレツト上に
画くことで実現している。
For example, when converting a figure drawn on the tablet 6 by moving it or performing an editing operation such as reduction, in the present invention, the coordinate point sequence of the figure to be converted drawn on the tablet is read and the processing device reads it. It is input and stored in memory, and the direction and amount of transformation of the figure is realized by drawing the corresponding vector on the tablet.

第3図イはタブレツト6上の変換対象図形を
DX、DY移動するための座標点列の1例を示し
たもので、ここでは座標点列を{(x1,y1),(x2
y2),…(xo,yo)}で表現する。この場合始点か
ら終点へのベクトルはaで示され、これはベクト
ルaの方向に(Xo−X1)、(Yo−Y1)だけ移動す
ることを示している。即ちベクトルaで移動する
方向と量が示され、変換種類としての移動は、別
途変換種類信号として与えられ、この組合わせで
変換パラメータが算出され図形変換が行なわれ
る。以下移動、回転、伸縮の場合について変換パ
ラメータの計算手順を示す。
Figure 3 A shows the figure to be converted on Tablet 6.
This shows an example of a coordinate point sequence for DX and DY movement. Here, the coordinate point sequence is {(x 1 , y 1 ), (x 2 ,
y 2 ),...(x o , y o )}. In this case, the vector from the starting point to the ending point is indicated by a, which indicates movement by (X o -X 1 ) and (Y o -Y 1 ) in the direction of vector a. That is, the direction and amount of movement is indicated by vector a, and the movement as a conversion type is separately given as a conversion type signal, and by this combination, conversion parameters are calculated and graphic conversion is performed. The steps for calculating conversion parameters in the case of movement, rotation, and expansion/contraction are shown below.

(1) 移動、図形をDX、DY平行移動する。(1) Move, move the figure in DX and DY parallel.

DX=xo−x1 DY=yo−y1 (2) 回転、図形をθ回転させる。 DX=x o −x 1 DY=y o −y 1 (2) Rotation: Rotate the figure by θ.

θ=tan-1(yo−y1/xo−x1) (3) 伸縮、第3図ロは原図形Aと伸縮図形Bの関
係を示し、伸縮について横方向に伸ばし、縦方
向に縮めている。ベクトルaでみると、x方向
は+、y歩行は−の変換になる。そのときの原
図形Aの幅W、高さHとし、この図形Aをγx
γy伸縮する。γx,γyが1より小の時を縮小と定
義する。
θ=tan -1 (y o −y 1 /x o −x 1 ) (3) Stretching Figure 3 (b) shows the relationship between original figure A and stretchable figure B. It's shrinking. Looking at the vector a, the x direction is a + conversion, and the y walk is a - conversion. Let the width W and height H of the original figure A at that time be γ x ,
γ y expands and contracts. When γ x and γ y are smaller than 1, it is defined as reduction.

γx=1+{2・(xo−x1)/w} γy=1+{2・(yo−y1)/H} 第4図は本発明の図形変換装置の1実施例を示
すブロツク回路図である。
y _ _ _ _ _ FIG. 3 is a block circuit diagram.

図において、4は二次元座標入力装置、それ以
外は処理装置に設けられた回路でありメモリは図
示されていないが8はパラメータ計算装置で、ベ
クトル計算回路9と移動量計算回路10と回転角
計算回路11と伸縮率計算回路12よりなつてい
る。13は変換装置である。
In the figure, 4 is a two-dimensional coordinate input device, the others are circuits provided in the processing device, and the memory is not shown, but 8 is a parameter calculation device, a vector calculation circuit 9, a movement amount calculation circuit 10, and a rotation angle It consists of a calculation circuit 11 and an expansion/contraction ratio calculation circuit 12. 13 is a conversion device.

二次元座標入力装置にははじめに変換対象図が
画かれ、その各座標点列情報が出力され、原情報
として処理装置(CPU)のメモリに入力され、
格納されているが、続いて変換対象図形の変換方
向と変換量を示すベクトルが画かれ、その座標点
列(xi,yi)はベクトル計算回路9により始点、
終点のみが検出され、ベクトルV=(xo−x1,yo
−y1)が計算される。
First, a diagram to be converted is drawn on the two-dimensional coordinate input device, and the information on each coordinate point sequence is outputted and input into the memory of the processing unit (CPU) as original information.
Then, a vector indicating the transformation direction and transformation amount of the figure to be transformed is drawn, and its coordinate point sequence (xi, yi) is determined by the vector calculation circuit 9 as the starting point,
Only the end point is detected and the vector V=(x o −x 1 , y o
−y 1 ) is calculated.

別途入力される変換種類信号Kで示される移
動、回転、伸縮に対応して、移動量計算回路1
0、回転角計算回路11、伸縮率計算回路12で
それぞれ移動量、回転角、伸縮率が計算される。
計算されたパラメータ(ΔXΔY,Δθ,γx,γy
及びモメリよりの原情報としての変換対象図形の
各座標点列情報により変換装置13で図形変換が
実行される。
The movement amount calculation circuit 1 corresponds to the movement, rotation, and expansion/contraction indicated by the conversion type signal K input separately.
0, the rotation angle calculation circuit 11 and the expansion/contraction rate calculation circuit 12 calculate the amount of movement, the rotation angle, and the expansion/contraction rate, respectively.
Calculated parameters (ΔXΔY, Δθ, γ x , γ y )
Graphical transformation is executed by the transformation device 13 using each coordinate point sequence information of the transformation target graphic as the original information from Momeri.

例えば、K=1を移動、K=2を回転、K=3
を伸縮としたスイツチとし、座標入力装置に変換
対象図形及び変換対象図形の変換方向と変換量を
示す図形をペンで画き、変換対象図形の変換種類
に応じてK=1、2、3のいづれかを指定する
と、変換装置より変換された図形が出力される。
For example, move K=1, rotate K=2, K=3
As a switch that expands and contracts, draw a figure to be converted and a figure indicating the conversion direction and amount of the figure to be converted on the coordinate input device with a pen, and select K = 1, 2, or 3 depending on the type of conversion of the figure to be converted. If you specify , the converted figure will be output from the converter.

本発明では、図形変換の入力パラメータは単に
座標入力装置の入力座標上にベクトルをペンで引
くだけでよく、従来のように移動量、回転角、伸
縮率等の数値をキーボードより入力する必要がな
いので、キーの操作の誤り及び煩雑さが防げ、入
力の負担が軽減される。
In the present invention, the input parameters for figure transformation can be simply by drawing a vector on the input coordinates of the coordinate input device with a pen, and there is no need to enter numerical values such as movement amount, rotation angle, expansion/contraction rate, etc. from the keyboard as in the past. Since there are no keys, errors and complications in key operations can be prevented, and the input burden can be reduced.

(f) 発明の効果 以上、詳細に説明したように、本発明の図形変
換方法では二次元座標入力装置に変換対象図形を
画き、また変換種類に共通な変換パラメータの指
定のため座標入力装置上に単に変換方向と変換量
を示すベクトルを画けばよいので、従来のキーボ
ードの入力と異なりパラメータ入力の負担が軽減
される効果は大きい。
(f) Effects of the Invention As explained above in detail, in the figure conversion method of the present invention, a figure to be converted is drawn on a two-dimensional coordinate input device, and a figure to be converted is drawn on a two-dimensional coordinate input device, and a figure to be converted is drawn on the coordinate input device in order to specify conversion parameters common to the type of conversion. Since it is sufficient to simply draw a vector indicating the direction of transformation and the amount of transformation, the burden of parameter input is greatly reduced, unlike conventional keyboard input.

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

第1図は従来の図形変換装置を説明するための
ブロツク図、第2図は本発明に用いる二次元の座
標入力装置を示すブロツク図、第3図イ,ロは本
発明の変換パラメータの計算手順を説明するため
の平面図、第4図は本発明の図形変換方法の1実
施例を示すブロツク図を示す。 図において、4は二次元座標入力装置、5はペ
ン、6は盤面(タブレツト)、8はパラメータ計
算装置、9はベクトル計算回路、10は移動量計
算回路、11は回転角計算回路、12は伸縮率計
算回路、13は変換装置である。
Fig. 1 is a block diagram for explaining a conventional figure conversion device, Fig. 2 is a block diagram showing a two-dimensional coordinate input device used in the present invention, and Fig. 3 A and B are calculations of conversion parameters of the present invention. FIG. 4 is a plan view for explaining the procedure, and a block diagram showing one embodiment of the graphic conversion method of the present invention. In the figure, 4 is a two-dimensional coordinate input device, 5 is a pen, 6 is a board (tablet), 8 is a parameter calculation device, 9 is a vector calculation circuit, 10 is a movement amount calculation circuit, 11 is a rotation angle calculation circuit, and 12 is a The expansion/contraction rate calculation circuit, 13 is a conversion device.

Claims (1)

【特許請求の範囲】[Claims] 1 メモリ、ベクトル計算回路、移動量・回転
角・伸縮率等の計算回路及び変換装置を有する処
理装置と座標入力装置とを備え、座標入力装置上
に画かれた変換対象図形及び変換対象図形の変換
方向と変換量を示すベクトル図形のうち、変換対
象図形の各座標点列情報は処理装置のメモリに格
納され、ベクトル図形の情報はベクトル計算回路
でベクトル始点及び終点の検出と計算が行なわ
れ、この計算結果は別途入力される変換種類信号
(移動、回転等)に対応して計算回路で移動量、
回転角、伸縮率等が計算され、この計算結果とメ
モリよりの座標点列情報とによつて変換装置で変
換対象図形の図形変換が行なわれることを特徴と
する図形変換方法。
1 Equipped with a processing device having a memory, a vector calculation circuit, a calculation circuit for movement amount, rotation angle, expansion/contraction ratio, etc., and a conversion device, and a coordinate input device, and capable of converting a figure to be converted and a figure to be converted drawn on the coordinate input device. Among the vector figures that indicate the direction and amount of conversion, information on each coordinate point sequence of the figure to be converted is stored in the memory of the processing unit, and the information on the vector figure is used to detect and calculate the vector start point and end point in the vector calculation circuit. , this calculation result is calculated by the calculation circuit to calculate the amount of movement,
A figure conversion method characterized in that a rotation angle, an expansion/contraction rate, etc. are calculated, and a conversion device performs figure conversion of a figure to be converted based on the calculation results and coordinate point sequence information from a memory.
JP57042244A 1982-03-17 1982-03-17 Figure converter Granted JPS58159192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57042244A JPS58159192A (en) 1982-03-17 1982-03-17 Figure converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57042244A JPS58159192A (en) 1982-03-17 1982-03-17 Figure converter

Publications (2)

Publication Number Publication Date
JPS58159192A JPS58159192A (en) 1983-09-21
JPH0451870B2 true JPH0451870B2 (en) 1992-08-20

Family

ID=12630609

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57042244A Granted JPS58159192A (en) 1982-03-17 1982-03-17 Figure converter

Country Status (1)

Country Link
JP (1) JPS58159192A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6075980A (en) * 1983-10-03 1985-04-30 Hitachi Ltd On-line editing device for handwritten input pattern
JPH0766310B2 (en) * 1985-08-22 1995-07-19 大日本印刷株式会社 Figure allocation method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53136439A (en) * 1977-05-04 1978-11-29 Hitachi Ltd Handwritten information processing system
JPS5612690A (en) * 1979-07-13 1981-02-07 Hitachi Ltd Figure display

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53136439A (en) * 1977-05-04 1978-11-29 Hitachi Ltd Handwritten information processing system
JPS5612690A (en) * 1979-07-13 1981-02-07 Hitachi Ltd Figure display

Also Published As

Publication number Publication date
JPS58159192A (en) 1983-09-21

Similar Documents

Publication Publication Date Title
JPS62159286A (en) Three-dimensional cursor control system
KR930007023B1 (en) Method and apparatus for transforming image
JPH0451870B2 (en)
JP3720425B2 (en) Information processing apparatus and method
JPH0683525A (en) Method and device for controlling coordinate input
JPH0580025B2 (en)
JPH02250178A (en) Graphic generator
JPH0462105B2 (en)
JPS5933578A (en) Display system of manually written diagram information
JP2749119B2 (en) Cursor control method for characters of arbitrary position and arbitrary shape
JPH08286832A (en) Cursor display device
JPS61237184A (en) Handwriting pattern input device
JPH064217A (en) Coordinate input device
JPS6344279A (en) Drawing reader
JPH0436794A (en) Cursor control device
JPH06110442A (en) Character and figure processor and method for deforming character of figure
JPH0394381A (en) Graphic processing system
JPS638817A (en) Drawing input system
JPH06348398A (en) Picture forming device
JPS6421521A (en) Coordinate input device
JPH08137621A (en) Graphic input device and cursor display method
JPS63247825A (en) Cursor display controller
JPH0488483A (en) Method and device for correcting image
JPH012127A (en) Coordinate detection device
JP2000039954A (en) Coordinate indication device, information processor and keyboard