JPS63263518A - Graphic input device - Google Patents

Graphic input device

Info

Publication number
JPS63263518A
JPS63263518A JP62097530A JP9753087A JPS63263518A JP S63263518 A JPS63263518 A JP S63263518A JP 62097530 A JP62097530 A JP 62097530A JP 9753087 A JP9753087 A JP 9753087A JP S63263518 A JPS63263518 A JP S63263518A
Authority
JP
Japan
Prior art keywords
line width
coordinate
coordinates
speed
drawing speed
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
JP62097530A
Other languages
Japanese (ja)
Inventor
Masayuki Tomizawa
富沢 正之
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62097530A priority Critical patent/JPS63263518A/en
Publication of JPS63263518A publication Critical patent/JPS63263518A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To input a graphic approximating human work with less labor by providing a means, which detects the drawing speed in accordance with coordinate inputs to set the line width in inverse proportion to this detected drawing speed, to easily change the line width even in one stroke. CONSTITUTION:A device consists of a coordinate designating means 4 which designates coordinates and a means which detects the set speed of the designating means 4 to set the width of coordinates or segments connecting coordinates in inverse proportion to the speed. Thus, fine lines are drawn in case of high drawing speed and thick lines are drawn in case of low drawing speed. Since a dot is gradually enlarged by long staying of a writing brush at one point and a line is narrowed by a low drawing speed in case of write on a common Japanese writing paper with the writing brush, the graphic is inputted as if it were drawn on the common Japanese writing paper with the writing brush, and this graphic approximates a human work.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は1図形入力装置、特に文字等の線巾が変化する
図形の入力に好適な図形入力装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a graphic input device, and particularly to a graphic input device suitable for inputting graphics such as characters whose line widths vary.

[従来の技術〕 従来の図形入力方式は、あらかじめ線巾を選択等をして
決めておき、これにもとづいて入力された座標について
描画する方式や、逆に先に座標値を入力して、後から線
巾を決めて描画する方式であって、1つの線分(ストロ
ーク)単位で、巾を決めていた。
[Prior Art] Conventional graphic input methods include a method in which line widths are selected and determined in advance, and drawing is performed based on the input coordinates, or conversely, coordinate values are input first, and then drawn. This is a method in which the line width is determined and drawn later, and the width is determined for each line segment (stroke).

これらの従来例の1つに、特開昭60−254313号
がある。
One of these conventional examples is JP-A-60-254313.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術は1つのストローク内で線巾を変えたいと
きには、簡単に行う方法がなく、後がら修正や、追加書
きなどを行なって、線巾を変える必要があり手間が掛る
という問題点がある。特に文字を入力する場合1毛筆風
に書こうとすると単に文字を書いただけででは同−巾の
線しか引けないためうまくいかず、図形と同じように文
字のりん画を入力して、中をぬりつぶす等の方法をとら
ざるを得なく、多大な手間がががった。
The above-mentioned conventional technology has the problem that when you want to change the line width within one stroke, there is no easy way to do it, and it is necessary to change the line width by making corrections or additional writing afterwards, which is time-consuming. . Especially when inputting characters 1. If you try to write in a calligraphy style, you can only draw a line of the same width by simply writing the characters, so it will not work, so you can input the phosphor strokes of the characters in the same way as shapes. I had no choice but to use methods such as coloring it over, which took a lot of time and effort.

本発明の目的は、1ストローク内でも簡単に線巾を変え
ることを可能とし、より少ない手間で人間の間隔に近い
図形を入力することにある。
An object of the present invention is to make it possible to easily change the line width even within one stroke, and to input figures close to human spacing with less effort.

c問題点を解決するための手段〕 本発明は、座−入力から描画速度を検出し、この検出描
画速度に反比例して線巾を設定せしめる手段を設けた。
Means for Solving Problem c] The present invention is provided with means for detecting the drawing speed from the seat input and setting the line width in inverse proportion to the detected drawing speed.

〔作用〕[Effect]

上記手段によって、描画速度の速い所は細く、描画速度
の遅い所は太く描画できる。
With the above means, areas where the drawing speed is fast can be drawn thinly, and areas where the drawing speed is slow can be drawn thickly.

これはちょうど半紙に毛筆で書く場合に1点にずっと筆
を止めて置くと点は少しずつ大きくなり、速く線を引く
と細くなるのと類似しており、人間の感覚に近いといえ
る。
This is similar to when writing on paper with a brush, and if you keep the brush at one point for a long time, the dot gets bigger little by little, and if you draw a line quickly, it gets thinner, and it can be said that it is close to the human sense.

〔実施例〕〔Example〕

第2図は本発明の座標入力装置の構成図を示す。 FIG. 2 shows a configuration diagram of the coordinate input device of the present invention.

座標入力装置は、中央処理装置1.メモリ21表示装置
3.座標入力装置4より成る。
The coordinate input device is the central processing unit 1. Memory 21 Display device 3. It consists of a coordinate input device 4.

メモリ2には、本実施例の処理プログラム、および、座
標値等のデータが入り、中央処理装置1が、このデータ
を用いて処理プログラムを実行す1     る。座標
入力装置4は、座標が入力可能となっているとき、(ペ
ンダウンされているときか、指定範囲にカーソルが入っ
ている場合)には一定の周期で、座標値を入力しこれを
中央処理装置1の割込みを利用してメモリ2に転送する
6 そして本発明の処理プログラムは、メモリとの座標値を
読み出して、線巾を計算し、これにもとづいて表示袋[
3に、描画を行なう。
The memory 2 stores the processing program of this embodiment and data such as coordinate values, and the central processing unit 1 uses this data to execute the processing program. The coordinate input device 4 inputs coordinate values at regular intervals when coordinates can be input (when the pen is down or when the cursor is in a specified range) and centrally processes the coordinate values. The processing program of the present invention reads the coordinate values with respect to the memory, calculates the line width, and based on this, transfers the data to the memory 2 using an interrupt from the device 1.
3. Perform drawing.

ここで、座標入力装置4による座標入力例と描画速度と
の関係述べる。相隣り合う座標a、bを入力する場合、
座標aを入力してから座標すを入力するまでに時間tを
要したとすると、この時の・座標B −* l)間の描
画速度Vは。
Here, the relationship between an example of coordinate input by the coordinate input device 4 and drawing speed will be described. When inputting adjacent coordinates a and b,
Assuming that it takes time t from inputting coordinate a to inputting coordinate S, the drawing speed V between coordinates B and *l) at this time is.

b−a   ・・・・・・・・・(1)となる、全座標
入力装置1は一定周期で座標取込みを行なっているとし
ている故、tは一定値であり、描画速度Vは(b−a)
で定まる。即ち相隣り合う座標が次々に一定周期で入力
する座標入力装置1にあっては、相隣り合う座標の差分
が描画速度と見て良い(正確には比例)、差分以外に、
線分長入力であれば、差分演算は不用である。この速度
算出は中央処理装置1が実行する。
b-a ・・・・・・・・・(1) Since it is assumed that the total coordinate input device 1 imports coordinates at a constant period, t is a constant value, and the drawing speed V is (b -a)
It is determined by In other words, in a coordinate input device 1 in which adjacent coordinates are input one after another at a constant period, the difference between adjacent coordinates can be regarded as the drawing speed (more precisely, proportional).
If line segment length is input, difference calculation is not necessary. This speed calculation is executed by the central processing unit 1.

一方、座標入力装置には、一定周期ではなく、不定期で
あって、指示した場合のみ座標を取り込む例がある。こ
の場合、(1)式のtは座標取り込み毎に変る故、(1
)式の計算はその座標取り込み毎に、その時の差分時間
t、座4g1a、bの差分(a−b)を求める処理を行
い、且つ(1)式による除算処理を必要とする。
On the other hand, there are examples of coordinate input devices that import coordinates not at regular intervals but irregularly, and only when instructed. In this case, since t in equation (1) changes each time the coordinates are captured, (1
) calculation requires that each time the coordinates are taken in, a process is performed to obtain the difference (a-b) between the differential time t and the positions 4g1a and b, and a division process is performed using the formula (1).

かくして求めた速度の逆数に係数をかけて、線巾の最大
値と最小値でクリッピングすると線巾が求まる。したが
って入力した座標値すべてに関してこの線巾を計算しな
がら表示することにより。
The line width is determined by multiplying the reciprocal of the speed thus obtained by a coefficient and clipping at the maximum and minimum line width values. Therefore, by calculating and displaying this line width for all input coordinate values.

速度に対応した線巾の図形を描画することができる。It is possible to draw figures with a line width that corresponds to the speed.

座標入力装置lの具体例には、タブレットとマウスがあ
る。タブレットとは、人間がタブレット上をペンで動か
すと、そのペンの軌跡を一定周期(20msec〜10
m5ec)で指示する。その指示点は、そのまま中央処
理装置1へ送られる。このタブレットではCRTによる
表示は必ずしも不用である。
Specific examples of the coordinate input device l include a tablet and a mouse. A tablet is a device that when a person moves a pen on the tablet, the trajectory of the pen moves at a fixed period (20 msec to 10 msec).
m5ec). The indicated point is sent as is to the central processing unit 1. This tablet does not necessarily require CRT display.

マウスはマウスの軌跡をCRTに描き、このマウスの動
きの軌跡を、中央処理装置1が周期的にアクセスして取
り込む。
The mouse draws a trajectory on the CRT, and the central processing unit 1 periodically accesses and captures the trajectory of the mouse movement.

これらのマウス、タブレットでも、指示毎に中央処理装
置1に取り込ませる例もある。
Even with these mice and tablets, there are examples in which each instruction is imported into the central processing unit 1.

次に本実施例の処理の概要を第1図に示す。Next, an outline of the processing of this embodiment is shown in FIG.

ます線巾を変える処理は1ストロークごとに独立つまり
、各ストロークの初期線巾は1(最小値)とするので、
線巾などのパラメータを1ストロークごとに初期化する
(ステップ10)0次に座標入力装!!4よりメモリ2
に転送された座標値を読み出す(ステップ11)、この
座標値をもとに入力座標間の描画速度を計算し、さらに
線巾を決める(ステップ12)、そしてこの線巾で、表
示装置i3に描画する(ステップ13)、描画には、点
として描画する場合と直線として描画する場合があるが
、点の場合線巾は点の大きさく半径)に対応し、直線の
場合はそのまま線巾を表す。
The process of changing the line width is independent for each stroke. In other words, the initial line width of each stroke is 1 (minimum value), so
Initialize parameters such as line width for each stroke (step 10) Zero-order coordinate input device! ! Memory 2 from 4
Read the coordinate values transferred to (step 11), calculate the drawing speed between the input coordinates based on these coordinate values, and determine the line width (step 12). Draw (step 13). When drawing, there are two cases: drawing as a point and drawing as a straight line. In the case of a point, the line width corresponds to the size of the point (radius), and in the case of a straight line, the line width is the same as the line width. represent.

第3図に線巾の計算の詳細を示す、先に説明したように
、本実施例では座標値は一定周期でサンプリングされて
いるので、座標値間の描画速度は。
Details of line width calculation are shown in FIG. 3.As explained earlier, in this embodiment, the coordinate values are sampled at a constant period, so the drawing speed between the coordinate values is as follows.

座標値間の距離に対応する。したがってメモリ2から座
標値を読み出した(ステップ11)後、これを次回の計
算で使用するために記憶(ステップ14)しておき1回
前の座標値と今回の座標値の差を求め、その距離を計算
することによって前点との距離差を求める(ステップ1
5)、この距離差を速度とする。
Corresponds to the distance between coordinate values. Therefore, after reading the coordinate values from memory 2 (step 11), store them for use in the next calculation (step 14), calculate the difference between the previous coordinate value and the current coordinate value, and calculate the difference between the previous coordinate value and the current coordinate value. Find the distance difference from the previous point by calculating the distance (Step 1
5) Let this distance difference be the speed.

この速度がOつまり同一点を動かないときの処理は後で
説明する。速度の逆数に一定の係数Kをかけて、速度と
巾の対応関係を調整し、さらにこの値に直前の線巾をか
けて、線巾を求める(ステップ17)。このとき線巾に
は最大値と最小値があるので、これらの値でクリッピン
グし、線巾が範囲内におさまるようにする。前回の線巾
をかけることにより、急激な速度変化があってもある程
度なめらかに線巾が変化するようになる。このようにし
て計算した線巾で、入力座標に大きさ付きの点または、
巾付きの直線を描画する(ステップ13)ことによって
、線巾可変の図形を描画できる。
The processing when this speed is O, that is, when the same point is not moved, will be explained later. The reciprocal of the speed is multiplied by a constant coefficient K to adjust the correspondence between speed and width, and this value is further multiplied by the previous line width to obtain the line width (step 17). At this time, since the line width has a maximum value and a minimum value, clipping is performed using these values so that the line width falls within the range. By multiplying the previous line width, the line width will change smoothly to some extent even if there is a sudden change in speed. With the line width calculated in this way, a point with a size in the input coordinates or
By drawing a straight line with a width (step 13), a figure with variable line width can be drawn.

描画を行なうときには、巾と座標を指定するのでこのデ
ータを記憶しておくと、もともとの座標値のみのデータ
列(ただし時間成分も含んでいる)の入力から、巾をも
った座標値に変換されることになるので、線巾可変の図
形入力が達成される。
When drawing, you specify the width and coordinates, so if you memorize this data, you can convert the original data string of coordinate values only (but also includes a time component) to coordinate values with width. Therefore, graphic input with variable line width is achieved.

また、もとの座標値から計算によって線巾をもとめるこ
とができるので、単にもとの座標値を記憶しておいても
、線巾付きの図形を再生、描画することができる。
Furthermore, since the line width can be determined by calculation from the original coordinate values, a figure with a line width can be reproduced and drawn even if the original coordinate values are simply stored.

次に速度がOつまり同一点を動かないときは、速度の逆
数をとれないので1以上の計算はできない。そこでこの
場合は、同一点にいる時間をカウントしくステップ18
)、この時間に係数をかけて、さらに直前の線巾にかけ
ることにより、線巾を求める(ステップ19)6本実施
例では入力座標列は等時間サンプリングなので、同一点
の入力個数がそのまま時間を表わしている。このように
して同一点にいるときにも線巾を求め、この巾で描画を
行う(ステップ13)1以上の処理ステップ11〜19
をくり返すことによって1ストローク内で線巾可変の図
形を簡単に入力できることになる。なおストロークの区
切りは座標入力装置4より、座標値とは別のデータとし
て入力できるので、これを用いてあらかじめメモリ2中
の座標値をストロークごとに別々にまとめておき、1ス
トロークの座標値をすべて処理した所で、第1回か第3
回のループをぬける。
Next, when the velocity is O, that is, when the object does not move at the same point, it is not possible to calculate a value greater than 1 because the reciprocal of the velocity cannot be taken. Therefore, in this case, the time spent at the same point should be counted in step 18.
), the line width is calculated by multiplying this time by a coefficient and then by multiplying it by the immediately preceding line width (step 19) 6 In this embodiment, the input coordinate string is sampled at equal time, so the number of inputs at the same point is equal to the time. It represents. In this way, even when they are at the same point, the line width is determined and drawing is performed using this width (Step 13) One or more processing steps 11 to 19
By repeating , you can easily input figures with variable line widths within one stroke. Note that stroke boundaries can be input as data separate from the coordinate values using the coordinate input device 4, so by using this, coordinate values in the memory 2 can be compiled separately for each stroke, and the coordinate values of one stroke can be input. Once everything is processed, the first or third
Get out of the loop.

本実施例では、各ストロークごとの線巾は独立とし、各
ストロークの先頭では線巾1としたが、これは、直前の
線巾を記憶しておき1次のストロークの先頭ではこの値
を用いることも可能で、応用によっては、この方が望ま
しいこともある。
In this example, the line width for each stroke is independent, and the line width is set to 1 at the beginning of each stroke, but this is because the previous line width is memorized and this value is used at the beginning of the first stroke. It is also possible, and depending on the application, this may be preferable.

次に実際の例を第4図に示して、説明する。Next, an actual example will be explained with reference to FIG.

座標入力装置4よりメモリ2に入力された座標値は座標
入力例20のように記憶される。まず1つめのPlで座
標が決まり線巾111 #tとする0次の点は同一点の
Ptなので、1単位時間同一点にいることがわかり、線
巾をパ2”とする1次のPtで同様にして線巾が“3”
となり、さらに次のP。
The coordinate values input into the memory 2 from the coordinate input device 4 are stored as in coordinate input example 20. First, the coordinates are determined by the first Pl and the line width is 111 #t.Since the 0th order point is the same point Pt, we know that we are at the same point for 1 unit time, and the 1st order Pt whose line width is P2'' is the same point. In the same way, the line width is “3”
And then the next P.

で線巾′″4”となる1次にp2−p、の距離;1なの
で、係数としては最大値となり、線巾は変わらす4のま
まとなる0次にp3−p、の距離=2なので線巾は3″
となり、以下P4+P5と距離が大きくなるので、線巾
か細くなり、結局描画例21のような図形が描画されこ
れが入力できたことになる。
The distance between 1st order p2-p, where the line width becomes ``4'' is 1, so the coefficient becomes the maximum value, and the line width remains unchanged at 4. Distance between 0th order p3-p, = 2 So the line width is 3"
Since the distance becomes larger as P4+P5, the line width becomes thinner, and in the end, a figure like drawing example 21 is drawn and this can be input.

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

本発明によれば、座標値を入力するだけで、線巾付きの
入力に変換できるので、付加装置なしで1ストローク内
の線巾を変化させることが可能となり1文字等の図形入
力の手間を省き、さらに表現力を増すという効果がある
According to the present invention, simply inputting coordinate values can be converted to input with line width, so it is possible to change the line width within one stroke without an additional device, reducing the trouble of inputting figures such as one character. This has the effect of further increasing expressiveness.

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

第1図は本発明の一実施例の処理の概要を示す図、第2
図は、一実施例のハードウェア構成を示す図、第3図は
、一実施例の処理内容を詳細に説明する図、第4図は、
一実施例による処理結果の例を示す図である。 1・・・中央処理装置、2・・・メモリ、3・・・表示
装置。 4・・・座標入力装置。 代理人弁理士  秋  本  正  実第1図 ぐj”+ 2図 第3図 第 41 205り学値入力預り 21、釈巾描画倒
FIG. 1 is a diagram showing an overview of processing in an embodiment of the present invention, and FIG.
The figure shows the hardware configuration of one embodiment, FIG. 3 is a diagram explaining the processing contents of one embodiment in detail, and FIG. 4 shows the following:
It is a figure showing an example of a processing result by one example. 1...Central processing unit, 2...Memory, 3...Display device. 4...Coordinate input device. Representative Patent Attorney Tadashi Akimoto Figure 1 + Figure 2 Figure 3

Claims (1)

【特許請求の範囲】 1、座標を指示する座標指示手段と、この指示手段によ
る座標速度を検出し、速度に反比例して座標又は座標を
結ぶ線分の巾を設定する手段と、より成る図形入力装置
。 2、上記指示手段はマウスとする特許請求の範囲第1項
記載の図形入力装置。 3、上記指示手段はタブレットとする特許請求の範囲第
1項記載の図形入力装置。
[Scope of Claims] 1. A figure consisting of coordinate indicating means for indicating coordinates, and means for detecting the coordinate speed by this indicating means and setting the coordinates or the width of a line segment connecting the coordinates in inverse proportion to the speed. input device. 2. The graphic input device according to claim 1, wherein the instruction means is a mouse. 3. The graphic input device according to claim 1, wherein the instruction means is a tablet.
JP62097530A 1987-04-22 1987-04-22 Graphic input device Pending JPS63263518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62097530A JPS63263518A (en) 1987-04-22 1987-04-22 Graphic input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62097530A JPS63263518A (en) 1987-04-22 1987-04-22 Graphic input device

Publications (1)

Publication Number Publication Date
JPS63263518A true JPS63263518A (en) 1988-10-31

Family

ID=14194806

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62097530A Pending JPS63263518A (en) 1987-04-22 1987-04-22 Graphic input device

Country Status (1)

Country Link
JP (1) JPS63263518A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07502575A (en) * 1991-12-23 1995-03-16 ジ アムティコ カンパニー リミティド floor covering
CN104714742A (en) * 2013-12-12 2015-06-17 鸿合科技有限公司 Soft pen realization method and device based on touch screen

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07502575A (en) * 1991-12-23 1995-03-16 ジ アムティコ カンパニー リミティド floor covering
CN104714742A (en) * 2013-12-12 2015-06-17 鸿合科技有限公司 Soft pen realization method and device based on touch screen

Similar Documents

Publication Publication Date Title
JP2994888B2 (en) Input processing device and input processing method
JPS63206827A (en) Display scroll system
JPS63263518A (en) Graphic input device
JPH0812668B2 (en) Handwriting proofreading method
Barr et al. Automated production of contour maps for electrophysiology III. Construction of contour maps
JPH0679323B2 (en) Brush typeface generation method
JPH0887608A (en) Method and device for deforming three-dimensional shape model
JPH03662B2 (en)
JPH0830666A (en) Method and device for arranging character string
JP2507812B2 (en) Square root calculation method
JP2908868B2 (en) Shape design equipment
JP2708441B2 (en) Handwritten character recognition device with input procedure teaching function
JP2001266071A (en) Device and method for inputting handwritten character, and recording medium for recording program for realizing method
JP2904994B2 (en) Coordinate connection display method
JP3412203B2 (en) String output device
JP3412202B2 (en) String output device
JPH01282679A (en) Cad system
JPS60263986A (en) Cursor display method with scale
JPH06274308A (en) Uniform modeling generation processing method for bezier curve
JPS63129468A (en) Graphic display controller
JPH0736606A (en) Waveform data analysis system
JPH05250483A (en) Graph plotter
JPH0527875B2 (en)
JPH059798B2 (en)
JPS5835593A (en) Column position display for cursor