JP2000187736A - Line drawing device and recording medium for its program - Google Patents

Line drawing device and recording medium for its program

Info

Publication number
JP2000187736A
JP2000187736A JP10376188A JP37618898A JP2000187736A JP 2000187736 A JP2000187736 A JP 2000187736A JP 10376188 A JP10376188 A JP 10376188A JP 37618898 A JP37618898 A JP 37618898A JP 2000187736 A JP2000187736 A JP 2000187736A
Authority
JP
Japan
Prior art keywords
line segment
line
drawn
segment
unit
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
JP10376188A
Other languages
Japanese (ja)
Inventor
Naoki Hitosugi
直樹 一杉
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 JP10376188A priority Critical patent/JP2000187736A/en
Publication of JP2000187736A publication Critical patent/JP2000187736A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To make it possible to simply draw a line free from jaggies or gaps as a whole only by drawing only a segment of it without drawing the entire line. SOLUTION: When an optional segment is manually drawn in advance by mouse operation on an input device 5, a CPU 1 generates a segment similar to the previously drawn segment by regarding the segment as an already drawn segment. The CPU 1 extends the segment by matching the start position of the generated segment with the end position of the already drawn segment and connecting both the segments in a prescribed direction.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、線を描画する線
描画装置およびそのプログラム記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a line drawing apparatus for drawing a line and a program recording medium for the line drawing apparatus.

【0002】[0002]

【従来の技術】従来、ワードプロセッサやパーソナルコ
ンピュータ等において、ペイント系アプリケーションプ
ログラムを起動させて線を描画する場合には、マウス等
のポインティングデバイスやカーソルキー等を操作して
線分を直接描画するようにしている。すなわち、マウス
をドラッグ操作すると、マウスの移動軌跡通りの線分が
描画され、また、カーソルキーをホールド操作すると、
カーソルの移動軌跡通りの線分が描画される。
2. Description of the Related Art Conventionally, in a word processor, a personal computer, or the like, when a paint application program is started to draw a line, a line segment is directly drawn by operating a pointing device such as a mouse, a cursor key, or the like. I have to. That is, when the mouse is dragged, a line segment is drawn according to the movement locus of the mouse, and when the cursor key is held, the line segment is drawn.
A line segment is drawn according to the movement locus of the cursor.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述の
ような操作で描画される線は、マウスやカーソルの移動
軌跡通りであるため、線自体がギザギザに振動したり、
方向転換点で線分同士を連結する場合に、その転換点で
線同士がつながっていないと、見た目にも良くないばか
りか、線がつながっていない状態で枠内の塗りつぶしを
行うと、枠内から塗りつぶした領域がはみ出してしまう
という欠点があった。第1の発明の課題は、線全体を描
画しなくてもその一部の線分を描画するだけで、全体的
にギザギザや隙間のない線を簡単に描画できるようにす
ることである。第2の発明の課題は、所望の線図形を作
成描画する際にその線図形の外郭形状に合わせてその各
特徴点を順次入力指定するだけで、ギザギザや隙間のな
い線図形を簡単に描画できるようにすることである。
However, the line drawn by the above-described operation follows the movement trajectory of the mouse or the cursor, so that the line itself vibrates jaggedly,
When connecting line segments at a turning point, if the lines are not connected at the turning point, it will not only look bad, but if you fill the frame with the lines not connected, the However, there is a disadvantage that the area that is painted out of the area protrudes. It is an object of the first invention to make it possible to easily draw a line without jaggies or gaps by drawing only a part of the line segment without drawing the whole line. A second object of the present invention is to easily draw a line figure without jaggies or gaps by simply inputting and specifying each characteristic point in accordance with the outline shape of the line figure when a desired line figure is drawn. Is to be able to do it.

【0004】[0004]

【課題を解決するための手段】この発明の手段は次の通
りである。請求項1記載の発明は、任意の線分を描画す
る線分描画手段と、この線分描画手段によって既に描画
された線分と同様の線分を生成する線分生成手段と、既
に描画されている線分の終点位置に前記線分生成手段に
よって生成された線分の始点位置を合わせて線分同士を
所定の方向に接続する線分延長手段とを具備するもので
ある。なお、この発明は次のようなものであってもよ
い。 (1)、既に描画されている線分と前記線分生成手段に
よって生成された線分とをどの方向に接続するかを示す
接続方向を任意に選択する選択手段を設け、前記線分延
長手段は、前記選択手段によって選択された接続方向へ
線分を接続するようにしてもよい。この場合、前記線分
延長手段によって複数の接続方向別に接続された実際の
線分を線分延長の選択候補として表示する表示手段を設
け、前記選択手段は、前記表示手段によって表示される
選択候補の中から所望の候補を選択するようにしてもよ
い。 (2)、線分が描画される毎にその線分の始点位置およ
び終点位置を検出する位置検出手段と、この位置検出手
段によって検出された始点位置および終点位置を前回描
画の線分範囲を示す範囲データとして一時記憶する範囲
記憶手段とを設け、前記線分生成手段は、前記範囲記憶
手段に記憶されている範囲データに基づいてその範囲内
の線分と同様の線分を生成するようにしてもよい。 (3)、線の末端位置を指定する指定手段を設け、前記
線分延長手段は、前記指定手段によって指定された末端
位置に達するまで前記線分生成手段によって生成された
線分を繰り返して接続するようにしてもよい。請求項1
記載の発明においては、既に任意に入力描画された線分
と同様の線分を生成し、既に描画されている線分の終点
位置に、生成された線分の終点位置を合わせて線分同士
を所定方向に接続する。したがって、線全体を描画しな
くてもその一部の線分を描画するだけで、全体的にギザ
ギザや隙間のない線を簡単に描画することができる。
The means of the present invention are as follows. According to the first aspect of the present invention, there is provided a line segment drawing unit for drawing an arbitrary line segment, a line segment generating unit for generating a line segment similar to the line segment already drawn by the line segment drawing unit, Line extension means for connecting the line segments in a predetermined direction by matching the start point position of the line segment generated by the line segment generation unit with the end point position of the line segment. The present invention may be as follows. (1) There is provided a selection unit for arbitrarily selecting a connection direction indicating a direction in which a line segment already drawn and a line segment generated by the line segment generation unit are connected, and the line segment extension unit May connect the line segments in the connection direction selected by the selection means. In this case, display means is provided for displaying actual line segments connected by a plurality of connection directions by the line segment extension means as selection candidates for line extension, and the selection means comprises a selection candidate displayed by the display means. May be selected from the list. (2) A position detecting means for detecting a starting point position and an ending point position of the line segment every time a line segment is drawn, and a starting point position and an ending point position detected by the position detecting means are used to determine the range of the line segment of the previous drawing. Range storage means for temporarily storing as range data shown, wherein the line segment generation means generates a line segment similar to a line segment within the range based on the range data stored in the range storage means. It may be. (3) A designating means for designating the end position of the line is provided, and the line extending means repeats and connects the line segment generated by the line segment generating unit until the end position specified by the designating unit is reached. You may make it. Claim 1
In the described invention, a line segment similar to the line segment already arbitrarily input and drawn is generated, and the end point position of the generated line segment is matched with the end point position of the already drawn line segment to thereby form a line segment. Are connected in a predetermined direction. Therefore, it is possible to easily draw a line without jaggies or gaps by drawing only a part of the line segment without drawing the whole line.

【0005】請求項6記載の発明は、所望の線図形を作
成描画する際に、その線図形の外郭形状に合わせてその
各特徴点を順次入力指定する指定手段と、この指定手段
によって指定された各特徴点を入力指定された順序にし
たがって順次抽出する抽出手段と、この抽出手段によっ
て特徴点が抽出される毎に、前後の特徴点間に所定の線
分を挿入描画する線分挿入手段とを具備し、前記入力指
定された各特徴点をその入力順序にしたがって所定の線
分で順次連結してゆくことにより線図形を作成するもの
である。なお、前記各特徴点間をどのような種類の線分
で連結するかを選択する線分種選択手段を設け、前記線
分描画手段は、前記線分種選択手段によって選択された
種類の線分を前後の特徴点間に描画するようにしてもよ
い。この場合、前記線分挿入手段によって線分種別に描
画された実際の線分を選択候補として表示する表示手段
を設け、前記線分種選択手段は、前記表示手段によって
表示される選択候補の中から所望の候補を選択するよう
にしてもよい。請求項6記載の発明においては、所望の
線図形を作成描画する際に、その線図形の外郭形状に合
わせてその各特徴点を順次入力指定すると、指定された
各特徴点を入力指定された順序にしたがって順次抽出す
ると共に、特徴点を抽出する毎に前後の特徴点間に所定
の線分を挿入描画する。したがって、所望の線図形を作
成描画する際にその線図形の外郭形状に合わせてその各
特徴点を順次入力指定するだけで、ギザギザや隙間のな
い線図形を簡単に描画することができる。
According to a sixth aspect of the present invention, when a desired line figure is created and drawn, the designating means for sequentially inputting and designating each characteristic point in accordance with the outline shape of the line figure, and the designating means designated by the designating means. Extracting means for sequentially extracting each of the feature points according to the input and designated order, and line segment inserting means for inserting and drawing a predetermined line segment between preceding and following feature points each time a feature point is extracted by the extracting means. And a line figure is created by sequentially connecting the input-designated feature points with predetermined line segments in accordance with the input order. Note that line segment type selection means for selecting what kind of line segment is to be connected between the respective feature points is provided, and the line segment drawing means is a line segment of the type selected by the line segment type selection means. The minute may be drawn between the preceding and following feature points. In this case, display means for displaying, as selection candidates, actual line segments drawn by the line segment type by the line segment insertion means, wherein the line segment type selection means includes one of the selection candidates displayed by the display means. , A desired candidate may be selected. In the invention according to claim 6, when a desired line graphic is created and drawn, each of the characteristic points is sequentially input and specified in accordance with the outline shape of the line graphic, and each of the specified characteristic points is input and specified. Extraction is performed sequentially according to the order, and every time a feature point is extracted, a predetermined line segment is inserted and drawn between the preceding and following feature points. Therefore, when a desired line figure is created and drawn, a line figure without jaggies or gaps can be easily drawn only by sequentially inputting and designating each feature point in accordance with the outline shape of the line figure.

【0006】[0006]

【発明の実施の形態】以下、図1〜図12を参照してこ
の発明の一実施形態を説明する。図1はパーソナルコン
ピュータの全体構成を示したブロック図である。CPU
1は各種プログラムにしたがってこのパーソナルコンピ
ュータの全体動作を制御する中央演算処理装置である。
記憶装置2はオペレーティングシステムや各種アプリケ
ーションプログラム、データベース等が予め格納されて
いる記憶媒体3やその駆動系を有している。この記憶媒
体は固定的に設けたもの、もしくは着脱自在に装着可能
なものであり、フロッピーディスク、ハードディスク、
光ディスク、RAMカード等の磁気的・光学的記憶媒
体、半導体メモリによって構成されている。また、記憶
媒体3内のプログラムやデータは、必要に応じてCPU
1の制御により、RAM4にロードされる。更に、CP
U1は他の機器側から送信されて来たプログラム、デー
タを受信して記憶媒体3に格納したり、他の機器側に設
けられている記憶媒体に格納されているプログラム、デ
ータを使用することもできる。このCPU1にはその入
出力周辺デバイスである入力装置5、表示装置6がバス
ラインを介して接続されており、入出力プログラムにし
たがってCPU1はそれらの動作を制御する。入力装置
5は文字列データ等を入力したり、各種コマンドを入力
するキーボードのポインティングデバイスとしてこのマ
ウスを有している。ここで、マウスをドラッグ操作する
ことによって入力装置5から線分データが入力される
と、表示装置6のテキスト画面上に描画されると共に、
RAM4に格納される。なお、表示装置6は多色表示を
行う液晶表示装置やCRT表示装置あるいはプラズマ表
示装置等である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. FIG. 1 is a block diagram showing the overall configuration of a personal computer. CPU
A central processing unit 1 controls the overall operation of the personal computer according to various programs.
The storage device 2 includes a storage medium 3 in which an operating system, various application programs, a database, and the like are stored in advance, and a drive system thereof. This storage medium can be fixedly provided or removably mountable, such as a floppy disk, hard disk,
It is composed of a magnetic / optical storage medium such as an optical disk and a RAM card, and a semiconductor memory. Further, the programs and data in the storage medium 3 are stored in the CPU
1 is loaded into the RAM 4. Furthermore, CP
U1 receives programs and data transmitted from other devices and stores them in the storage medium 3 or uses programs and data stored in storage media provided in other devices. Can also. An input device 5 and a display device 6, which are input / output peripheral devices, are connected to the CPU 1 via a bus line, and the CPU 1 controls the operations according to an input / output program. The input device 5 has this mouse as a keyboard pointing device for inputting character string data and the like and for inputting various commands. Here, when line segment data is input from the input device 5 by dragging the mouse, the line segment data is drawn on the text screen of the display device 6 and
It is stored in the RAM 4. The display device 6 is a liquid crystal display device, a CRT display device, a plasma display device, or the like that performs multicolor display.

【0007】図2はRAM4内の特徴部分を示したメモ
リ構成図であり、このRAM4には各種のメモリ領域が
割り当てられている。線描画パターンメモリ4−1は入
力作成された線描画パターンが展開されるメモリで、線
描画時にマウスがドラッグ操作された際に、その移動軌
跡通りの線描画パターンがテキスト画面上に描画される
と、CPU1はそれをドットの集合パターンとして線描
画パターンメモリ4−1に格納する。ここで、任意の線
を描画する場合において、この実施形態においては線の
全てをマウス操作によって通常通りに入力描画せずに、
その一部の線分をマウス操作によって入力描画するだけ
で、それ以降は既に描画された線分と同一の線分を何回
も繰り返しながら延長してゆくことによって所望の線を
描画できるようになっている。このような線描画モード
を延長描画モードと称すると、この延長描画モードにお
いて、CPU1は既に描画されている線描画パターンメ
モリ4−1内の線分データを読み出してその線分の軌跡
を解析する。解析結果メモリ4−2はこの解析結果が一
時記憶されるメモリで、既に描画されている線分と同様
の線分パターンが格納されるもので、CPU1は既に描
画されている線描画パターンメモリ4−1内の線分パタ
ーンと、この線分パターンを解析することによって新た
に生成された解析結果メモリ4−2内の線分パターンと
を所定の方向に接続することにより線分を接続延長する
線分延長処理を行う。この場合、既に描画されている線
分の終点位置と新たに生成された線分の始点位置とを合
わせて線分同士を接続し、この接続延長後のパターンを
線描画パターンメモリ4−1に格納する。
FIG. 2 is a memory configuration diagram showing characteristic portions in the RAM 4, and various memory areas are allocated to the RAM 4. The line drawing pattern memory 4-1 is a memory in which an input created line drawing pattern is developed, and when a mouse is dragged during line drawing, a line drawing pattern according to the movement locus is drawn on a text screen. Then, the CPU 1 stores it in the line drawing pattern memory 4-1 as a set pattern of dots. Here, in the case of drawing an arbitrary line, in this embodiment, all the lines are not input and drawn as usual by mouse operation,
By simply inputting and drawing some of the line segments with the mouse, the desired line can be drawn by repeating the same line segment as the already drawn line segment many times. Has become. When such a line drawing mode is referred to as an extended drawing mode, in this extended drawing mode, the CPU 1 reads line data in the line drawing pattern memory 4-1 that has already been drawn and analyzes the locus of the line. . The analysis result memory 4-2 is a memory for temporarily storing the analysis result, and stores a line segment pattern similar to the already drawn line segment. -1 and a line segment pattern in the analysis result memory 4-2 newly generated by analyzing the line segment pattern in a predetermined direction, thereby connecting and extending the line segment. Perform line segment extension processing. In this case, the line segments are connected by matching the end point position of the already drawn line segment and the start point position of the newly generated line segment, and the pattern after this connection extension is stored in the line drawing pattern memory 4-1. Store.

【0008】特徴点描画メモリ4−3は所望する線図形
を作成描画する際に、その線図形の外郭形状に合わせて
その各特徴点が順次入力指定された場合に、各特徴点の
座標値が記憶される。CPU1は各特徴点を入力指定さ
れた順序にしたがって順次抽出すると共に、特徴点を抽
出する毎に、前後の特徴点間に所定の線分を挿入してゆ
くことによって線図形を描画する。このような線描画モ
ードを以下、特徴点描画モードと称する。線描画選択E
NDフラグレジスタ4−4は上述した延長描画モードに
おいて、線分を延長する元となる線分パターンを既に入
力描画し終ったことを示すフラグを記憶し、座標入力E
NDフラグレジスタ4−5は上述した特徴を描画モード
において、各特徴点の座標を全て入力指定し終ったこと
を示すフラグを記憶する。nレジスタ4−6は線分描画
時において、線分描画の候補を任意に選択指定する毎に
更新される選択候補を指示するための値がセットされる
もので、最初は初期値「1」がセットされ、以降は
「1」、「2」、「3」、「1」、「2」……とその値
は入力操作に応答しサイクリックに更新される。描画候
補メモリ4−7は選択候補の線分パターンが一時記憶さ
れ、また、ワークメモリ4−8は線分描画等の処理途中
における中間結果が一時記憶されるその他のワーク域で
ある。
When a desired line graphic is created and drawn, the characteristic point drawing memory 4-3 sequentially inputs and designates the characteristic points in accordance with the outline shape of the line figure, and sets the coordinate values of the characteristic points. Is stored. The CPU 1 sequentially draws each feature point in the order specified by input, and draws a line figure by inserting a predetermined line segment between preceding and following feature points each time a feature point is extracted. Such a line drawing mode is hereinafter referred to as a feature point drawing mode. Line drawing selection E
The ND flag register 4-4 stores a flag indicating that the line segment pattern from which the line segment is to be extended has already been input and drawn in the above-described extended drawing mode.
The ND flag register 4-5 stores a flag indicating that all the coordinates of each feature point have been input and designated in the above-described feature drawing mode. An n register 4-6 is set with a value for designating a selection candidate that is updated each time a line segment drawing candidate is arbitrarily selected and designated at the time of line segment drawing. Are set, and thereafter, the values "1", "2", "3", "1", "2",... Are cyclically updated in response to the input operation. The drawing candidate memory 4-7 temporarily stores a line segment pattern of a selection candidate, and the work memory 4-8 is another work area in which an intermediate result during processing such as line drawing is temporarily stored.

【0009】次に、このパーソナルコンピュータにおけ
る線描画処理を図3〜図8に示すフローチャートにした
がって説明する。ここで、これらのフローチャートに記
述されている各機能を実現するためのプログラムは、読
み取り可能なプログラムコードの形態で記憶媒体3に格
納されており、CPU1はこのプログラムコードにした
がった動作を逐次実行する。図3はマウス操作によって
応じた線描画処理を示したフローチャートである。先
ず、線描画処理の実行が指示されると、CPU1は線描
画選択ENDフラグレジスタ4−4、座標入力ENDフ
ラグレジスタ4−5をオフし、各レジスタに“0”をセ
ットしておくと共に(ステップA1、A2)、nレジス
タ4−6に初期値“0”をセットしておく(ステップA
3)。このようなイニシャライズ処理を行ったのち、マ
ウスの右ボタン、左ボタンが押下されたかを調べ(ステ
ップA4、A5)、いずれが押下されるまで待機する。
いま、右ボタンが押下された場合には右ボタン処理が実
行され(ステップA6)、左ボタンが押下された場合に
は左ボタン処理が実行される(ステップA7)。
Next, a line drawing process in the personal computer will be described with reference to flowcharts shown in FIGS. Here, a program for realizing each function described in these flowcharts is stored in a storage medium 3 in the form of a readable program code, and the CPU 1 sequentially executes operations according to the program code. I do. FIG. 3 is a flowchart showing a line drawing process according to a mouse operation. First, when execution of the line drawing processing is instructed, the CPU 1 turns off the line drawing selection END flag register 4-4 and the coordinate input END flag register 4-5, and sets "0" in each register ( (Steps A1 and A2), the initial value “0” is set in the n register 4-6 (Step A).
3). After performing such initialization processing, it is determined whether the right button and the left button of the mouse have been pressed (steps A4 and A5), and the process waits until one of them is pressed.
When the right button is pressed, right button processing is executed (step A6), and when the left button is pressed, left button processing is executed (step A7).

【0010】図4は左ボタン処理を示したフローチャー
トである。先ず、左ボタン押下のままマウスが移動され
たか、つまり、マウスがドッラグ操作されたかを調べる
(ステップB1)。ここで、任意の線分を入力描画する
ためにマウスがドッラグ操作された場合には、線描画選
択ENDフラグレジスタ4−4がオフされているかを調
べるが(ステップB2)、最初はイニシャライズ処理に
よって当該フラグはオフされているので、手動描画処理
の実行に移る(ステップB3)。この手動描画処理は通
常と同様にマウスのドラッグ操作によってその軌跡通り
の線分を任意に描画する処理を行うもので、線描画の開
始時(線描画選択ENDフラグレジスタ4−4のオフ
時)にドラッグ操作が行われることによって実行開始さ
れる。
FIG. 4 is a flowchart showing the left button process. First, it is checked whether the mouse is moved while the left button is being pressed, that is, whether the mouse is dragged (step B1). Here, when the mouse is dragged to draw an arbitrary line segment, it is checked whether or not the line drawing selection END flag register 4-4 is turned off (step B2). Since the flag is turned off, the process proceeds to the execution of the manual drawing process (step B3). This manual drawing process performs a process of arbitrarily drawing a line segment according to the trajectory by dragging the mouse in the same manner as usual, and starts the line drawing (when the line drawing selection END flag register 4-4 is turned off). Is started when a drag operation is performed.

【0011】図5はこの手動描画処理を示したフローチ
ャートで、線描画の始点位置を検出してワークメモリ4
−8に保持したのち(ステップC1)、その始点位置か
らマウスが移動される毎に、マウスの移動軌跡通りの線
分パターンを描画し(ステップC2)、線描画パターン
メモリ4−1に展開してゆく(ステップC3)。この状
態において、マウスの左ボタンがオフされたかを調べ
(ステップC4)、ボタンオフが検出されるまでステッ
プC2に戻り、線分描画が続行される。ここで、左ボタ
ンがオフされると、今回描画された線分の終点位置を検
出してワークメモリ4−8に保持しておく(ステップC
5)。
FIG. 5 is a flowchart showing the manual drawing process.
After holding at -8 (step C1), each time the mouse is moved from its starting point position, a line segment pattern is drawn according to the movement locus of the mouse (step C2) and developed in the line drawing pattern memory 4-1. (Step C3). In this state, it is determined whether or not the left button of the mouse has been turned off (step C4). The process returns to step C2 until button-off is detected, and line segment drawing is continued. Here, when the left button is turned off, the end point position of the line segment drawn this time is detected and stored in the work memory 4-8 (step C).
5).

【0012】このようにして任意の線分を通常と同様に
手動描画した後において、この線分と同様の線分を所定
方向に延長接続するものとする。この場合、マウスの右
ボタンを押下する。すると、右ボタン処理(図3のステ
ップA6)に移行するが、この右ボタン処理は図6のフ
ローチャートにしたがって実行される。先ず、座標入力
ENDフラグレジスタ4−5を参照し、フラグ“1”か
を調べるが(ステップD1)、いま、当該フラグはオフ
されているので、既に描画されている線分が線描画パタ
ーンメモリ4−1内に存在しているかを調べる(ステッ
プD2)。ここで、線分無しが検出されると、その旨が
メッセージ表示されるが(ステップD3)、有れば既存
描画による線描画算出処理に移る(ステップD4)。
After manually drawing an arbitrary line segment in the same manner as usual, a line segment similar to this line segment is extended and connected in a predetermined direction. In this case, the right mouse button is pressed. Then, the process proceeds to the right button process (step A6 in FIG. 3). The right button process is executed according to the flowchart in FIG. First, referring to the coordinate input END flag register 4-5, it is checked whether the flag is "1" (step D1). Since the flag is turned off, the already drawn line segment is stored in the line drawing pattern memory. It is checked whether it exists in 4-1 (step D2). Here, when the absence of a line segment is detected, a message to that effect is displayed (step D3), but if there is, the process proceeds to a line drawing calculation process using existing drawing (step D4).

【0013】図7はこの線描画算出処理を示したフロー
チャートである。先ず、ワークメモリ4−8に保持され
ている既存描画の線分に対応する始点、終点位置を読み
出し(ステップE1)、この始点、終点間で示される線
分範囲を線描画パターンメモリ4−1上で特定し、その
間に存在する線分の軌跡を解析することによってそれと
同様の線分を生成する(ステップE2)。そして、nレ
ジスタ4−6を参照し、n=1かを調べるが(ステップ
E3)、いま、n=1であるから既存描画の線分終点位
置と今回生成した線分の始点位置とを合わせて描画候補
メモリ4−7上で順方向に延長する(ステップE4)。
すなわち、線描画パターンメモリ4−1から既存描画の
線分を読み出して描画候補メモリ4−7にコピーすると
共に、ステップE2で新たに生成した線分を描画候補メ
モリ4−7上で展開するが、その際、既存描画の線分終
点位置と今回新たに生成した線分の始点位置とを合わせ
て描画候補メモリ4−7上で順方向に延長接続する。図
9(A)はこの場合の順方向延長の状態を示し、既存描
画の線分(実線で示す半円弧の線分)には、それと同様
の形状、大きさを持つ線分(破線で示す半円弧の線分)
が同一方向に接続延長され、これによって真円が描画さ
れる。そして、nレジスタ4−6の値に「1」が加算さ
れてインクリメントされ、その値は「2」となる(ステ
ップE5)。そして、図6のステップD5に進み、接続
延長後の描画候補メモリ4−7内の線分(この場合には
真円)が候補表示される。ここで、当該候補の接続方向
を確定する場合にはダブルクリックを行うが(ステップ
D6)、それをキャンセルし、次候補表示を要求する場
合にはシングルクリックを行う(ステップD7)。
FIG. 7 is a flowchart showing the line drawing calculation process. First, the start point and the end point positions corresponding to the line segments of the existing drawing stored in the work memory 4-8 are read (step E1), and the line segment range indicated between the start point and the end point is stored in the line drawing pattern memory 4-1. A line segment similar to the above is generated by analyzing the trajectory of the line segment specified above and existing between the lines (step E2). Then, referring to the n register 4-6, it is checked whether n = 1 (step E3). Since n = 1 now, the line segment end point position of the existing drawing and the start point position of the line segment generated this time are matched. Then, it is extended in the forward direction on the drawing candidate memory 4-7 (step E4).
That is, the line segment of the existing drawing is read from the line drawing pattern memory 4-1 and copied to the drawing candidate memory 4-7, and the line segment newly generated in step E2 is developed on the drawing candidate memory 4-7. At this time, the line end point position of the existing drawing and the start point position of the line segment newly generated this time are combined and extended and connected in the forward direction on the drawing candidate memory 4-7. FIG. 9A shows a forward extension state in this case, and a line segment having the same shape and size (shown by a dashed line) is replaced with a line segment of an existing drawing (semicircular line segment shown by a solid line). Semicircular arc segment)
Are connected and extended in the same direction, whereby a perfect circle is drawn. Then, "1" is added to the value of the n register 4-6 and incremented, and the value becomes "2" (step E5). Then, the process proceeds to step D5 in FIG. 6, and a line segment (a true circle in this case) in the drawing candidate memory 4-7 after the connection extension is displayed as a candidate. Here, if the connection direction of the candidate is determined, a double click is performed (step D6), but if it is canceled and a request for displaying the next candidate is made, a single click is performed (step D7).

【0014】いま、シングルクリックが行われたものと
すると、延長候補として新たに接続された線分を描画候
補メモリ4−7上で消去する(ステップD8)。そし
て、ステップD4に戻るが、この場合、図7のステップ
F3に進み、nレジスタ4−6を参照することによって
n=1かを調べる。いま、n=2であるからステップE
6でそのことが検出されてステップE7に進み、自動描
画による既存線分の終点位置とステップE2で生成され
た今回の線分の始点位置とを合わせて描画候補メモリ4
−7上で線対称の方向に接続延長する。図9(B)はこ
の場合の線対称延長後の状態を示し、接続延長後の線分
は数値3を左右反転したような形状となる。そして、n
レジスタ4−6の値をインクリメントし(ステップE
8)、これによってその値はn=3となる。そして、図
6のステップD5に進み、接続延長後の描画候補メモリ
4−7内の線分が候補表示される。ここで、更に、次候
補を要求するためにシングルクリックを行うと、ステッ
プD8で線分消去が行われたのち、図7のステップE9
でn=3が検出されてステップE10に進み、自動描画
による既存線分の終点位置とステップE2で生成された
今回の線分の始点位置とを合わせて描画候補メモリ4−
7上で逆方向に接続延長する。図9(C)はこの場合の
逆方向延長後の状態を示し、接続延長後の線分は、S字
形状となる。その後、nレジスタ4−6に初期値「1」
がセットされる(ステップE11)。
Now, assuming that a single click has been performed, the newly connected line segment as an extension candidate is deleted from the drawing candidate memory 4-7 (step D8). Then, the process returns to step D4. In this case, the process proceeds to step F3 in FIG. 7 to check whether n = 1 by referring to the n register 4-6. Now, since n = 2, step E
6, the process proceeds to step E7, where the end point position of the existing line segment by the automatic drawing and the start point position of the current line segment generated in step E2 are combined to draw candidate memory 4
The connection is extended in the direction of line symmetry on -7. FIG. 9B shows the state after the line symmetry extension in this case, and the line segment after the connection extension has a shape as if the numerical value 3 is reversed left and right. And n
The value of the register 4-6 is incremented (step E
8), which results in n = 3. Then, the process proceeds to step D5 in FIG. 6, and the line segments in the drawing candidate memory 4-7 after connection extension are displayed as candidates. Here, when a single click is further performed to request the next candidate, after the line segment is erased in step D8, step E9 in FIG. 7 is performed.
In step E10, n = 3 is detected, and the process proceeds to step E10, where the end point position of the existing line segment by the automatic drawing and the start point position of the current line segment generated in step E2 are combined to draw candidate memory 4-
7. Connect and extend in the opposite direction on 7. FIG. 9C shows a state after extension in the reverse direction in this case, and the line segment after connection extension has an S-shape. After that, the initial value “1” is stored in the n register 4-6.
Is set (step E11).

【0015】このようにシングルクリックが行われる毎
に接続方向別の延長候補が表示されるので、所望する候
補が表示された時点でダブルクリックが行われると、線
分の接続方向が確定し、描画候補メモリ4−7の内容を
全て消去すると共に(図6のステップD9)。座標入力
ENDフラグレジスタ4−5に“1”をセットしてフラ
グをオンする(ステップD10)。このように接続方向
を確定したのちはその方向に線分をどの位の長さをもっ
て延長するかの指示を行う。つまり、線の末端位置の指
示を行うが、この場合、左ボタンを押下してそのまま所
望の末端位置までマウスをドラッグ操作すると、図4に
示す左ボタン処理に進み、ステップB1でそのことが検
出される。いま、線描画選択ENDフラグレジスタ4−
4には“1”がセットされているので、ステップB4に
進み、左ボタンがオフされるまで待機する。ここで、末
端位置で左ボタンを放すと、その位置を末端位置として
決定すると共に(ステップB5)、ワークメモリ4−8
に保持されている既存描画の始点、終点位置を読み出
し、この始点、終点間の線分の軌跡を解析することによ
ってそれと同様の線分を生成する(ステップB6)。そ
して、線描画パターンメモリ4−1上において、接続対
象である既存線分の終点と生成された線分の始点とを合
わせると共に、生成された線分をnレジスタ4−6の値
で示される接続方向へ延長描画する(ステップB7)。
この結果、末端位置に到達したかを調べ(ステップB
8)、到達していなければ、ステップB7に戻り、再び
1パターン分の線分を接続延長し、末端に到達するまで
接続延長を繰り返す。ここで、末端位置に到達した場合
にはその終点が指定した末端位置に合致するかを調べ
(ステップB9)、合致せずにその位置をオーバしてい
る場合にはその部分を削除する末端調整処理が行われる
(ステップB10)。その後、線描画選択ENDフラグ
レジスタ4−4に“0”をセットしておく(ステップB
11)。このように線描画選択ENDフラグがオフされ
るので、その後、引き続いて線を描画する場合には、そ
の末端位置から上述と同様に手動描画によって任意の線
分を作ったり、この線分の繰り返し延長を指示すればよ
い。したがって複雑な線図形であってもそれを容易に作
成することが可能となる。
As described above, each time a single click is performed, an extension candidate for each connection direction is displayed. If a double click is performed at the time when a desired candidate is displayed, the connection direction of the line segment is determined, The entire contents of the drawing candidate memory 4-7 are erased (step D9 in FIG. 6). "1" is set in the coordinate input END flag register 4-5 to turn on the flag (step D10). After the connection direction is thus determined, an instruction is given as to how long the line segment should be extended in that direction. In other words, the end position of the line is designated. In this case, if the left button is pressed and the mouse is dragged to the desired end position, the process proceeds to the left button process shown in FIG. Is done. Now, the line drawing selection END flag register 4-
Since "1" is set in 4, the process proceeds to step B4 and waits until the left button is turned off. When the left button is released at the end position, the position is determined as the end position (step B5), and the work memory 4-8 is set.
The position of the start point and end point of the existing drawing stored in the above is read out, and a similar line segment is generated by analyzing the locus of the line segment between the start point and end point (step B6). Then, the end point of the existing line segment to be connected and the start point of the generated line segment are matched on the line drawing pattern memory 4-1 and the generated line segment is indicated by the value of the n register 4-6. An extension drawing is performed in the connection direction (step B7).
As a result, it is checked whether or not the terminal position has been reached (step B).
8) If it has not arrived, return to step B7, connect and extend the line segment for one pattern again, and repeat the connection extension until it reaches the end. Here, when the terminal position is reached, it is checked whether or not the end point matches the specified terminal position (step B9). If the position does not match and exceeds the position, the part is deleted. Processing is performed (step B10). Thereafter, "0" is set in the line drawing selection END flag register 4-4 (step B).
11). Since the line drawing selection END flag is turned off in this manner, when a line is subsequently drawn, an arbitrary line segment is created from the end position by manual drawing as described above, or the line segment is repeated. You just need to indicate the extension. Therefore, even a complicated line figure can be easily created.

【0016】次に、線図形の外郭形状に合わせてその各
特徴点を順次入力することで、線図形が描画される場合
の動作を説明する。いま、左ボタンが押下されると、図
4の左ボタン処理において、ステップB12に進み、座
標入力ENDフラグレジスタ4−5に“0”がセットさ
れているかを調べ、その結果、フラグがオンされていれ
ば特徴点入力は既に終了しているので、この場合の左ボ
タン押下を無効とするために、この左ボタン処理から抜
けるが、左ボタンの押下からそれを放すシングルクリッ
クが行われると(ステップB13)、その位置の座標デ
ータが取り込まれてポイント表示されると共に、特徴点
描画メモリ4−3にセットされる(ステップB14)。
そして、ステップB13に戻り、シングルクリックが行
われる毎にその位置座標が取り込まれて特徴点描画メモ
リ4−3に格納されてゆく。図10(A)はこの場合の
状態を示し、点1から点6まではシングルクリックによ
って順次入力された各特徴点の位置座標を示している。
そして、最後の特徴点を入力する場合には左ボタンをダ
ブルクリックする。すると、ステップB15でそのこと
が検出されてステップB16に進み、その位置の座標デ
ータが取り込まれてポイント表示されると共に、特徴点
描画メモリ4−3にセットされる。そして、各特徴点に
対応する複数座標分のデータが特徴点描画メモリ4−3
にセットされたかを調べ(ステップB17)、複数座標
分セットされるまでステップB13に戻るが、複数座標
がセットされると、特徴点入力の終了を示すために、座
標入力ENDフラグレジスタ4−5に“1”をセットし
ておく(ステップB18)。
Next, the operation in the case where a line figure is drawn by sequentially inputting its respective characteristic points in accordance with the outline shape of the line figure will be described. When the left button is pressed, the process proceeds to step B12 in the left button processing of FIG. 4 to check whether "0" is set in the coordinate input END flag register 4-5, and as a result, the flag is turned on. If so, the feature point input has already been completed, and in order to invalidate the left button press in this case, the process exits from the left button process. However, if a single click that releases the left button press is performed ( In step B13), the coordinate data of the position is fetched and displayed as points, and set in the feature point drawing memory 4-3 (step B14).
Then, returning to step B13, every time a single click is performed, the position coordinates are fetched and stored in the feature point drawing memory 4-3. FIG. 10A shows the state in this case, and points 1 to 6 show the position coordinates of each feature point sequentially input by a single click.
Then, when inputting the last feature point, the left button is double-clicked. Then, this is detected in step B15, and the process proceeds to step B16, where the coordinate data of the position is fetched and displayed as a point, and set in the feature point drawing memory 4-3. The data for a plurality of coordinates corresponding to each feature point is stored in the feature point drawing memory 4-3.
Is checked (step B17), and the process returns to step B13 until a plurality of coordinates are set. However, when a plurality of coordinates are set, the coordinate input END flag register 4-5 indicates the end of the feature point input. Is set to "1" (step B18).

【0017】このようにして特徴点入力を行ったのち、
右ボタンを押下すると、図6のステップD1に進み、座
標入力ENDフラグレジスタ4−5に“1”がセットさ
れているかを調べるが、いま、当該フラグはオンされて
いるので、既存座標による線描画算出処理に移る(ステ
ップD11)。図8はこの既存座標による線描画算出処
理を示したフローチャートである。先ず、特徴点描画メ
モリ4−3から最初の2点座標を抽出する(ステップF
1)。そして、nレジスタ4−6を参照し、n=1かを
調べるが(ステップF2)、最初はF=1であるので、
前後の座標点間を直線で連結し、描画候補メモリ4−7
に展開する(ステップF3)。そして、次の座標が特徴
点描画メモリ4−3内に有れば(ステップF4)、それ
を条件にその座標を抽出し(ステップF5)、今回抽出
した座標とその前の座標点間を直線で連結し、描画候補
メモリ4−7に展開する(ステップF3)。このように
して最終の座標点まで全て直線で連結し終ると、nレジ
スタ4−6に「1」を加算してその値を更新すると(ス
テップF6)、その値はn=2となる。そして、図6の
ステップD12に進み、描画候補メモリ4−7の内容を
候補表示する。図10(B)はこの場合における第1候
補の表示状態を示している。ここで、ダブルクリックが
行われると候補の確定となるが(ステップD14)、今
回の候補をキャンセルし、次の候補表示を要求するため
に、シングルクリックが行われると(ステップD1
4)、再び既存座標による線描画算出処理に戻る(ステ
ップD11)。
After inputting the feature points in this way,
When the right button is pressed, the process proceeds to step D1 in FIG. 6, and it is checked whether "1" is set in the coordinate input END flag register 4-5. The process proceeds to the drawing calculation process (step D11). FIG. 8 is a flowchart showing the line drawing calculation process using the existing coordinates. First, the coordinates of the first two points are extracted from the feature point drawing memory 4-3 (step F).
1). Then, referring to the n register 4-6, it is checked whether n = 1 (step F2). Since F = 1 at first,
The front and rear coordinate points are connected by a straight line, and the drawing candidate memory 4-7 is connected.
(Step F3). If the next coordinate exists in the feature point drawing memory 4-3 (step F4), the coordinate is extracted on the condition thereof (step F5), and a straight line is drawn between the coordinate extracted this time and the preceding coordinate point. And develop it in the drawing candidate memory 4-7 (step F3). When all the straight lines are connected to the last coordinate point in this manner, "1" is added to the n register 4-6 and the value is updated (step F6), and the value becomes n = 2. Then, the process proceeds to step D12 in FIG. 6, and the contents of the drawing candidate memory 4-7 are displayed as candidates. FIG. 10B shows the display state of the first candidate in this case. Here, when the double click is performed, the candidate is determined (step D14). However, when the single click is performed to cancel the current candidate and request the next candidate display (step D1).
4) Return to the line drawing calculation process using the existing coordinates again (step D11).

【0018】この場合、n=2であるので、ステップF
7でそのことが検出され、座標点間を円弧で連結し、描
画候補メモリ4−7に展開する(ステップF8)。そし
て、次の座標が特徴点描画メモリ4−3内に有れば(ス
テップF9)、それを条件にその座標を抽出し(ステッ
プF10)、今回抽出した座標とその前の座標点間を円
弧で連結し、描画候補メモリ4−7に展開する(ステッ
プF8)。そして、最終座標点まで全て円弧で連結し終
ると、nレジスタ4−6のインクリメント処理が行われ
てその値はn=3となると共に、描画候補メモリ4−7
の内容が候補表示される(図6のステップD12)。図
10(C)はこの場合における第2候補の表示状態を示
している。ここで更に、シングルクリックが行われると
(ステップD14)、次候補へ切り替えられるが、この
場合、n=3であるので、図8のステップF12でその
ことが検出され、ステップF13に進み、座標点間を例
えばベジェ曲線で連結して描画候補メモリ4−7に展開
する。以下、同様に、次の座標が有ればそれを抽出しな
がら座標点間をベジェ曲線で連結してゆく(ステップF
13〜F15)。そして、nレジスタ4−6の値を初期
値に戻したのち(ステップF16)、描画候補メモリ4
−7の内容が候補表示される。ここで、ダブルクリック
が行われると(図6のステップD13)、描画候補メモ
リ4−7の内容が線描画パターンメモリ4−1に転送さ
れると共に(ステップF15)、座標入力ENDフラグ
が“0”に戻される(ステップD16)。図10(D)
は候補確定後の線描画状態を示している。このように当
該フラグがオフされるので、これに引き続いて線を描画
する場合には、上述と同様に特徴点座標を入力すれば、
その座標点を連結した線分を得ることができる。
In this case, since n = 2, step F
7, this is detected, the coordinate points are connected by an arc, and the result is expanded in the drawing candidate memory 4-7 (step F8). If the next coordinate exists in the feature point drawing memory 4-3 (step F9), the coordinate is extracted on the condition thereof (step F10), and an arc is formed between the coordinate extracted this time and the previous coordinate point. And develop it in the drawing candidate memory 4-7 (step F8). When all the arcs have been connected to the final coordinate point, the n register 4-6 is incremented to a value of n = 3 and the drawing candidate memory 4-7.
Are displayed as candidates (step D12 in FIG. 6). FIG. 10C shows the display state of the second candidate in this case. Here, when a single click is further performed (step D14), switching to the next candidate is performed. In this case, since n = 3, this is detected in step F12 in FIG. The points are connected by a Bezier curve, for example, and developed in the drawing candidate memory 4-7. Hereinafter, similarly, if there is the next coordinate, the coordinate points are connected by a Bezier curve while extracting it (step F).
13 to F15). Then, after returning the value of the n register 4-6 to the initial value (step F16), the drawing candidate memory 4
The content of -7 is displayed as a candidate. Here, when a double click is performed (step D13 in FIG. 6), the contents of the drawing candidate memory 4-7 are transferred to the line drawing pattern memory 4-1 (step F15), and the coordinate input END flag is set to “0”. (Step D16). FIG. 10 (D)
Indicates the line drawing state after the candidate is determined. Since the flag is turned off in this manner, when a line is subsequently drawn, by inputting the feature point coordinates as described above,
A line segment connecting the coordinate points can be obtained.

【0019】以上のようにこの実施形態における線描画
処理は、手動描画によって既に入力描画された線分と同
様の線分を生成し、既存の線分の終点に、生成された線
分の始点を合わせて線分同士を所定方向に接続するよう
にしたから、線全体を描画しなくてもその一部の線分を
描画するだけで、全体的にギザギザや隙間のない線を簡
単に描画することができる。この場合、線分接続時にど
の方向に接続するかを示す接続方向を任意に選択するよ
うにしたから、単純な線描画のみならず、複雑な線であ
っても接続方向を単に選択することで容易に描画するこ
とができる。図11(A)は接続方向を変更することに
よって得られた線図形を例示したもので、その上段部の
例は既存線分に対して順方向接続、逆方向接続した場
合、下段部の例は、既存線分を直線的に繰り返し連続さ
せた場合、線対称接続した場合である。また、複数の接
続方向別に接続された実際の線分が線分延長の選択候補
として表示されるので、接続延長された様子をイメージ
的に把握することが可能となり、その選択も容易なもの
となる。また、手動入力によって線分を描画したのち、
末端位置を指定すると、手動描画の線分と同様の線分が
その末端位置に到達するまで何回も繰り返し接続延長す
ることができる。図12はこの場合の例を示したもの
で、(A)に示すように1周期分の正弦波を手動描画し
たのち、順方向延長を選択すると、(B)に示すような
候補表示が行われる。そして、末端位置を指示すると、
1周期分の正弦波が何回も繰り返され、その末端位置ま
で描画することができる。この場合、既存成分が極端に
短くても長尺の線分を描画することができるので、どん
なに長い線分を描画する場合であっても極く一部の線分
のみを描画すればよい。この場合、手動描画の線分は短
い程、ギザギザが目立たないので、全体的に良好な線を
得ることができる。
As described above, the line drawing process in this embodiment generates a line segment similar to the line segment already input and drawn by manual drawing, and places the start point of the generated line segment at the end point of the existing line segment. And connect the line segments in a predetermined direction, so you can easily draw lines with no jagged or gaps by drawing only a part of the line without drawing the whole line can do. In this case, the connection direction indicating which direction is to be connected when connecting the line segments is arbitrarily selected. Therefore, not only a simple line drawing but also a complicated line can be simply selected by the connection direction. It can be easily drawn. FIG. 11A illustrates a line figure obtained by changing the connection direction. An example of an upper part thereof is an example of a lower part when a forward connection and a reverse connection are made to an existing line segment. Is a case where the existing line segment is repeated linearly and continuously, and a case where the line segment is symmetrically connected. In addition, since the actual line segments connected in a plurality of connection directions are displayed as selection candidates of the line extension, it is possible to grasp the state of the connection extension in an image, and the selection is easy. Become. Also, after drawing a line segment by manual input,
When the end position is specified, the connection can be extended repeatedly many times until a line segment similar to the line segment of the manual drawing reaches the end position. FIG. 12 shows an example of this case. After manually drawing a sine wave for one cycle as shown in (A) and selecting the forward extension, a candidate display as shown in (B) is displayed. Will be And if you indicate the end position,
One cycle of the sine wave is repeated many times, and it is possible to draw up to the end position. In this case, even if the existing component is extremely short, a long line segment can be drawn. Therefore, even if a long line segment is drawn, only a part of the line segment needs to be drawn. In this case, as the line segment of the manual drawing is shorter, the jaggedness is less noticeable, so that a good line can be obtained as a whole.

【0020】また、この実施形態においては、所望の線
図形を描画する際に、その線図形の外郭形状に合わせて
その各特徴点を順次入力指定すると、指定された各特徴
点を抽出すると共に、特徴点を抽出する毎に前後の特徴
点間に所定の線分を挿入描画するようにしたから、特徴
点を単に入力指定するだけでギザギザや隙間のない線図
形を簡単に描画することができる。この場合、各特徴点
間をどのような種類の線分で連結するかの線分種を任意
に選択することができるので、変化に富んだ図形を描画
することができる。図11(B)は線分種を変更するこ
とによって得られた線図形を例示したもので、その上段
部の例は直線で連結した場合、下段部の例は曲線で連結
した場合である。また、複数の線分種別に実際に描画さ
れた線分が選択候補として表示されるので、その様子を
イメージ的に把握することができ、その選択も容易なも
のとなる。
In this embodiment, when a desired line graphic is drawn, each of the characteristic points is sequentially input and designated according to the outline shape of the line graphic, and the designated characteristic points are extracted and Each time a feature point is extracted, a predetermined line segment is inserted and drawn between the preceding and following feature points, so that line shapes without jaggies or gaps can be easily drawn simply by inputting and specifying feature points. it can. In this case, it is possible to arbitrarily select the type of line segment that connects what kind of line segment between the feature points, and thus it is possible to draw a variety of figures. FIG. 11B illustrates a line graphic obtained by changing the line segment type. The example of the upper part is a case where the lines are connected by a straight line, and the example of the lower part is a case where the lines are connected by a curve. Further, since the line segments actually drawn in a plurality of line segment types are displayed as selection candidates, the state thereof can be grasped as an image, and the selection can be made easily.

【0021】なお、上述した一実施形態においては既存
描画の線分を用いてそれと同様の線分を接続延長する描
画方法と、特徴点座標を入力して各点を連結する描画方
法を別々に行う例を示したが、それらの描画方法を併用
するするようにすれば、より複雑で変化に富んだ線図形
であっても容易に描画することが可能となる。
In the above-described embodiment, a drawing method of connecting and extending a similar line segment using a line segment of an existing drawing and a drawing method of inputting feature point coordinates and connecting each point are separately described. Although an example of performing the drawing has been described, if these drawing methods are used together, it is possible to easily draw even a more complicated and varied line figure.

【0022】[0022]

【発明の効果】この発明によれば、線全体を描画しなく
てもその一部の線分を描画するだけで、全体的にギザギ
ザや隙間のない線を簡単に描画することができる。他の
発明によれば、所望の線図形を作成描画する際にその線
図形の外郭形状に合わせてその各特徴点を順次入力指定
するだけで、ギザギザや隙間のない線図形を簡単に描画
することができる。
According to the present invention, it is possible to easily draw a line without jaggies or gaps by drawing only a part of the line without drawing the whole line. According to another invention, when a desired line figure is created and drawn, a line figure without jaggies or gaps can be easily drawn simply by sequentially inputting and designating each feature point in accordance with the outline shape of the line figure. be able to.

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

【図1】パーソナルコンピュータの全体構成を示したブ
ロック図。
FIG. 1 is a block diagram showing an overall configuration of a personal computer.

【図2】RAM4の特徴部分を示したメモリ構成図。FIG. 2 is a memory configuration diagram showing characteristic portions of a RAM 4.

【図3】線描画時にマウス操作に応答して実行される線
描画処理を示したフローチャート。
FIG. 3 is a flowchart illustrating a line drawing process executed in response to a mouse operation during line drawing.

【図4】図3のステップA7(左ボタン処理)を詳述し
たフローチャート。
FIG. 4 is a flowchart detailing step A7 (left button processing) in FIG. 3;

【図5】図4のステップB3(手動描画処理)を詳述し
たフローチャート。
FIG. 5 is a flowchart detailing step B3 (manual drawing processing) in FIG. 4;

【図6】図3のステップA6(右ボタン処理)を詳述し
たフローチャート。
FIG. 6 is a flowchart detailing step A6 (right button processing) in FIG. 3;

【図7】図6のステップD4(既存描画による線描画算
出処理)を詳述したフローチャート。
FIG. 7 is a flowchart detailing step D4 (line drawing calculation processing based on existing drawing) in FIG. 6;

【図8】図6のステップD11(既存座標による線描画
算出処理)を詳述したフローチャート。
FIG. 8 is a flowchart detailing step D11 (line drawing calculation processing using existing coordinates) in FIG. 6;

【図9】(A)、(B)、(C)は接続方向別に延長さ
れた様子を例示した図。
FIGS. 9A, 9B, and 9C are views exemplifying states extended in connection directions.

【図10】(A)は特徴点座標を任意に入力した状態、
(B)は特徴点間を線分種の第1候補である直線で連結
した状態、(C)は第2候補である円弧で連結した場
合、(D)は候補確定後の状態を示した図。
FIG. 10A shows a state in which feature point coordinates are arbitrarily input,
(B) shows a state where feature points are connected by a straight line which is a first candidate of a line segment type, (C) shows a state where the feature points are connected by an arc which is a second candidate, and (D) shows a state after the candidate is determined. FIG.

【図11】(A)は既存線分を用いて接続延長する場合
の例を示した図、(B)は特徴点間を所定の線分で連結
する場合の例を示した図。
11A is a diagram illustrating an example of a case where connection extension is performed using an existing line segment, and FIG. 11B is a diagram illustrating an example of a case where feature points are connected with a predetermined line segment.

【図12】複数周期分連続する正弦波を描画する場合の
過程を示した図。
FIG. 12 is a diagram showing a process when a sine wave continuous for a plurality of cycles is drawn.

【符号の説明】[Explanation of symbols]

1 CPU 2 記憶装置 3 記憶媒 4 RAM体 4−1 線描画パターンメモリ 4−2 解析結果メモリ 4−3 特徴点描画メモリ 4−4 線描画選択ENDフラグレジスタ 4−5 座標入力ENDフラグレジスタ 4−6 nレジスタ 4−7 描画候補メモリ 5 入力装置 6 表示装置 DESCRIPTION OF SYMBOLS 1 CPU 2 Storage device 3 Storage medium 4 RAM body 4-1 Line drawing pattern memory 4-2 Analysis result memory 4-3 Feature point drawing memory 4-4 Line drawing selection END flag register 4-5 Coordinate input END flag register 4- 6 n register 4-7 drawing candidate memory 5 input device 6 display device

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】任意の線分を描画する線分描画手段と、 この線分描画手段によって既に描画された線分と同様の
線分を生成する線分生成手段と、 既に描画されている線分の終点位置に前記線分生成手段
によって生成された線分の始点位置を合わせて線分同士
を所定の方向に接続する線分延長手段とを具備したこと
を特徴とする線描画装置。
1. Line segment drawing means for drawing an arbitrary line segment, line segment generating means for generating a line segment similar to the line segment already drawn by the line segment drawing means, and a line already drawn A line extension device for connecting a line segment in a predetermined direction by adjusting a start point position of the line segment generated by the line segment generation unit to an end point position of the line.
【請求項2】既に描画されている線分と前記線分生成手
段によって生成された線分とをどの方向に接続するかを
示す接続方向を任意に選択する選択手段を設け、 前記線分延長手段は、前記選択手段によって選択された
接続方向へ線分を接続するようにしたことを特徴とする
請求項1記載の線描画装置。
2. A method according to claim 1, further comprising selecting means for arbitrarily selecting a connection direction indicating a direction in which the line segment already drawn and the line segment generated by said line segment generation unit are connected. 2. The line drawing apparatus according to claim 1, wherein the means connects the line segments in the connection direction selected by the selection means.
【請求項3】前記線分延長手段によって複数の接続方向
別に接続された実際の線分を線分延長の選択候補として
表示する表示手段を設け、 前記選択手段は、前記表示手段によって表示される選択
候補の中から所望の候補を選択するようにしたことを特
徴とする請求項2記載の線描画装置。
3. A display unit for displaying actual line segments connected by a plurality of connection directions by the line segment extension unit as selection candidates for line segment extension, wherein the selection unit is displayed by the display unit. 3. The line drawing apparatus according to claim 2, wherein a desired candidate is selected from the selection candidates.
【請求項4】線分が描画される毎にその線分の始点位置
および終点位置を検出する位置検出手段と、 この位置検出手段によって検出された始点位置および終
点位置を前回描画の線分範囲を示す範囲データとして一
時記憶する範囲記憶手段とを設け、 前記線分生成手段は、前記範囲記憶手段に記憶されてい
る範囲データに基づいてその範囲内の線分と同様の線分
を生成するようにしたことを特徴とする請求項1記載の
線描画装置。
4. A position detecting means for detecting a starting point position and an ending point position of a line segment each time a line segment is drawn, and a starting point position and an ending point position detected by the position detecting means are determined by a line segment range of a previous drawing. And a range storage unit for temporarily storing as range data indicating the range, wherein the line segment generation unit generates a line segment similar to a line segment in the range based on the range data stored in the range storage unit. 2. The line drawing apparatus according to claim 1, wherein:
【請求項5】線の末端位置を指定する指定手段を設け、 前記線分延長手段は、前記指定手段によって指定された
末端位置に達するまで前記線分生成手段によって生成さ
れた線分を繰り返して接続するようにしたことを特徴と
する請求項1記載の線描画装置。
5. A designating means for designating an end position of a line, wherein the line extension means repeats the line segment generated by the line segment generation means until the end position specified by the designation means is reached. 2. The line drawing apparatus according to claim 1, wherein the line drawing apparatus is connected.
【請求項6】所望の線図形を作成描画する際に、その線
図形の外郭形状に合わせてその各特徴点を順次入力指定
する指定手段と、 この指定手段によって指定された各特徴点を入力指定さ
れた順序にしたがって順次抽出する抽出手段と、 この抽出手段によって特徴点が抽出される毎に、前後の
特徴点間に所定の線分を挿入描画する線分挿入手段とを
具備し、 前記入力指定された各特徴点をその入力順序にしたがっ
て所定の線分で順次連結してゆくことにより線図形を作
成するようにしたことを特徴とする線描画装置。
6. A designating means for sequentially inputting and designating each characteristic point in accordance with an outline shape of the line graphic when a desired line graphic is created and drawn, and inputs each characteristic point designated by the designating means. Extracting means for sequentially extracting in accordance with a designated order, and line segment inserting means for inserting and drawing a predetermined line segment between preceding and following feature points each time a feature point is extracted by the extracting means, A line drawing apparatus characterized in that a line figure is created by sequentially connecting input-designated feature points with predetermined line segments in accordance with the input order.
【請求項7】前記各特徴点間をどのような種類の線分で
連結するかを選択する線分種選択手段を設け、 前記線分描画手段は、前記線分種選択手段によって選択
された種類の線分を前後の特徴点間に描画するようにし
たことを特徴とする請求項6記載の線描画装置。
7. A line segment type selecting unit for selecting what kind of line segment is connected between the feature points, wherein the line segment drawing unit is selected by the line segment type selecting unit. 7. The line drawing apparatus according to claim 6, wherein the type of line segment is drawn between the preceding and following feature points.
【請求項8】前記線分挿入手段によって線分種別に描画
された実際の線分を選択候補として表示する表示手段を
設け、 前記線分種選択手段は、前記表示手段によって表示され
る選択候補の中から所望の候補を選択するようにしたこ
とを特徴とする請求項7記載の線描画装置。
8. A display unit for displaying, as selection candidates, actual line segments drawn in line segment types by said line segment insertion unit, wherein said line segment type selection unit includes a selection candidate displayed by said display unit. 8. The line drawing apparatus according to claim 7, wherein a desired candidate is selected from the following.
【請求項9】コンピュータによって読み取られるプログ
ラムコードを有する記録媒体であって、 任意の線分を描画する機能と、 既に描画された線分と同様の線分を生成する機能と、 既に描画されている線分の終点位置に前記生成された線
分の始点位置を合わせて線分同士を所定の方向に接続す
る機能を実現するためのプログラムコードを有する記録
媒体。
9. A recording medium having a program code read by a computer, the function of drawing an arbitrary line segment, the function of generating a line segment similar to the already drawn line segment, A recording medium having a program code for realizing a function of connecting the line segments in a predetermined direction by adjusting the start point position of the generated line segment to the end point position of the existing line segment.
【請求項10】コンピュータによって読み取られるプロ
グラムコードを有する記録媒体であって、 所望の線図形を作成描画する際に、その線図形の外郭形
状に合わせてその各特徴点を順次入力指定する機能と、 指定された各特徴点を入力指定された順序にしたがって
順次抽出する機能と、 特徴点が抽出される毎に、前後の特徴点間に所定の線分
を挿入描画する機能を実現するためのプログラムコード
を有する記録媒体。
10. A recording medium having a program code read by a computer, a function of sequentially inputting and designating each characteristic point in accordance with an outer shape of the line figure when a desired line figure is created and drawn. A function for sequentially extracting each specified feature point in accordance with a specified order, and a function for inserting and drawing a predetermined line segment between preceding and following feature points each time a feature point is extracted. A recording medium having a program code.
JP10376188A 1998-12-22 1998-12-22 Line drawing device and recording medium for its program Pending JP2000187736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10376188A JP2000187736A (en) 1998-12-22 1998-12-22 Line drawing device and recording medium for its program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10376188A JP2000187736A (en) 1998-12-22 1998-12-22 Line drawing device and recording medium for its program

Publications (1)

Publication Number Publication Date
JP2000187736A true JP2000187736A (en) 2000-07-04

Family

ID=18506727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10376188A Pending JP2000187736A (en) 1998-12-22 1998-12-22 Line drawing device and recording medium for its program

Country Status (1)

Country Link
JP (1) JP2000187736A (en)

Similar Documents

Publication Publication Date Title
US20040223002A1 (en) Graphic display control apparatus and program
JPH0850472A (en) Graphic plotting device
JP3186241B2 (en) Figure editing device
JPH09251370A (en) Drawing preparation device
JP2008040676A (en) Presentation apparatus and presentation control method
JP2000187736A (en) Line drawing device and recording medium for its program
JPH06187089A (en) Scroll control method
JPH08115197A (en) Scroll method for graphic processor
JP2011039689A (en) Graphic display device and program
JPH10222689A (en) Method for displaying graphic and device therefor and storage medium for storing graphic display program
JP2972560B2 (en) Display control method for tabular data
JP3969306B2 (en) Graph display control device and program
JP2875135B2 (en) Program device for programmable controller
JPH07105395A (en) Information processing unit
JP2006127306A (en) Cursor management method and its program
JPH05143589A (en) Word processor and its controlling method
CN115454408A (en) Graphical programming method and device of track, electronic device and storage medium
JP2915654B2 (en) Handwriting character input area setting device
CN117933178A (en) Automatic generation method, system and medium for extension wiring
JP2536948B2 (en) Three-point specified circular arc detection method and device
JP2000267648A (en) Plotting device, waveform plotting method, and storage medium recording plotting processing program
JPH08138068A (en) Device and method for graphic generation
JPH02285414A (en) Key display processing system
JPH06215091A (en) Method and device for processing graphic information
JPH08137868A (en) Document editing device