JP3001433B2 - Apparatus and method for determining graphic range - Google Patents

Apparatus and method for determining graphic range

Info

Publication number
JP3001433B2
JP3001433B2 JP8254884A JP25488496A JP3001433B2 JP 3001433 B2 JP3001433 B2 JP 3001433B2 JP 8254884 A JP8254884 A JP 8254884A JP 25488496 A JP25488496 A JP 25488496A JP 3001433 B2 JP3001433 B2 JP 3001433B2
Authority
JP
Japan
Prior art keywords
graphic
data
range
value
coordinate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP8254884A
Other languages
Japanese (ja)
Other versions
JPH10105679A (en
Inventor
純 志多伯
Original Assignee
沖縄日本電気ソフトウェア株式会社
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 沖縄日本電気ソフトウェア株式会社 filed Critical 沖縄日本電気ソフトウェア株式会社
Priority to JP8254884A priority Critical patent/JP3001433B2/en
Publication of JPH10105679A publication Critical patent/JPH10105679A/en
Application granted granted Critical
Publication of JP3001433B2 publication Critical patent/JP3001433B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、グラフィカルユー
ザインターフェースを有する図形処理システムに関し、
特に複雑な図形の範囲を判断し、処理する図形範囲判断
装置および方法に関する。
The present invention relates to a graphic processing system having a graphical user interface.
In particular, the present invention relates to an apparatus and method for determining a range of a complicated figure and processing the figure.

【0002】[0002]

【従来の技術】従来の図形範囲判断装置は、グラフィッ
ク・ディスプレイ上でマウス等のポインティングデバイ
スを操作して、図形を編集を行う上での、操作性の向上
と、操作ミスをさけるために用いられている。
2. Description of the Related Art A conventional graphic range judging apparatus is used for improving operability and avoiding erroneous operations when editing a graphic by operating a pointing device such as a mouse on a graphic display. Have been.

【0003】従来の図形範囲判断装置と類似の装置の一
例が、特開平3−125269号公報に記載されてい
る。この公報に記載された図形要素選択方式は、画面に
表示された図形を選択するシステムである。イベント検
出部と、図形選択部と、図形DBと、図形要素選択部
と、コマンド処理部と、表示デバイスとポインティング
デバイスとから構成されている。ポインティングデバイ
スからの座標データは、イベント検出部で検出され、図
形DBに登録されている図形要素の矩形で表された図形
の領域と比較して、図形の内部に座標があるかどうかを
判断する。
[0003] An example of a device similar to the conventional graphic range determination device is described in Japanese Patent Application Laid-Open No. 3-125269. The graphic element selection method described in this publication is a system for selecting a graphic displayed on a screen. It comprises an event detector, a graphic selector, a graphic DB, a graphic element selector, a command processor, a display device and a pointing device. The coordinate data from the pointing device is detected by the event detection unit, and is compared with a graphic area represented by a rectangle of a graphic element registered in the graphic DB to determine whether or not there is a coordinate inside the graphic. .

【0004】また、他の従来の図形範囲判断装置と類似
の装置の一例が、特開平2−130679号公報に記載
されている。この公報に記載された図形編集装置の曲線
編集方式は、イメージ原稿編集指定装置と、イメージ原
稿読み取り装置と、イメージ原稿印刷装置と、イメージ
原稿蓄積装置と、イメージデータ制御装置と、ジョブ制
御装置と、グラフィック制御装置と、グラフ座標解析装
置と、座標データ微分装置と、イメージデータ退避装置
と、グラフィック表示装置とから構成されている。イメ
ージ原稿読み取り装置から読み込まれたイメージデータ
は、ユーザが、切り取り範囲をイメージ原稿編集指定装
置で指定して、その後、座標データ微分装置により、近
似され、選択範囲が表示される。
An example of a device similar to another conventional graphic range determination device is described in Japanese Patent Application Laid-Open No. Hei 2-130679. The curve editing method of the graphic editing device described in this publication includes an image document editing designation device, an image document reading device, an image document printing device, an image document storage device, an image data control device, and a job control device. , A graphic control device, a graph coordinate analyzing device, a coordinate data differentiating device, an image data saving device, and a graphic display device. The image data read from the image manuscript reading device is specified by the user with the image manuscript edit designating device, and then approximated by the coordinate data differentiating device, and the selected range is displayed.

【0005】[0005]

【発明が解決しようとする課題】上述した従来の図形範
囲判断装置に類似の装置、たとえば最初に示した図形要
素選択方式を本願発明に適用しようとすると、対象とす
る図形が曲線などを多用した複雑な図形である場合、図
形DBに登録されている図形要素の矩形で表された図形
の領域と比較するので正確な図形の判断が行えないとい
う問題点や、微分演算を行うには図形の境界を判別する
必要があるため、境界を判断するのが困難な図形の場合
は正確に近似できないという問題点がある。また、後か
ら示した図形編集装置の曲線編集方式を本願発明に適用
しようとすると、図形の近似のために微分演算が必要で
あり、微分演算を行うための装置が必要となるという問
題点がある。
When an apparatus similar to the above-described conventional graphic range determination apparatus, for example, the first graphic element selection method is applied to the present invention, the target graphic often uses a curve or the like. In the case of a complicated figure, it is compared with the area of the figure represented by the rectangle of the figure element registered in the figure DB, so that it is impossible to judge the figure accurately. Since it is necessary to determine the boundary, there is a problem that it is not possible to accurately approximate a figure in which it is difficult to determine the boundary. Further, when the curve editing method of the graphic editing apparatus described later is applied to the present invention, there is a problem that a differential operation is required for approximating a graphic, and a device for performing the differential operation is required. is there.

【0006】本発明の目的は、複雑な図形の範囲を判断
するための装置構成および処理が簡単な図形範囲判断装
置および方法を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an apparatus and method for judging the range of a complicated figure, which has a simple apparatus configuration and simple processing.

【0007】[0007]

【課題を解決するための手段】本発明の図形範囲判断装
置は、対象とする図形に対する位置関係の判断を必要と
する個所の座標値のデータを入力する入力装置と、図形
要素ごとの図形情報を記憶する記憶装置と、前記入力装
置からの指定入力により取得する座標値のデータと前記
記憶装置から読出す図形情報とから前記対象とする図形
と前記判断すべき個所との位置関係を判断し出力装置に
表示するデータ処理装置とを有し、前記記憶装置の記憶
する図形要素ごとの図形情報が、前記図形データおよび
前記図形範囲データに加えて、前記図形範囲データの示
す図形の有効範囲内を予め定める任意の基準値に基づき
分割して生成した複数の図形のそれぞれの有効範囲を示
すデータ値およびこのデータ値に対応する処理のコマン
ドID値からなる図形範囲データ値テーブルを有する構
成である。
According to the present invention, there is provided a graphic range judging device for inputting coordinate value data of a portion where a positional relationship with a target graphic needs to be judged, and graphic information for each graphic element. And a positional relationship between the target graphic and the location to be determined is determined from coordinate value data obtained by a designated input from the input device and graphic information read from the storage device. and a data processing device for displaying on the output device, the storage of the storage device
Graphic information for each graphic element
In addition to the graphic range data, an indication of the graphic range data
Based on any predetermined reference value within the effective range of the figure
Shows the effective range of each of the multiple shapes generated by dividing
Data value and the command of the processing corresponding to this data value.
This is a configuration having a figure range data value table composed of ID numbers .

【0008】[0008]

【0009】[0009]

【0010】[0010]

【0011】[0011]

【0012】[作用]本発明の第1の実施の形態の図形
範囲判断装置20は、図形データ5の示す図形の有効範
囲を2値の値で記憶した図形範囲データ6を記憶装置2
に準備し、イベント処理手段7で取得した入力装置1か
らの座標値のデータを座標変換手段8により変換し、図
形範囲判断手段9により図形範囲データ6を参照して、
取得し位置関係の判断を必要とする個所の座標値が、図
形の有効範囲内にあるか否かの判断を行う。
[Operation] The graphic range determining apparatus 20 according to the first embodiment of the present invention stores graphic range data 6 in which the effective range of the graphic indicated by the graphic data 5 is stored in binary values.
The coordinate data from the input device 1 acquired by the event processing means 7 is converted by the coordinate conversion means 8, and the graphic range determination means 9 refers to the graphic range data 6,
It is determined whether or not the acquired coordinate values of the location requiring the determination of the positional relationship are within the effective range of the graphic.

【0013】本発明の第2の実施の形態の図形範囲判断
装置21は、図形の有効範囲を色分けした、図形範囲デ
ータ14と図形範囲データ変換テーブル15とを記憶装
置12に準備し、図形範囲判断手段9が、記憶装置12
の図形範囲データ14を参照して、入力された座標値が
示す値(本実施の形態では色)を取り出し、記憶装置1
2の図形範囲データ値テーブル15を検索し、処理の種
類を示すコマンドIDを取り出し、判断することで、図
形範囲データ14の複数の図形の有効範囲ごとに異なる
処理を実行する。
A graphic range determining apparatus 21 according to a second embodiment of the present invention prepares graphic range data 14 and a graphic range data conversion table 15 in which an effective range of a graphic is color-coded in a storage device 12, and stores the graphic range. The judgment means 9 is a storage device 12
The value (color in the present embodiment) indicated by the input coordinate value is extracted with reference to the graphic range data 14 of the storage device 1.
2, a different process is executed for each effective range of a plurality of figures in the figure range data 14 by retrieving and determining a command ID indicating the type of processing.

【0014】[0014]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0015】図1は本発明の第1の実施の形態を示すブ
ロック図である。
FIG. 1 is a block diagram showing a first embodiment of the present invention.

【0016】本発明の図形範囲判断装置20は、対象と
する図形に対する位置関係の判断を必要とする個所の座
標値のデータを入力する入力装置1と、図形要素ごとの
図形情報を記憶する記憶装置2と、入力装置1からの指
定入力により取得する座標値のデータと記憶装置2から
読出す図形情報とから対象とする図形と判断すべき個所
との位置関係を判断し出力装置3に表示するデータ処理
装置4とで構成する。記憶装置2の記憶する図形要素ご
との図形情報は、描画する図形を表す図形データ5と、
描画する図形と同じ大きさの図形の有効範囲を示す図形
範囲データ6とからなっている。また、データ処理装置
4は、入力装置1からの指定入力を受けイベント処理を
行い画面上の座標値を取得するイベント処理手段7と、
イベント処理手段7で取得した画面上の座標値を図形デ
ータ5の座標値に変換する座標変換手段8と、座標変換
手段8の変換した座標値の示す点の値が図形の有効範囲
内に存在するか否かを判別する図形範囲判断手段9と、
図形範囲判断手段9の判断結果に従って対応するコマン
ドを実行するためのデータを出力するコマンド制御手段
10と、コマンド制御手段10の出力データを図形デー
タ5と合せて出力装置4に表示する表示手段11とから
なる。
The graphic range determining device 20 of the present invention includes an input device 1 for inputting coordinate value data of a location where a positional relationship with a target graphic needs to be determined, and storage for storing graphic information for each graphic element. The positional relationship between the device 2 and the location to be determined as the target graphic is determined from the coordinate value data obtained by the designated input from the input device 1 and the graphic information read from the storage device 2 and displayed on the output device 3. And a data processing device 4 that performs the processing. The graphic information for each graphic element stored in the storage device 2 includes graphic data 5 representing a graphic to be drawn,
The figure range data 6 indicates the effective range of a figure having the same size as the figure to be drawn. Further, the data processing device 4 receives the designated input from the input device 1, performs an event process, and acquires a coordinate value on the screen,
A coordinate conversion means 8 for converting the coordinate values on the screen acquired by the event processing means 7 into coordinate values of the graphic data 5, and a point value indicated by the coordinate values converted by the coordinate conversion means 8 exists within the effective range of the graphic. Graphic range determining means 9 for determining whether or not to perform
Command control means 10 for outputting data for executing a corresponding command in accordance with the determination result of the graphic range determination means 9, and display means 11 for displaying the output data of the command control means 10 together with the graphic data 5 on the output device 4. Consists of

【0017】さらに各手段の機能についいて説明する
と、イベント処理手段7は、入力装置1として使用する
ポインティングデバイス(例えばマウスがあり、以下マ
ウスと記す)からのデータの内、マウスのボタンを押し
た状態でのイベントを処理すると共に、そのときのカー
ソルの画面上の座標値を取得する。座標変換手段8は、
イベント処理手段7が取得したカーソルの画面上の座標
値を図形データ5の座標値に変換する。図形範囲判断手
段9は、記憶装置2に記憶された図形範囲データ6を参
照し、座標変換手段8で変換したカーソルの座標値の示
す点が、図形の有効範囲内かあるいは有効範囲外にある
かを判断する。コマンド制御手段10は、図形範囲判断
手段9の判断した結果を受けコマンドを実行する。この
コマンドの実行結果は、表示手段11が図形データ5に
従って描画するイメージに重ねた形で、出力装置3に表
示される。
The function of each means will be described below. The event processing means 7 presses a mouse button in data from a pointing device (for example, a mouse, which will be referred to as a mouse hereinafter) used as the input device 1. The event in the state is processed, and the coordinate value on the screen of the cursor at that time is obtained. The coordinate transformation means 8
The coordinate value on the screen of the cursor acquired by the event processing means 7 is converted into the coordinate value of the graphic data 5. The graphic range determining means 9 refers to the graphic range data 6 stored in the storage device 2, and the point indicated by the coordinate value of the cursor converted by the coordinate converting means 8 is within or outside the effective range of the figure. Judge. The command control means 10 executes a command in response to the result determined by the graphic range determination means 9. The execution result of this command is displayed on the output device 3 in a form superimposed on the image drawn by the display means 11 according to the graphic data 5.

【0018】次に動作について説明する。Next, the operation will be described.

【0019】図2は本発明の第1の実施の形態の動作を
説明する流れ図、図3は説明の対象となる図形(図形デ
ータ5)を示す図、図4は図3で示される図形の範囲
(図形範囲データ6)を示す図、図5は出力装置の表示
画面および表示画面上の座標を示す図である。説明は主
に図2を使用して行い、図1の名称および符号を用い、
適宜各図を引用する。
FIG. 2 is a flowchart for explaining the operation of the first embodiment of the present invention, FIG. 3 is a diagram showing a graphic (graphic data 5) to be described, and FIG. FIG. 5 is a diagram showing a range (graphic range data 6), and FIG. 5 is a diagram showing a display screen of the output device and coordinates on the display screen. The description will be made mainly with reference to FIG. 2, using the names and reference numerals of FIG. 1,
Reference is made to each figure as appropriate.

【0020】動作を開始すると、ステップ(以下Sと記
す)1でマウス(入力装置1)から与えられたボタンを
押すなどのイベントをイベント処理手段7で検知し、こ
のときのカーソルの画面上の座標値を取得する。これを
図5を用いて説明すれば、点P1の画面上の座標値(X
1,Y1)を取得することにあたる。次に、S2で点P
1の画面上の座標値(X1,Y1)を座標変換手段8に
供給すると、座標変換手段8は、点P1の画面上の座標
値(X1,Y1)を図4に示す図形範囲データの点P
1’の画面上の座標値(X1’,Y1’)に変換し、変
換後の座標値(X1’,Y1’)を図形範囲判断手段9
に供給する。変換後の座標値を得た図形範囲判断手段9
では、S3で記憶装置2から図形範囲データ6を取り出
し、続いてS4で図形範囲データ6の中の点P1’の画
面上の座標値(X1’,Y1’)が示す点の値を取得
し、最後にS5で点P1’が図形範囲内にあるか図形範
囲外にあるかを判断する。これは、図形範囲データ6の
図形範囲の内側と外側を示す値を予め決めて置くことで
可能となる。点P1’が図形範囲内であれば、S6でコ
マンド制御手段10が図形範囲判断手段9の判断結果に
より対応するコマンドを実行する。このコマンド実行結
果は、S7で表示手段11により図形データ5のイメー
ジに重ねた形で出力装置4に表示される。
When the operation is started, an event such as pressing a button given from a mouse (input device 1) is detected by an event processing means 7 in step (hereinafter referred to as S) 1 and the cursor at this time is displayed on the screen. Get coordinate values. This will be described with reference to FIG. 5. If the coordinate value (X
1, Y1). Next, at S2, the point P
When the coordinate value (X1, Y1) on the screen of FIG. 1 is supplied to the coordinate conversion means 8, the coordinate conversion means 8 converts the coordinate value (X1, Y1) of the point P1 on the screen to the point of the graphic range data shown in FIG. P
1 ′ on the screen (X1 ′, Y1 ′), and converts the converted coordinate values (X1 ′, Y1 ′) into the graphic range determination unit 9.
To supply. Figure range determination means 9 that has obtained coordinate values after conversion
Then, in S3, the graphic range data 6 is extracted from the storage device 2, and subsequently, in S4, the value of the point indicated by the coordinate value (X1 ', Y1') on the screen of the point P1 'in the graphic range data 6 is obtained. Finally, in S5, it is determined whether the point P1 'is within the graphic range or outside the graphic range. This can be achieved by previously setting values indicating the inside and outside of the graphic range of the graphic range data 6. If the point P1 'is within the graphic range, the command control means 10 executes the corresponding command according to the judgment result of the graphic range judgment means 9 in S6. The command execution result is displayed on the output device 4 by the display means 11 in S7 in a form superimposed on the image of the graphic data 5.

【0021】次に、本発明の第1の実施形態の効果につ
いて説明する。本発明では、図形範囲内外の判断を図形
データ5と同じ大きさの図形範囲データ6を利用し、図
形範囲データ6の座標値が示す点の座標の値から判断す
るため、座標の変換が単純な演算で行えるため、装置構
成および処理が簡単になる。
Next, effects of the first embodiment of the present invention will be described. According to the present invention, since the inside / outside of the graphic range is determined using the graphic range data 6 having the same size as the graphic data 5 and from the coordinates of the point indicated by the coordinate value of the graphic range data 6, the coordinate conversion is simple. Since the calculations can be performed with simple calculations, the device configuration and processing can be simplified.

【0022】次に、本発明の第1の実施の形態の実施例
の動作を詳細に説明する。説明には主に図5を使用し、
適宜各図を引用する。
Next, the operation of the example of the first embodiment of the present invention will be described in detail. Figure 5 is mainly used for explanation,
Reference is made to each figure as appropriate.

【0023】ここで、図5の点P1が入力された座標と
する。まず、ポインティングデバイスから入力された点
P1の座標値(X1,Y1)を取得する。次に、取得し
た座標を示す図5の点P1を、図4の座標系に変換する
座標変換を行い、点P1’の座標値(X1’,Y1’)
を計算する。計算手順としては、図3に示す図形データ
5の左上隅を、図5の中で図形データ5として示された
範囲の左上隅で座標値が(X0,Y0)の点P0とす
る。ここで、図形データ5と図形範囲データ6と図5の
表示画面とのそれぞれが、いずれも矩形に表示されてい
るので、点P1’の座標値(X1’,Y1’)は、X
1’=X1−X0,Y1’=Y1−Y0により求められ
る。
Here, it is assumed that the point P1 in FIG. 5 is the input coordinates. First, the coordinate value (X1, Y1) of the point P1 input from the pointing device is obtained. Next, the point P1 of FIG. 5 indicating the acquired coordinates is subjected to coordinate conversion for converting into the coordinate system of FIG. 4, and the coordinate value (X1 ′, Y1 ′) of the point P1 ′ is obtained.
Is calculated. As a calculation procedure, the upper left corner of the graphic data 5 shown in FIG. 3 is set as a point P0 having a coordinate value (X0, Y0) in the upper left corner of the range shown as the graphic data 5 in FIG. Here, since each of the graphic data 5, the graphic range data 6, and the display screen of FIG. 5 is displayed as a rectangle, the coordinate value (X1 ′, Y1 ′) of the point P1 ′ is X
1 ′ = X1−X0, Y1 ′ = Y1−Y0.

【0024】次に、図4の図形範囲データ6で、点P
1’が示す点の値(色)を調べる。図4の図形範囲デー
タ6で点P1’が示す点の値(色)は、黒である。図5
の図形範囲データ6では、黒で示された部分が図形の内
側を示すため、点P1’の座標値(X1’,Y1’)が
示す場所は、図形の内側にあると判断できる。点P1’
が、図形の内側にあるため、それに応じたコマンドと表
示の更新を行う。
Next, in the graphic range data 6 shown in FIG.
The value (color) of the point indicated by 1 ′ is checked. The value (color) of the point indicated by the point P1 'in the graphic range data 6 of FIG. 4 is black. FIG.
In the figure range data 6, since the part shown in black indicates the inside of the figure, it can be determined that the location indicated by the coordinate value (X1 ', Y1') of the point P1 'is inside the figure. Point P1 '
Is inside the figure, the command and display are updated accordingly.

【0025】次に本発明の第2の実施の形態について説
明する。
Next, a second embodiment of the present invention will be described.

【0026】図6は本発明の第2の実施の形態を示すブ
ロック図、図7は本発明の第2の実施の形態の動作を説
明する流れ図、図8は説明の対象となる図形(図形デー
タ13)を示す図、図9は図8で示される図形の範囲
(図形範囲データ14)を示す図、図10は図形範囲デ
ータ値テーブルの記録形態を説明する説明図である。
FIG. 6 is a block diagram showing a second embodiment of the present invention, FIG. 7 is a flowchart for explaining the operation of the second embodiment of the present invention, and FIG. FIG. 9 is a diagram showing data 13), FIG. 9 is a diagram showing the range of the graphic shown in FIG. 8 (graphic range data 14), and FIG. 10 is an explanatory diagram for explaining the recording form of the graphic range data value table.

【0027】本発明の第2の実施の形態の図形範囲判断
装置21は、本発明の第1の実施の形態の図形範囲判断
装置20と比較すると、記憶装置12に図形範囲データ
値テーブル15を有する点で異なっている。図形範囲デ
ータ値テーブル15は、たとえば、図10の図形範囲デ
ータ値テーブルの記録形態を説明する説明図で示すよう
に、図形範囲データの有効範囲を示す値と、その値に対
応する処理のコマンドID値とを記憶している。その他
の構成要素については、名称が同一なものは符号が異な
っても機能は同一であるので、個々の説明を省略する。
The graphic range judging device 21 according to the second embodiment of the present invention stores the graphic range data value table 15 in the storage device 12 in comparison with the graphic range judging device 20 according to the first embodiment of the present invention. It is different in having. The figure range data value table 15 includes, for example, a value indicating an effective range of the figure range data and a processing command corresponding to the value, as shown in an explanatory diagram illustrating the recording form of the figure range data value table in FIG. The ID value is stored. Regarding other components, those having the same names have the same functions even if the reference numerals are different, and therefore, their individual descriptions are omitted.

【0028】次に動作について説明する。説明は主に図
7を使用して行い、図6の名称および符号を用い、適宜
各図を引用する。
Next, the operation will be described. The description is mainly made with reference to FIG. 7, and the respective figures are appropriately referred to using the names and reference numerals of FIG. 6.

【0029】ここでは、地図の等高線で囲まれた範囲ご
とに色調を変えるシステムを例題として説明を行う。な
お、表示画面の内容は図形データの内容と同一であるも
のとする。
Here, a system in which the color tone is changed for each range surrounded by contour lines of the map will be described as an example. The contents of the display screen are the same as the contents of the graphic data.

【0030】動作を開始すると、S11でマウス(入力
装置1)から与えられたボタンを押すなどのイベントを
イベント処理手段7で検知し、このときのカーソルの画
面上の座標値を取得する。これを図8を用いて説明すれ
ば、点P1の画面上の座標値(X1,Y1)を取得する
ことにあたる。次に、S12で点P1の画面上の座標値
(X1,Y1)を座標変換手段8に供給すると、座標変
換手段8は、点P1の画面上の座標値(X1,Y1)を
図9に示す図形範囲データの点P1’の画面上の座標値
(X1’,Y1’)に変換し、変換後の座標値(X
1’,Y1’)を図形範囲判断手段9に供給する。変換
後の座標値を得た図形範囲判断手段9では、S13で記
憶装置12から図形範囲データ14を取り出し、続いて
S14で図形範囲データ6の中の点P1’の画面上の座
標値(X1’,Y1’)が示す点の値(色)を取得し、
最後に、S15で図形範囲データ値テーブル15にデー
タがあることを確認後、S16で点P1’の値(色)に
該当するコマンドIDを取り出す。S17で取り出した
ものが該当する値であるか否かを判別し、該当するもの
であれば、S18でコマンド制御手段10が図形範囲判
断手段9の判断結果により対応するコマンドを実行す
る。このコマンド実行結果は、S19で表示手段11に
より図形データ13のイメージに重ねた形で出力装置4
に表示される。
When the operation is started, an event such as pressing of a button given by a mouse (input device 1) is detected by the event processing means 7 in S11, and the coordinate value of the cursor on the screen at this time is acquired. This will be described with reference to FIG. 8, which corresponds to acquiring the coordinate value (X1, Y1) of the point P1 on the screen. Next, when the coordinate value (X1, Y1) of the point P1 on the screen is supplied to the coordinate conversion means 8 in S12, the coordinate conversion means 8 converts the coordinate value (X1, Y1) of the point P1 on the screen into FIG. The coordinate value (X1 ′, Y1 ′) on the screen of the point P1 ′ of the graphic range data shown is converted, and the coordinate value (X
1 ′, Y1 ′) is supplied to the figure range determining means 9. The graphic range determining means 9 having obtained the coordinate values after the conversion retrieves the graphic range data 14 from the storage device 12 in S13, and subsequently, in S14, the coordinate values (X1 on the screen) of the point P1 'in the graphic range data 6 ', Y1') to get the value (color) of the point indicated by
Lastly, after confirming that there is data in the graphic range data value table 15 in S15, a command ID corresponding to the value (color) of the point P1 'is extracted in S16. In step S17, it is determined whether or not the extracted value is an appropriate value. If the value is appropriate, the command control unit 10 executes the corresponding command based on the determination result of the graphic range determination unit 9 in step S18. This command execution result is output to the output device 4 in a form superimposed on the image of the graphic data 13 by the display means 11 in S19.
Will be displayed.

【0031】次に、本発明の第2の実施形態の効果につ
いて説明する。本発明では、複数の図形要素に対応した
コマンドIDを図10に示す図形範囲データ値テーブル
15に、準備しておくことで、複数の図形要素を選択し
て、異なる処理を実行することが可能となる。
Next, the effect of the second embodiment of the present invention will be described. In the present invention, by preparing command IDs corresponding to a plurality of graphic elements in the graphic range data value table 15 shown in FIG. 10, it is possible to select a plurality of graphic elements and execute different processing. Becomes

【0032】次に、本発明の第2の実施の形態の実施例
の動作を詳細に説明する。説明には主に図8を使用し、
適宜各図を引用する。
Next, the operation of the example of the second embodiment of the present invention will be described in detail. Figure 8 is mainly used for the explanation,
Reference is made to each figure as appropriate.

【0033】たとえば、図8と同一の形状の表示画面上
で入力された点が、図8上の点P1と同一点であったと
する。まず、点P1の座標値(X1,Y1)を取得す
る。図8で示す図形データ13の左上隅と、表示画面上
で入力された点P1の座標の原点とは同じであるため、
図9の点P1’と点P1の座標は同じになる。次に、点
P1’の示す値(色)を取得する。図9のP1’の座標
値(X1’,Y1’)の示す色は、”緑”であるため、
図10に示す図形範囲データ値テーブル15から”緑”
をキーとして、コマンドIDを検索する。検索の結果”
緑”のコマンドIDは、”400”であるため、コマン
ドID”400”の処理を実行する。たとえば、カーソ
ルの形を太矢印等に変更し近傍に400mの等高線を表
現した数字を出現させる。この表示はカーソルを移動さ
せて、点P1を入力するごとに出現する。
For example, it is assumed that the point input on the display screen having the same shape as that of FIG. 8 is the same as point P1 in FIG. First, the coordinate value (X1, Y1) of the point P1 is obtained. Since the upper left corner of the graphic data 13 shown in FIG. 8 and the origin of the coordinates of the point P1 input on the display screen are the same,
The coordinates of point P1 'and point P1 in FIG. 9 are the same. Next, the value (color) indicated by the point P1 'is obtained. Since the color indicated by the coordinate value (X1 ', Y1') of P1 'in FIG. 9 is "green",
"Green" from the figure range data value table 15 shown in FIG.
Is used as a key to search for a command ID. Search results "
Since the command ID of “green” is “400”, the processing of the command ID “400” is executed, for example, the shape of the cursor is changed to a thick arrow or the like, and a number expressing a contour line of 400 m appears in the vicinity. This display appears each time the cursor is moved and the point P1 is input.

【0034】[0034]

【発明の効果】以上説明したように、本発明は、対象と
する図形に対する位置関係の判断を必要とする個所の座
標値のデータを入力する入力装置と、図形要素ごとの図
形情報を記憶する記憶装置と、入力装置からの指定入力
により取得する座標値のデータと記憶装置から読出す図
形情報とから対象とする図形と判断すべき個所との位置
関係を判断し出力装置に表示するデータ処理装置とを有
することにより、複雑な図形の範囲を判断するための装
置構成および処理が簡単になり操作性が向上するという
効果が有る。
As described above, according to the present invention, an input device for inputting data of a coordinate value of a location where a positional relationship with a target graphic needs to be determined, and graphic information for each graphic element are stored. Data processing for judging the positional relationship between a storage device and a location to be determined as a target graphic from data of coordinate values obtained by a designated input from an input device and graphic information read from the storage device and displaying the same on an output device By having the apparatus, there is an effect that the apparatus configuration and processing for judging the range of a complicated figure are simplified and operability is improved.

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

【図1】本発明の第1の実施の形態を示すブロック図で
ある。
FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】本発明の第1の実施の形態の動作を説明する流
れ図である。
FIG. 2 is a flowchart illustrating an operation of the first exemplary embodiment of the present invention.

【図3】説明の対象となる図形を示す図である。FIG. 3 is a diagram showing a figure to be described.

【図4】図3で示される図形の範囲を示す図である。FIG. 4 is a diagram showing a range of the graphic shown in FIG. 3;

【図5】出力装置の表示画面および表示画面上の座標を
示す図である。
FIG. 5 is a diagram showing a display screen of an output device and coordinates on the display screen.

【図6】本発明の第2の実施の形態を示すブロック図で
ある。
FIG. 6 is a block diagram showing a second embodiment of the present invention.

【図7】本発明の第2の実施の形態の動作を説明する流
れ図である。
FIG. 7 is a flowchart illustrating an operation of the second exemplary embodiment of the present invention.

【図8】説明の対象となる図形を示す図である。FIG. 8 is a diagram showing a figure to be described.

【図9】図8で示される図形の範囲を示す図である。FIG. 9 is a diagram showing a range of the graphic shown in FIG. 8;

【図10】図形範囲データ値テーブルの記録形態を説明
する説明図である。
FIG. 10 is an explanatory diagram illustrating a recording form of a graphic range data value table.

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

1 入力装置 2,12 記憶装置 3 出力装置 4 データ処理装置 5,13 図形データ 6,14 図形範囲データ 7 イベント処理手段 8 座標変換手段 9 図形範囲判断手段 10 コマンド制御手段 11 表示手段 15 図形範囲データ値テーブル 20,21 図形範囲判断装置 DESCRIPTION OF SYMBOLS 1 Input device 2, 12 Storage device 3 Output device 4 Data processing device 5, 13 Graphic data 6, 14 Graphic range data 7 Event processing means 8 Coordinate conversion means 9 Graphic range judging means 10 Command control means 11 Display means 15 Graphic range data Value table 20, 21 Graphic range judgment device

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 対象とする図形に対する位置関係の判断
を必要とする個所の座標値のデータを入力する入力装置
と、図形要素ごとの図形情報を記憶する記憶装置と、前
記入力装置からの指定入力により取得する座標値のデー
タと前記記憶装置から読出す図形情報とから前記対象と
する図形と前記判断すべき個所との位置関係を判断し出
力装置に表示するデータ処理装置とを有し、前記記憶装
置の記憶する図形要素ごとの図形情報が、前記図形デー
タおよび前記図形範囲データに加えて、前記図形範囲デ
ータの示す図形の有効範囲内を予め定める任意の基準値
に基づき分割して生成した複数の図形のそれぞれの有効
範囲を示すデータ値およびこのデータ値に対応する処理
のコマンドID値からなる図形範囲データ値テーブルを
含むことを特徴とする図形範囲判断装置。
1. An input device for inputting coordinate value data of a location where a positional relationship with a target graphic needs to be determined, a storage device for storing graphic information for each graphic element, and a designation from the input device A data processing device that determines a positional relationship between the target graphic and the location to be determined from data of coordinate values obtained by input and graphic information read from the storage device and displays the positional relationship on an output device , The storage device
The graphic information for each graphic element stored in the
Data and the graphic range data,
Arbitrary reference value pre-determined within the effective range of the figure indicated by the data
Of each of multiple figures generated by dividing based on
Data value indicating the range and the processing corresponding to this data value
Figure range data value table consisting of the command ID values of
A graphic range determination device characterized by including:
JP8254884A 1996-09-26 1996-09-26 Apparatus and method for determining graphic range Expired - Lifetime JP3001433B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8254884A JP3001433B2 (en) 1996-09-26 1996-09-26 Apparatus and method for determining graphic range

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8254884A JP3001433B2 (en) 1996-09-26 1996-09-26 Apparatus and method for determining graphic range

Publications (2)

Publication Number Publication Date
JPH10105679A JPH10105679A (en) 1998-04-24
JP3001433B2 true JP3001433B2 (en) 2000-01-24

Family

ID=17271184

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8254884A Expired - Lifetime JP3001433B2 (en) 1996-09-26 1996-09-26 Apparatus and method for determining graphic range

Country Status (1)

Country Link
JP (1) JP3001433B2 (en)

Also Published As

Publication number Publication date
JPH10105679A (en) 1998-04-24

Similar Documents

Publication Publication Date Title
JP3706743B2 (en) Region of interest extraction method and apparatus, and storage medium
JPH06309426A (en) Method for inputting threshold
JP2932193B2 (en) Graphic processing unit
US20050102327A1 (en) Data file processor, data file processing method and program
JP3001433B2 (en) Apparatus and method for determining graphic range
JPH02113318A (en) Help processing system for information processor
JPH08235344A (en) Scenario editor
JPH06282401A (en) Menu display method
JPH07141137A (en) Method for selecting menu
JPH06333008A (en) Input device for designation of image contour
JP3158526B2 (en) Function instruction method and information processing device
JP2798688B2 (en) Character processing apparatus and method
JP3058630B2 (en) Graphic processing unit
JP2721344B2 (en) Image processing method
JPH11134356A (en) Folder relating device and method therefor
JPH0736765A (en) Device and method for document processing
JPH07105397A (en) Graphic command reception device for cad system
JPS62256174A (en) Document processor
JP2591577B2 (en) Drawing creation equipment
JP3113023B2 (en) Arc length dimension creation method and device
JP2536948B2 (en) Three-point specified circular arc detection method and device
JPH07129323A (en) Data input device
JPH0778714B2 (en) Multiple display area control method and its control device
JPH0475172A (en) Cad system
JPH06318252A (en) Image extracting device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19991019