WO2002091304A1 - Freehand-input pattern editing system - Google Patents

Freehand-input pattern editing system Download PDF

Info

Publication number
WO2002091304A1
WO2002091304A1 PCT/JP2002/004353 JP0204353W WO02091304A1 WO 2002091304 A1 WO2002091304 A1 WO 2002091304A1 JP 0204353 W JP0204353 W JP 0204353W WO 02091304 A1 WO02091304 A1 WO 02091304A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
erase
erasure
intersection
pattern
Prior art date
Application number
PCT/JP2002/004353
Other languages
French (fr)
Japanese (ja)
Inventor
Terufumi Hosoya
Original Assignee
T-5 Corporation
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 T-5 Corporation filed Critical T-5 Corporation
Publication of WO2002091304A1 publication Critical patent/WO2002091304A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Definitions

  • the present invention relates to graphic drawing (C AD) using a computer, and more particularly to a graphic editing system by handwriting input that enables graphic erasure as if writing on paper.
  • a mouse or an electronic pen is used to operate a deletion cursor (eraser) on a display as if by handwriting, and delete part or all of a drawn line, circle, ellipse, polygon, or other figure.
  • Something like that has been proposed For example, (1) In Japanese Patent Application Laid-Open No. 60-129829, a writing area on an electronic tablet having coordinates corresponding to display coordinates is divided into a plurality of grid boxes, and the writing area is intersected with an eraser. Search for the line segment or point of, and erase the figure in real time as the eraser moves.
  • the trajectory of the erasure range is calculated and the vector data within the range is erased, so the erasure will not be mottled.
  • the figure to be erased is marked by handwriting, and the erase gesture is input by handwriting to erase the figure all at once. Since selection is not a command, various operations or areas that are difficult to draw occur, and partial erasure of figures cannot be performed.
  • the present invention has been made in order to solve the above-mentioned problem, and has as its object to improve the operability by making it possible to select an erasing area arbitrarily as if by handwriting without complicated operation for erasing a figure. I do.
  • the present invention provides a system for editing a figure by handwriting input, wherein:
  • Figure determining means for determining whether the starting point and the ending point of the figure to be edited are the same, and determining whether or not to divide the figure according to the figure determination result and the area to be edited, and dividing or changing the figure.
  • Division change processing means for determining whether the starting point and the ending point of the figure to be edited are the same, and determining whether or not to divide the figure according to the figure determination result and the area to be edited, and dividing or changing the figure.
  • the drawing coordinates are determined by determining whether or not the erase snap range of the figure is set, and if so, its type, and determining whether or not the edit target area is within the set erase snap range.
  • the present invention is characterized in that the size of the erase snap range can be changed.
  • FIG. 1 is a diagram showing the overall configuration of a graphic editing system according to the present invention.
  • FIG. 2 is a diagram for explaining an example of linear division (elimination up to two intersections) according to the present invention.
  • FIG. 3 is a diagram for explaining an example of straight line division (combination of tracing and erasing up to one intersection) according to the present invention.
  • FIG. 4 is a diagram illustrating an example of linear division (erasing of traced portions) according to the present invention.
  • FIG. 5 is a diagram illustrating an example of dividing a straight line passing through the center of a circle according to the present invention.
  • FIG. 6 is a diagram illustrating an example of erasing a part of a circular arc where a circle and a straight line intersect according to the present invention.
  • FIG. 7 is a diagram illustrating an example of changing a circle into two arcs according to the present invention.
  • FIG. 8 is a diagram illustrating an example of graphic erasure according to the present invention.
  • FIG. 9 is an example of erasing a figure drawn using the grid of the present invention.
  • FIG. 10 is a diagram for explaining the graphic erasure processing flow of the present invention.
  • FIG. 1 is a diagram showing the overall configuration of the graphic editing system of the present invention.
  • the computer for figure editing processing 1 stores the basic drawing figure data, the drawing processing program, the data of the drawing reference point in the case of editing such as figure deletion, and all the data necessary for drawing processing such as the editing program. Is stored.
  • the mouse 3, tablet 4, and electronic pen 5 are used to draw and erase figures on the CRT 2 screen.
  • the figures input to the computer 1 can be printed by a printer (not shown) as required.
  • Editing (erasing) a drawn figure is the same as drawing a new figure excluding the erased area.
  • the figure to be edited is a figure whose start point and end point are different, such as a line segment or a polygon composed of line segments, or a figure whose start point and end point are the same, such as a circle or an ellipse If it is determined and the part between the start point and the end point of the figure whose start point and end point are different is to be deleted, the figure segmentation process is performed in the deletion area, line segment data is read out, and a new drawing is performed. When deleting from the start point to the intermediate point or from the intermediate point to the end point, the figure is not divided.
  • the figure When erasing a figure whose start point and end point are the same, the figure is erased by performing a change process to the figure excluding the erasure area, reading out the arc or elliptical arc data, and drawing new. . Also, set the erase snap range for the erasure reference point such as the intersection point of the figure, the drawing center of the circle, ellipse, arc or elliptic arc, and the line to be erased is _
  • the line segment data excluding the erased area is read out and inserted to erase the figure in the erased area.
  • the figure up to the erasure reference point is erased.
  • an icon such as an edit menu is not displayed around a screen or a tablet, and a command area is provided on a drawing window (not shown).
  • the erase mode will be set. If you select the write operation, the cursor will change to an eccentric shape, and if you select the erase operation, the cursor will change to the eraser type.
  • the erasing operation has the same operation feeling as the writing operation by tracing the figure.
  • FIG. 2 is a diagram illustrating an example of line division (erasing up to two intersections).
  • line division erasing up to two intersections.
  • four straight lines AB, CD, EF, and GH intersect at intersections P1 to P4. If part or all of the line segment between the intersections is deleted, each intersection is deleted. It becomes a reference point.
  • the figure erasing mode is selected, the repetitiously.
  • An erase snap range R is set nearby (Fig. 2 (f)).
  • the computer recognizes that the figure is an unclosed figure, and the point sequence of the traced area K (the thick line in the figure) Is obtained, it is determined whether or not the area K intersects with the erase snap range, and the dividing process is performed on the straight line AB.
  • the straight line AB is divided from the point A to the intersection Pl and from the intersection P2 to the point B, and the line segment The data is read, the new line is drawn, and the line from intersection P1 to intersection P2 is erased (Fig. 2 (b)).
  • Fig. 2 (b) when a part of the straight line CD (between the intersections P3 and P4) is traced with the cursor, the coordinates of the point sequence of the traced area K are obtained, and the erased area is processed in the same manner as the straight line AB.
  • FIG. 3 is a diagram illustrating an example of line division (combination of tracing and elimination up to one intersection). Also in this example, four straight lines AB, CD, EF, and GH intersect at intersections P1 to P4, and when erasing part or all of the line segment between the intersections, each intersection is erased. It becomes a reference point. Select the figure erasing mode and set the erasing snap range. When a part of the straight line AB (between the intersections P1 and P2) is traced with a force sol (Fig. 3 (a)), the computer recognizes that this is an unclosed figure and traces it.
  • Fig. 4 is a diagram illustrating an example of straight line division (elimination of traced portions). Also in this example, four straight lines AB, CD, EF, and GH intersect at intersections P1 to P4, and when erasing part or all of the line segment between the intersections, each intersection is erased. It becomes a reference point. Select the figure erasing mode and set the erasing snap range. When a part of the straight line AB (between the intersections P1 and P2) is traced with a force sol (Fig. 4 (a)), the computer recognizes that this figure is an unclosed figure and traces it.
  • FIG. 5 is a diagram illustrating an example of dividing a straight line passing through the center of a circle.
  • the center is also the erasure reference point, and by setting the erasure snap range at the center, the same processing as in the case of the intersections in FIGS. 2 to 4 is performed.
  • Fig. 5 (a) when a traced part of a straight line L passing through the center O of the circle is traced and the traced area K is outside the erase snap range near the center O of the circle, the trace is performed. If only the touched area is erased (Fig. 5 (b)), and the traced area K is within the erase snap range near the center O of the circle (Fig.
  • FIG. 6 is a diagram illustrating an example in which a circle and a straight line intersect and part of an arc is deleted. ⁇ .
  • each intersection is the erasure reference point, select the graphical erasure mode, and set the erasure snap range.
  • the computer recognizes that this figure is a closed figure, and at the same time, calculates the coordinates of the point sequence of the traced area K (the thick line in the figure). Then, it is determined whether or not the region K intersects with a predetermined range near the intersection, and the circle is subjected to a graphic change process.
  • the traced area K intersects the erase snap range near the intersections Q 1 and Q 2, so that the intersection Q 1 is the start point, the intersection Q 2 is the end point, and the center O is the drawing reference point and the radius is the same as the circle.
  • Change the shape to an arc (Fig. 6 (b)).
  • the portion of the arc C from the intersections Q1 to Q2 is deleted.
  • FIG. 7 is a diagram illustrating an example of changing a circle into two arcs.
  • the tracing is performed linearly so as to pass through the center of the circle, and as shown in Fig. 7 (b), the intersection Q1 between the tracing straight line K and the circle is obtained.
  • the shape is changed to two arcs with Q2 as the start point, end point, and center O as the drawing reference point.
  • FIG. 7 (b) for clarity, the example is illustrated by ⁇ ⁇ from the actual distance.
  • the traced portion is erased by tracing along the figure with an eraser.
  • the operation of tracing along the figure may be complicated. Therefore, in the present invention, as shown in FIG. 8, for example, when it is desired to erase the line segment ⁇ , when the trajectory of the eraser passes through the start point ⁇ and the end point Q, it may be erased.
  • the figure (circumference of the figure) is calculated as a single solution and the slope of the figure is added as a parameter. It is possible to set a reference point.
  • the ellipse is determined by the length of the short axis and the length of the long axis. Set the intersection of the short axis and long axis as the erase reference point and set the erase snap range. Therefore, the ellipse partial elimination method is the same as the circle elimination method.
  • FIG. 9 is a diagram illustrating an example of erasing by a grid.
  • the grid has an erasure snap range set, and the erasure reference point at the center is a virtual point (coordinate) for drawing and editing, and is arranged at regular intervals G (X, Y).
  • Line segment AB is located at G11-14, and similarly, line segment CD and EF are located at G21-24 and G31-34 (Fig. 9 (a)).
  • an eraser operation (K) is performed on each line segment.
  • each line segment is as follows.
  • Line segment AB is a straight line from G12 to G14
  • line segment CD is divided into two straight lines from G21 to G22 and G23 to G24
  • line segment EF is G31 and G A straight line from the middle of 32 to G34 (Fig. 9 (c)).
  • This processing starts when the erase mode is set by the erase command.
  • the figure to be erased is determined from the coordinates input by the eraser (step S1). Then, it is determined whether or not there is a figure in the erasing area input by the eraser (step S2). If there is no figure, the erasing process ends. If there is a figure in the erasure area, it is determined whether the figure has the same start point and end point (step S3). If the figure is not the same as a line segment, the eraser input coordinates are changed to the coordinates on the figure to be erased. (Step S 4), and figure division determination is performed (step S 5).
  • step S6 it is determined whether or not the figure is to be divided. If the figure is to be divided, a dividing process is performed (step S7). If the start point and the end point are the same, such as a circle, similarly, the eraser input coordinates are converted to coordinates on the figure to be erased (step S8), and figure change processing is performed (step S9). Next, it is determined whether or not an erase snap area (snap) has been set (step S10).
  • step S6 it is determined whether or not the figure is to be divided.
  • the center of the erase snap area (the erase reference point) is the intersection point of a figure, the center of a circle or ellipse, an arc or an elliptical arc, or a reference point for drawing a new figure such as a grid point.
  • the snap area is set by the user's instruction. If the erase snap area (snap) has been set, the range of the erase snap is calculated (step S11).
  • the erase snap range is calculated using the display scale as a parameter on the screen to be operated. In other words, when the display is reduced, the erase snap range is reduced, and when the display is enlarged, the erase snap range is increased.
  • Step S12 it is determined whether the type of the erasure reference point is the intersection, the center, or the grid of the figure (step S12), and if it is the intersection (step S13), and if it is the center.
  • Step S14 In the case of a grid (Step S15), the drawing coordinates are calculated. In this process, when the erase area and the erase snap range overlap, the erase reference point is used as the drawing reference point, and when the erase area and the erase snap area do not overlap, the erase area is used as the drawing reference point. . If the erase snap is not set in step S10, the drawing coordinates are calculated based on the coordinates of the traced area. The graphic is erased by drawing the graphic based on the calculated drawing coordinates.
  • the size of the cursor for drawing the erasure area can be changed. By changing the size, the erasure operation can be performed efficiently.
  • a horizontal / vertical wipe operation may be used as the eraser operation. In other words, by selecting any two points and moving the line connecting the two points horizontally or vertically, the figure or part of the figure selected during the movement is erased. Is also good.
  • a rotary wipe operation may be used as the eraser operation. In other words, two arbitrary points may be selected, rotated about either of the two points, and the selected figure or part of the figure may be deleted during the movement.
  • the erasing process may be performed by setting the erasing reference point and the erasing snap range, or all overlapping graphics may be erased. Good. If it is desired to delete all the figures, the figure may be selected and deleted. .
  • a writing operation and an erasing operation can be performed with the same operation feeling. It is possible to select the erase from the traced part to the erase reference point or the erase from the erase reference point to the erase reference point. The erasure area can be selected, and operability can be improved.

Abstract

Operability is improved by arbitrarily selecting an area to be erased in a handwriting manner without any troublesome operation for erasing a pattern. A system for editing a pattern by freehand input comprising freehand input means (3, 4 and 5) for inputting an area to be edited, a pattern judging means (1) for judging whether or not the starting point of the pattern to be edited is the same as the ending point thereof, a pattern dividing/modifying means (1) for determining whether or not division is performed according to the result the of pattern judgment and the area to be edited and for dividing or modifying the pattern, a drawing coordinate calculating means (1) for calculating the drawing coordinates by judging whether or not a pattern erasure snap area is set, identifying the kind of a reference point for erasure, and judging whether or not the area to be edited is within the set erasure snap area, and a drawing means (1) for drawing a pattern for update based on the calculated drawing coordinate.

Description

明 細 書  Specification
手書き入力図形編集システム Handwriting input figure editing system
発明の背景 Background of the Invention
技術分野 本発明はコンピュータを使った図形描画 (C A D ) に係り、 特に紙に書いて いる感覚で図形消去を行えるようにした手書き入力による図形編集システム に関する。 TECHNICAL FIELD The present invention relates to graphic drawing (C AD) using a computer, and more particularly to a graphic editing system by handwriting input that enables graphic erasure as if writing on paper.
背景技術 従来、マウスや電子ペンを用いてディスプレイ上の消去カーソル(消しゴム) を手書きの感覚で操作し、 描画した線、 円、 楕円、 多角形等の図形の一部また は全部を消去する以下のようなものが提案されている。 例えば、 ①特開昭 6 0 - 1 2 9 8 2 9号公報では、 ディスプレイ座標と対応 する座標を有する電子式タブレツト上の筆記領域を複数の格子ボックスに区 分し、 消しゴムと交わる格子ボックス内の線分や点を探索し、 消しゴムの移動 に合わせて実時間で図形を消去する。 2. Description of the Related Art Conventionally, a mouse or an electronic pen is used to operate a deletion cursor (eraser) on a display as if by handwriting, and delete part or all of a drawn line, circle, ellipse, polygon, or other figure. Something like that has been proposed. For example, (1) In Japanese Patent Application Laid-Open No. 60-129829, a writing area on an electronic tablet having coordinates corresponding to display coordinates is divided into a plurality of grid boxes, and the writing area is intersected with an eraser. Search for the line segment or point of, and erase the figure in real time as the eraser moves.
②特開平 5— 2 7 4 4 1 2号公報では、 消しゴムによる消去の範囲の軌跡を 算出し、 その軌跡とベタトル .データとの重なりを検出して、 重なり部分のベ タ トル 'データを消去する。 ③特開平 7— 2 1 9 7 0 1号公報では、 消去を目的とする図形に手書きで印 をつけ、 その後ギザギザのような消去ジェスチャーを手書き入力することによ り、 その図形を一括消去する。 (2) In Japanese Patent Application Laid-Open No. 5-2274412, the trajectory of the range of erasure by the eraser is calculated, the trajectory is overlapped with the beta data, and the data of the overlapped portion is erased. I do. (3) In Japanese Unexamined Patent Publication No. Hei 7-2-19701, a figure to be erased is marked by handwriting, and then a jagged erasing gesture is input by handwriting to erase the figure all at once. .
④特開平 8— 2 6 3 6 8 8号公報では、 消去を目的とする図形に手書きで印 をつけ、 その後消去ジ スチャーを手書き入力して消去し、 図形には図形単位 または他の図形との交点のグリ ッド情報を持たせ、 また、 図形の部分消去を行 う場合には、 消去ジェスチャー入力後、 消したい部分に X印をつけ、 消したい 部分に線を引くようにする。  ④ In Japanese Unexamined Patent Publication No. Hei 8-2663688, a figure to be erased is marked by handwriting, and then the erasing gesture is input by handwriting and erased. If you want to have the grid information of the intersection of, and if you want to partially erase the figure, after inputting the erase gesture, put an X mark on the part you want to erase and draw a line on the part you want to erase.
し力、し、 これらには、 次のような欠点が存在した。  They had the following drawbacks.
上記①特開昭 6 0—1 2 9 8 2 9号公報では、 消しゴムの移動に伴って実時 間で順次図形を消去しているものであり、 消しゴムの移動が速すぎると、 その 軌跡內の格子ポックス内の線分や点の取り込みが十分行われず消去がまだら となり、 完全に消去するためには消しゴムをゆつく り移動する必要があり、 ュ —ザ にとつては消去操作感が満足いく ものではない。  In the above-mentioned Japanese Patent Application Laid-Open No. 60-1292829, figures are sequentially erased in real time along with the movement of the eraser. Lines and points in the grid pox are not sufficiently captured, causing erasure, and the eraser must be moved slowly for complete erasure. That's not going to work.
上記②特開平 5— 2 7 4 4 1 2号公報では、 消去範囲の軌跡を算出してその 範囲内のべク トル ·データを消去しているので、 消去がまだらになることはな いものの、 例えば線分の一部を消去する場合、 消去する端部を正確に設定しよ うとしても、 電子ペンの操作で消去の範囲をその端部に合わせるのは一般のュ 一ザ一にとつては困難である。 上記③特開平 7— 2 1 9 7 0 1号公報では、 消去対象の図形に手書きで印を 付け、 消去ジェスチャーを手書き入力して図形を一括消去しており、描画する ことと消去することの選択がコマンドではないので、 雑多な操作もしくは描く ことの困難なエリァが発生するとともに、 図形の部分消去ができない。 „ In the above-mentioned Japanese Unexamined Patent Application Publication No. 5-274744, the trajectory of the erasure range is calculated and the vector data within the range is erased, so the erasure will not be mottled. For example, when erasing a part of a line segment, it is not possible for an ordinary user to adjust the erasure range to the end by operating the electronic pen even if the end to be erased is set accurately. It is difficult. In the above-mentioned Japanese Patent Application Laid-Open No. 7-219701, the figure to be erased is marked by handwriting, and the erase gesture is input by handwriting to erase the figure all at once. Since selection is not a command, various operations or areas that are difficult to draw occur, and partial erasure of figures cannot be performed. „
上記④特開平 8— 2 6 3 6 8 8号公報では、③特開平 7— 2 1 9 7 0 1号公 報と同様に描画することと消去することの選択がコマンドではないので、雑多 な操作もしくは描くことの困難なエリアが発生するとともに、 交点を有する図 形の場合、 必ず交点まで消去されてしまい、 交点の手前まで消去するようなこ とはできない。 In the above-mentioned Japanese Patent Application Laid-Open No. Hei 8-2-263688, since the selection of drawing and erasing is not a command in the same manner as in the Japanese Patent Publication No. Hei 7-219701, it is complicated. An area that is difficult to operate or draw occurs, and in the case of a figure that has an intersection, it is always erased up to the intersection, and it is not possible to erase it just before the intersection.
発明の開示 本発明は上記課題を解決するためのもので、 図形消去のための操作が煩雑で なく、 手書き感覚で任意に消去領域を選択できるようにし、 操作性を向上させ ることを目的とする。 DISCLOSURE OF THE INVENTION The present invention has been made in order to solve the above-mentioned problem, and has as its object to improve the operability by making it possible to select an erasing area arbitrarily as if by handwriting without complicated operation for erasing a figure. I do.
そのために本発明は、 手書き入力により図形の編集を行うシステムにおいて、 編集対象領域を入力する手書き入力手段と、  For this purpose, the present invention provides a system for editing a figure by handwriting input, wherein:
編集対象の図形の始点と終点が同じであるか否かを判定する図形判定手段 と、 図形判定結果と編集対象領域に応じて分割を行うか否か判断し、 図形を分割 または変更する図彤分割ノ変更処理手段と、  Figure determining means for determining whether the starting point and the ending point of the figure to be edited are the same, and determining whether or not to divide the figure according to the figure determination result and the area to be edited, and dividing or changing the figure. Division change processing means,
図形の消去スナップ範囲が設定されているか否か、設定されている場合にそ の種別を判別するとともに、編集対象領域が設定された消去スナップ範囲内に あるか否かを判別して描画座標を算出する描画座標算出手段と、 算出された插画座標に基づいて図形を描画して更新する描画手段  The drawing coordinates are determined by determining whether or not the erase snap range of the figure is set, and if so, its type, and determining whether or not the edit target area is within the set erase snap range. Drawing coordinate calculation means for calculating, and drawing means for drawing and updating a figure based on the calculated insertion coordinates
とを備えたことを特徴とする。 Λ And characterized in that: Λ
4  Four
また、 本発明は、 前記消去スナップ範囲の大きさが変更可能であることを特 徵とする。 Further, the present invention is characterized in that the size of the erase snap range can be changed.
図面の簡単な説明 図 1は、 本発明の図形編集システムの全体構成を示す図である。 BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram showing the overall configuration of a graphic editing system according to the present invention.
図 2は、 本発明の直線分割 (2つの交点まで消去) の例を説明する図である。 図 3は、 本発明の直線分割 (なぞった分と 1つの交点まで消去の組み合わせ) の例を説明する図である。 FIG. 2 is a diagram for explaining an example of linear division (elimination up to two intersections) according to the present invention. FIG. 3 is a diagram for explaining an example of straight line division (combination of tracing and erasing up to one intersection) according to the present invention.
図 4は、 本発明の直線分割 (なぞった分の消去) の例を説明する図である。 図 5は、 本発明の円の中心を通る直線の分割の例を説明する図である。 FIG. 4 is a diagram illustrating an example of linear division (erasing of traced portions) according to the present invention. FIG. 5 is a diagram illustrating an example of dividing a straight line passing through the center of a circle according to the present invention.
図 6は、 本発明の円と直線が交じわった円弧の一部を消去する例を説明する図 である。 FIG. 6 is a diagram illustrating an example of erasing a part of a circular arc where a circle and a straight line intersect according to the present invention.
図 7は、 本発明の円を 2つの円弧に変更する例を説明する図である。 FIG. 7 is a diagram illustrating an example of changing a circle into two arcs according to the present invention.
図 8は、 本発明の図形消去の例を説明する図である。 図 9は、 本発明の格子を使って描かれた図形の消去の例である。 FIG. 8 is a diagram illustrating an example of graphic erasure according to the present invention. FIG. 9 is an example of erasing a figure drawn using the grid of the present invention.
図 1 0は、 本発明の図形消去処理フローを説明する図である。 FIG. 10 is a diagram for explaining the graphic erasure processing flow of the present invention.
発明を実施するための形態 BEST MODE FOR CARRYING OUT THE INVENTION
以下、 本発明の実施の形態について説明する,  Hereinafter, embodiments of the present invention will be described.
ぐ全体構成 > „ Overall configuration> „
図 1は、 本発明の図形編集システムの全体構成を示す図である。 図形編集処 理用のコンピュータ 1は、 基本描画図形のデータ、 描画処理プログラム、 図形 消去等編集の場合の描画基準点のデータ、編集プログラム等の描画ノ編集処理 に必要とされる全てのデータが格納されている。 マウス 3、 タブレット 4と電 子ペン 5は、 C R T 2の画面上で、 図形を描画したり、 消去するためのもので あ 。 また、コンビュ一タ 1に入力された図形は必要に応じてプリンタ(図示なし) により印字することができる。 次に、 マウス 3や電子ペン 5を使って描画図形を消去する本発明の編集処理 について説明する。 描画した図形の編集 (消去) は、 消去領域を除いた新たな 図形を描画する処理と同じである。 本発明においては、 編集対象の図形が線分や線分から構成される多角形のよ うに始点と終点が異なる図形であるか、 円や楕円のように始点と終点が同じで ある図形であるか判別し、始点と終点が異なる図形の始点と終点間の一部を消 去する場合は、 消去領域で図形の分割処理を行って線分データを読みだして新 たに描画する。 なお、 始点から中間点まで、 或いは中間点から終点まで消去する場合は図形 の分割処理は行わない。 始点と終点が同じである図形を消去する場合は、 消去領域を除く図形への変 更処理を行って円弧や楕円弧のデータを読みだして新たに描画することによ り、 図形の消去を行う。 また、 図形の交点や円、 楕円、 円弧または楕円弧の描画中心のような消去基 準点に対して消去スナップ範囲を設定し、 消去対象線がこの消去スナップ範囲 _ FIG. 1 is a diagram showing the overall configuration of the graphic editing system of the present invention. The computer for figure editing processing 1 stores the basic drawing figure data, the drawing processing program, the data of the drawing reference point in the case of editing such as figure deletion, and all the data necessary for drawing processing such as the editing program. Is stored. The mouse 3, tablet 4, and electronic pen 5 are used to draw and erase figures on the CRT 2 screen. The figures input to the computer 1 can be printed by a printer (not shown) as required. Next, an editing process of the present invention for erasing a drawing figure using the mouse 3 or the electronic pen 5 will be described. Editing (erasing) a drawn figure is the same as drawing a new figure excluding the erased area. In the present invention, whether the figure to be edited is a figure whose start point and end point are different, such as a line segment or a polygon composed of line segments, or a figure whose start point and end point are the same, such as a circle or an ellipse If it is determined and the part between the start point and the end point of the figure whose start point and end point are different is to be deleted, the figure segmentation process is performed in the deletion area, line segment data is read out, and a new drawing is performed. When deleting from the start point to the intermediate point or from the intermediate point to the end point, the figure is not divided. When erasing a figure whose start point and end point are the same, the figure is erased by performing a change process to the figure excluding the erasure area, reading out the arc or elliptical arc data, and drawing new. . Also, set the erase snap range for the erasure reference point such as the intersection point of the figure, the drawing center of the circle, ellipse, arc or elliptic arc, and the line to be erased is _
と交わるか否か判別し、 消去スナップ範囲と交わらない場合は、 消去鎮域を除 いた線分データを読みだして插画することにより消去領域の図形を消去し、 消 去スナップ範囲と交わる場合は、 消去領域の端部から消去基準点までを除いた 線分データを読みだして描画することにより、 消去基準点までの図形を消去す るものである。 このような処理により、 ユーザ一が所望する領域のみ図形を消去できるとと もに、 必要に応じて消去する端部を正確に設定可能である。 本発明では画面やタブレツトの周辺に編集メニュー等のアイコンを表示せ ず、 描画ウィンドウ上にコマンドエリアを設け (図示せず) 、 このコマンドェ リアに、 操作コマンドを意味する記号を描くと、 コンピュータは操作コマンド を解釈してその処理を実行するものである。 例えば、 コマンドエリアに 「X J を睿くと、 消去モードが設定される。 そして、 書く操作を選択した場合には、 カーソルがェンピッ形状となり、 消す操作を選択した場合にはカーソルが消し ゴム型となり、 消す操作も図形をなぞることにより、 書く操作と同じ操作感と する。 If it does not intersect with the erased snap range, the line segment data excluding the erased area is read out and inserted to erase the figure in the erased area. By reading and drawing line segment data excluding the end of the erasure area and the erasure reference point, the figure up to the erasure reference point is erased. By such a process, a figure can be erased only in a region desired by the user, and an edge to be erased can be set accurately if necessary. In the present invention, an icon such as an edit menu is not displayed around a screen or a tablet, and a command area is provided on a drawing window (not shown). When a symbol indicating an operation command is drawn in this command area, the computer It interprets the operation command and executes its processing. For example, if you select "XJ" in the command area, the erase mode will be set. If you select the write operation, the cursor will change to an eccentric shape, and if you select the erase operation, the cursor will change to the eraser type. The erasing operation has the same operation feeling as the writing operation by tracing the figure.
まず、 閉じていない図形における消去について、 交点を有する直線を例とし て、 図 2〜図 4により説明する。 もちろん、 直線でなく曲線であっても処理は 全く同じである。  First, the erasure of an unclosed figure will be described with reference to FIGS. 2 to 4 using a straight line having an intersection as an example. Of course, the process is exactly the same even if it is a curve instead of a straight line.
<直線消去:その 1〉 図 2は直線分割 (2つの交点まで消去) の例を説明する図である。 この例においては、 4本の直線 A B、 C D、 E F、 G Hが、 交点 P 1〜 P 4 において交差しており、 各交点間の線分の一部または全部を消去する場合、 各 交点は消去基準点となる。 図形の消去モードを選択すると、 消去基準点 Pの近 „ <Line Elimination: Part 1> FIG. 2 is a diagram illustrating an example of line division (erasing up to two intersections). In this example, four straight lines AB, CD, EF, and GH intersect at intersections P1 to P4.If part or all of the line segment between the intersections is deleted, each intersection is deleted. It becomes a reference point. When the figure erasing mode is selected, the „
傍に消去スナップ範囲 Rが設定される (図 2 ( f ) ) 。 ここで直線 A Bの一部 をカーソルでなぞると (図 2 (a) ) 、 コンピュータはこの図形が閉じてない 図形であることを認識するとともに、 なぞった領域 K (図の太線部分) の点列 の座標を取得して、 領域 Kが消去スナップ範囲と交わっているか否か判別し、 直線 ABに対して分割処理を施す。 この例では消去領域 Kが交点 P 1、 交点 P 2の近傍の消去スナップ範囲 Rと交わっているので、直線 ABは A点から交点 P l、 交点 P 2から B点までに分割され、 線分データを読みだして新たにその 直線が描画され、交点 P 1から交点 P 2までの線が消去される (図 2 (b) )。 図 2 (b ) において直線 CDの一部 (交点 P 3、 P4間) をカーソルでなぞ ると、 なぞった領域 Kの点列の座標を取得し、 直線 A Bの場合と同様にして消 去領域 Kが交点 P 3、 交点 P 4の近傍の消去スナップ範囲と交わっているので、 交点 P 3から交点 P 4までが消去される (図 2 (c) ) 。 また、 図 2 ( c ) において、 直線 EFの一部 (交点 P l、 P 3間) をカーソ ルでなぞると、 直線 ABの場合と同様にしてなぞった領域 Kの点列の座標を取 得し、 消去領域 Kが交点 P l、 交点 P 3の近傍の消去スナップ範囲と交わって いるので、 交点 P 1から交点 P 3までが消去される (図 2 (d) ) 。 また、 図 2 (d) において、 直線 GHの一部 (交点 P 2、 P4間) をカーソ ルでなぞると、 直線 ABの場合と同様にしてなぞった領域 Kの点列の座標を取 得し、 消去領域 Kが交点 P 2、 交点 P 4の近傍の消去スナップ範囲と交わって いるので、 交点 P 2から交点 P 4までが消去される (図 2 (e) ) 。 このように、 交点を消去基準点としてその近傍の所定範囲を消去スナップ範 囲に設定することにより、 交点まで消去することが可能である。 もちろん、 消 去スナップ範囲を設定しなければなぞった領域が消去される。 Λ An erase snap range R is set nearby (Fig. 2 (f)). Here, when the cursor traces a part of the straight line AB (Fig. 2 (a)), the computer recognizes that the figure is an unclosed figure, and the point sequence of the traced area K (the thick line in the figure) Is obtained, it is determined whether or not the area K intersects with the erase snap range, and the dividing process is performed on the straight line AB. In this example, since the erasure area K intersects the erasure snap range R near the intersection P1 and the intersection P2, the straight line AB is divided from the point A to the intersection Pl and from the intersection P2 to the point B, and the line segment The data is read, the new line is drawn, and the line from intersection P1 to intersection P2 is erased (Fig. 2 (b)). In Fig. 2 (b), when a part of the straight line CD (between the intersections P3 and P4) is traced with the cursor, the coordinates of the point sequence of the traced area K are obtained, and the erased area is processed in the same manner as the straight line AB. Since K intersects with the erasure snap range near the intersection P3 and the intersection P4, the intersection P3 to the intersection P4 are erased (Fig. 2 (c)). In Fig. 2 (c), when a part of the straight line EF (between the intersections Pl and P3) is traced with a cursor, the coordinates of the point sequence in the region K traced in the same manner as the straight line AB are obtained. Since the erasure area K intersects with the intersection Pl and the erasure snap range near the intersection P3, the intersections P1 to P3 are erased (Fig. 2 (d)). Also, in Fig. 2 (d), when a part of the straight line GH (between the intersections P2 and P4) is traced with a cursor, the coordinates of the point sequence of the traced area K are obtained in the same manner as the straight line AB. Since the erasure area K intersects with the intersection P2 and the erasure snap range near the intersection P4, the intersection P2 to the intersection P4 are erased (FIG. 2 (e)). In this way, by setting the intersection as the erasure reference point and setting a predetermined range in the vicinity thereof as the erasure snap range, it is possible to erase up to the intersection. Of course, if you do not set the erase snap range, the traced area will be erased. Λ
<直線消去: その 2 > 図 3は、 直線分割 (なぞった分と 1つの交点まで消去の組み合わせ) の例 を説明する図である。 この例においても、 4本の直線 A B、 C D、 E F、 G Hが、 交点 P 1〜 P 4 において交差しており、 各交点間の線分の一部または全部を消去する場合、 各 交点は消去基準点となる。 図形の消去モードを選択し、 消去スナップ範囲を設 定する。 ここで直線 A Bの一部(交点 P 1、 P 2間) を力一ソルでなぞると (図 3 ( a ) ) , コンピュータはこの図形が閉じてない図形であることを認識する とともに、 なぞった領域 K (図の太線部分) の点列の座標を取得して、 領域 K が交点近傍の消去スナツプ範囲と交わっているか否か判別し、 直線 A Bに対し て分割処理を施す。 この例では消去領域 Kが交点 P 1の近傍の消去スナップ範 囲と交わっておらず、 交点 P 2の近傍の消去スナップ範囲と交わっているので、 A点—交点 P 1—消去領域の一端 K 1と、 交点 P 2—B点までに分割され、 線 分デ ^タを読みだして新たにその直線が描画され、 K 1から交点 P 2までが消 去される (図 3 ( b ) ) 。 <Line Elimination: Part 2> FIG. 3 is a diagram illustrating an example of line division (combination of tracing and elimination up to one intersection). Also in this example, four straight lines AB, CD, EF, and GH intersect at intersections P1 to P4, and when erasing part or all of the line segment between the intersections, each intersection is erased. It becomes a reference point. Select the figure erasing mode and set the erasing snap range. When a part of the straight line AB (between the intersections P1 and P2) is traced with a force sol (Fig. 3 (a)), the computer recognizes that this is an unclosed figure and traces it. Obtain the coordinates of the point sequence of the area K (the thick line in the figure), determine whether the area K intersects with the erasure snap range near the intersection, and perform the division process on the straight line AB. In this example, since the erasure area K does not intersect with the erasure snap range near the intersection P1, but intersects with the erasure snap range near the intersection P2, point A—intersection P1—one end K of the erasure area It is divided into 1 and the intersection P2—point B, the line segment data is read out, a new straight line is drawn, and the intersection from K1 to the intersection P2 is erased (Fig. 3 (b)). .
く直線消去:その 3 > 図 4は、 直線分割 (なぞった分の消去) の例を説明する図である。 この例においても、 4本の直線 A B、 C D、 E F、 G Hが、 交点 P 1〜 P 4 において交差しており、 各交点間の線分の一部または全部を消去する場合、 各 交点は消去基準点となる。 図形の消去モードを選択し、 消去スナップ範囲を設 定する。 ここで直線 A Bの一部(交点 P 1、 P 2間) を力一ソルでなぞると (図 4 ( a ) ) 、 コンピュータはこの図形が閉じてない図形であることを認識する とともに、 なぞった領域 K (図の太線部分) の点列の座標を敢得して、 領域 K が交点近傍の所定範囲と交わっているか否か判別し、 直線 A Bに対して分割処 理を施す。 この例では消去領域 Kが交点 P 1、 交点 P 2の近傍の消去スナップ 範囲のいずれとも交わっていないので、 A点一交点 P 1—領域 Kの一端 K 1と、 領域 Kの他端 K 2—交点 P 2— B点までに分割され、相当する線分データを読 みだして新たにその直線が描画され、 K 1から K 2までが消去される (図 4 ( b ) ) 。 Straight line elimination: Part 3> Fig. 4 is a diagram illustrating an example of straight line division (elimination of traced portions). Also in this example, four straight lines AB, CD, EF, and GH intersect at intersections P1 to P4, and when erasing part or all of the line segment between the intersections, each intersection is erased. It becomes a reference point. Select the figure erasing mode and set the erasing snap range. When a part of the straight line AB (between the intersections P1 and P2) is traced with a force sol (Fig. 4 (a)), the computer recognizes that this figure is an unclosed figure and traces it. Obtain the coordinates of the point sequence in area K (the thick line in the figure) Is intersected with a predetermined range near the intersection, and the dividing process is performed on the straight line AB. In this example, since the erase area K does not intersect with either the intersection P 1 or the erase snap range near the intersection P 2, the point A and the intersection P 1—one end K 1 of the area K and the other end K 2 of the area K —Intersection P 2 — Divided into point B, read the corresponding line segment data, draw a new line, and delete K 1 to K 2 (Fig. 4 (b)).
く円の中心を通る直線分割 > Straight line segment passing through the center of the circle>
図 5は円の中心を通る直線の分割の例を説明する図である。 円の場合にはその中心も消去基準点となり、 その中心に消去スナップ範囲を 設定することにより、 上記図 2〜図 4の交点の場合と同様な処理が行われる。 例えば、図 5 ( a )に示すように、円の中心 Oを通る直線 Lの一部をなぞり、 なぞった領域 Kが円の中心 Oの近傍の消去スナップ範囲外である場合には、 な ぞつた領域だけが消去され (図 5 ( b ) ) 、 なぞった領域 Kが円の中心 Oの近 傍の消去スナップ範囲内である場合 (図 5 ( c ) ) 、 なぞった領域端部から円 の中心 O (消去基準点) までが消去される (図 5 ( d ) ) なお、 上記の例においては線分の始点と終点の間の一部を消去する場合に、 線分を分割するようにしているが、 線分の始点から中間点まで、 或いは中間点 から終点までを消去する場合は図形の分割処理は行わず、単に消去領域を除い た線分を描画する。  FIG. 5 is a diagram illustrating an example of dividing a straight line passing through the center of a circle. In the case of a circle, the center is also the erasure reference point, and by setting the erasure snap range at the center, the same processing as in the case of the intersections in FIGS. 2 to 4 is performed. For example, as shown in Fig. 5 (a), when a traced part of a straight line L passing through the center O of the circle is traced and the traced area K is outside the erase snap range near the center O of the circle, the trace is performed. If only the touched area is erased (Fig. 5 (b)), and the traced area K is within the erase snap range near the center O of the circle (Fig. 5 (c)), the circle from the end of the traced area Up to the center O (the erasure reference point) is erased (Fig. 5 (d)). In the above example, when erasing a part between the start point and end point of the line segment, the line segment is divided. However, when erasing the line segment from the start point to the midpoint or from the midpoint to the end point, the figure is not divided and the line segment excluding the erasure area is simply drawn.
<円の部分消去 > <Partial erase of circle>
次に、 閉じた図形として円を例にとってその消去処理について説明する。 図 6は、 円と直線が交わって円弧の一部を消去する例を説明する図である。 丄。 Next, the erasing process will be described using a circle as an example of a closed figure. FIG. 6 is a diagram illustrating an example in which a circle and a straight line intersect and part of an arc is deleted. 丄.
円と線分 Lとが Q l、 Q 2で交差しており、 各交点が消去基準点となり、 図 形の消去モードを選択し、 消去スナップ範囲を設定する。 ここで円弧 Cをカー ソルでなぞると (図 6 ( a ) ) 、 コンピュータはこの図形が閉じた図形である ことを認識するとともに、 なぞった領域 K (図の太線部分) の点列の座標を取 得して、 領域 Kが交点近傍の所定範囲と交わっているか否か判別し、 円に対し て図形の変更処理を施す。 この例ではなぞった領域 Kが交点 Q 1、 Q 2の近傍 の消去スナップ範囲に交わっているので、 交点 Q 1を始点、 交点 Q 2を終点、 中心 Oを描画基準点として円と同じ半径の円弧に図形変更する(図 6 ( b ) )。 こうして、 交点 Q 1から Q 2までの円弧 Cの部分が消去される。 The circle and the line segment L intersect at Ql and Q2, each intersection is the erasure reference point, select the graphical erasure mode, and set the erasure snap range. Here, when the arc C is traced with the cursor (Fig. 6 (a)), the computer recognizes that this figure is a closed figure, and at the same time, calculates the coordinates of the point sequence of the traced area K (the thick line in the figure). Then, it is determined whether or not the region K intersects with a predetermined range near the intersection, and the circle is subjected to a graphic change process. In this example, the traced area K intersects the erase snap range near the intersections Q 1 and Q 2, so that the intersection Q 1 is the start point, the intersection Q 2 is the end point, and the center O is the drawing reference point and the radius is the same as the circle. Change the shape to an arc (Fig. 6 (b)). Thus, the portion of the arc C from the intersections Q1 to Q2 is deleted.
<円の分割 > <Division of circle>
図 7は円を 2つの円弧に変更する例を説明する図である。 この例では、 図 7 ( a ) に示すように、 円の中心を通るように直線状になぞ つたもので、 図 7 ( b ) に示すように、 なぞった直線 Kと円との交点 Q 1、 Q 2を始点、 終点、 中心 Oを描画基準点として 2つの円弧に図形変更される。 な お、 図 7 ( b ) では、 分かりやすくするために実際より Δ τだけ離して例示し た。 なお、 記述の例においては図形に沿って消しゴムでなぞることによりなぞつ た部分を消去するようにしているが、 図形に沿ってなぞる操作が煩雑と感ずる 可能性がある。 そこで、 本発明では、 図 8に示すように、 例えば、 線分 Α Βを 消去したい場合に、 消しゴムの軌跡がその始点 Ρと終点 Qを通った場合には消 去するようにしてもよい。  FIG. 7 is a diagram illustrating an example of changing a circle into two arcs. In this example, as shown in Fig. 7 (a), the tracing is performed linearly so as to pass through the center of the circle, and as shown in Fig. 7 (b), the intersection Q1 between the tracing straight line K and the circle is obtained. The shape is changed to two arcs with Q2 as the start point, end point, and center O as the drawing reference point. In FIG. 7 (b), for clarity, the example is illustrated by Δ τ from the actual distance. In the example of the description, the traced portion is erased by tracing along the figure with an eraser. However, the operation of tracing along the figure may be complicated. Therefore, in the present invention, as shown in FIG. 8, for example, when it is desired to erase the line segment Α, when the trajectory of the eraser passes through the start point Ρ and the end point Q, it may be erased.
<楕円の部分消去 > U <Partial deletion of ellipse> U
楕円は、 円と同様に図形の中心が決定された場合に、 図形 (図形外周) は数 式で 1つの解として求められ、 パラメータとして図形の傾きが追加されるので、 円と同じように消去基準点を設定することが可能である。 楕円は、 短軸の長さと長軸の長さで决める。 短軸と長軸の交点を消去基準点 とし、 消去スナップ範囲を設定する。 従って、 楕円の部分消去方法は、 円の消去方法と同じである。 For ellipses, if the center of the figure is determined in the same way as a circle, the figure (circumference of the figure) is calculated as a single solution and the slope of the figure is added as a parameter. It is possible to set a reference point. The ellipse is determined by the length of the short axis and the length of the long axis. Set the intersection of the short axis and long axis as the erase reference point and set the erase snap range. Therefore, the ellipse partial elimination method is the same as the circle elimination method.
<格子による消去 > 図 9は、 格子による消去の例を説明する図である。 該格子は消去スナップ範囲が設定されており、 その中心の消去基準点は、 描 画、編集時の仮想点(座標) であって一定間隔 G (X, Y) で配置されている。 線分 ABは G 1 1— 14に配置され、 同様に線分 CD、 EFは G 2 1— 24、 G 3 1— 34に配置されている (図 9 (a) ) 。 次に、 各線分に対して消しゴム操作 (K) を行う。 線分 ABに対しては G 1 1の消去スナップ範囲から G 1 2の消去スナップ範囲まで、線分 CDに対して は G 22の消去スナップ範囲から G 23の消去スナップ範囲まで、線分 EFに 対しては G 31の消去スナップ範囲から G 3 1の消去スナップ範囲から G 3 1 G 32の中間点までである (図 9 (b) ) 。 すると、 各線分は次のようになる。 線分 ABは G 1 2から G 14までの直線 に、 線分 CDは分割されて G 21一 G 22までと G 23—G24までの 2本の 直線に、 線分 E Fは G 3 1と G 32の途中から G 34までの直線になる (図 9 (c) ) 。 <Erasing by Grid> FIG. 9 is a diagram illustrating an example of erasing by a grid. The grid has an erasure snap range set, and the erasure reference point at the center is a virtual point (coordinate) for drawing and editing, and is arranged at regular intervals G (X, Y). Line segment AB is located at G11-14, and similarly, line segment CD and EF are located at G21-24 and G31-34 (Fig. 9 (a)). Next, an eraser operation (K) is performed on each line segment. For line AB, from the erase snap range of G11 to G12, for line CD, from the erase snap range of G22 to the erase snap range of G23, for line EF On the other hand, from the erase snap range of G31 to the erase snap range of G31 to the middle point of G31G32 (FIG. 9 (b)). Then, each line segment is as follows. Line segment AB is a straight line from G12 to G14, line segment CD is divided into two straight lines from G21 to G22 and G23 to G24, and line segment EF is G31 and G A straight line from the middle of 32 to G34 (Fig. 9 (c)).
<図形消去フロー > .0 <Figure erase flow> . 0
次に、 図 1 0により本発明の図形消去処理フローについて説明する。 Next, the figure erasure processing flow of the present invention will be described with reference to FIG.
消去コマンドで消去モ一ドに設定するとこの処理がスタートする。 消しゴム で入力された座標から消去対象の図形判定を行う (ステップ S 1 ) 。 そして、 消しゴムで入力した消去領域に図形があるか否か判断し (ステップ S 2 ) 、 図 形がなければ消去処理は終了する。 消去領域に図形があると、 その図形は始点と終点が同じか否か判断し (ステ ップ S 3 ) 、 線分のように同じでない場合、 消しゴム入力座標を消去対象の図 形上の座標に変換し (ステップ S 4 ) 、図形分割判定を行う (ステップ S 5 )。 この判定は、 消去領域の線分が始点と終点の間の一部か否かにより行う。 次いで図形分割か否か判断し (ステップ S 6 ) 、 図形分割の場合は分割処理 を行う (ステップ S 7 ) 。 また、 円のように始点と終点が同じ場合、 同様に消しゴム入力座標を消去対 象の図形上の座標に変換し (ステップ S 8 ) 、 図形変更処理を行う (ステップ S 9 ) 。 次いで、消去スナップ領域(スナップ)が設定されているか否か判断する(ス テツプ S 1 0 ) 。 該消去スナップ領域の中心 (消去基準点) は、 図形の交点、 円や楕円、 円弧や楕円弧等の中心、 或いは格子点のように図形を新たに描画す るための基準点であり、該消去スナップ領域はユーザ一の指示により設定され る。 消去スナップ領域 (スナップ) が設定されている場合は、 消去スナップの 範囲を算出する (ステップ S 1 1 ) 。 消去スナップ範囲は、 操作する画面にお いて表示尺度をパラメ一タとして算出する。 すなわち、 表示を縮小すれば消去 スナップ範囲は縮小し、 拡大すれば消去スナップ範囲は大きくなる。 次いで、 消去基準点の種別が図形の交点であるか、 中心であるか、 格子であ るかを判断し (ステップ S 1 2 ) 、 交点である場合 (ステップ S 1 3 ) 、 中心 である場合 (ステップ S 1 4 ) 、 格子である場合 (ステップ S 1 5 ) に応じて 描画座標が計算される。 この処理は、 消去領域と消去スナップ範囲が重なる場 合には消去基準点を描画基準点とし、 消去領域と消去スナップ範囲が重ならな い場合は、 消去領域を描画基準点とするものである。 ステップ S 1 0において 消去スナップが設定されていない場合は、 なぞった領域の座標に基づいて描画 座標が計算される。 こうして算出された描画座標に基づいて図形を描画するこ とにより、 図形の消去が行われる。 なお、 前記の例において消去領域を描画するカーソルの大きさは、 変形可能 であり、 この大きさを変えることにより、 消去作業が能率よく行える。 また、 消しゴム操作として、 水平 ·垂直ワイプ動作を用いるようにしてもよい。 すな わち、 任意の 2点について選択し、 その 2点間を結ぶ線を水平または垂直方向 に移動させることにより、 その移動中に選択された図形もしくは図形の一部を 消去するようにしてもよい。 また、 消しゴム操作として回転ワイプ動作を用いるようにしてもよい。 すな わち、 任意の 2点について選択し、 2点のどちらかを中心として回転し、 その 移動中に選択された図形もしくは図形の一部を消去するようにしてもよい。 なお、水平 ·垂直ワイプ動作、回転ワイプ動作の場合も上記実施例のように、 消去基準点と消去スナップ範囲を設定して消去処理してもよく、或いは重なる 図形を全て消去するようにしてもよい。 また、 図形を全部消去したい場合には、 図形を選択して消去するようにして もよい。 . This processing starts when the erase mode is set by the erase command. The figure to be erased is determined from the coordinates input by the eraser (step S1). Then, it is determined whether or not there is a figure in the erasing area input by the eraser (step S2). If there is no figure, the erasing process ends. If there is a figure in the erasure area, it is determined whether the figure has the same start point and end point (step S3). If the figure is not the same as a line segment, the eraser input coordinates are changed to the coordinates on the figure to be erased. (Step S 4), and figure division determination is performed (step S 5). This determination is made based on whether or not the line segment of the erasure area is a part between the start point and the end point. Next, it is determined whether or not the figure is to be divided (step S6). If the figure is to be divided, a dividing process is performed (step S7). If the start point and the end point are the same, such as a circle, similarly, the eraser input coordinates are converted to coordinates on the figure to be erased (step S8), and figure change processing is performed (step S9). Next, it is determined whether or not an erase snap area (snap) has been set (step S10). The center of the erase snap area (the erase reference point) is the intersection point of a figure, the center of a circle or ellipse, an arc or an elliptical arc, or a reference point for drawing a new figure such as a grid point. The snap area is set by the user's instruction. If the erase snap area (snap) has been set, the range of the erase snap is calculated (step S11). The erase snap range is calculated using the display scale as a parameter on the screen to be operated. In other words, when the display is reduced, the erase snap range is reduced, and when the display is enlarged, the erase snap range is increased. Next, it is determined whether the type of the erasure reference point is the intersection, the center, or the grid of the figure (step S12), and if it is the intersection (step S13), and if it is the center. (Step S14) In the case of a grid (Step S15), the drawing coordinates are calculated. In this process, when the erase area and the erase snap range overlap, the erase reference point is used as the drawing reference point, and when the erase area and the erase snap area do not overlap, the erase area is used as the drawing reference point. . If the erase snap is not set in step S10, the drawing coordinates are calculated based on the coordinates of the traced area. The graphic is erased by drawing the graphic based on the calculated drawing coordinates. In the above example, the size of the cursor for drawing the erasure area can be changed. By changing the size, the erasure operation can be performed efficiently. Further, a horizontal / vertical wipe operation may be used as the eraser operation. In other words, by selecting any two points and moving the line connecting the two points horizontally or vertically, the figure or part of the figure selected during the movement is erased. Is also good. Further, a rotary wipe operation may be used as the eraser operation. In other words, two arbitrary points may be selected, rotated about either of the two points, and the selected figure or part of the figure may be deleted during the movement. In the case of the horizontal / vertical wipe operation and the rotational wipe operation, as in the above embodiment, the erasing process may be performed by setting the erasing reference point and the erasing snap range, or all overlapping graphics may be erased. Good. If it is desired to delete all the figures, the figure may be selected and deleted. .
14  14
発明の効果 以上のように本発明によれば、 書く操作と消す操作とを同じ操作感で行うこ とが可能であり、 消去スナップ範囲を設定して消去操作を行うことにより、 な ぞつた部分だけ消去したり、 なぞった部分から消去基準点まで、 或いは消去基 準点から消去基準点までの消去を選ぶことが可能となり、 図形消去のための操 作が煩雑でなく、 手書き感覚で任意に消去領域を選択できるようにし、 操作性 を向上させることが可能となる。 Advantageous Effects of the Invention As described above, according to the present invention, a writing operation and an erasing operation can be performed with the same operation feeling. It is possible to select the erase from the traced part to the erase reference point or the erase from the erase reference point to the erase reference point. The erasure area can be selected, and operability can be improved.

Claims

請 求 の 範 囲 The scope of the claims
1 . 手書き入力により図形の編集を行うシステムにおいて、 編集対象領域を入力する手書き入力手段と、 1. In a system for editing a figure by handwriting input, a handwriting input means for inputting a region to be edited;
編集対象の図形の始点と終点が同じであるか否かを判定する図形判定手段 と、  Figure determining means for determining whether the start point and the end point of the figure to be edited are the same,
図形判定結果と編集対象領域に応じて分割を行うか否か判断し、 図形を分割 または変更する図形分割 変更処理手段と、 図形の消去スナップ範囲が設定されているか否か、設定されている場合にそ の種別を判別するとともに、 編集対象領域が前記消去スナップ範囲内にあるか 否かを判別して描画座標を算出する描画座標算出手段と、  Determines whether or not to divide according to the result of figure determination and the editing target area, and divides or changes the figure. Figure division and change processing means, and whether or not the figure erase snap range is set Drawing coordinate calculation means for determining the type of the drawing, determining whether or not the edit target area is within the erase snap range, and calculating drawing coordinates;
算出された描画座標に基づいて図形を插画して更新する描画手段と、 を備えたことを特徴とする手書き入力図形編集システム。  And a drawing means for inserting and updating a figure based on the calculated drawing coordinates.
2 . 前記消去スナップ範囲の大きさが変更可能であることを特徴とする請求項 1記載の手書き入力図形編集システム。  2. The handwritten input figure editing system according to claim 1, wherein the size of the erase snap range is changeable.
PCT/JP2002/004353 2001-05-07 2002-05-01 Freehand-input pattern editing system WO2002091304A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2001136250A JP2005234610A (en) 2001-05-07 2001-05-07 Freehand-input pattern editing system
JP2001-136250 2001-05-07

Publications (1)

Publication Number Publication Date
WO2002091304A1 true WO2002091304A1 (en) 2002-11-14

Family

ID=18983567

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2002/004353 WO2002091304A1 (en) 2001-05-07 2002-05-01 Freehand-input pattern editing system

Country Status (2)

Country Link
JP (1) JP2005234610A (en)
WO (1) WO2002091304A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574907A (en) * 2015-12-18 2016-05-11 广州视睿电子科技有限公司 Information processing method and device
CN112419453A (en) * 2020-11-19 2021-02-26 山东亚华电子股份有限公司 Handwriting method and device based on Android system
CN114063859A (en) * 2021-10-27 2022-02-18 湖南新云网科技有限公司 Method for erasing graph, electronic equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5657269B2 (en) * 2010-04-26 2015-01-21 シャープ株式会社 Image processing apparatus, display apparatus, image processing method, image processing program, and recording medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05108786A (en) * 1991-10-01 1993-04-30 Internatl Business Mach Corp <Ibm> Method and apparatus for transforming graphic form
JPH07219701A (en) * 1994-01-28 1995-08-18 Sony Corp Handwriting input device
JPH09190545A (en) * 1996-01-10 1997-07-22 Canon Inc Graphic processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05108786A (en) * 1991-10-01 1993-04-30 Internatl Business Mach Corp <Ibm> Method and apparatus for transforming graphic form
JPH07219701A (en) * 1994-01-28 1995-08-18 Sony Corp Handwriting input device
JPH09190545A (en) * 1996-01-10 1997-07-22 Canon Inc Graphic processor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574907A (en) * 2015-12-18 2016-05-11 广州视睿电子科技有限公司 Information processing method and device
CN112419453A (en) * 2020-11-19 2021-02-26 山东亚华电子股份有限公司 Handwriting method and device based on Android system
CN114063859A (en) * 2021-10-27 2022-02-18 湖南新云网科技有限公司 Method for erasing graph, electronic equipment and storage medium

Also Published As

Publication number Publication date
JP2005234610A (en) 2005-09-02

Similar Documents

Publication Publication Date Title
JP3486876B2 (en) Handwriting input device and method
KR930007555B1 (en) Context-base input/output system
EP0597379B1 (en) Pen input processing apparatus
JPH0584540B2 (en)
JPH0812663B2 (en) Image processing system and method thereof
US5509113A (en) Image producing apparatus
WO2002091304A1 (en) Freehand-input pattern editing system
JPH08255221A (en) Character graphic input editing device
KR970011905B1 (en) Diagram drawing apparatus
JPH09270022A (en) Figure editing device, figure selecting method, and character input method
JP3422634B2 (en) Handwritten character recognition method and apparatus
JP2935336B2 (en) Graphic input / output device
JPH08263688A (en) Method and device for processing handwritten input information
JP3653109B2 (en) Graphic processing device
WO1995001608A1 (en) Method and apparatus for drawing tangent circle
JPH07244741A (en) Method and device for navigation display
JP2660795B2 (en) Handwriting input editing method
JPH09259295A (en) Cad system
JPH01161483A (en) Document editing device
JP3788466B2 (en) Diagram creation apparatus and diagram creation method
JPH10105334A (en) Two-point selected figure moving method by touch panel
JP3781923B2 (en) Line drawing apparatus, line drawing method, and computer-readable recording medium recording line drawing program
JP3544699B2 (en) Document information processing device
CN115454408A (en) Graphical programming method and device of track, electronic device and storage medium
JP3455301B2 (en) Apparatus and method for correcting shape in CAD system

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AU BR CA CN ID IL IN JP KR LK PH RU SG US VN

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR

121 Ep: the epo has been informed by wipo that ep was designated in this application
122 Ep: pct application non-entry in european phase
NENP Non-entry into the national phase

Ref country code: JP