JPH09120461A - Graphic editing device - Google Patents

Graphic editing device

Info

Publication number
JPH09120461A
JPH09120461A JP27741495A JP27741495A JPH09120461A JP H09120461 A JPH09120461 A JP H09120461A JP 27741495 A JP27741495 A JP 27741495A JP 27741495 A JP27741495 A JP 27741495A JP H09120461 A JPH09120461 A JP H09120461A
Authority
JP
Japan
Prior art keywords
rotation
rotation axis
operation mode
editing
determination 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
JP27741495A
Other languages
Japanese (ja)
Inventor
Hisasato Shindou
久聡 進藤
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP27741495A priority Critical patent/JPH09120461A/en
Publication of JPH09120461A publication Critical patent/JPH09120461A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To unnecessitate the complicated operations by performing the rotation processing according to the drag operation of a user with the coordinate decided at a rotary shaft shift processing part defined as a rotation axis. SOLUTION: An operation mode changeover processing part 8 switches the editing operation mode to a rotation operation mode from a magnification/ reduction/deformation operation mode. When it is judged that a mouse button is depressed at a rotation operation end decision part 11, the input coordinate is compared with every vertex of a frame showing a range of editing object graphics. When it is decided that the input coordinate is included in an editing range, a drag point decision part 9 decides whether a drag state is set or a mouse button is depressed. When the drug state is confirmed, a rotation processing part 10 performs a coordinate operation to each of coordinates forming an editing object graphic for the rotation secured around the rotation axis coordinate based on the difference between the input coordinate set with the depression of the mouse button and the input coordinate set in the drag stare. Based on this operation result, the rotation processing is carried out for plotting the editing object graphic on a screen.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、マウスやスタイラ
スペン等のポインティングデバイスによって入力を行う
図形編集装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a figure editing apparatus for inputting with a pointing device such as a mouse or a stylus pen.

【0002】[0002]

【従来の技術】近年、パーソナルコンピュータに代表さ
れる情報端末ではGUI(Graphical Use
r Interface)環境が一般的となり、その入
力デバイスとしてマウスが汎用されている。また、キー
ボードを排し、殆ど総ての入力をスタイラスペンで行う
携帯情報端末も一般化しつつある。このような情報端末
における図形編集アプリケーションは、マウスやスタイ
ラスペン等のポインティングデバイスの特徴を活かした
編集操作のユーザインターフェースを有する。具体的に
説明すると、図形編集アプリケーションは、各種の編集
操作が割り当てられたアイコンやメニューを有し、ユー
ザがポインティングデバイスによって所望の操作を示す
アイコンあるいはメニューを選択することで図形編集操
作を実行することができる。しかし、図形編集作業にお
いては、アイコンやメニューの選択よりも、編集対象図
形を直接操作する方がより望ましいユーザインターフェ
ースといえる。従来の図形編集アプリケーションにおい
ても拡大/縮小/変形等の編集操作は編集対象図形を選
択後、該図形を直接指示することで行えるように工夫が
なされている。
2. Description of the Related Art In recent years, an information terminal represented by a personal computer has a GUI (Graphical Use).
r Interface) environment has become commonplace, and a mouse is widely used as an input device. In addition, portable information terminals, which eliminate the keyboard and perform almost all input with a stylus pen, are becoming popular. The graphic editing application in such an information terminal has a user interface for editing operations that makes use of the characteristics of a pointing device such as a mouse or a stylus pen. More specifically, the graphic editing application has icons and menus to which various editing operations are assigned, and the user performs graphic editing operations by selecting an icon or menu indicating a desired operation with the pointing device. be able to. However, in figure editing work, it can be said that it is more desirable to directly operate the figure to be edited than to select an icon or menu. The conventional graphic editing application is also devised so that editing operations such as enlargement / reduction / deformation can be performed by directly designating the graphic after selecting the graphic to be edited.

【0003】[0003]

【発明が解決しようとする課題】従来の図形編集アプリ
ケーションのユーザインターフェース環境下において
は、図形の回転操作を行う場合、拡大/縮小/変形等の
編集モードと、回転編集モードとを切り換えるために、
アイコンあるいはメニューを選択することが一般的であ
るが、編集対象図形以外の部分を指示しなければなら
ず、最も優れたユーザインターフェースとは言い難い。
また、図形選択時から拡大/縮小/変形用のポイントと
回転用の線分とを同時に表示し、該線分をポインティン
グデバイスで指示および移動させることで、前記編集モ
ードの切り換え作業なしに回転編集を可能にした図形編
集アプリケーションも存在するが、回転操作が不要な場
合、前記線分の表示は無駄であり、特に編集対象図形が
小さい場合には、変形等の操作を行うつもりが、誤って
回転させてしまう、あるいは回転操作を行うつもりが、
誤って変形させてしまう等の誤操作を招くおそれがあっ
た。更に、従来の図形編集アプリケーションにおける回
転操作時の回転軸は、編集対象図形の中心あるいは編集
対象図形の範囲を示す枠の頂点のいずれかに限られ、回
転軸を任意の座標に移動させることができないという問
題を有していた。
In the conventional user interface environment of a graphic editing application, when a graphic is rotated, in order to switch between an edit mode such as enlargement / reduction / deformation and a rotation edit mode,
It is common to select an icon or a menu, but it is difficult to say that this is the best user interface since it is necessary to specify a part other than the figure to be edited.
In addition, the point for enlarging / reducing / deforming and the line segment for rotation are simultaneously displayed from the time of selecting the figure, and the line segment is designated and moved by the pointing device, so that the rotation editing can be performed without switching the editing mode. Although there is also a figure editing application that makes it possible, if the rotation operation is not necessary, the display of the line segment is useless, and especially when the figure to be edited is small, it is intended to perform operations such as deformation, but by mistake I am going to rotate it, or I plan to perform rotation operation,
There is a risk of erroneous operation such as accidental deformation. Furthermore, the rotation axis during the rotation operation in the conventional graphic editing application is limited to either the center of the edit target figure or the apex of the frame indicating the range of the edit target figure, and the rotary axis can be moved to arbitrary coordinates. I had a problem that I could not.

【0004】そこで本発明は、ポインティングデバイス
を入力デバイスとする図形編集において、拡大/縮小/
変形操作モードと回転操作モードの混在による誤操作の
防止、アイコンやメニューの選択を不要とする編集対象
図形の直接指示による拡大/縮小/変形操作モードと回
転操作モードの切り換えを同時に実現し、ポインティン
グデバイスの特徴を活かした優れたユーザインターフェ
ースの図形編集装置を提供することを目的とする。
Therefore, the present invention enlarges / reduces / reduces in graphic editing using a pointing device as an input device.
Prevents erroneous operations due to a mixture of deformation operation mode and rotation operation mode, and realizes switching between enlargement / reduction / deformation operation mode and rotation operation mode at the same time by direct designation of the figure to be edited that does not require selection of icons and menus, and pointing device It is an object of the present invention to provide a graphic editing device having an excellent user interface that takes advantage of the features of.

【0005】[0005]

【課題を解決するための手段】このために本発明の図形
編集装置は、編集対象図形の範囲を示す枠の頂点のいず
れかがユーザによってダブルクリックされたかどうかを
検知する回転軸判定部と、ユーザに指示された前記頂点
を回転軸として明示する回転軸表示部と、回転操作のた
めに前記回転軸を除く前記枠内の座標がユーザによって
指示されたかを判定するドラッグポイント判定部と、回
転処理部と、ユーザが回転操作を完了するための操作を
行ったかを判定する回転操作完了判定部と、前記回転軸
判定部の判定結果に基づく拡大/縮小/変形操作モード
から回転操作モードへの移行と、前記回転操作完了判定
部の判定結果に基づく回転操作モードから拡大/縮小/
変形操作モードへの移行を行う操作モード切り換え処理
部を備えた。
To this end, the graphic editing apparatus according to the present invention includes a rotary axis determining section for detecting whether or not any of the vertices of a frame indicating the range of a graphic to be edited is double-clicked by the user. A rotation axis display section that clearly indicates the apex designated by the user as a rotation axis, a drag point determination section that determines whether the coordinates in the frame other than the rotation axis for the rotation operation are designated by the user, and a rotation A processing unit, a rotation operation completion determination unit that determines whether the user has performed an operation to complete the rotation operation, and a scaling operation from the enlargement / reduction / deformation operation mode to the rotation operation mode based on the determination result of the rotation axis determination unit. And the rotation operation mode based on the determination result of the rotation operation completion determination unit
An operation mode switching processing unit for making a transition to the modified operation mode is provided.

【0006】また望ましくは、ドラッグポイント判定部
に回転軸がドラッグされたかを検知する機能を持たせ、
このドラッグポイント判定部の判定結果により回転軸が
ドラッグされた場合にポインティングデバイスの指示座
標へ回転軸の座標を移動させる回転軸移動処理部とを備
えた。
Further, preferably, the drag point determination unit has a function of detecting whether or not the rotation axis is dragged,
A rotation axis movement processing unit that moves the coordinates of the rotation axis to the designated coordinates of the pointing device when the rotation axis is dragged by the determination result of the drag point determination unit is provided.

【0007】[0007]

【発明の実施の形態】本発明は上記のような構成とする
ことにより、ユーザがポインティングデバイスによって
指示した編集対象図形の範囲を示す枠の頂点を回転軸判
定部によって回転軸とみなし、操作モード切り換え処理
部により拡大/縮小/変形操作モードから回転操作モー
ドへ切り換え、ユーザのドラッグ操作に従って、回転軸
移動処理部によって決定された座標を回転軸とする回転
処理を回転処理部によって行うものである。
BEST MODE FOR CARRYING OUT THE INVENTION According to the present invention, by adopting the above-mentioned configuration, the vertex of the frame indicating the range of the figure to be edited designated by the user with the pointing device is regarded as the rotation axis by the rotation axis determination unit, and the operation mode is set. The switching processing unit switches from the enlargement / reduction / deformation operation mode to the rotation operation mode, and the rotation processing unit performs the rotation processing with the coordinate determined by the rotation axis movement processing unit as the rotation axis according to the user's drag operation. .

【0008】以下、本発明の一実施の形態について図面
を参照して説明する。図1は、本発明の第一実施の形態
の図形編集装置のブロック図、図2は本発明の第一実施
の形態の図形編集装置の機能ブロック図、図3は本発明
の第一実施の形態の図形編集装置の動作を説明するため
のフローチャート、図4は本発明の第一実施の形態の図
形編集装置の動作を説明するための具体例図である。図
1において、1は表示画面上の任意の座標を指示するポ
インティングデバイス、2は制御プログラムに従って本
装置の制御を行う中央演算処理装置(CPU)、3は図
形編集アプリケーション等の画面を表示する表示装置、
4は制御プログラムを記憶するプログラム記憶領域4a
を持つリードオンリメモリ(ROM)、5は前記画面上
で指定された図形のデータと編集対象図形の範囲を示す
枠の頂点座標とを記憶する指定図形データ記憶領域5a
を有するランダムアクセスメモリ(RAM)である。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a graphic editing apparatus according to a first embodiment of the present invention, FIG. 2 is a functional block diagram of a graphic editing apparatus according to a first embodiment of the present invention, and FIG. 3 is a first embodiment of the present invention. FIG. 4 is a flow chart for explaining the operation of the graphic editing apparatus of the embodiment, and FIG. 4 is a specific example diagram for explaining the operation of the graphic editing apparatus of the first embodiment of the present invention. In FIG. 1, 1 is a pointing device for designating arbitrary coordinates on a display screen, 2 is a central processing unit (CPU) for controlling the apparatus according to a control program, and 3 is a display for displaying a screen such as a graphic editing application. apparatus,
4 is a program storage area 4a for storing a control program
A read-only memory (ROM) 5 having a designated figure data storage area 5a for storing the data of the figure designated on the screen and the vertex coordinates of the frame indicating the range of the figure to be edited.
Is a random access memory (RAM).

【0009】図2において、6はマウスやスタイラスペ
ン等のポインティングデバイス1によって操作者が指示
した座標が、編集対象図形の回転軸となりうる座標であ
るかを判定する回転軸判定部、7は回転軸判定部6で決
定された座標が回転軸であることをユーザに示すための
アイコンを表示する回転軸表示部、8はユーザの編集操
作に従って拡大/縮小/変形操作モードと回転操作モー
ドを切り換える操作モード切り換え処理部、9は回転操
作モード時にユーザが編集対象図形をポインティングデ
バイス1によってドラッグしているかを判定するドラッ
グポイント判定部、10はドラッグ中にユーザが指示す
る座標値に従って編集対象図形を構成する各座標の回転
演算を行い、演算結果の座標で構成される図形を表示す
る回転処理部、11はユーザが回転操作を完了するため
の操作を行ったかを判定する回転操作完了判定部であ
る。
In FIG. 2, reference numeral 6 is a rotation axis determination unit for determining whether the coordinates designated by the operator with the pointing device 1 such as a mouse or a stylus pen can be the rotation axis of the figure to be edited, and 7 is a rotation axis. A rotation axis display unit that displays an icon for indicating to the user that the coordinates determined by the axis determination unit 6 is a rotation axis, and 8 switches between enlargement / reduction / deformation operation mode and rotation operation mode according to the user's editing operation. An operation mode switching processing unit 9, a drag point determination unit 10 for determining whether or not the user is dragging the edit target figure with the pointing device 1 in the rotation operation mode, 10 is an edit target figure according to the coordinate value instructed by the user during dragging. A rotation processing unit that performs a rotation calculation of each of the constituent coordinates and displays a figure composed of the coordinates of the calculation result. Is a rotational operation completion determining unit determines whether performed an operation for a user to complete a rotation operation.

【0010】次に、以上のように構成された図形編集装
置の動作について、図3のフローチャートおよび図4の
具体例図を用いて説明する。なお、本実施の形態では、
ポインティングデバイス1としてマウスを例にとって説
明する。また、図形編集アプリケーションにおいて、図
4(a)に示す如く編集対象となる図形が入力され該図
形が編集対象として選択されており、該図形を構成する
座標値等のデータおよび編集対象図形の範囲を示す枠の
頂点座標は指定図形データ記憶領域5aに記憶されてい
ることを本実施の形態の前提とする。図形編集における
図形入力および選択の手順については周知であり、本実
施の形態とは直接関係しないのでここではその説明と図
示を省略する。
Next, the operation of the graphic editing apparatus configured as described above will be described with reference to the flowchart of FIG. 3 and the specific example of FIG. In the present embodiment,
A mouse will be described as an example of the pointing device 1. Further, in the figure editing application, as shown in FIG. 4A, a figure to be edited is input and the figure is selected as an edit target, and data such as coordinate values forming the figure and the range of the figure to be edited It is premised on the present embodiment that the vertex coordinates of the frame indicating is stored in the designated figure data storage area 5a. The procedure of figure input and selection in figure editing is well known and is not directly related to the present embodiment, and therefore its description and illustration are omitted here.

【0011】先ず、回転軸判定部6によって、マウスボ
タンの入力を待ち受けダブルクリックされたかを判定す
る(ステップS1)。ステップS1にてダブルクリック
されなかったと判定した場合はステップS1に戻りマウ
スボタン入力を待つ。ダブルクリックされたと判定した
場合はダブルクリックされた入力座標が指定図形データ
記憶領域5aに記憶されている編集対象図形の範囲を示
す枠の頂点座標のいずれかと一致するかを判定する(ス
テップS2)。ステップS2にて一致していないと判定
した場合、ステップS1に戻る。図4(b)に示す如く
前記入力座標と頂点座標が一致していると判定した場合
回転軸表示部7にて入力座標に回転軸を示すアイコンを
表示する(ステップS3)。ステップS3の具体例を図
4(c)に示す。
First, the rotation axis determination unit 6 waits for a mouse button input and determines whether or not a double click has been performed (step S1). If it is determined in step S1 that the user has not double-clicked, the process returns to step S1 to wait for mouse button input. When it is determined that the double-click is performed, it is determined whether the input coordinate of the double-click matches any one of the vertex coordinates of the frame indicating the range of the figure to be edited stored in the designated figure data storage area 5a (step S2). . If it is determined in step S2 that they do not match, the process returns to step S1. When it is determined that the input coordinates and the vertex coordinates match as shown in FIG. 4B, the rotation axis display unit 7 displays an icon indicating the rotation axis at the input coordinates (step S3). A specific example of step S3 is shown in FIG.

【0012】次に、操作モード切り換え処理部8にて拡
大/縮小/変形操作モードから回転操作モードへ編集操
作モードを切り換え(ステップS4)、ステップS5へ
進む。ステップS4による操作モード切り換えにより、
ステップS5以降のマウスボタン入力は回転操作モード
として処理される。次に、回転操作完了判定部11にて
マウスボタン入力を待ち受けマウスボタンが押下された
かを判定する(ステップS5)。マウスボタンが押下さ
れるまでステップS5を繰り返し、押下されたと判定し
たら、マウスボタン押下時の入力座標と前記編集対象図
形の範囲を示す枠の各頂点座標とを比較し、入力座標が
回転軸座標を除く編集範囲内であるかを判定する(ステ
ップS6)。ステップS6にて入力座標が編集範囲外で
あると判定した場合、ユーザが回転操作を解除したもの
とみなし、操作モード切り換え処理部にて回転操作モー
ドから拡大/縮小/変形操作モードへ編集操作モードを
切り換え(ステップS9)、本実施の形態を終了する。
Next, the operation mode switching processing unit 8 switches the edit operation mode from the enlargement / reduction / deformation operation mode to the rotation operation mode (step S4), and the process proceeds to step S5. By switching the operation mode in step S4,
Mouse button input after step S5 is processed as a rotation operation mode. Next, the rotation operation completion determination unit 11 waits for a mouse button input and determines whether or not the mouse button has been pressed (step S5). Step S5 is repeated until the mouse button is pressed, and when it is determined that the mouse button is pressed, the input coordinates when the mouse button is pressed are compared with the respective vertex coordinates of the frame indicating the range of the figure to be edited, and the input coordinates are the rotation axis coordinates. It is determined whether it is within the editing range excluding (step S6). When it is determined in step S6 that the input coordinates are out of the edit range, it is considered that the user has canceled the rotation operation, and the operation mode switching processing unit switches the rotation operation mode to the enlargement / reduction / deformation operation mode. (Step S9), and the present embodiment ends.

【0013】ステップS6にて入力座標が編集範囲内で
あると判定した場合、ドラッグポイント判定部9にてド
ラッグ状態であるか、即ちマウスボタンが押下された状
態であるかを判定し(ステップS7)、ドラッグ状態で
あるなら、回転処理部10にて、マウスボタン押下時の
入力座標とドラッグ状態における入力座標との差分から
編集対象図形を構成する各座標に対し回転軸座標を軸と
する回転のための座標演算を行い、演算結果に基づいて
編集対象図形を画面に描画する回転処理を行う(ステッ
プS8)。回転処理の具体的な表示例を図4(d)に示
す。また、回転処理部10は、ドラッグ状態が解除され
るまではユーザが回転操作を続けているとみなし、ステ
ップS7とステップS8を繰り返す。ステップS7にて
ドラッグが解除されたと判定した場合、ステップS5へ
戻る。
When it is determined in step S6 that the input coordinates are within the editing range, the drag point determination unit 9 determines whether the drag state is present, that is, the mouse button is pressed (step S7). ), If it is in the drag state, the rotation processing unit 10 rotates about the rotation axis coordinate for each coordinate forming the edit target figure from the difference between the input coordinate when the mouse button is pressed and the input coordinate in the drag state. Is performed, and a rotation process is performed to draw an edit target figure on the screen based on the calculation result (step S8). A specific display example of the rotation processing is shown in FIG. Further, the rotation processing unit 10 regards the user as continuing the rotation operation until the dragged state is released, and repeats Step S7 and Step S8. When it is determined in step S7 that the drag has been released, the process returns to step S5.

【0014】以上の構成と処理手順により、操作モード
変更のためのメニューやアイコンを選択することなく編
集対象図形をマウスで指示するだけで編集対象図形の回
転が可能な図形編集装置をユーザに提供することができ
る。
With the above configuration and processing procedure, the user is provided with a graphic editing device capable of rotating a graphic to be edited by pointing the graphic to be edited with a mouse without selecting a menu or icon for changing the operation mode. can do.

【0015】図5は、本発明の第二実施の形態の図形編
集装置の機能ブロック図、図6は本発明の第二実施の形
態の図形編集装置の動作を説明するためのフローチャー
ト、図7は本発明の第二実施の形態の図形編集装置の動
作を説明するための具体例図である。図5において、6
は回転軸判定部、7は回転軸表示部、8は操作モード切
り換え処理部、9はドラッグポイント判定部、10は回
転処理部、11は回転操作完了判定部であり、これらは
図2と同様のものであるので、同一符号を付して説明は
省略する。12は回転操作完了判定部11にてユーザが
回転軸座標を指示したと判定した場合にその後のドラッ
グ状態に従って回転軸座標の移動を行う回転軸移動処理
部である。
FIG. 5 is a functional block diagram of the graphic editing apparatus according to the second embodiment of the present invention, FIG. 6 is a flow chart for explaining the operation of the graphic editing apparatus according to the second embodiment of the present invention, and FIG. FIG. 9 is a specific example diagram for explaining the operation of the graphic editing device according to the second embodiment of the present invention. In FIG. 5, 6
Is a rotation axis determination unit, 7 is a rotation axis display unit, 8 is an operation mode switching processing unit, 9 is a drag point determination unit, 10 is a rotation processing unit, and 11 is a rotation operation completion determination unit. Therefore, the same reference numerals are given and description thereof will be omitted. Reference numeral 12 denotes a rotation axis movement processing unit that moves the rotation axis coordinates in accordance with the subsequent drag state when the rotation operation completion determination unit 11 determines that the user has designated the rotation axis coordinates.

【0016】次に、以上のように構成された図形編集装
置の動作について、図6のフローチャートおよび図7の
具体例図を用いて説明する。なお、本第二実施の形態で
は、第一実施の形態と同様にポインティングデバイス1
としてマウスを例に説明する。また、図形編集アプリケ
ーションにおいて、図7(a)に示す如く編集対象とな
る図形が入力され該図形が編集対象として選択されてお
り、該図形を構成する座標値等のデータおよび編集対象
図形の範囲を示す枠の頂点座標は指定図形データ記憶領
域5aに記憶されていることを本第二実施の形態の前提
とする。図形編集における図形入力および選択の手順に
ついては周知であり、本第二実施の形態とは直接関係し
ないのでここではその説明と図示を省略する。
Next, the operation of the graphic editing apparatus configured as described above will be described with reference to the flowchart of FIG. 6 and the specific example of FIG. In the second embodiment, the pointing device 1 is used as in the first embodiment.
A mouse will be described as an example. Further, in the figure editing application, as shown in FIG. 7A, a figure to be edited is input and the figure is selected as an edit target, and data such as coordinate values constituting the figure and the range of the figure to be edited It is premised on the second embodiment that the apex coordinates of the frame indicating is stored in the designated figure data storage area 5a. A procedure for inputting and selecting a figure in figure editing is well known and is not directly related to the second embodiment, and therefore its description and illustration are omitted here.

【0017】先ず、回転軸判定部6によって、マウスボ
タンの入力を待ち受けダブルクリックされたかを判定す
る(ステップS1)。ステップS1にてダブルクリック
されなかったと判定した場合はステップS1に戻りマウ
スボタン入力を待つ。ダブルクリックされたと判定した
場合はダブルクリックされた入力座標が指定図形データ
記憶領域5aに記憶されている編集対象図形の範囲を示
す枠の頂点座標のいずれかと一致するかを判定する(ス
テップS2)。ステップS2にて一致していないと判定
した場合、ステップS1に戻る。
First, the rotation axis determination unit 6 waits for a mouse button input and determines whether or not a double click has been performed (step S1). If it is determined in step S1 that the user has not double-clicked, the process returns to step S1 to wait for mouse button input. When it is determined that the double-click is performed, it is determined whether the input coordinate of the double-click matches any one of the vertex coordinates of the frame indicating the range of the figure to be edited stored in the designated figure data storage area 5a (step S2). . If it is determined in step S2 that they do not match, the process returns to step S1.

【0018】図7(b)に示す如く前記入力座標と頂点
座標が一致していると判定した場合、回転軸表示部にて
入力座標に回転軸を示すアイコンを表示する(ステップ
S3)。ステップS3の具体例を図7(c)に示す。次
に、操作モード切り換え処理部8にて拡大/縮小/変形
操作モードから回転操作モードへ編集操作モードを切り
換え(ステップS4)、ステップS5へ進む。ステップ
S4による操作モード切り換えにより、ステップS5以
降のマウスボタン入力は回転操作モードとして処理され
る。
When it is determined that the input coordinates and the vertex coordinates match as shown in FIG. 7B, the rotation axis display section displays an icon indicating the rotation axis at the input coordinates (step S3). A concrete example of step S3 is shown in FIG. Next, the operation mode switching processing unit 8 switches the edit operation mode from the enlargement / reduction / deformation operation mode to the rotation operation mode (step S4), and proceeds to step S5. By the operation mode switching in step S4, the mouse button input after step S5 is processed as the rotation operation mode.

【0019】次に、回転操作完了判定部11にてマウス
ボタン入力を待ち受けマウスボタンが押下されたかを判
定する(ステップS5)。マウスボタンが押下されるま
でステップS5を繰り返し、押下されたと判定したら、
マウスボタン押下時の入力座標と前記編集対象図形の範
囲を示す枠の各頂点座標とを比較し、入力座標が回転軸
座標を除く編集範囲内であるかを判定する(ステップS
6)。ステップS6にて入力座標が編集範囲外であると
判定した場合、第一実施の形態では直ちにユーザが回転
操作を解除したものとみなし、操作モード切り換え処理
部にて回転操作モードから拡大/縮小/変形操作モード
へ編集操作モードを切り換え(ステップS9)、動作を
終了していたが、本第二実施の形態では更に前記入力座
標が回転軸座標と一致したかを判定する(ステップS1
0)。ステップS10にて一致していないと判定した場
合、すなわち回転操作モード中にユーザが指示した座標
が編集枠内でなく、かつ、回転軸でもない場合に、ユー
ザが回転操作を解除したものとみなし、操作モード切り
換え処理部8にて回転操作モードから拡大/縮小/変形
操作モードへ編集操作モードを切り換え(ステップS
9)、動作を終了する。
Next, the rotation operation completion determining unit 11 waits for a mouse button input and determines whether or not the mouse button has been pressed (step S5). Repeat step S5 until the mouse button is pressed, and if it is determined that the mouse button has been pressed,
The input coordinates when the mouse button is pressed are compared with the vertex coordinates of the frame indicating the range of the edit target figure, and it is determined whether the input coordinates are within the edit range excluding the rotation axis coordinates (step S
6). When it is determined in step S6 that the input coordinates are out of the editing range, it is considered that the user immediately cancels the rotation operation in the first embodiment, and the operation mode switching processing unit enlarges / reduces / rotates the rotation operation mode. Although the editing operation mode was switched to the deformation operation mode (step S9) and the operation was finished, it is further determined in the second embodiment whether or not the input coordinates match the rotation axis coordinates (step S1).
0). If it is determined in step S10 that they do not match, that is, if the coordinates designated by the user during the rotation operation mode are neither within the edit frame nor on the rotation axis, it is considered that the user has canceled the rotation operation. The operation mode switching processing unit 8 switches the edit operation mode from the rotation operation mode to the enlargement / reduction / deformation operation mode (step S
9), the operation ends.

【0020】ステップS10にて一致したと判定した場
合、回転軸移動処理部12にてドラッグ状態であるか、
即ちマウスボタンが押下された状態であるかを判定し
(ステップS11)、ドラッグ状態であるなら、その状
態における入力座標を新たな回転軸座標とし、この座標
に回転軸を示すアイコンを表示する(ステップS1
2)。ドラッグ状態が解除されるまではユーザが回転軸
移動操作を続けているとみなし、ステップS11とステ
ップS12を繰り返す。ステップS10からステップS
12の動作の具体例を図7(d)〜(e)に示す。
If it is determined in step S10 that they match, whether the rotation axis movement processing unit 12 is in the drag state,
That is, it is determined whether or not the mouse button is pressed (step S11). If the mouse button is in the dragged state, the input coordinate in that state is set as a new rotary axis coordinate, and an icon indicating the rotary axis is displayed at this coordinate ( Step S1
2). Until the dragged state is released, it is considered that the user is continuing the rotary axis moving operation, and steps S11 and S12 are repeated. Step S10 to Step S
Specific examples of the operation of 12 are shown in FIGS.

【0021】ステップS11にてドラッグ状態が解除さ
れたと判定した場合、ユーザが回転軸移動操作を完了し
たとみなし、ステップS5へ戻る。ステップS6にて入
力座標が編集範囲内であると判定した場合、ドラッグポ
イント判定部9にてドラッグ状態であるか、即ちマウス
ボタンが押下された状態であるかを判定し(ステップS
7)、ドラッグ状態であるなら、回転処理部10にて、
マウスボタン押下時の入力座標とドラッグ状態における
入力座標との差分から編集対象図形を構成する各座標に
対し回転軸座標を軸とする回転のための座標演算を行
い、演算結果に基づいて編集対象図形を画面に描画する
回転処理を行う(ステップS8)。回転処理の具体的な
表示例を図7(f)に示す。また、回転処理部10は、
ドラッグ状態が解除されるまではユーザが回転操作を続
けているとみなし、ステップS7とステップS8を繰り
返す。ステップS7にてドラッグが解除されたと判定し
た場合、回転操作が完了したとみなしてステップS5へ
戻る。
When it is determined in step S11 that the dragging state has been released, it is considered that the user has completed the rotary axis moving operation, and the process returns to step S5. When it is determined in step S6 that the input coordinates are within the editing range, the drag point determination unit 9 determines whether the dragging state, that is, the mouse button is pressed (step S6).
7) If it is in the drag state, the rotation processing unit 10
From the difference between the input coordinates when the mouse button is pressed and the input coordinates when the mouse is dragged, coordinate calculation for rotation around the rotation axis coordinate is performed for each coordinate that constitutes the editing target figure, and the editing target is based on the calculation result. A rotation process for drawing a figure on the screen is performed (step S8). A specific display example of the rotation processing is shown in FIG. Also, the rotation processing unit 10
Until the dragged state is released, it is considered that the user continues the rotating operation, and steps S7 and S8 are repeated. When it is determined in step S7 that the drag has been released, it is considered that the rotation operation has been completed, and the process returns to step S5.

【0022】以上の構成と処理手順により、操作モード
変更のためのメニューやアイコンを選択することなく編
集対象図形をマウスで指示するだけで編集対象図形の回
転が可能で、かつ、回転軸を任意の座標に移動可能な図
形編集装置をユーザに提供することができる。
With the configuration and processing procedure described above, the figure to be edited can be rotated by pointing the figure to be edited with the mouse without selecting a menu or icon for changing the operation mode, and the axis of rotation can be arbitrarily set. It is possible to provide the user with a graphic editing device that can move to the coordinates.

【0023】[0023]

【発明の効果】本発明の図形編集装置は、マウスやスタ
イラスペン等のポインティングデバイスによって入力を
行う図形編集アプリケーションにおいて、ユーザがポイ
ンティングデバイスによって指示した編集対象図形の範
囲を示す枠の頂点を回転軸判定部によって回転軸とみな
し、操作モード切り換え処理部により拡大/縮小/変形
操作モードから回転操作モードへ切り換え、ユーザのド
ラッグ操作に従って、回転軸移動処理部によって決定さ
れた座標を回転軸とする回転処理を回転処理部によって
行うように構成したので、従来の図形編集にあった拡大
/縮小/変形操作モードと回転操作モードの混在による
誤操作の防止、アイコンやメニューの選択といった繁雑
な操作を不要とする編集対象図形の直接指示による拡大
/縮小/変形操作モードと回転操作モードの切り換えを
同時に実現し、かつ、図形の回転操作時の回転軸を任意
の座標に移動させることが可能となる。
According to the figure editing apparatus of the present invention, in a figure editing application for inputting with a pointing device such as a mouse or a stylus pen, the apex of the frame indicating the range of the figure to be edited designated by the user with the pointing device is the rotation axis. The determination unit regards it as a rotation axis, the operation mode switching processing unit switches from the enlargement / reduction / deformation operation mode to the rotation operation mode, and the rotation determined by the user's drag operation is the coordinate determined by the rotation axis movement processing unit as the rotation axis. Since the processing is configured to be performed by the rotation processing unit, it is possible to prevent erroneous operations due to the mixture of the enlargement / reduction / deformation operation mode and the rotation operation mode, which are involved in conventional graphic editing, and to avoid complicated operations such as selecting icons and menus. Enlargement / reduction / deformation operation by direct instruction of edit target figure Realizing switching over de the rotation operation mode at the same time, and it becomes possible to move the rotation axis during rotational operation of the graphic to arbitrary coordinates.

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

【図1】本発明の第一実施の形態の図形編集装置のブロ
ック図
FIG. 1 is a block diagram of a graphic editing device according to a first embodiment of the present invention.

【図2】本発明の第一実施の形態の図形編集装置の機能
ブロック図
FIG. 2 is a functional block diagram of the graphic editing device according to the first embodiment of the present invention.

【図3】本発明の第一実施の形態の図形編集装置の動作
を説明するためのフローチャート
FIG. 3 is a flowchart for explaining the operation of the graphic editing device according to the first embodiment of the present invention.

【図4】本発明の第一実施の形態の図形編集装置の動作
を説明するための具体例図
FIG. 4 is a specific example diagram for explaining the operation of the graphic editing apparatus according to the first embodiment of the present invention.

【図5】本発明の第二実施の形態の図形編集装置の機能
ブロック図
FIG. 5 is a functional block diagram of a graphic editing device according to a second embodiment of the present invention.

【図6】本発明の第二実施の形態の図形編集装置の動作
を説明するためのフローチャート
FIG. 6 is a flowchart for explaining the operation of the graphic editing device according to the second embodiment of the present invention.

【図7】本発明の第二実施の形態の図形編集装置の動作
を説明するための具体例図
FIG. 7 is a specific example diagram for explaining the operation of the graphic editing apparatus according to the second embodiment of the present invention.

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

1 ポインティングデバイス 2 中央演算処理装置 3 表示装置 4 リードオンリメモリ 4a プログラム記憶領域 5 ランダムアクセスメモリ 5a 指定図形データ記憶領域 6 回転軸判定部 7 回転軸表示部 8 操作モード切り換え処理部 9 ドラッグポイント判定部 10 回転処理部 11 回転操作完了判定部 12 回転軸移動処理部 1 Pointing device 2 Central processing unit 3 Display device 4 Read only memory 4a Program storage area 5 Random access memory 5a Designated figure data storage area 6 Rotation axis determination unit 7 Rotation axis display unit 8 Operation mode switching processing unit 9 Drag point determination unit 10 Rotation Processing Unit 11 Rotation Operation Completion Determination Unit 12 Rotation Axis Movement Processing Unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】編集対象図形の範囲を示す枠の頂点のいず
れかがユーザによってダブルクリックされたかどうかを
検知する回転軸判定部と、ダブルクリックされた前記頂
点を回転軸として表示する回転軸表示部と、回転操作の
ために前記回転軸を除く前記枠内の座標がユーザによっ
て指示されたかを判定するドラッグポイント判定部と、
回転処理部と、ユーザが回転操作を完了するための操作
を行ったかを判定する回転操作完了判定部と、前記回転
軸判定部の判定結果に基づく拡大/縮小/変形操作モー
ドから回転操作モードへの移行と、前記回転操作完了判
定部の判定結果に基づく回転操作モードから拡大/縮小
/変形操作モードへの移行を行う操作モード切り換え処
理部とを備えたことを特徴とする図形編集装置。
1. A rotation axis determination unit for detecting whether or not a user double-clicks any of the vertices of a frame indicating the range of a figure to be edited, and a rotation axis display for displaying the double-clicked vertex as a rotation axis. And a drag point determination unit that determines whether coordinates in the frame other than the rotation axis for a rotation operation are designated by a user,
A rotation processing unit, a rotation operation completion determination unit that determines whether the user has performed an operation to complete the rotation operation, and an enlargement / reduction / deformation operation mode based on the determination result of the rotation axis determination unit to a rotation operation mode. And a manipulation mode switching processing unit that shifts from the rotation manipulation mode to the enlargement / reduction / deformation manipulation mode based on the determination result of the rotation manipulation completion determination unit.
【請求項2】前記ドラッグポイント判定部に回転軸がド
ラッグされたかを検知する機能を持たせ、このドラッグ
ポイント判定部の判定結果により回転軸がドラッグされ
た場合にポインティングデバイスの指示座標へ回転軸の
座標を移動させる回転軸移動処理部を備えたことを特徴
とする請求項1記載の図形編集装置。
2. The drag point determination unit has a function of detecting whether or not the rotation axis is dragged, and when the rotation axis is dragged according to the determination result of the drag point determination unit, the rotation axis is moved to the pointing coordinate of the pointing device. 2. The graphic editing apparatus according to claim 1, further comprising a rotation axis movement processing unit that moves the coordinates of.
JP27741495A 1995-10-25 1995-10-25 Graphic editing device Pending JPH09120461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27741495A JPH09120461A (en) 1995-10-25 1995-10-25 Graphic editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27741495A JPH09120461A (en) 1995-10-25 1995-10-25 Graphic editing device

Publications (1)

Publication Number Publication Date
JPH09120461A true JPH09120461A (en) 1997-05-06

Family

ID=17583225

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27741495A Pending JPH09120461A (en) 1995-10-25 1995-10-25 Graphic editing device

Country Status (1)

Country Link
JP (1) JPH09120461A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003038756A1 (en) * 2001-10-29 2003-05-08 Sharp Kabushiki Kaisha Edition apparatus, edition method, edition program, and computer-readable recording medium containing edition program
CN1303572C (en) * 2002-04-16 2007-03-07 通用电气公司 Calibration software for surface reconstruction of small objects
JP2011060115A (en) * 2009-09-11 2011-03-24 Dainippon Printing Co Ltd Information processing system and display processing program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003038756A1 (en) * 2001-10-29 2003-05-08 Sharp Kabushiki Kaisha Edition apparatus, edition method, edition program, and computer-readable recording medium containing edition program
CN1303572C (en) * 2002-04-16 2007-03-07 通用电气公司 Calibration software for surface reconstruction of small objects
JP2011060115A (en) * 2009-09-11 2011-03-24 Dainippon Printing Co Ltd Information processing system and display processing program

Similar Documents

Publication Publication Date Title
JP3585357B2 (en) Information processing apparatus and method, and recording medium recording information processing program
JP3862336B2 (en) Image editing method and apparatus
JP2009169493A (en) Touch panel display control system, touch panel display control method, and touch panel display control program
JP2006155313A (en) Method for switching functions of cursor, and information processor using the same
JPH09160739A (en) Data processing system and input method
JP2003202950A (en) Information terminal equipment
JPH09120461A (en) Graphic editing device
JP4390371B2 (en) Menu selection apparatus and method, and computer-readable recording medium on which menu selection program is recorded
JP3239356B2 (en) Figure editing device
JP3244143B2 (en) Display device
JP3672352B2 (en) Three-dimensional configuration editing method and three-dimensional configuration editing apparatus
JP4143529B2 (en) Information input device, information input method, computer program, and computer-readable storage medium
JP3591876B2 (en) Graphic processing apparatus and method
JP2006330848A (en) Image editing system, method, and program
JP3732174B2 (en) Three-dimensional configuration editing method and three-dimensional configuration editing apparatus
JP2007052156A (en) Electronic musical instrument and waveform display program
JPH08272994A (en) Device and method for information processing
JPH10105334A (en) Two-point selected figure moving method by touch panel
JPH05134839A (en) Information processor
JPH02250178A (en) Graphic generator
JP2002007180A (en) Information processor, edition operation method and recording medium recorded with its program
JPH0744559A (en) Method and device for editing document
JPH04191972A (en) Editing system for character attribute
JPH0844736A (en) Document preparation device and object editing method
JP2004295634A (en) Figure display device and program for displaying figure