JPS59177593A - Detection of display graphic - Google Patents

Detection of display graphic

Info

Publication number
JPS59177593A
JPS59177593A JP58053104A JP5310483A JPS59177593A JP S59177593 A JPS59177593 A JP S59177593A JP 58053104 A JP58053104 A JP 58053104A JP 5310483 A JP5310483 A JP 5310483A JP S59177593 A JPS59177593 A JP S59177593A
Authority
JP
Japan
Prior art keywords
pixel
cursor
area
maximum
search
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.)
Granted
Application number
JP58053104A
Other languages
Japanese (ja)
Other versions
JPH0318195B2 (en
Inventor
森岡 茂樹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Hokushin Electric Corp
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 Yokogawa Hokushin Electric Corp filed Critical Yokogawa Hokushin Electric Corp
Priority to JP58053104A priority Critical patent/JPS59177593A/en
Publication of JPS59177593A publication Critical patent/JPS59177593A/en
Publication of JPH0318195B2 publication Critical patent/JPH0318195B2/ja
Granted legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 本発明はCRTを備えこの画面に図形などを表示する装
置において、カーソルで指示したこの図形の部分を見つ
(プ出すh法の改良に関づるものである。更に詳述する
と、上記のよ−うな装置においては、通常、図形は複数
の画素から構成される。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an improvement of the h method for finding (printing) a part of a figure indicated by a cursor in a device equipped with a CRT and displaying figures on the screen. Specifically, in the above-mentioned apparatus, a figure is usually composed of a plurality of pixels.

そして装置の誤作上、この図形の中から特定の画素をカ
ーソルで選択したい場合がある。本発明、はカーソルの
位置に一番近い画素を見つけ出す方法に関するもので゛
ある。
Due to a malfunction of the device, there may be cases where it is desired to select a specific pixel within this figure using a cursor. The present invention relates to a method for finding the pixel closest to the cursor position.

本発明は主としてCAl) (Q omputer  
A 1ded□es:gn )装置に使用されることが
多いのでCAD装置を例に取って本発明の説明を行なう
。CAD装置においては、CRI−の画面上に図形を表
示しつつコンビコータど対話しながら各種の設訂を行な
うものである。このような設81操作を行なう場合、O
R[−に表示された図形の一部をカーソルで指し示めし
て、・その部分を特別に表示したり認識したいようなこ
とがある。カーソルで指し示めされた図形の部分を認識
してこの部分を特別に表示するためには、カーソルと各
画素どの距離を計鋒してその距離が一番近い画素を選択
する必ばかある。このカーソルに一番近い画素を探す方
法としては、次の〈イ)ど(ロ)の方法が知られている
The present invention mainly focuses on CAl) (Q computer
Since the present invention is often used in A1ded□es:gn) devices, the present invention will be explained using a CAD device as an example. In a CAD device, various designs are made while displaying figures on a CRI screen and interacting with a combination coater. When performing such a setting 81 operation, O
You may want to point to a part of the figure displayed in R[- with the cursor and specially display or recognize that part. In order to recognize the part of the figure pointed to by the cursor and specially display this part, it is necessary to calculate the distance between the cursor and each pixel and select the pixel with the closest distance. The following methods (a) and (b) are known as methods for finding the pixel closest to this cursor.

(イ) 図形の全画素について7J−ツルとの距離を計
算してその結果所望の画素を検出づる方法。
(b) A method of calculating the distance to the 7J-vine for all pixels of the figure and detecting the desired pixel as a result.

この方法によれば総べての画素について距mt 計陣を
行なわな(プればならい。通常、CAD装置に表示され
る画素は多数のものであるため、この(イ)の方法では
膨大な計算を必要とづる。その結果カーソルに一番近い
画素を取り出ツのに長時間を要する欠点がある。
According to this method, it is not necessary to calculate the distance mt for all pixels. As a result, it takes a long time to extract the pixel closest to the cursor.

(ロ)  CRTの画面をX方向、Y方向でN等分して
幾つかのブロックに分け、カーソルが存在するブロック
内の画素についてのみカーソルとの距離計算をする方法
(b) A method in which the CRT screen is divided into N equal blocks in the X and Y directions, and the distance from the cursor is calculated only for pixels in the block where the cursor exists.

この方法によれば、上記(イ)の方法よりは計lftが
減少するとはいえ、まだa1鋒の邑が多く、所定の画素
を取り出すのに長時間を要する。そしてカーソルの位置
によっては最悪で4ブロツクをサーチ対象とじなりれば
ならない場合がある。また画素がどこに属するかは画面
の状態(拡大、縮少、平行移動)により変るので、RE
RAIN下動作ごと転動作ブ1コックに存在するかとい
うBITを更新しなければならない欠点もある。
According to this method, although the total lft is reduced compared to the method (a) above, there are still many a1 holes, and it takes a long time to extract a predetermined pixel. Depending on the position of the cursor, at worst four blocks may have to be searched. Also, where a pixel belongs changes depending on the state of the screen (enlargement, reduction, parallel movement), so RE
There is also the drawback that the BIT indicating whether the rotary movement block 1 cock is present must be updated every time the RAIN downward movement is performed.

以−L説明してきた点に鑑みて本発明はなされたもので
ある。本発明の概要を述べると、カーソルの動きにつれ
て移動するエリア(area)を設定し、このエリア内
において座標データをサーチする工程と、このサーチに
おいて座標データを検出した場合、その時点でカーソル
とその検出された座標までの距離に基づいて前記エリア
を縮小する工程と、を有し、この2つの工程を繰り返え
すことて前記エリアを次々と縮小し、縮小した最後のエ
リアに残った画素がカーソルの位置に一番近い画素と認
識J−る方法である。
The present invention has been made in view of the points explained below. To summarize the present invention, the steps include setting an area that moves as the cursor moves, searching for coordinate data within this area, and when coordinate data is detected in this search, at that point the cursor and and a step of reducing the area based on the distance to the detected coordinates, and by repeating these two steps, the area is reduced one after another, and the remaining pixels in the last reduced area are This method recognizes the pixel closest to the cursor position.

以下図面を用いて本発明の動作を詳細に説明づる。第1
図はCAD装置のCRT画面の表示例を示したものであ
る。同図にJ5いて、1はカーソルでありCAD装置を
操作する者がジョイスティック(joy  5tick
 )などを使用してCRT上の任意の位置に設定できる
ものである。△1〜A6は画素である。第1図では、各
画素は1つの独立しtc図形(丸とか3角)として表視
したがもっと細かいレベル(線分)に分りたものであっ
てもよい。
The operation of the present invention will be explained in detail below using the drawings. 1st
The figure shows an example of a display on a CRT screen of a CAD device. In the figure, J5 is a cursor, and the person operating the CAD device uses a joystick (joy 5tick).
), etc., and can be set at any position on the CRT. Δ1 to A6 are pixels. In FIG. 1, each pixel is represented as one independent tc figure (circle or triangle), but it may be divided into finer levels (line segments).

例えば画素A5を4本の直線に分けて構成してもよい。For example, the pixel A5 may be divided into four straight lines.

このようなCRT画面において例えば画素A2を選択し
てこれを修正しようとした場合、まず画素A2をコンピ
ュータへ認識させる必要がある。
When selecting, for example, pixel A2 on such a CRT screen and attempting to modify it, it is first necessary to make the computer recognize pixel A2.

そのためにカーソル1を画素A2のところへ移動させる
わ【ブであるが、カーソル1を正確に画素Δ2の線上に
重ねることは神経のいる操作である。
To do this, we move cursor 1 to pixel A2.However, it is a nerve-wracking operation to accurately place cursor 1 on the line of pixel Δ2.

そこで前記したようにカーソルに一番近い位置の画素を
コンピュータでサーチして、そのサーチの結果1りられ
た画素を選択するようにしている。そしてこのサーチす
る方法が従来の方法では、欠点・を有しているので本発
明がなされたのである。
Therefore, as described above, the computer searches for the pixel closest to the cursor, and selects the pixel that is found as a result of the search. The present invention was developed because the conventional search method has drawbacks.

CAD装置の操作者などからの入力により総べての画素
には名前が付され、その情報は2次元データベースとじ
て管理されている。また各画素は定義空間で最大、最小
(MIN−MΔX)値を持っているが、各画素をCAD
装置へ入力する際に、コンピュータによりその最大と最
小の座標値が削鋒され、各画素ごとにその名前の情報と
共にデータベースとして管理されている。このデータベ
ースの概念を第3図に示す。例えば、第1図において画
素△6の最大、最小値は(Xn 、 Yn )と(Xm
、Ym)である。そこでこの画素の名前が八6であると
すれば第3図のように最大と最小の座標値が格納されて
いる。
All pixels are given names based on input from a CAD device operator, and this information is managed as a two-dimensional database. Also, each pixel has a maximum and minimum (MIN-MΔX) value in the definition space, but each pixel is
When inputting to the device, the maximum and minimum coordinate values are extracted by a computer and managed as a database along with information on the name of each pixel. The concept of this database is shown in Figure 3. For example, in Fig. 1, the maximum and minimum values of pixel △6 are (Xn, Yn) and (Xm
, Ym). Therefore, if the name of this pixel is 86, the maximum and minimum coordinate values are stored as shown in FIG.

以上のようなCRTの表示及びデータベースの状態を基
にして、本発明の表示図形の検出方法は次のように動作
する。
Based on the CRT display and database status as described above, the display graphic detection method of the present invention operates as follows.

第1図において例えば画素Δ2を選択ジーる場合の動作
を説明する。まず、ジョイスティック等を用いてカーソ
ルを画素△2の近傍まで移動させる。
The operation when selecting, for example, pixel Δ2 in FIG. 1 will be explained. First, the cursor is moved to the vicinity of pixel Δ2 using a joystick or the like.

ここまでの動作は従来のものと同様である。しかし、以
下に説明するサーチ動作Qが従来のものと異なる。
The operation up to this point is the same as the conventional one. However, the search operation Q described below is different from the conventional one.

本発明ではカーソルの動きにつれて移動づるエリアを設
定している。このエリアは例えば第2図の81〜B3に
示すようなものである。即ち、一番大きなエリアはカー
゛ツルの+マークを基にした四角形のエリアである。こ
こで第2図は第1図のカーソル付近の拡大図である。
In the present invention, an area is set that moves as the cursor moves. This area is, for example, as shown at 81 to B3 in FIG. That is, the largest area is a rectangular area based on the + mark of the cursor. Here, FIG. 2 is an enlarged view of the vicinity of the cursor in FIG. 1.

まり゛始めに、カーソルが移動された位置において最大
のエリアB1の範囲内でコンピュータはサーチを行なう
。何をサーチするかと言えば、第3図に示すデータベー
スにおいて各画素の最大、最小の座標値が上記エリアB
+に含まれているか否かである。
First, the computer searches within the largest area B1 at the position where the cursor has been moved. What to search for is the maximum and minimum coordinate values of each pixel in the database shown in Figure 3 above area B.
It is whether or not it is included in +.

コンピュータがデータベース上を順にスキ17ンして行
きこのエリアB+内に属する最大、又は最小の座標値を
検出するとその時点です一チするエリアを変更する。ど
のように変更するかと言えばカーソルの原点Oとその検
出された座標までの距離に基づいてエリアを縮小するの
である。
When the computer sequentially scans the database 17 and detects the maximum or minimum coordinate value belonging to this area B+, the area to be searched is changed at that point. The method of change is to reduce the area based on the distance between the origin O of the cursor and its detected coordinates.

第2図を用いて具体的に説明すると、データベース上を
サーチして行き画素A、の最大値を検出したとする。す
るとその時点でサーチエリアを第2図のB2に示り−よ
うな1リアに縮小する。
To explain specifically with reference to FIG. 2, it is assumed that a database is searched and the maximum value of pixel A is detected. At that point, the search area is reduced to one area as shown in B2 of FIG.

そし・で、この縮小したエリア内でコンピュータはサー
チを再びすることになる。その結果、コンビコータは画
素A2の最小値を検出するのでサーチするエリアは更に
小さいB3となる。
Then, the computer will search again within this reduced area. As a result, since the combi coater detects the minimum value of pixel A2, the search area becomes B3, which is even smaller.

次にコンピュータはこのエリアB+内でサーチを行なう
が、その結果もはや他の最大、最小の座標を検出できな
いので、この画素A2を求める画素として認識する。
Next, the computer searches within this area B+, but as a result, it is no longer possible to detect other maximum and minimum coordinates, so it recognizes this pixel A2 as the desired pixel.

このような動作のフローを第4図に承り。The flow of such operations is shown in Figure 4.

以上説明したように本発明によれば次のような効果が得
られる。
As explained above, according to the present invention, the following effects can be obtained.

(a )  サーチする範囲は第2図のところで述べた
ように狭い範囲であるため従来の場合と比較してサーチ
時間が短縮される。
(a) Since the search range is narrow as described in FIG. 2, the search time is shortened compared to the conventional case.

なお、最初のサーチ範囲(B+ )は、第2図ではカー
ソルの大きさに合せた四角形としたがこれに限定するも
のではない。即ち、カーソルの太きさより大きくても小
さくてもよい。また四角形でなく他の形状であってもよ
い。
Although the first search range (B+) is a rectangle matching the size of the cursor in FIG. 2, it is not limited to this. That is, it may be larger or smaller than the thickness of the cursor. Further, the shape may be other than a rectangle.

(b)  (a)のところで説明したようなサーチの結
果、最初に成る座標値を検出すると、その時点で直ちに
サーチ範囲を縮小するのでエリアB1で残された部分の
サーチをしなくても済むので更にサーチ時間が短縮され
る。
(b) As a result of the search explained in (a), when the first coordinate value is detected, the search range is immediately reduced at that point, so there is no need to search the remaining part in area B1. Therefore, the search time is further shortened.

<C)  サーチ範囲に属するか否かの判断はデータベ
ースの最大、最小の座標値を用いているため画素の□形
状の影響を受りずスキャンスピードが速い。
<C) Since the maximum and minimum coordinate values of the database are used to determine whether or not a pixel belongs to the search range, it is not affected by the square shape of the pixel and the scanning speed is fast.

なお、サーチ範囲の面積を無限に小さくして行くとすれ
ばサーチはいつ終るか図り知れない。そこで本発明では
、サーチ範囲を小さくしだ場・合の面8!I(第2図で
はB3)に一定の限界を設けその範囲でサーチは終了と
している。
Note that if the area of the search range is made infinitely small, it is impossible to predict when the search will end. Therefore, in the present invention, the search range is made smaller. A certain limit is set for I (B3 in FIG. 2), and the search ends within that range.

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

第1図はCADI置のCRT画面の表示例を示しIご図
、第2図は第1図のカーソル部分の周辺拡大図、第3図
はデータベースの概念を示した図、第4図は本発明の動
作フローの例を示した図である。 1・・・カーソル、A1〜八6・・・画素、BI〜B3
・・・エリア。
Figure 1 shows an example of the display on the CRT screen of a CADI device, Figure 2 is an enlarged view of the cursor area in Figure 1, Figure 3 is a diagram showing the concept of the database, and Figure 4 is the booklet. FIG. 3 is a diagram showing an example of an operation flow of the invention. 1...Cursor, A1-86...Pixel, BI-B3
···area.

Claims (1)

【特許請求の範囲】 各画素ごとに表示平面上の最大・最小の座標データを持
たせ、こ゛れらの各画素をCRT上に表示づる装置であ
って、CRT画面に表示された複数の画素のうちカーソ
ルの位置に一番近い画素を検出する方法において、 カーソルの動きにつれて移動する土リアであって、その
エリア内において前記最大または最小の座標データの有
無をザーチする工程ど、前記ザーヂにおいて最大または
最小の座標データを検出した場合、その時点でカーソル
とその検出された座標までの距離に基づ゛いて前記エリ
アを縮小する工程と、を有し、 この2つの工程を゛繰り返えすことで前記エリアを所定
の大ぎさを限度として次々と縮小し、縮小した最後のエ
リアに残った画素がカーソルの位置に一番近い画素と認
識り−る方法。
[Scope of Claims] A device for displaying each pixel on a CRT by providing maximum and minimum coordinate data on a display plane for each pixel, which displays a plurality of pixels displayed on the CRT screen. In the method of detecting the pixel closest to the cursor position, the pixel moves as the cursor moves, and the step of searching for the presence or absence of the maximum or minimum coordinate data in the area, If the maximum or minimum coordinate data is detected, at that point, the area is reduced based on the distance between the cursor and the detected coordinate, and these two steps are repeated. In this method, the area is successively reduced to a predetermined size limit, and the remaining pixels in the last area that has been reduced are recognized as the pixels closest to the cursor position.
JP58053104A 1983-03-29 1983-03-29 Detection of display graphic Granted JPS59177593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58053104A JPS59177593A (en) 1983-03-29 1983-03-29 Detection of display graphic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58053104A JPS59177593A (en) 1983-03-29 1983-03-29 Detection of display graphic

Publications (2)

Publication Number Publication Date
JPS59177593A true JPS59177593A (en) 1984-10-08
JPH0318195B2 JPH0318195B2 (en) 1991-03-11

Family

ID=12933480

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58053104A Granted JPS59177593A (en) 1983-03-29 1983-03-29 Detection of display graphic

Country Status (1)

Country Link
JP (1) JPS59177593A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61295596A (en) * 1985-06-25 1986-12-26 株式会社 写研 Data editing system for input editor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57123435A (en) * 1981-01-24 1982-07-31 Mitsubishi Electric Corp Display device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57123435A (en) * 1981-01-24 1982-07-31 Mitsubishi Electric Corp Display device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61295596A (en) * 1985-06-25 1986-12-26 株式会社 写研 Data editing system for input editor

Also Published As

Publication number Publication date
JPH0318195B2 (en) 1991-03-11

Similar Documents

Publication Publication Date Title
US5513278A (en) Handwritten character size determination apparatus based on character entry area
US4945504A (en) Instruction input system for electronic processor
JP3630730B2 (en) System operation method
US20090090567A1 (en) Gesture determination apparatus and method
JP3043632B2 (en) Toolbar display system
JPS63123165A (en) Correlation of cursor and display entity
US5673067A (en) Information processing apparatus and method
EP0653697A2 (en) Cursor with multiple pointing spots
JP3357760B2 (en) Character / graphic input editing device
JPS63123166A (en) Correlation of cursor and entity
JPS59177593A (en) Detection of display graphic
JPH0580025B2 (en)
JP2000122787A (en) Image data display device
KR100544634B1 (en) Method for displaying mouse-point that show operation method at mouse use zone
JP2874676B2 (en) Single screen multiple input terminal
JPH05233613A (en) Ruled line selecting method
JPH05250131A (en) Cursor display controller
JP2000207087A (en) Displayed graphic selecting method
JPH0675558A (en) Display data moving device
JPH06242880A (en) Data editing device
JPS60181790A (en) Cursor display control system
JPH06139019A (en) Touch panel input device
JPS61117594A (en) Cursor control system
JPH04157575A (en) Graphic processing system
JPH04322376A (en) Graphic processor