JPH01154192A - Figure detector - Google Patents

Figure detector

Info

Publication number
JPH01154192A
JPH01154192A JP62312030A JP31203087A JPH01154192A JP H01154192 A JPH01154192 A JP H01154192A JP 62312030 A JP62312030 A JP 62312030A JP 31203087 A JP31203087 A JP 31203087A JP H01154192 A JPH01154192 A JP H01154192A
Authority
JP
Japan
Prior art keywords
cursor
data
character
size
display
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
JP62312030A
Other languages
Japanese (ja)
Inventor
Toshimitsu Kinugasa
衣笠 利光
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62312030A priority Critical patent/JPH01154192A/en
Publication of JPH01154192A publication Critical patent/JPH01154192A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE: To increase a character selecting speed by deciding that the element corresponding to a selected center coordinates is selected by a selecting means when the selected center coordinates is included in an altered cursor. CONSTITUTION: A figure selecting means 10 selects a display figure by being brought into contact with a display screen and a figure data generating means 30 generates the center coordinate of a figure stored in a figure data memory and having its position limited to only a specific area and the size of the area in the storage order of the figure. A cursor generating means 40 generates a cursor of specific size having its center at a coordinates on the screen that the figure selecting means 10 is brought into contact with and varies the cursor size according to the display area of the figure from the figure data generating means 30. Then a comparing means 50 decides whether or not the center coordinates of the figure being generated is included in the altered cursor and a figure detecting means 60 decides that the figure is selected by the selecting means 10 when the center coordinates of the figure being generated is in the cursor. Consequently, the character selecting speed when an element is picked by touching the screen with a light pen can be made fast.

Description

【発明の詳細な説明】 〔1既  要〕 本発明は表示装置における図形検出装置に関し、ライト
ペンで画面に触れて特定の図形を選択する際の選択速度
を速くすることを目的とし、表示画面上に触れて表示図
形を選ぶ図形選択手段と、前記図形データメモリに格納
され、存在が所定領域内に限定される図形の中心座標及
びその領域の大きさを、図形の格納順に発生させる図形
データ発生手段と、前記図形選択手段が触れた画面上の
座標を中心に所定サイズのカーソルを発生させ、前記図
形データ発生手段からの図形の表示領域に応じて前記カ
ーソルサイズを変更するカーソル発生手段と、変更され
たカーソル内に現在発生中の図形の中心座標が含まれる
か否かを判定する比較手段と、カーソル内に現在発生中
の図形の中心座標がある場合に、その図形が前記選択手
段によって選ばれた図形であると判定する図形検出手段
とから構成する。
[Detailed Description of the Invention] [1 Summary] The present invention relates to a figure detection device in a display device, and an object of the present invention is to increase the selection speed when selecting a specific figure by touching the screen with a light pen. a figure selection means for selecting a display figure by touching the top thereof; and figure data stored in the figure data memory for generating the center coordinates of a figure whose existence is limited to a predetermined area and the size of the area in the order in which the figures are stored. generating means, and cursor generating means for generating a cursor of a predetermined size centered on the coordinates on the screen touched by the figure selecting means, and changing the size of the cursor according to the display area of the figure from the figure data generating means; , a comparison means for determining whether or not the center coordinates of the currently generated figure are included in the changed cursor; and if the center coordinates of the currently generated figure are included in the cursor, that figure is selected by the selection means. and figure detection means for determining that the figure is the selected figure.

〔産業上の利用分野〕[Industrial application field]

本発明は表示装置における図形検出装置に関し、特に、
表示器の画面上の表示図形の中から特定の領域に表示が
限定される図形、例えば文字を、ライトペン等の選択装
置により直接画面に触れて選択することができる図形検
出装置に関する。
The present invention relates to a figure detection device in a display device, and in particular,
The present invention relates to a figure detection device that allows a figure whose display is limited to a specific area, such as a character, to be selected from among the figures displayed on the screen of a display device by directly touching the screen with a selection device such as a light pen.

従来、ビットマツプメモリのような画像メモリを装備し
、文字や図形を画面上に表示する表示装置において、画
面に表示された表示図形(エレメント)を変更する意図
で、エレメントの中から特定の1つをライトペン等によ
り表示画面に触れて選択(エレメントピックという)す
ることがある。
Conventionally, in display devices that are equipped with an image memory such as a bitmap memory and display characters and figures on the screen, a specific one of the elements is used to change the display figure (element) displayed on the screen. An element may be selected by touching the display screen with a light pen or the like (called an element pick).

このエレメントビック動作では、ライトペンを表示画面
上の選択したい要素の近傍に持っていくと、ライトペン
の先端部に対向する画面上の位置に、カーソル或いはア
パーチャと称される一般に方形の輝度の高い部分が現れ
、このカーソルの中にあるエレメントを検索する。具体
的には、このエレメントピック動作は表示画面上に発生
させたカーソルの示す領域内にエレメントが存在するか
否かを判定して、存在するエレメントを選択するのであ
るが、この選択速度の向上が要望されている。
In this element big operation, when you bring the light pen near the element you want to select on the display screen, a rectangular brightness marker called a cursor or aperture is placed on the screen opposite the tip of the light pen. The high part appears and searches for the element that is inside this cursor. Specifically, this element pick operation determines whether an element exists within the area indicated by the cursor generated on the display screen and selects the existing element, but this selection speed has been improved. is requested.

〔従来の技術〕[Conventional technology]

第5図は従来のエレメントビックを行える表示装置の図
形検出装置の構成を示すブロック回路図である。なお、
この表示装置には表示すべき複数の図形がベクトルデー
タで格納された図形データメモリは図示されていない。
FIG. 5 is a block circuit diagram showing the configuration of a graphic detection device for a display device capable of performing a conventional element search. In addition,
A graphic data memory in which a plurality of graphics to be displayed are stored as vector data is not shown in this display device.

また、この例ではある限られた領域内に表示される図形
を文字に特定し、以後文字のエレメントビックについて
説明する。従って、図の文字位置データ及び文字データ
は、図形データメモリから読み出した図形データに含ま
れるものである。
Further, in this example, a figure displayed within a certain limited area is specified as a character, and the element big of the character will be explained below. Therefore, the character position data and character data in the figure are included in the graphic data read from the graphic data memory.

図において1は表示する文字の中心座標x、  yをカ
ウントする文字位置カウンタ、2は文字データにより表
示する文字をベクトルの組み合わせで表わす文字ベクト
ル用キャラクタ・ジェネレータ(CG)、3は文字位置
カウンタ1と文字ベクトル用CGの出力を加算する加算
器、4は加算器3の出力または図形ベクトルの始点・終
点位置データのいずれかを端子Sに入力される文字信号
により選択するセレクタ、5は文字または図形の始点お
よび終点が与えられた時にその間に自動的に直線を引く
ディジタル微分解析器(以後DDAという)、6はDD
A5から出力された文字のデータを表示画面に対応して
記憶するビットマツプメモリ、7はビットマツプメモリ
6に記憶されたデータを読み出す続出制御器、8はD/
A変換器、9はビットマツプメモリ6に記憶されたデー
タに対応する文字または図形を表示するCRT等の表示
器であり、以上のように構成された表示装置により文字
または図形が表示器9に表示される。
In the figure, 1 is a character position counter that counts the center coordinates x and y of characters to be displayed, 2 is a character generator (CG) for character vectors that expresses characters to be displayed using character data as a combination of vectors, and 3 is a character position counter 1. 4 is a selector that selects either the output of adder 3 or the starting point/end point position data of the graphic vector by a character signal input to terminal S; 5 is a character or A digital differential analyzer (hereinafter referred to as DDA) that automatically draws a straight line between the starting and ending points of a figure when given, 6 is DD
A bitmap memory stores the character data outputted from A5 in correspondence with the display screen, 7 is a continuation controller that reads out the data stored in the bitmap memory 6, and 8 is D/
The A converter 9 is a display such as a CRT that displays characters or figures corresponding to the data stored in the bitmap memory 6, and the characters or figures are displayed on the display 9 by the display device configured as described above. Is displayed.

また、第5図において10は表示器9の画面に触れるこ
とによってエレメントピックを行うライトペン10であ
り、11はこのライトペン10からのカーソルの中心位
置データが入力されるカーソル位置レジスタ、12はラ
イトペン10で画面に触れた時に画面上に表示されるカ
ーソルサイズを規定するためのカーソルサイズレジスタ
である。カーソル位置レジスタ11からはカーソルの中
心位置のX座標とy座標とがそれぞれ別個に出力され、
カーソルサイズレジスタ12からはX座標方向、X座標
方向のカーソルサイズがそれぞれ別個に出力される。
Further, in FIG. 5, 10 is a light pen 10 that picks an element by touching the screen of the display 9, 11 is a cursor position register into which the cursor center position data from this light pen 10 is input, and 12 is a This is a cursor size register for defining the cursor size displayed on the screen when the screen is touched with the light pen 10. The cursor position register 11 separately outputs the X and Y coordinates of the center position of the cursor,
The cursor size register 12 outputs the cursor size in the X coordinate direction and the cursor size in the X coordinate direction, respectively.

そして、カーソル位置レジスタ11からのカーソルの中
心位置のX座標にカーソルサイズレジスタ12からのX
方向のカーソルサイズの〃が、加算器13にて加算され
、減算器14にて減算される。同様にカーソル位置レジ
スタ11からのカーソルの中心位置のy座標にカーソル
サイズレジスタ12からのy方向のカーソルサイズの2
が、加算器15にて加算され、減算器工6にて減算され
る。この結果、加算器13の出力はライトペン10によ
り表示器9に現れるカーソルのX座標の最大値X。、X
となり、減算器14の出力はライトペン10により表示
器9に現れるカーソルのX座標の最小値X□7となる。
Then, the X coordinate from the cursor size register 12 is set to the X coordinate of the center position of the cursor from the cursor position register 11.
The cursor size in the direction is added by an adder 13 and subtracted by a subtracter 14. Similarly, the y coordinate of the center position of the cursor from the cursor position register 11 is set to 2, which is the cursor size in the y direction from the cursor size register 12.
are added by the adder 15 and subtracted by the subtractor 6. As a result, the output of the adder 13 is the maximum value X of the X coordinate of the cursor displayed on the display 9 by the light pen 10. ,X
Therefore, the output of the subtractor 14 becomes the minimum value X□7 of the X coordinate of the cursor displayed on the display 9 by the light pen 10.

同様に、加算器15の出力はライトペン10により表示
器9に現れるカーソルのX座標の最大値yイaxとなり
、減算器16の出力はライトペン10により表示器9に
現れるカーソルのX座標の最小値7 Tl1inとなる
Similarly, the output of the adder 15 is the maximum value yax of the X coordinate of the cursor appearing on the display 9 by the light pen 10, and the output of the subtracter 16 is the maximum value yax of the X coordinate of the cursor appearing on the display 9 by the light pen 10. The minimum value is 7 Tl1in.

更に、第5図の表示装置における17.18.19; 
20は2つの入力A、Bの大小を比較するコンパレータ
である。コンパレータ17.19はA≦Bか否かを比較
してA≦Bの時にハイレベル信号“H”を出力し、コン
パレータ18.20はA≧Bか否かを比較してA≧Bの
時にハイレベル信号“■”を出力するようになっている
。コンパレータ17.18の入力AにはDDA5のX出
力が入力され、コンパレータ19゜20の入力AにはD
DA5のX出力が入力される。
Furthermore, 17.18.19 in the display device of FIG.
20 is a comparator that compares the magnitude of two inputs A and B. Comparators 17.19 compare whether A≦B and output a high level signal “H” when A≦B, and comparators 18.20 compare whether A≧B or not and output a high level signal “H” when A≧B. It is designed to output a high level signal “■”. The X output of DDA5 is input to the input A of the comparators 17 and 18, and the D
The X output of DA5 is input.

また、加算器13.減算器14.加算器15.減算器1
6の出力はそれぞれコンパレータ17,18.19.2
0 ノ入力Bに入力される。
Also, the adder 13. Subtractor 14. Adder 15. Subtractor 1
6 outputs are comparators 17, 18.19.2 respectively.
0 is input to input B.

コンパレータ17.18は、カーソルのX方向の領域内
にセレクタ4から出力される文字データが入っているか
否かを判定するものであり、コンパレータ19.20は
カーソルのX方向の領域内にセレクタ4から出力される
文字データが入っているか否かを判定するものである。
The comparators 17 and 18 are for determining whether or not the character data output from the selector 4 is contained within the region of the cursor in the X direction. This is to determine whether or not character data output from is included.

そして、カーソルのX方向の領域内にセレクタ4から出
力される文字データが入っている時はコンパレータ17
.18に共にハイレベル出力”H”があり、カーソルの
X方向の領域内にセレクタ4から出力される文字データ
が入っている時はコンパレータ19.20に共にハイレ
ベル出力″11”がある。
When the character data output from the selector 4 is contained within the area in the X direction of the cursor, the comparator 17
.. Both comparators 18 and 18 have a high level output "H", and when character data output from the selector 4 is contained within the region of the cursor in the X direction, comparators 19 and 20 both have a high level output "11".

21はAND回路であり、コンパレータ17,18,1
9゜20の出力及びカーソル有無信号が入力されている
21 is an AND circuit, and comparators 17, 18, 1
A 9°20 output and a cursor presence/absence signal are input.

そして、AND回路21はコンパレータ17,18.1
9.20に全てハイレベル出力“H”があり、カーソル
有無信号がハイレベル“H″でカーソル有りを示す時に
のみ、ハイレベルの出力“H″(ヒツト信号)を出力す
る。そして、図形検出装置はこのヒツト信号があった時
にセレクタ4から出力されるデータの図形を、ライトペ
ン10によづてピックアップされた図形と判定している
The AND circuit 21 is connected to comparators 17 and 18.1.
There is a high level output "H" at all 9.20, and a high level output "H" (hit signal) is output only when the cursor presence/absence signal is high level "H" and indicates the presence of the cursor. Then, the figure detection device determines that the figure of the data output from the selector 4 when this hit signal is received is the figure picked up by the light pen 10.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところが、前記従来の図形検出装置では、ライトペン1
0によって指定されたカーソル内にある文字を選択する
のに、表示すべき複数の図形がベクトルデータで格納さ
れた図形データメモリから文字データを、表示器9に表
示された文字の順に1つずつセレクタ4で選び、その出
力をDDA5で処理して実際に1つずつ文字を発生させ
、発生させた文字データを4つのコンパレータ17.1
B、 19.20に振り分け、この文字を構成するベク
トルがカーソル内に入っているか否かの比較判定を行っ
ているために、ライトペン10で画面に触れてから実際
にライトペン10で指示された文字がエレメントピック
されるまでの選択速度が遅いという問題点がある。
However, in the conventional figure detection device, the light pen 1
To select a character within the cursor specified by 0, character data is input one by one from the figure data memory in which multiple figures to be displayed are stored as vector data, in the order of the characters displayed on display 9. Selected by selector 4, the output is processed by DDA5 to actually generate characters one by one, and the generated character data is sent to four comparators 17.1
B, 19.20, and a comparison is made to determine whether or not the vectors that make up this character are within the cursor, so it is not possible to actually indicate with the light pen 10 after touching the screen with the light pen 10. There is a problem that the selection speed until the selected character is element picked is slow.

そこで、本発明は前記従来の図形検出装置の有する問題
点を解消し、ライトペン等の選択装置を用いてエレメン
トピックを行う図形検出装置において、ライトペンで画
面に触れてエレメントピックする際の文字選択速度を速
くすることを目的としている。
SUMMARY OF THE INVENTION Therefore, the present invention solves the problems of the conventional figure detection apparatus and uses a selection device such as a light pen to pick an element. The purpose is to speed up selection speed.

〔問題点を解決するための手段〕[Means for solving problems]

前記問題点を解消する本発明の図形検出装置が第1図に
示される。
A figure detection device of the present invention that solves the above problems is shown in FIG.

第1図において、図形選択手段10は表示画面上に触れ
て表示図形を選び、図形データ発生手段30は図形デー
タメモリに格納され、存在が所定領域内に限定される図
形の中心座標及びその領域の大きさを、図形の格納順に
発生させる。カーソル発生手段40はこの図形選択手段
10が触れた画面上の座標を中心に所定サイズのカーソ
ルを発生させ、前記図形データ発生手段30からの図形
の表示領域に応じて前記カーソルサイズを変更する。そ
して、比較手段50は変更されたカーソル内に現在発生
中の図形の中心座標が含まれるか否かを判定し、図形検
出手段60はカーソル内に現在発生中の図形の中心座標
がある場合に、その図形が前記選択手段10によって選
ばれた図形であると判定する。
In FIG. 1, the figure selection means 10 selects a display figure by touching the display screen, and the figure data generation means 30 stores the center coordinates of the figure whose existence is limited within a predetermined area, and the area thereof. The size of is generated in the order in which the shapes are stored. The cursor generating means 40 generates a cursor of a predetermined size centered on the coordinates on the screen touched by the figure selecting means 10, and changes the cursor size according to the display area of the figure from the figure data generating means 30. Then, the comparison means 50 determines whether the center coordinates of the currently generated figure are included in the changed cursor, and the figure detection means 60 determines whether the center coordinates of the currently generated figure are included in the cursor. , it is determined that the figure is the figure selected by the selection means 10.

〔作 用〕[For production]

本発明の図形検出装置によれば、表示すべき複数の図形
がベクトルデータで格納された図形データメモリから読
み出した図形データを図形発生回路によりデコードして
画像メモリに格納し、これをアクセスして表示する表示
装置にライトペン等の図形選択手段で触れると、その点
を中心に所定サイズのカーソルが発生し、その中心座標
が記憶される。この状態で、前記図形データメモリに格
納された図形データの中心座標及びエレメントサイズが
表示器への表示順に選ばれ、選ばれたエレメントのサイ
ズに応じて前記カーソルサイズが変更され、選ばれた中
心座標が変更されたカーソル内に含まれればそのエレメ
ントを前記選択手段によって選ばれたエレメントと判定
する。
According to the figure detection device of the present invention, figure data read out from a figure data memory in which a plurality of figures to be displayed are stored as vector data is decoded by a figure generation circuit, stored in an image memory, and accessed. When a graphic selection means such as a light pen is touched on the display device, a cursor of a predetermined size is generated centered on that point, and its center coordinates are stored. In this state, the center coordinates and element sizes of the figure data stored in the figure data memory are selected in the order of display on the display, the cursor size is changed according to the size of the selected element, and the selected center If the coordinates are included within the changed cursor, that element is determined to be the element selected by the selection means.

〔実施例〕〔Example〕

以下添付図面を用いて本発明の実施例を詳細に説明する
が、従来と同じ部品については従来例と同じ符号を付し
である。なお、この表示装置には表示すべき複数の図形
がベクトルデータで格納された図形データメモリは図示
されていない。また、この例ではある限られた領域内に
表示される図形を文字に特定し、以後文字のエレメント
ピックについて説明する。従って、図の文字位置データ
及び文字データは、図形データメモリから読み出した図
形データに含まれるものである。
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings, in which the same parts as in the conventional example are given the same reference numerals as in the conventional example. Note that a graphic data memory in which a plurality of graphics to be displayed are stored as vector data is not shown in this display device. Furthermore, in this example, a figure displayed within a certain limited area is specified as a character, and element picking for characters will be described below. Therefore, the character position data and character data in the figure are included in the graphic data read from the graphic data memory.

第2図は本発明のエレメントピックを行える表示装置の
図形エレメント検出装置の構成の一実施例を示すブロッ
ク回路図である。なお、この表示装置には表示すべき複
数の図形がベクトルデータで格納された図形データメモ
リは図示されておらず、図の文字位置データ及び文字デ
ータは、図形データメモリから読み出した図形データに
含まれるものである。
FIG. 2 is a block circuit diagram showing an embodiment of the configuration of a graphic element detection device of a display device capable of element picking according to the present invention. Note that this display device does not show a figure data memory in which a plurality of figures to be displayed are stored as vector data, and the character position data and character data of the figures are included in the figure data read from the figure data memory. It is something that can be done.

図において1は表示する文字の中心座標x、  yをカ
ウントする文字位置カウンタ、2は文字データにより表
示する文字をベクトルの組み合わせで表わす文字ベクト
ル用CG(キャラクタ・ジェネレータ)、3は文字位置
カウンタ1と文字ベクトル用CCの出力を加算する加算
器、4は加算器3の出力または図形ベクトルの始点・終
点位置データのいずれかを端子Sに入力される文字信号
により選択するセレクタ、5は文字または図形の始点お
よび終点が与えられた時にその間に自動的に直線を引(
DDA(ディジタル微分解析器)、6はDDA5から出
力された文字または図形のデータを表示画面に対応して
記憶するビットマツプメモリ、7はビットマツプメモリ
6に記憶されたデータを読み出す続出制御器、8はD/
A変換器、9はビットマツプメモリ6に記憶されたデー
タに対応する文字または図形を表示するCRT等の表示
器であり、以上のように構成された表示装置により文字
または図形が表示器9に表示される。
In the figure, 1 is a character position counter that counts the center coordinates x and y of characters to be displayed, 2 is a character vector CG (character generator) that represents characters to be displayed using character data as a combination of vectors, and 3 is a character position counter 1. 4 is a selector that selects either the output of adder 3 or the starting point/end point position data of the graphic vector by a character signal input to terminal S; 5 is a character or When the start and end points of a shape are given, a straight line is automatically drawn between them (
DDA (digital differential analyzer); 6 is a bitmap memory that stores character or graphic data output from the DDA 5 in correspondence with the display screen; 7 is a continuous controller that reads data stored in the bitmap memory 6; 8 is D/
The A converter 9 is a display such as a CRT that displays characters or figures corresponding to the data stored in the bitmap memory 6, and the characters or figures are displayed on the display 9 by the display device configured as described above. Is displayed.

また、ライトペン10は表示器9の画面に触れることに
よってエレメントピックを行い、このライトペン10か
らのカーソルの中心位置データはカーソル位置レジスタ
11に入力される。2はセレクタであり、ライトペンl
Oにより表示器9に発生するカーソルの基本サイズ(固
定値)及びエレメントピック時に順に図形データメモリ
から選択される文字サイズのデータがこのセレクタ22
には入力されている。そして、このセレクタ22はエレ
メントピック時に選択する図形が文字である時に端子S
に入力される文字信号により、その文字サイズに応じた
カーソルサイズをカーソルサイズレジスタに出力する。
Further, the light pen 10 picks an element by touching the screen of the display 9, and the cursor center position data from the light pen 10 is input to the cursor position register 11. 2 is the selector and the light pen l
This selector 22 contains the basic size (fixed value) of the cursor generated on the display 9 by O and the character size data that is selected from the graphic data memory in order when picking an element.
has been entered. This selector 22 is connected to the terminal S when the selected figure is a character when picking an element.
A cursor size corresponding to the character size is output to the cursor size register according to a character signal input to the cursor size register.

例えば、第3図に示すように、カーソルの基本サイズが
nxnドツトである場合に、図形データメモリから選ば
れて発生した文字「冨JのサイズがmXmドツトである
とすると、セレクタ22はカーソルサイズを第4図に示
すように(n+m)X(n+m)  ドツトの大きさに
変更するためのものである。このようにして変更された
カーソルサイモ y座標側に格納される。
For example, as shown in FIG. 3, if the basic size of the cursor is nxn dots, and the size of the character "J" selected from the graphic data memory is mxm dots, then the selector 22 is set to the cursor size. This is to change the size of the dot to (n+m)X(n+m) as shown in FIG. 4.The cursor thus changed is stored on the y-coordinate side.

そして、第4図に示すようにカーソルの中心位置Pの座
標を(a、b) 、検索する文字の中心Mの座標を(g
、h) 、カーソルの右上の点Rの座標を(e、f)、
カーソルの左下の点Qの座標を(c、d)とすると、カ
ーソル位置レジスタ11からはカーソルの中心位置Pの
X座標(a)とX座標(b)とがそれぞれ別個に出力さ
れ、カーソルサイズレジスタ12からX座標方向、X座
標方向のカーソルサイズm+nの%がそれぞれ別個に出
力される。この結果、カーソル位置レジスタ11からの
カーソルの中心位置PのX座標(a)に、カーソルサイ
ズレジスタ12からのX方向のカーソルサイズm+nの
2が加算器13にて加算され、減算器14にて減算され
る。同様にカーソル位置レジスタ11からのカーソルの
中心位HpのX座標Tb)に、カーソルサイズレジスタ
12からのX方向のカーソルサイズm + nの%が加
算器15にて加算され、減算器16にて減算される。比
較するために図形データメモリから選択される文字のサ
イズmが個々に異なる場合は、このカーソルサイズレジ
スタ12に格納されるカーソルサイズn+mは、選択さ
れた文字のサイズに応じてその都度界なることになる。
Then, as shown in Figure 4, the coordinates of the center position P of the cursor are (a, b), and the coordinates of the center M of the character to be searched are (g
, h), the coordinates of the upper right point R of the cursor are (e, f),
When the coordinates of the lower left point Q of the cursor are (c, d), the cursor position register 11 outputs the X coordinate (a) and the X coordinate (b) of the center position P of the cursor separately, and the cursor size The register 12 outputs the cursor size in the X coordinate direction and the % of the cursor size m+n in the X coordinate direction separately. As a result, the adder 13 adds 2 of the cursor size m+n in the X direction from the cursor size register 12 to the X coordinate (a) of the center position P of the cursor from the cursor position register 11, and the subtracter 14 adds Subtracted. Similarly, the adder 15 adds the % of the cursor size m + n in the X direction from the cursor size register 12 to the X coordinate Tb) of the cursor center position Hp from the cursor position register 11, and the Subtracted. If the sizes m of the characters selected from the graphic data memory for comparison are different, the cursor size n+m stored in this cursor size register 12 will vary depending on the size of the selected characters. become.

この結果、加算器13の出力はライトペン10により表
示器9に現れるカーソルの右上の点RのX座標(e)、
即ち、カーソル範囲のX座標の最大値a+’A (m+
n) となり、減算器14の出力はライトペン10によ
り表示器9に現れるカーソルの左下の点QのX座標(C
)、即ち、カーソル範囲のX座標の最小値a −’A 
(m4n)となる。同様に、加算器15の出力はライト
ペン10により表示器9に現れるカーソルの右上の点R
のX座標(f)、即ち、カーソル範囲のX座標の最大値
b + ’A Cva+n)となり、減算器16の出力
はライトペン10により表示器9に現れるカーソルの左
下の点QのX座標(d)、即ち、カーソル範囲のX座標
の最小値b  ’A (m4n)となる。
As a result, the output of the adder 13 is the X coordinate (e) of the upper right point R of the cursor appearing on the display 9 by the light pen 10,
That is, the maximum value a+'A (m+
n), and the output of the subtractor 14 is the X coordinate (C
), that is, the minimum value a -'A of the X coordinate of the cursor range
(m4n). Similarly, the output of the adder 15 is the upper right point R of the cursor appearing on the display 9 by the light pen 10.
is the X coordinate (f) of d), that is, the minimum value b'A (m4n) of the X coordinate of the cursor range.

更に、第2図の表示装置における17.1B、 19.
20は2つの入力A、Bの大小を比較するコンパレータ
である。コンパレータ17.19はA≦Bか否かを比較
してA≦Bの時にハイレベル信号“H”を出力し、コン
パレータ18,20はA≧Bか否かを比較してA≧Bの
時にハイレベル信号“H″を出力するようになっている
。コンパレータ17.18の入力Aには文字位置カウン
タ1からのX出力、即ち、現在発生中の図形の中心位置
MのX座標(幻が入力され、コンパレータ19,20の
入力Aには文字位置カウンタ1からのX出力、即ち、現
在発生中の図形の中心位置MのX座標(h)が入力され
る。また、加算器13、減算器14.加算器15.減算
器16の出力はそれぞれコンパレータ17.18.19
.20の入力Bに入力される。
Furthermore, 17.1B, 19. in the display device of FIG.
20 is a comparator that compares the magnitude of two inputs A and B. Comparators 17 and 19 compare whether A≦B and output a high level signal “H” when A≦B, and comparators 18 and 20 compare whether A≧B or not and output a high level signal “H” when A≧B. It outputs a high level signal "H". The input A of the comparators 17 and 18 receives the X output from the character position counter 1, that is, the X coordinate (phantom) of the center position M of the currently generated figure, and the input A of the comparators 19 and 20 receives the The X output from 1, that is, the X coordinate (h) of the center position M of the figure currently being generated is input.In addition, the outputs of adder 13, subtracter 14, adder 15, and subtracter 16 are each input to a comparator. 17.18.19
.. It is input to input B of 20.

コンパレータ17.18は、カーソルのX方向の領域内
(C≦X≦e)に現在発生中の文字の中心点のX座標(
沿が入っているか否かを判定するものであり、コンパレ
ータ19.20はカーソルのX方向の領域内(d≦y≦
f)に現在発生中の文字の中心点のX座標(h)が入っ
ているか否かを判定するものである。そして、カーソル
のX方向の領域内(C≦X≦e)に現在発生中の文字の
中心点のX座標(g)が入っている時(コンパレータ1
7でg≦e且つコンパレータ18でg≧C)はコンパレ
ータ17.18に共にハイレベル出力“■”があり、カ
ーソルのX方向の領域内(d≦y≦f)に現在発生中の
文字の中心点のX座標(h)が入っている時は(コンパ
レータ19でh≦f且つコンパレータ20でh≧d)コ
ンパレータ19.20に共にハイレベル出力“H”があ
る。
Comparators 17 and 18 calculate the X coordinate (
Comparators 19 and 20 determine whether the cursor is within the area in the X direction (d≦y≦
It is determined whether f) contains the X coordinate (h) of the center point of the character currently being generated. When the X coordinate (g) of the center point of the currently generated character is within the area of the cursor in the X direction (C≦X≦e) (comparator 1
7, g≦e and comparator 18, g≧C), both comparators 17 and 18 have a high level output “■”, and the currently occurring character is in the area in the X direction of the cursor (d≦y≦f). When the X coordinate (h) of the center point is entered (h≦f in comparator 19 and h≧d in comparator 20), both comparators 19 and 20 have high level outputs “H”.

21はAND回路であり、コンパレータ17.18.1
9゜20の出力及びカーソル有無信号が入力されている
21 is an AND circuit, and comparators 17.18.1
A 9°20 output and a cursor presence/absence signal are input.

そして、AND回路21はコンパレータ17.18.1
9.20に全てハイレベル出力“H”があり、カーソル
有無信号がハイレベル“H″でカーソル有りを示す時に
のみ、ハイレベルの出力“■”(ヒツト信号)を出力す
る。そして、本発明の図形検出装置はこのヒツト信号が
あった時に発生中の図形データメモリからの文字を、ラ
イトペン10によってピックアップされた文字と判定す
る。
And the AND circuit 21 is a comparator 17.18.1
There is a high-level output "H" at all of 9.20, and a high-level output "■" (hit signal) is output only when the cursor presence/absence signal is high level "H" and indicates the presence of a cursor. Then, the graphic detection device of the present invention determines the character being generated from the graphic data memory when this hit signal is received as the character picked up by the light pen 10.

以上説明したように、従来の図形検出装置ではライトペ
ン10によって指定されたカーソル内にある文字を選択
するのに、図形データメモリから文字データを、表示器
9に表示された文字の順に1つずつセレクタ4で選び、
その出力をDDA5で処理して実際に1つずつ文字を発
生させてあたかもビットマツプメモリに書き込むような
動作をして、発生させた文字データを4つのコンパレー
タ17、18.19.20に振り分け、この文字を構成
するベクトルがカーソル内に入っているか否かの比較判
定を行っていたが、この実施例では図形データメモリか
らの文字データは文字の中心座標のみであり、この座標
が図形データメモリから選択した文字のサイズに合わせ
て拡大補正したカーソル内に含まれるか否かを4つのコ
ンパレータ17.1B、 19.20で検出するのみで
あるので、ライトペン10で画面に触れてから実際にラ
イトペン10で指示された文字がエレメントピックされ
るまでの選択速度が速いという、効果がある。
As explained above, in order to select a character within the cursor specified by the light pen 10, in the conventional figure detection device, character data is read from the figure data memory one by one in the order of the characters displayed on the display 9. Select each with selector 4,
The output is processed by the DDA 5 to actually generate characters one by one, as if writing them to a bitmap memory, and the generated character data is distributed to four comparators 17, 18, 19, and 20. A comparison was made to determine whether the vectors constituting this character were within the cursor, but in this embodiment, the character data from the graphic data memory is only the center coordinates of the character, and these coordinates are stored in the graphic data memory. Since the four comparators 17.1B and 19.20 only detect whether or not the text is included in the cursor that has been enlarged and corrected according to the size of the character selected from This has the effect that the selection speed until a character specified with the light pen 10 is picked as an element is fast.

なお、前記実施例では文字を検索する例について説明し
たが、本発明の装置によれば、表示領域がある領域に限
定される図形に対しても同様に短時間で検索を行うこと
ができる。
In the above embodiment, an example of searching for characters has been described, but according to the apparatus of the present invention, it is possible to similarly search for graphics whose display area is limited to a certain area in a short time.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明の図形検出装置によれば、ラ
イトペン等の図形選択手段を用いてエレメントピックを
行う図形検出装置において、ライトペンで画面に触れて
エレメントピックする際の文字選択速度を速くすること
ができるという効果がある。
As explained above, according to the figure detection device of the present invention, in a figure detection device that picks an element using a figure selection means such as a light pen, the character selection speed when picking an element by touching the screen with the light pen can be improved. This has the effect of making it faster.

【図面の簡単な説明】 第1図は本発明の図形検出装置の原理ブロック図、第2
図は本発明の図形検出装置の一実施例の構成を示す構成
図、第3図はエレメントピックを行う文字と画面上に表
示されるカーソルの関係を示す説明図、第4図はエレメ
ントピックを行う文字のサイズとこの文字サイズに応じ
て補正されたカーソルの領域を示す説明図、第5図は従
来の図形検出装置の一例の構成を示す構成図である。 1・・・文字位置カウンタ、 2・・・文字ベクトル用キャラクタ・ジェネレータ、1
0・・・ライトペン、 11・・・カーソル位置レジス
タ、12・・・カーソルサイズレジスタ、 17.18.19.20・・・コンパレータ、22・・
・セレクタ。
[Brief explanation of the drawings] Fig. 1 is a principle block diagram of the figure detection device of the present invention, Fig. 2 is a block diagram of the principle of the figure detection device of the present invention;
The figure is a block diagram showing the configuration of an embodiment of the figure detection device of the present invention, FIG. 3 is an explanatory diagram showing the relationship between the character for element picking and the cursor displayed on the screen, and FIG. FIG. 5 is an explanatory diagram showing the character size to be detected and the cursor area corrected according to the character size. FIG. 5 is a configuration diagram showing the configuration of an example of a conventional figure detection device. 1...Character position counter, 2...Character generator for character vector, 1
0...Light pen, 11...Cursor position register, 12...Cursor size register, 17.18.19.20...Comparator, 22...
·selector.

Claims (1)

【特許請求の範囲】 表示すべき複数の図形がベクトルデータで格納された図
形データメモリから読み出した図形データを図形発生回
路によりデコードして画像メモリに格納し、これをアク
セスして表示する表示装置における、存在が所定領域内
に限定される図形の検出装置であって、 表示画面上に触れて表示図形を選ぶ図形選択手段(10
)と、 前記図形データメモリに格納され、存在が所定領域内に
限定される図形の中心座標及びその領域の大きさを、図
形の格納順に発生させる図形データ発生手段(30)と
、 前記図形選択手段(10)が触れた画面上の座標を中心
に所定サイズのカーソルを発生させ、前記図形データ発
生手段(30)からの図形の表示領域の大きさに応じて
前記カーソルサイズを変更するカーソル発生手段(40
)と、 変更されたカーソル内に現在発生中の図形の中心座標が
含まれるか否かを判定する比較手段(50)と、 カーソル内に現在発生中の図形の中心座標がある場合に
、その図形が前記選択手段(10)によって選ばれた図
形であると判定する図形検出手段(60)と、 を備えた図形検出装置。
[Claims] A display device that uses a graphic generation circuit to decode graphic data read from a graphic data memory in which a plurality of graphics to be displayed are stored as vector data, stores the decoded data in an image memory, and accesses and displays the data. A detection device for a figure whose existence is limited to a predetermined area, comprising figure selection means (10) for selecting a display figure by touching the display screen.
), a figure data generating means (30) for generating the center coordinates and the size of the area of a figure which is stored in the figure data memory and whose existence is limited to a predetermined area in the order in which the figure is stored; and the figure selector. cursor generation for generating a cursor of a predetermined size centered on the coordinates on the screen touched by the means (10), and changing the cursor size according to the size of the display area of the figure from the figure data generating means (30); Means (40
), a comparing means (50) for determining whether or not the center coordinates of the currently generated figure are included in the changed cursor; A figure detection device comprising: figure detection means (60) for determining that a figure is a figure selected by the selection means (10).
JP62312030A 1987-12-11 1987-12-11 Figure detector Pending JPH01154192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62312030A JPH01154192A (en) 1987-12-11 1987-12-11 Figure detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62312030A JPH01154192A (en) 1987-12-11 1987-12-11 Figure detector

Publications (1)

Publication Number Publication Date
JPH01154192A true JPH01154192A (en) 1989-06-16

Family

ID=18024375

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62312030A Pending JPH01154192A (en) 1987-12-11 1987-12-11 Figure detector

Country Status (1)

Country Link
JP (1) JPH01154192A (en)

Similar Documents

Publication Publication Date Title
JP3161536B2 (en) How to move the displayed image
CA1220582A (en) Method and apparatus for continuously updating a display of the coordinates of a light pen
JPH01161481A (en) Display
US5020002A (en) Method and apparatus for decomposing a quadrilateral figure for display and manipulation by a computer system
JPS63123166A (en) Correlation of cursor and entity
JP2626528B2 (en) Figure recognition device
JP3357760B2 (en) Character / graphic input editing device
JPH01154192A (en) Figure detector
US5471536A (en) Figure digitizing system
JPS642953B2 (en)
JPS61194571A (en) Graphic recognition mode
JPH0683525A (en) Method and device for controlling coordinate input
KR100234337B1 (en) Method of generating the multi-line in the graphic image processing
KR950012266A (en) Triangular interpolator and search method for fast pong cat drawing
JP2536948B2 (en) Three-point specified circular arc detection method and device
JPH07121730A (en) Circle plotting device
CN117555465A (en) Graphic display method and graphic display device for display equipment
JPH03287297A (en) Character generating circuit
JPH0424748B2 (en)
CN114820876A (en) Method, device and equipment for processing outline effect of characters and storage medium
JPH0581948B2 (en)
JP2012123742A (en) Information processing apparatus and method for operating the same
JPH04112379A (en) Image endpoint retracking method
JPH02146681A (en) Contour line extracting system
EP0163872A2 (en) Method of correlating on straight lines in an interactive display system