JP3433475B2 - Figure creation device - Google Patents

Figure creation device

Info

Publication number
JP3433475B2
JP3433475B2 JP20250393A JP20250393A JP3433475B2 JP 3433475 B2 JP3433475 B2 JP 3433475B2 JP 20250393 A JP20250393 A JP 20250393A JP 20250393 A JP20250393 A JP 20250393A JP 3433475 B2 JP3433475 B2 JP 3433475B2
Authority
JP
Japan
Prior art keywords
point
coordinates
graphic
curve
continuous line
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 - Fee Related
Application number
JP20250393A
Other languages
Japanese (ja)
Other versions
JPH0744722A (en
Inventor
政則 佐々木
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP20250393A priority Critical patent/JP3433475B2/en
Publication of JPH0744722A publication Critical patent/JPH0744722A/en
Application granted granted Critical
Publication of JP3433475B2 publication Critical patent/JP3433475B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は、コンピュータ情報処理
装置に於いて図形を作成する図形作成装置に係り、特
に、連続線を作成する際の入力方法に関する。 【0002】 【従来の技術】従来より、パーソナルコンピュータにて
図形を描くためのソフトウェアが知られている。また、
ワードプロセッサの機能の一つとして、そのような図形
作成装置が提供されることも知られている。 【0003】この種の図形作成装置は、円形や四角形、
直線や曲線を組み合わせて、自由に図形を描くことがで
きる。 【0004】 【発明が解決しようとする課題】しかしながら、従来の
図形作成装置に於いては、連続線の入力に関しては、そ
の連続線の種類により入力処理が異なっていた。具体的
には、連続線が開曲線である場合と、閉曲線である場合
とで、予め連続線の種類を宣言し、処理を分けて入力を
する必要があった。 【0005】従って、連続線入力の手順が複雑であり、
また連続線の種類を一度宣言すると途中で処理を変更す
ることもできなかった。 【0006】本発明の課題は、連続線の種類を予め宣言
する必要をなくすことである。 【0007】 【課題を解決するための手段】この発明は、描画しよう
とする連続線上の点を始点から終点まで順番に指定して
いくことで、その指定された各点を結ぶ曲線を描画する
図形作成装置であって、新たに指定された点の座標と、
それまでに指定された点の座標とを比較する比較手段
と、前記比較手段による比較の結果、新たに指定された
点の座標が、始点の座標と一致すると判断された場合に
は、その一致した点で接続された閉曲線を描画する閉曲
線描画手段と、前記比較手段による比較の結果、新たに
指定された点の座標が、直前に指定された点の座標と一
致すると判断された場合には、その一致した点を終点と
する開曲線を描画する開曲線描画手段と、を具備したこ
とを特徴とする。 【0008】 【0009】 【実施例】以下、本発明の一実施例を、図1乃至図3を
参照して説明する。 【0010】図1は本発明の一実施例の名刺作成装置の
構成を示すブロック図であり、同図において、参照番号
10は全体の制御を行うCPUである。12は実行,カ
ーソル移動他の機能キーを備えたキーボードであり、1
4はポインティングデバイスとしてのマウスである。 【0011】また、16はユーザのキー入力部12及び
マウス14の操作に応じて図形のデータを作成,編集す
る図形編集部であり、18は該図形編集部16によって
作成された図形データを保存する図形メモリである。図
形データは、図形種データと座標データ(含むベクトル
データ)で成り、図形メモリ18はこれらを対応付けて
記憶するための図形種記憶領域18Aと座標記憶領域1
8Bを含む。 【0012】そして、20は表示部22にて表示される
表示データをドットパターンで記憶する表示メモリであ
り、上記図形メモリ18に保存された図形データをイメ
ージに変換して記憶する。 【0013】次に、このような構成に於ける動作を、図
2のフローチャート及び図3の(A)乃至(F)の表示
例を参照して説明する。ここでは、マウス14を使用し
た自由線の入力例を説明する。 【0014】先ず最初に、図3の(A)に示すように、
適当な座標位置でマウス・ボタンを1回クリックして始
点24を入力すると、図形編集部16は、この始点座標
(x1 ,y1 )を図形メモリ18の座標記憶領域18B
に入力保持すると共に、不図示の内部カウンタnを
“1”に初期設定する(ステップS1)。 【0015】次に、自由線を描くために、図3の(B)
に参照番号26で示すように自由線の通過点が入力され
る。これは、マウス・カーソル(図示せず)の座標を移
動して、マウス・ボタン(図示せず)を1回押して、直
ちに離す(このボタン操作をクリックと称する)ことに
より行われる。即ち、マウス・ボタンが押されると、図
形編集部16は、カウンタnをカウント・アップした後
(ステップS2)、座標検索モードであるかどうか、つ
まり直ちにマウス・ボタンが離されたかどうかを検出す
る(ステップS3)。検索モードでない時は、座標位置
がそのまま通過点(xn ,yn )となり、座標記憶領域
18に追加保持される(ステップS4)。従って、この
座標(xn ,yn )は、座標記憶領域18に保持された
始点(x1 ,y1 )に等しくなく(ステップS5)、ま
た前座標(xn-1 ,yn-1 )とも等しくないので(ステ
ップS6)、上記ステップS2に戻り、次の座標入力を
受け付ける。 【0016】これを繰り返すことにより、図3の(B)
に参照番号28,30,32で示すように、自由線の通
過点が順次入力され、それらの座標が図形メモリ18の
座標記憶領域18Bに追加保持される。 【0017】そして、開曲線を入力する場合には、同一
の座標で(例えば、図3の(C)に示す点34で)、マ
ウス・ボタンが2回クリックされることにより、最終点
が入力される。即ち、2回目のクリックにより、上記ス
テップS6で、座標(xn ,yn )が、1回目のクリッ
クによる前座標(xn-1 ,yn-1 )に等しいと判断され
る。この場合には、その点34が最終点となり、図形メ
モリ18の図形種記憶領域18Aに開曲線を示す図形種
データが記憶され、表示部22においては、図3の
(D)に示すように、始点24から各点26,28,3
0,32を経て最終点34を結ぶ開曲線36が引かれる
(ステップS7)。 【0018】一方、閉曲線を入力する場合には、始点を
検索するための検索領域が入力される。この検索領域の
入力方法としては、例えば、図3の(E)に示すよう
に、マウス・ボタンを押して領域始点38を入力し、そ
のボタンを押したまま領域終点40の位置までマウス・
カーソルを持っていき、マウス・ボタンを離すことによ
って領域終点40を入力する。そして、この領域始点3
8と領域終点40を対角線とした長方形を検索領域42
とする。 【0019】即ち、図形編集部16は、マウス・ボタン
が押された後、直ちにマウス・ボタンが離されないとき
には、上記ステップS3に於いて座標検索モードである
と判断し、検索領域42が確定されるのを待って、その
検索領域42内の自由線の始点24を検索し、検索され
た点の座標を(xn ,yn )として座標記憶領域18B
に追加保持する(ステップS8)。こうして座標記憶領
域18Bに保持された座標(xn ,yn )は、始点24
(x1 ,y1 )に等しくなるので、上記ステップS5で
等しいと判断される。この場合には、始点24が最終点
となり、図形メモリ18の図形種記憶領域18Aに閉曲
線を示す図形種データが記憶され、表示部22において
は、図3の(F)に示すように、始点24から各点2
6,28,30,32を経て始点24に戻る閉曲線44
が引かれる(ステップS9)。 【0020】なお、上記ステップS8の検索処理に於い
て、指定された検索領域42内に始点が検索できなかっ
た場合には、領域始点38を(xn ,yn )とする。 【0021】以上のように、連続線入力時の最終点入力
の際に、図形検索機能を使用することにより、その連続
線が閉曲線か開曲線であるかを判別する、つまり、連続
線の終点入力の際に、入力始点を検索するか、どうする
かで、閉曲線処理か、開曲線処理かを判別するようにし
ているので、連続線の種類を予め宣言する必要がなく、
入力の手間が省ける。また、途中で連続線の種類を変更
することができるようになる。 【0022】なお、上記実施例では、マウス14を用い
て各点を指定するようにしたが、キー入力部12のカー
ソルキーなどを利用することも可能である。 【0023】 【発明の効果】本発明によれば、終点入力時に開曲線と
閉曲線を自動的に判断し、連続線を入力できるので、連
続線の種類を予め宣言する必要がなくなり、入力の手間
を省くことができ、入力操作を行う上での操作性を向上
できる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic creating apparatus for creating a graphic in a computer information processing apparatus, and more particularly to an input method for creating a continuous line. . 2. Description of the Related Art Conventionally, software for drawing figures with a personal computer has been known. Also,
It is also known that such a graphic creation device is provided as one of the functions of a word processor. [0003] This type of figure creating apparatus is used for a circle, a square,
You can freely draw figures by combining straight lines and curves. [0004] However, in the conventional graphic forming apparatus, input processing of a continuous line differs depending on the type of the continuous line. More specifically, it is necessary to declare the type of the continuous line in advance when the continuous line is an open curve and when the continuous line is a closed curve, and to input separately for each process. Accordingly, the procedure for inputting continuous lines is complicated,
Also, once the type of continuous line was declared, the processing could not be changed on the way. An object of the present invention is to eliminate the need to declare the type of a continuous line in advance. According to the present invention, a curve connecting the designated points is drawn by sequentially specifying points on a continuous line to be drawn from a start point to an end point. A graphics creating device, comprising: coordinates of a newly designated point;
Comparing means for comparing the coordinates of the designated point up to that time; and as a result of the comparison by the comparing means, if it is determined that the coordinates of the newly designated point match the coordinates of the starting point, the coincidence is determined. If the result of the comparison by the closed curve drawing means for drawing a closed curve connected at the set point and the comparing means determines that the coordinates of the newly specified point match the coordinates of the point specified immediately before, And an open curve drawing means for drawing an open curve having the coincident point as an end point. An embodiment of the present invention will be described below with reference to FIGS. 1 to 3. FIG. 1 is a block diagram showing the configuration of a business card creating apparatus according to an embodiment of the present invention. In FIG. 1, reference numeral 10 denotes a CPU for performing overall control. Reference numeral 12 denotes a keyboard provided with function keys for execution, cursor movement, and other functions.
Reference numeral 4 denotes a mouse as a pointing device. Reference numeral 16 denotes a graphic editing unit for generating and editing graphic data in response to the user's operation of the key input unit 12 and the mouse 14, and 18 stores the graphic data generated by the graphic editing unit 16. This is a figure memory. The graphic data is composed of graphic type data and coordinate data (including vector data), and the graphic memory 18 stores a graphic type storage area 18A and a coordinate storage area 1 for storing these in association with each other.
8B. Reference numeral 20 denotes a display memory for storing the display data displayed on the display unit 22 in a dot pattern, and converts the graphic data stored in the graphic memory 18 into an image and stores it. Next, the operation in such a configuration will be described with reference to the flowchart of FIG. 2 and the display examples of FIGS. 3 (A) to 3 (F). Here, an example of inputting a free line using the mouse 14 will be described. First, as shown in FIG.
When the mouse button is clicked once at an appropriate coordinate position and the start point 24 is input, the figure editing unit 16 stores the start point coordinates (x 1 , y 1 ) in the coordinate storage area 18B of the figure memory 18.
And an internal counter n (not shown) is initialized to "1" (step S1). Next, in order to draw a free line, FIG.
As shown by reference numeral 26, a passing point of the free line is input. This is performed by moving the coordinates of a mouse cursor (not shown), pressing the mouse button (not shown) once, and immediately releasing it (this button operation is referred to as clicking). That is, when the mouse button is pressed, the graphic editing unit 16 counts up the counter n (step S2), and then detects whether the mode is the coordinate search mode, that is, whether the mouse button is immediately released. (Step S3). When not in search mode, the coordinate position as the passing point (x n, y n), and the added retained in the coordinate memory area 18 (step S4). Therefore, the coordinates (x n, y n) is not equal to the starting point held in the coordinate storage area 18 (x 1, y 1) ( step S5), and also the coordinates before (x n-1, y n -1 ) (Step S6), the flow returns to step S2, and the next coordinate input is accepted. By repeating the above, FIG.
As shown by reference numerals 28, 30, and 32, the passing points of the free lines are sequentially inputted, and their coordinates are additionally stored in the coordinate storage area 18B of the graphic memory 18. When inputting an open curve, the last point is input by clicking the mouse button twice at the same coordinates (for example, at point 34 shown in FIG. 3C). Is done. That is, the second click, at step S6, the coordinates (x n, y n) is determined to be equal to the coordinates before (x n-1, y n -1) according to first click. In this case, the point 34 becomes the final point, and the graphic type data indicating the open curve is stored in the graphic type storage area 18A of the graphic memory 18, and as shown in FIG. , Each point 26, 28, 3 from the starting point 24
An open curve 36 connecting the final point 34 via 0 and 32 is drawn (step S7). On the other hand, when a closed curve is input, a search area for searching for a starting point is input. As a method for inputting the search area, for example, as shown in FIG. 3 (E), a mouse button is pressed to input an area start point 38, and the mouse is moved to the area end point 40 while keeping the button pressed.
Move the cursor and release the mouse button to enter the region end point 40. And this area start point 3
The search area 42 is a rectangle having a diagonal line of 8 and the area end point 40.
And That is, if the mouse button is not released immediately after the mouse button is pressed, the graphic editing unit 16 determines that the coordinate search mode is set in step S3, and the search area 42 is determined. that of the waiting, searching for the starting point 24 of the free lines of the search area 42, the coordinate storage area 18B coordinates of the searched point as (x n, y n)
(Step S8). Thus coordinates held in the coordinate storage area 18B (x n, y n) is the starting point 24
Since it is equal to (x 1 , y 1 ), it is determined that it is equal in step S5. In this case, the starting point 24 is the final point, the figure type data indicating the closed curve is stored in the figure type storage area 18A of the figure memory 18, and the display unit 22 displays the starting point as shown in FIG. 2 points from 24
A closed curve 44 returning to the starting point 24 via 6, 28, 30, 32
Is subtracted (step S9). If the start point cannot be found in the designated search area 42 in the search processing in step S8, the area start point 38 is set to (x n , y n ). As described above, at the time of inputting the final point at the time of inputting a continuous line, the graphic search function is used to determine whether the continuous line is a closed curve or an open curve, that is, the end point of the continuous line. At the time of input, whether to search for the input start point or whether to perform closed curve processing or open curve processing is determined, so there is no need to declare the type of continuous line in advance,
It saves the trouble of inputting. Further, the type of the continuous line can be changed in the middle. In the above embodiment, each point is designated by using the mouse 14, but it is also possible to use a cursor key of the key input unit 12 or the like. According to the present invention, since an open curve and a closed curve can be automatically determined at the time of inputting an end point and a continuous line can be input, there is no need to declare the type of the continuous line in advance, and the input time is reduced. Can be omitted, and the operability in performing the input operation can be improved.

【図面の簡単な説明】 【図1】本発明の一実施例の図形作成装置のブロック構
成図である。 【図2】一実施例の動作を説明するためのフローチャー
トである。 【図3】(A)乃至(F)はそれぞれ一実施例の動作を
説明するための表示例を示す図である。 【符号の説明】 10…CPU、12…キー入力部、14…マウス、16
…図形編集部、18…図形メモリ、18A…図形種記憶
領域、18B…座標記憶領域、20…表示メモリ、22
…表示部。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a graphic creating apparatus according to an embodiment of the present invention. FIG. 2 is a flowchart for explaining the operation of one embodiment. FIGS. 3A to 3F are diagrams each showing a display example for explaining the operation of one embodiment. [Description of Signs] 10 CPU, 12 key input unit, 14 mouse, 16
... Figure editing unit, 18... Figure memory, 18A... Figure type storage area, 18B.
... Display unit.

フロントページの続き (56)参考文献 特開 平9−326038(JP,A) 特開 昭63−129480(JP,A) ツールとしてのUNIX,株式会社サ イエンス社,1993年 4月25日,第1 版,p.150−153 OS IV GDP/EX説明書(図 形編集・出力プログラム)V10L10系用 初版,富士通株式会社,1990年 6月30 日,第1版,p.75−77 (58)調査した分野(Int.Cl.7,DB名) G06T 11/80 G06T 11/20 G06F 3/00 G06F 3/153 CSDB(日本国特許庁)Continuation of the front page (56) References JP-A-9-326038 (JP, A) JP-A-63-129480 (JP, A) UNIX as a tool, Science Inc., April 25, 1993, 1st edition, p. 150-153 OS IV GDP / EX Instructions (Drawing and Output Program) V10L10 Series First Edition, Fujitsu Limited, June 30, 1990, First Edition, p. 75-77 (58) Field surveyed (Int. Cl. 7 , DB name) G06T 11/80 G06T 11/20 G06F 3/00 G06F 3/153 CSDB (Japan Patent Office)

Claims (1)

(57)【特許請求の範囲】 【請求項1】 描画しようとする連続線上の点を始点か
ら終点まで順番に指定していくことで、その指定された
各点を結ぶ曲線を描画する図形作成装置であって、 新たに指定された点の座標と、それまでに指定された点
の座標とを比較する比較手段と、 前記比較手段による比較の結果、新たに指定された点の
座標が、始点の座標と一致すると判断された場合には、
その一致した点で接続された閉曲線を描画する閉曲線描
画手段と、 前記比較手段による比較の結果、新たに指定された点の
座標が、直前に指定された点の座標と一致すると判断さ
れた場合には、その一致した点を終点とする開曲線を描
画する開曲線描画手段と、 を具備したことを特徴とする図形作成装置。
(57) [Claims] [Claim 1] Creating a figure that draws a curve connecting the specified points by sequentially specifying points on a continuous line to be drawn from a start point to an end point An apparatus, comprising: comparing means for comparing the coordinates of a newly designated point with the coordinates of a point designated so far; as a result of the comparison by the comparing means, the coordinates of the newly designated point are: If it is determined that they match the coordinates of the starting point,
A closed curve drawing unit that draws a closed curve connected at the coincident point; and a result of the comparison by the comparing unit, where it is determined that the coordinates of the newly specified point match the coordinates of the point specified immediately before. And an open curve drawing means for drawing an open curve having the coincident point as an end point.
JP20250393A 1993-07-26 1993-07-26 Figure creation device Expired - Fee Related JP3433475B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20250393A JP3433475B2 (en) 1993-07-26 1993-07-26 Figure creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20250393A JP3433475B2 (en) 1993-07-26 1993-07-26 Figure creation device

Publications (2)

Publication Number Publication Date
JPH0744722A JPH0744722A (en) 1995-02-14
JP3433475B2 true JP3433475B2 (en) 2003-08-04

Family

ID=16458569

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20250393A Expired - Fee Related JP3433475B2 (en) 1993-07-26 1993-07-26 Figure creation device

Country Status (1)

Country Link
JP (1) JP3433475B2 (en)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
OS IV GDP/EX説明書(図形編集・出力プログラム)V10L10系用初版,富士通株式会社,1990年 6月30日,第1版,p.75−77
ツールとしてのUNIX,株式会社サイエンス社,1993年 4月25日,第1版,p.150−153

Also Published As

Publication number Publication date
JPH0744722A (en) 1995-02-14

Similar Documents

Publication Publication Date Title
JP3372563B2 (en) Tree structure display editing device
US6169547B1 (en) Method for displaying an icon of media data
US6204845B1 (en) Ergonomic viewable object processor
EP1958056B1 (en) A method of tracking data objects using related thumbnails in a palette window
EP0192022B1 (en) Method for interactive rotation of displayed graphic objects
JPH08185301A (en) Apparatus and method for assistance for direct operation
JP3043632B2 (en) Toolbar display system
JP3345433B2 (en) Image editing device
JPH0895767A (en) Program generating method using program component
JP2959069B2 (en) Slip input processor
JP3433475B2 (en) Figure creation device
US5229958A (en) Data input device having arithmetical function
JP3489364B2 (en) Table processing equipment
JPH0721067A (en) Multiplex undoing method
JPS61262884A (en) Method for drawing to specified point on element
JPH0816608A (en) Data management device
JPH05216929A (en) Color image file controller
JPH09153101A (en) Data analyzing method based upon displayed graph
JPH0816805A (en) Graphic generation device
JPH04302366A (en) Retrieving display device of interactive data system
JP3252176B2 (en) Data input device
JPH02250178A (en) Graphic generator
JP2751224B2 (en) Document creation device
JPS61250783A (en) Conversation processing system
JP3000749B2 (en) Character editing device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080530

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090530

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090530

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100530

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110530

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110530

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120530

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120530

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130530

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees