JPH01233482A - Cursor movement control system - Google Patents
Cursor movement control systemInfo
- Publication number
- JPH01233482A JPH01233482A JP63060775A JP6077588A JPH01233482A JP H01233482 A JPH01233482 A JP H01233482A JP 63060775 A JP63060775 A JP 63060775A JP 6077588 A JP6077588 A JP 6077588A JP H01233482 A JPH01233482 A JP H01233482A
- Authority
- JP
- Japan
- Prior art keywords
- cursor
- coordinates
- window
- time
- hit
- 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
Links
Landscapes
- Digital Computer Display Output (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔概 要〕
グラフィックデイスプレィ装置におけるカーソル移動制
御方式に関し、
表示図形に影響されることなく、カーソルを高速で更新
できるようにすることを目的とし、所定周期ごとに表示
されるカーソルにより、表示された図形のヒツト検出を
行うに際し、前記カーソルの現在の座標(Xi、Yt
)に対して所定寸法のウィンドウCW+ )を設定し、
該カーソルの現在の座標に対して設定されたウィン1つ
内に1周期前のカーソルの座標が存在するが否かを調べ
るカーソル検出を行い、カーソルが検知されない場合に
は、図形のヒツト検出を行わずにカーソル座標を更新し
て次周期のカーソル位置におけるカーソル検出を行い、
カーソルが検知された場合には、図形のヒツト稜出を開
始するよう構成した。[Detailed Description of the Invention] [Summary] Regarding a cursor movement control method in a graphic display device, the purpose is to update the cursor at high speed without being affected by the displayed figure, and to update the cursor at a predetermined period. When performing hit detection of the displayed figure using the cursor displayed, the current coordinates (Xi, Yt
), set a window CW+ ) of a predetermined size for
Performs cursor detection to check whether or not the coordinates of the cursor one cycle ago exist within one win set for the current coordinates of the cursor, and if the cursor is not detected, performs figure hit detection. The cursor coordinates are updated without doing this, and the cursor is detected at the cursor position in the next cycle.
The configuration is such that when the cursor is detected, the hit edge of the figure starts.
本発明はグラフィックデイスプレィ装置におけるカーソ
ル移動制御方式に関する。The present invention relates to a cursor movement control method in a graphic display device.
従来のカーソル表示による図形のヒツト検出は、図形を
デイスプレィ上に表示するプログラムを常に解析しなが
ら、カーソルの検出範囲に図形が有るか無いかの判定を
している。そのため目的の図形へカーソルを移動してい
る途中で、カーソルが上記目的の図形とは異なる他の図
形の上を通った時、その図形もヒツト検出の対象となっ
てしまうという問題もあり、更に、対象図形以外の図形
をも常に解析しているため、無駄な時間を費やすことと
なる。In conventional graphic hit detection using a cursor display, a program for displaying a graphic on a display is constantly analyzed to determine whether a graphic is present in the detection range of the cursor. Therefore, when the cursor passes over another figure different from the above-mentioned target figure while moving the cursor to the target figure, there is a problem that that figure will also be subject to hit detection. , since shapes other than the target shape are constantly being analyzed, time is wasted.
以下上記従来のカーソル制御方式を第5図により説明す
る。同図の2はデイスプレィプログラムで、デイスプレ
ィプログラムカウンタ1により指示されるアドレスに基
づいて逐次実行される。3は北記デイスプレィプログラ
ムの解析部である。The conventional cursor control method described above will be explained below with reference to FIG. Reference numeral 2 in the figure indicates a display program, which is executed sequentially based on the address indicated by the display program counter 1. 3 is the analysis section of the Hokuki display program.
この構成は本発明とは直接関係しないので、この3者を
もって、1つのデイスプレィプログラムと考えても差し
支えない。従って以後説明を簡単化するため、上記3者
をまとめて単に描画プログラムと略称することとする。Since this configuration is not directly related to the present invention, it is safe to consider these three components as one display program. Therefore, in order to simplify the explanation hereinafter, the above three programs will be simply referred to as a drawing program.
4は微分解析器(DDA)で、上記プログラムから出力
されたベクトルデータに基づいて、描画すべき線分を構
成するすべての点の、X及びX座標の値(これをPx、
Pyとする)を出力する。4 is a differential analyzer (DDA), which calculates the X and X coordinate values (Px,
Py) is output.
このX座標、X座標の値は、ビットマツプメモリ5に送
られるとともに、X座標Pxはコンパレータ9a、9b
のa端子に、Y座標pyはコンパレータ9c、9dのa
端子に送出される。The values of the X coordinate and the X coordinate are sent to the bitmap memory 5, and the X coordinate Px is sent to the comparators 9a and 9b.
The Y coordinate py is the a terminal of the comparators 9c and 9d.
sent to the terminal.
一方、カーソル位置データ即ちカーソルの中心位置座標
XおよびYは、−旦カーソル位置レジスタ6にセットさ
れ、これとカーソルサイズレジスタ7にセットされたカ
ーソルサイズΔX、Δyが加算回路88〜8dで加減算
され、カーソル検出用のウィンドウの右上と左下の点の
座標Xmax、 Xm1n。On the other hand, the cursor position data, ie, the center position coordinates X and Y of the cursor, are set in the cursor position register 6 -1, and this and the cursor sizes ΔX and Δy set in the cursor size register 7 are added and subtracted by addition circuits 88 to 8d. , coordinates Xmax, Xm1n of the upper right and lower left points of the window for cursor detection.
Ymax、 Yminが算出され、上記コンパレータ9
a〜9dのb端子に入力される。Ymax and Ymin are calculated, and the comparator 9
It is input to the b terminals of a to 9d.
このXmax、 Xm1n+ Ymax+ Yminと
上記描画すべき点の座標としてa端子に入力されたPx
、Pyとが、各コンパレータ9a〜9dで比較され、X
max >Px >Xmin
Ymax > P y > Ymin
であれば、当該点はウィンドウの中に存在することとな
り、4個のコンパレータ9a〜9dのすべてから“1°
が出力される。This Xmax, Xm1n+ Ymax+ Ymin and Px input to the a terminal as the coordinates of the point to be drawn above.
, Py are compared by each comparator 9a to 9d, and
If max > Px > Xmin Ymax > P y > Ymin, the point exists within the window, and all four comparators 9a to 9d
is output.
この時、ヒツト検出部10を構成するAND回路の入力
はすべて°1°となり、しかも図示はしていないが、ラ
イトベン有/無信号が“有°であれば、対象図形がカー
ソルでヒツトされたことを示すヒツト検出信号が出力さ
れる。At this time, all the inputs of the AND circuit constituting the hit detection section 10 are 1 degree, and although it is not shown in the figure, if the light ben presence/absence signal is "yes", the target figure has been hit by the cursor. A hit detection signal indicating this is output.
このようにして対象図形がヒツトされるまで、順次次の
カーソル位置に対して同様の処理を続行する。In this way, similar processing is continued for successive cursor positions until the target figure is hit.
従来は以上のような処理を、デイスプレィプログラムを
解析することにより、表示画面上のすべての図形に対し
て行なっていた。かかる処理をライトペンで指定した位
置に発生させたカーソルを、対象図形の位置まで移動す
る経路上で繰り返し行うので無駄な時間が係り、図形が
多くなるほどこの時間が長くなる。Conventionally, the above-described processing has been performed on all figures on the display screen by analyzing the display program. This process is repeatedly performed on a path in which a cursor generated at a position specified by a light pen is moved to the position of a target figure, which results in wasted time, and this time becomes longer as the number of figures increases.
〔発明が解決しようとする課題]
と述した如く、従来のカーソル制御方式では、カーソル
更新に要する時間の中に、表示図形の解析に要する時間
を含む。そして、カーソル位置を更新するごとに図形解
析を行って、対象図形とカーソル位置が一致するまでこ
れを繰り返す。そのため、表示されている図形の量によ
ってカーソル更新に要する時間が異なり、これがカーソ
ルの更新に長時間を要するばかりでな(、この時間を不
定にしており、カーソルの追従性と対照図形のスムーズ
なヒツト検出を阻害している。[Problems to be Solved by the Invention] As described above, in the conventional cursor control method, the time required to update the cursor includes the time required to analyze the displayed graphic. Then, a graphic analysis is performed every time the cursor position is updated, and this is repeated until the target graphic and the cursor position match. Therefore, the time required to update the cursor differs depending on the amount of shapes being displayed, which not only makes it take a long time to update the cursor (this time is undefined, but also improves the tracking ability of the cursor and the smoothness of the contrast shape). It inhibits human detection.
この現象は、グラフィックデイスプレィのように、特に
多量の図形を表示するような場合に著しく問題となって
いる。This phenomenon becomes a serious problem especially in cases where a large number of figures are displayed, such as in a graphic display.
なお、ヒツト検出処理とは、カーソル座標に対する検出
窓の中に、図形が有るか無いかをプログラムを解析しな
がら判定することを言う。Note that the hit detection process refers to determining whether a figure exists or not within the detection window corresponding to the cursor coordinates while analyzing the program.
本発明は、表示図形に影響されることなく、カーソルを
高速で更新できるようにすることを目的とする。An object of the present invention is to enable a cursor to be updated at high speed without being affected by displayed graphics.
本発明はカーソル移動中にその移動量が所定値より大き
い場合には、図形解析データとカーソルとの比較を停止
して、カーソルによる図形のヒツト検出を行わずにカー
ソルの更新のみを実行し、カーソル座標の変化量が上記
所定値以下になったとき、図形解析データとカーソルと
の比較を再開して、対象図形のヒツト検出を行うように
したものである。According to the present invention, if the amount of movement of the cursor is larger than a predetermined value while the cursor is moving, the comparison between the figure analysis data and the cursor is stopped, and the cursor is only updated without detecting a figure hit by the cursor. When the amount of change in the cursor coordinates becomes equal to or less than the predetermined value, the comparison between the graphic analysis data and the cursor is restarted to detect hits in the target graphic.
F配本発明に係るカーソル制御方式は、第1図に示す如
く、移動中のカーソル位置を一定時間ごとにセットする
。同図の■〜■は(一画面生成に要する時間Xn、但し
n=1.2,3. ・・)で表されるカーソル検出周
期毎の時刻t、〜t4におけるカーソル位置を示す。こ
のカーソル位置座標を(X、、Yi)とする。ここでi
=1〜4である。As shown in FIG. 1, the cursor control method according to the present invention sets the position of the moving cursor at regular intervals. In the same figure, ■ to ■ indicate the cursor positions at times t to t4 for each cursor detection period, expressed as (the time required to generate one screen Xn, where n=1.2, 3, . . . ). Let this cursor position coordinate be (X, , Yi). Here i
=1 to 4.
上記各時刻におけるカーソル位置(X4.Yi)を中心
とする一定の大きさのウィンドウWiを設定する。同図
では点線で示す如く、このウィンドウW1を(X+ ±
Δχ、Yt±Δy)の正方形とした。A window Wi of a constant size centered at the cursor position (X4.Yi) at each of the above times is set. In the figure, as shown by the dotted line, this window W1 is (X+ ±
Δχ, Yt±Δy).
いま、移動中のカーソルが時刻t、において■の位置に
セットされ、次いで一定時間後の時刻t2においては■
の位置にセットされたものとする。Now, the moving cursor is set to the position of ■ at time t, and then after a certain period of time at time t2, it is set to ■.
Assume that it is set at the position.
この両者間の距離を調べるのであるが、その方法として
例えば、時刻t2におけるウィンドウW2と、時刻t1
におけるカーソル位置とを比較し、■の座標(X、、Y
i’)が■におけるウィンドウW2内に含まれるか否か
を調べる。図示の例では含まれていないので、カーソル
は所定距離以上移動したものとして、同様の検出処理を
時刻t3゜t4において実行する。The distance between these two is investigated, and the method for doing so is, for example, using the window W2 at time t2 and the window W2 at time t1.
The coordinates of ■ (X, , Y
Check whether or not i') is included in the window W2 in ■. Since it is not included in the illustrated example, similar detection processing is executed at times t3 to t4 on the assumption that the cursor has moved a predetermined distance or more.
時刻t4においては時刻t、におけるカーソル座標(x
l、Y3 )がウィンドウW4内に含まれているので、
カーソルの移動量は所定値以下となったことが検知され
る。この場合には、カーソル移動はほぼ終了し、目的と
する対象図形に近づいたものとして、図形解析データと
カーソルとの比較を再開して、ヒツト検出を行う。At time t4, the cursor coordinates (x
l, Y3) is included in window W4, so
It is detected that the amount of movement of the cursor has become less than a predetermined value. In this case, it is assumed that the cursor movement has almost finished and the target figure has been approached, and the comparison between the figure analysis data and the cursor is restarted to perform hit detection.
〔作 用]
カーソル移動量が所定値より大きい場合には、カーソル
が対象図形に到達せずに移動中であるとして、図形解析
データとカーソル座標データとの比較を行わず、カーソ
ル位置データのみを順次更新する。従って従来表示図形
データ解析に要していた時間が不要となるので、カーソ
ル更新時間は表示図形の量に無関係となり、カーソル更
新が高速化する。[Function] If the cursor movement amount is larger than a predetermined value, it is assumed that the cursor is moving without reaching the target shape, and only the cursor position data is used without comparing the shape analysis data and cursor coordinate data. Update sequentially. Therefore, the time conventionally required to analyze displayed graphic data is no longer necessary, so the cursor update time becomes independent of the amount of displayed graphics, and the cursor is updated faster.
以下本発明の一実施例を第2図を参照しながら説明する
。An embodiment of the present invention will be described below with reference to FIG.
本実施例では前記第5図に示す従来の構成に対し、第2
のカーソル位置レジスタ11と、2個のセレクタ12a
、12bとを付設し、更にヒツト検出部10をAND回
路13.14.15およびインバータ16により構成し
た。In this embodiment, in contrast to the conventional configuration shown in FIG.
cursor position register 11 and two selectors 12a
, 12b are attached, and the hit detection section 10 is further composed of AND circuits 13, 14, 15 and an inverter 16.
第1のカーソル位置レジスタ6には従来と同様に、セッ
トされた現在のカーソルの位置座標Xi。The first cursor position register 6 contains the set current cursor position coordinates Xi, as in the conventional case.
Ylを格納し、その一つ前のカーソル位置座標のX、−
、、Yi−、を第2のカーソル位置レジスタ11に格納
する。Yl is stored, and the coordinates of the previous cursor position are X, -
, ,Yi-, are stored in the second cursor position register 11.
セレクタ12a、12bは選択信号に基づいて、DDA
4から出力されるデータ(以後これを図形解析データと
記す)と第2のカーソル位置レジスタ11から出力され
るX、Y座標とのいずれか一方を、択一的にコンパレー
タ9a〜9dのa端子に送出するための選択手段である
。本実施例では選択信号としてデイスプレィ・プログラ
ム・ビジー信号を用い、これが“1゛の時はセレクタ1
2a、 12bは図形解析データを、 “0”の時はカ
ーソル位置レジスタ11の出力を選択するよう構成して
おく。The selectors 12a and 12b select the DDA based on the selection signal.
4 (hereinafter referred to as figure analysis data) and the X, Y coordinates output from the second cursor position register 11, the a terminals of the comparators 9a to 9d are selectively used. This is a selection means for sending to. In this embodiment, the display program busy signal is used as the selection signal, and when this signal is "1", the selector 1 is
2a and 12b are graphic analysis data, and when they are "0", the output of the cursor position register 11 is selected.
ヒツト検出部10は従来はAND回路13のみで構成し
ていたのを、AND回路13の出力と上記選択信号との
論理積演算を行うAND回路14.およびAND回路1
3の出力と上記選択信号をインバータ16で反転した信
号との論理積演算を行うAND回路15とをもって構成
し、AND回路14の出力をヒツト検出信号とし、AN
D回路15の出力をデイスプレィ・プログラム・カウン
タ1およびデイスプレィ・プログラム解析部3.即ち描
画プログラムを停止させるための停止信号とする。この
停止信号が出力されている間は、描画プログラムは動作
を停止し、AND回路14の一方の入力である選択信号
が0′となるので、ヒツト検出信号が出力されることは
ない。The hit detection section 10 conventionally consisted of only an AND circuit 13, but instead of an AND circuit 14 which performs an AND operation between the output of the AND circuit 13 and the selection signal. and AND circuit 1
3 and an AND circuit 15 that performs a logical product operation of the selection signal and a signal inverted by an inverter 16, and the output of the AND circuit 14 is used as a hit detection signal, and the
The output of the D circuit 15 is sent to the display program counter 1 and the display program analysis section 3. In other words, it is a stop signal for stopping the drawing program. While this stop signal is being output, the drawing program stops operating and the selection signal, which is one input of the AND circuit 14, becomes 0', so no hit detection signal is output.
その他の構成は前記第2図に示す従来の構成と変わると
ころはない。Other configurations are the same as the conventional configuration shown in FIG. 2.
以上の如く構成した本実施例の動作を、第1図および第
2図を参照して説明する。The operation of this embodiment configured as described above will be explained with reference to FIGS. 1 and 2.
通常の描画時には選択信号は1°であるので、セレクタ
12a、12bはDDA4から出力された図形解析デー
タをビットマツプメモリ5に出力するとともに、コンパ
レータ9a、9b、9c、9dに送出スる。During normal drawing, the selection signal is 1°, so the selectors 12a, 12b output the graphic analysis data output from the DDA 4 to the bitmap memory 5, and also to the comparators 9a, 9b, 9c, 9d.
ビットマツプメモリ5に全データを書き込んだ後、デー
タに変化がない場合には、描画プログラムは動作を停止
し、選択信号は“0′となる。従ってAND回路14の
出力は°0°、即ちヒツト検出信号は出力されない。ま
たライトペン(図示せず)を画面に押しあててカーソル
を表示させるまでは、ライトペン有/無信号が’0’(
’無°を示す)であるので、AND回路15の出力、即
ち停止信号も0′となり、カーソル更新モードとなる。After writing all the data to the bitmap memory 5, if there is no change in the data, the drawing program stops operating and the selection signal becomes "0".Therefore, the output of the AND circuit 14 is 0°, that is. The hit detection signal is not output.Also, until the light pen (not shown) is pressed against the screen to display the cursor, the light pen presence/absence signal will be '0' (
Since the output of the AND circuit 15, ie, the stop signal, is also 0', the cursor update mode is entered.
なおこのモードになっても、画面上の図形表示は続行さ
れている。Note that even in this mode, the graphic display on the screen continues.
DDA4から図形解析データが出力されている間でも、
ライトペンが表示画面に押しつけられると、カーソル位
置セット信号に同期して、その時点のカーソル位置がカ
ーソル位置レジスタ6にセットされ、セットされた座標
値に基づいて算出されたウィンドウと、DDAから出力
された上記図形解析データとがコンパレータ9a〜9d
において比較される。しかしこのデータは通常ウィンド
ウ内に存在しないので、AND回路15の出力即ち停止
信号が°0゛となって描画プログラムの動作を停止させ
る。そのため選択信号が°0°となり、カーソル更新モ
ードに入る。Even while the graphic analysis data is being output from DDA4,
When the light pen is pressed against the display screen, the cursor position at that point is set in the cursor position register 6 in synchronization with the cursor position set signal, and the window calculated based on the set coordinate values and output from the DDA The above-mentioned graphical analysis data obtained by
compared in. However, since this data does not normally exist within the window, the output of the AND circuit 15, that is, the stop signal becomes 0, and the operation of the drawing program is stopped. Therefore, the selection signal becomes 0°, and the cursor update mode is entered.
カーソル更新モードにおいて、カーソルが目的とする対
象図形に向かって移動して行くと、〔一画面生成に要す
る時間〕×n(但しn=1.2゜3、・・)で表される
カーソル検出周期毎に出力されるカーソル位置セット信
号に同期して、カーソル位置レジスタ6に各時刻t、に
おけるカーソル位置(Xi 、Yt )がセットされる
。In the cursor update mode, when the cursor moves toward the target figure, the cursor is detected as expressed by [time required to generate one screen] x n (where n = 1.2°3,...) The cursor position (Xi, Yt) at each time t is set in the cursor position register 6 in synchronization with the cursor position set signal outputted every cycle.
上記座標値に対し、カーソルサイズレジスタ7に予めセ
ットされているカーソルの大きさ(ΔX。For the above coordinate values, the cursor size (ΔX) is preset in the cursor size register 7.
Δy)が、加算器8a、8cで加算、 8b、8dで減
算され、それぞれコンパレータ9a〜9dのb端子に送
出される。Δy) is added by adders 8a and 8c, subtracted by adders 8b and 8d, and sent to the b terminals of comparators 9a to 9d, respectively.
選択信号が°0゛となると、セレクタ12a、12bは
図形解析データに変えて、カーソル位置レジスタ11の
出力を取り込む状態になっている。When the selection signal becomes 0, the selectors 12a and 12b are in a state of taking in the output of the cursor position register 11 instead of the graphic analysis data.
カーソル位置レジスタ11にはカーソル位置セット信号
に同期して、カーソル位置レジスタ6にセットされてい
た位置座標が転送される。即ちカーソル位置レジスタ6
には時刻も、における位置座標(Xi 、Yi)がセッ
トされている時、カーソル位置レジスタ11には時刻t
i−1のカーソル位置座標(Xi−1,Yt−、)がセ
ットされている。The position coordinates set in the cursor position register 6 are transferred to the cursor position register 11 in synchronization with the cursor position set signal. That is, cursor position register 6
When the position coordinates (Xi, Yi) are set, the time t is set in the cursor position register 11.
The cursor position coordinates of i-1 (Xi-1, Yt-,) are set.
従って、コンパレータ9a〜9dのb端子には、時刻t
、におけるウィンドウw五の4隅の座標X i#mX+
X i#i*+ Y i@IjX+ Y 1m1nが
入力され、b端子には時刻j i−1におけるカーソル
の位置座標(X、−、。Therefore, the b terminals of the comparators 9a to 9d have the time t.
The coordinates of the four corners of window w5 in , X i#mX+
X i#i*+ Y i@IjX+ Y 1m1n is input, and the position coordinates of the cursor at time j i-1 (X, -,.
Yt−9)が入力され、(Xi−+、Yt−+ )が現
時点のウィンドウW8内にあるか否かが検知される。Yt-9) is input, and it is detected whether (Xi-+, Yt-+) is within the current window W8.
時刻も、−8におけるカーソルの位置座標(Xi−r+
Yi−、)が現時点のウィンドウwi内に存在しない場
合には、AND回路13の出力は“0゛となるので、ヒ
ツト検出は行われず、停止信号も“0゜のままである。The time is also the position coordinate of the cursor at -8 (Xi-r+
Yi-, ) does not exist within the current window wi, the output of the AND circuit 13 becomes "0", so no hit detection is performed and the stop signal also remains at "0".
従ってカーソル更新モードが継続し、描画プログラムの
解析は行われず、カーソル更新のみが実行される。これ
は、カーソルの移動距離が大きいので、カーソルは移動
中と判断される場合である。Therefore, the cursor update mode continues, no analysis of the drawing program is performed, and only cursor updates are executed. This is a case where the cursor is determined to be moving because the cursor has moved a long distance.
時刻も、−1におけるカーソルの位置座標(Xi−、。The time is also the position coordinate of the cursor at -1 (Xi-,.
Y+−5)が現時点のウィンドウW正内に存在する場合
には、AND回路13の出力は1°となるので、AND
回路15の出力即ち停止信号は1°となり、描画プログ
ラムの解析が再開され、選択信号は“1゛ となるので
、セレクタ12a、 12bは図形解析データ側に切り
替わり、カーソル更新モードは終了する。これは前記第
1図の時刻t4の状態であって、ウィンドウ内4内に、
時刻り、におけるカーソルの位置(同図の■)が存在す
る。この場合には時刻t、から時刻t4までの間のカー
ソル移動量は、ごく僅かであって、これは目的とする対
象図形に近づいたのでカーソルはほぼ停止したものとみ
なし、対象図形のヒツト検出を実行すべく、描画プログ
ラムの解析を行うモードに切り替える。If Y+-5) exists within the current window W, the output of the AND circuit 13 will be 1°, so the AND
The output of the circuit 15, that is, the stop signal becomes 1°, the analysis of the drawing program is restarted, and the selection signal becomes "1", so the selectors 12a and 12b switch to the figure analysis data side, and the cursor update mode ends. is the state at time t4 in FIG. 1, and within window 4,
There is a cursor position (■ in the figure) at the time mark. In this case, the amount of cursor movement from time t to time t4 is very small, and since it has approached the desired target figure, it is assumed that the cursor has almost stopped, and the hit detection of the target figure is performed. In order to execute this, switch to the mode that analyzes the drawing program.
このモードにおいては従来と同様に、図形解析データが
その時点のウィンドウWと比較され、対象図形がウィン
ドウ内に存在すれば、AND回路14からヒツト検出信
号が出力される。In this mode, as in the conventional case, the figure analysis data is compared with the window W at that time, and if the target figure exists within the window, the AND circuit 14 outputs a hit detection signal.
以上述べた如く本実施例においては、カーソルが移動中
であるときは、デイスプレィプログラムカウンタ1やデ
イスプレィプログラム解析部3を停止させ、描画プログ
ラムの解析を中断する。従ってこのモードではカーソル
座標は描画図形の量などに影響されることなく、一定時
間ごとにその更新を行う。第3図は実施例のカーソル更
新モードにおけるデータの流れを示す図で、図の太線の
二重線がカーソル更新モードにおけるデータの流れであ
る。As described above, in this embodiment, when the cursor is moving, the display program counter 1 and the display program analysis section 3 are stopped to interrupt the analysis of the drawing program. Therefore, in this mode, the cursor coordinates are updated at regular intervals without being affected by the amount of figures to be drawn. FIG. 3 is a diagram showing the flow of data in the cursor update mode of the embodiment, and the thick double line in the figure is the flow of data in the cursor update mode.
次にカーソルが停止したと判断した場合は、デイスプレ
ィプログラムカウンタ1頭の動作を再開し、セレクタは
図形解析データを選択し、対象図形のヒツト検出を行う
。この場合のデータの流れを第4図に太線の二重線で示
す。Next, when it is determined that the cursor has stopped, the operation of one display program counter is restarted, the selector selects the graphic analysis data, and detects a hit of the target graphic. The data flow in this case is shown in FIG. 4 by a thick double line.
なお、ここでのウィンドウとは、カーソル移動が停まっ
たと判断する範囲のことであり、本発明の実施例ではこ
のウィンドウとして、図形ヒツト検出のための検出器(
アパーチャ)を兼用しているが、別個にウィンドウ用ハ
ードウェアを設けてもよいことは、言うまでもない。Note that the window here refers to the range in which it is determined that the cursor movement has stopped, and in the embodiment of the present invention, this window is a detector for detecting figure hits (
It goes without saying that window hardware may also be provided separately.
以上説明した如く本発明によれば、カーソル移動中に不
必要に図形解析を行うことがないので、カーソル移動が
高速化し、ヒツト対象図形のヒツト動作が容易になり、
作業性が向上する。As explained above, according to the present invention, unnecessary figure analysis is not performed while the cursor is moving, so the cursor movement becomes faster and the hit operation of the target figure becomes easier.
Improves work efficiency.
第1図は本発明の構成説明図、
第2図は本発明一実施例説明図、
第3図はト記−実施例のカーソル更新モードにおけるデ
ータの流れを示す図、
第4図は上記一実施例のヒツト検出動作時におけるデー
タの流れを示す図、
第5図は従来のヒツト検出の問題点説明図である。
図において、x、、y、はカーソルの現在座標、x!−
、、Yl−+ は1周期前のカーソル座標、W、はカー
ソルの現在座標に対して設定されたウィンドウ、1はデ
イスプレィ・プログラム・カウンタ、2はデイスプレィ
プログラム、3はデイスプレィプログラム解析部、4は
DDA、5はビットマツプメモリ、6,11はカーソル
位置レジスタ、7はカーソルサイズレジスタ、8a、8
b、8c、8dは加算器、9a〜9dはコンパレータ、
10はヒツト検出部、12a。
12bはセレクタ、13〜15はAND回路、16はイ
ンバータを示す。
不発晰しjへ゛誼明コ
第1図Fig. 1 is an explanatory diagram of the configuration of the present invention, Fig. 2 is an explanatory diagram of an embodiment of the present invention, Fig. 3 is a diagram showing the flow of data in the cursor update mode of the above-mentioned embodiment, and Fig. 4 is an illustration of the above-mentioned embodiment. FIG. 5 is a diagram showing the flow of data during the human detection operation of the embodiment. FIG. 5 is a diagram illustrating problems in conventional human detection. In the figure, x,,y, are the current coordinates of the cursor, x! −
,, Yl-+ is the cursor coordinates one cycle ago, W is the window set for the current coordinates of the cursor, 1 is the display program counter, 2 is the display program, 3 is the display program analysis section, 4 is DDA, 5 is bitmap memory, 6 and 11 are cursor position registers, 7 is cursor size register, 8a, 8
b, 8c, 8d are adders, 9a to 9d are comparators,
10 is a human detection unit, 12a. 12b is a selector, 13 to 15 are AND circuits, and 16 is an inverter. Figure 1
Claims (1)
図形のヒット検出を行うに際し、 前記カーソルの現在の座標(X_i、Y_i)に対して
所定寸法のウィンドウ(W_i)を設定し、該カーソル
の現在の座標(X_i、Y_i)に対して設定されたウ
ィンドウ(W_i)内に1周期前のカーソルの座標(X
_i_−_1、Y_i_−_1)が存在するか否かを調
べるカーソル検出を行い、 カーソルが検知されない場合には、図形のヒット検出を
行わずにカーソル座標を更新して次周期のカーソル位置
におけるカーソル検出を行い、カーソルが検知された場
合には、図形のヒット検出を開始するよう構成したこと
を特徴とするカーソル移動制御方式。[Claims] When performing hit detection on a displayed figure using a cursor displayed at predetermined intervals, a window (W_i) of a predetermined size is set for the current coordinates (X_i, Y_i) of the cursor. The coordinates of the cursor one cycle before (X
_i_-_1, Y_i_-_1) exists, and if the cursor is not detected, the cursor coordinates are updated without detecting a figure hit and the cursor is moved to the next cycle's cursor position. A cursor movement control method characterized in that the cursor movement control method is configured to perform detection and, when a cursor is detected, start detecting a hit of a figure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63060775A JPH01233482A (en) | 1988-03-14 | 1988-03-14 | Cursor movement control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63060775A JPH01233482A (en) | 1988-03-14 | 1988-03-14 | Cursor movement control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01233482A true JPH01233482A (en) | 1989-09-19 |
Family
ID=13152000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63060775A Pending JPH01233482A (en) | 1988-03-14 | 1988-03-14 | Cursor movement control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01233482A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2465808A (en) * | 2008-12-01 | 2010-06-02 | Nec Corp | Tracking means to drag a window around a GUI without premature termination of the move operation if the cursor is moved too quickly |
-
1988
- 1988-03-14 JP JP63060775A patent/JPH01233482A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2465808A (en) * | 2008-12-01 | 2010-06-02 | Nec Corp | Tracking means to drag a window around a GUI without premature termination of the move operation if the cursor is moved too quickly |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR870011533A (en) | Multi Window Display | |
JPS63163622A (en) | Waveform selection of waveform display device | |
JPS6173194A (en) | Automatic stress display | |
JPH05250094A (en) | Input terminal equipment | |
JPH07306752A (en) | Touch panel input device | |
JPS60202482A (en) | Identification of interfaced area | |
JPH01233482A (en) | Cursor movement control system | |
JP2616353B2 (en) | Input indicating device | |
JP2000020243A (en) | Cursor control method, storage medium, and information processing device | |
JPH04291685A (en) | Clip tester circuit and clip testing method | |
US5384903A (en) | Graphics processing method and apparatus | |
JPH05324163A (en) | Coordinate detection device and coordinate detection method | |
JPS58163992A (en) | Crt display unit | |
JPH0293920A (en) | Input device | |
JP7334649B2 (en) | Information processing device, information processing program, and information processing system | |
JP3476873B2 (en) | Display system and display method | |
JP2520485B2 (en) | Dragging and rubber band independent display system | |
JP2000020210A (en) | Screen scroll system and program recording medium therefor | |
JPH04306721A (en) | Touch panel device | |
JPH0424748B2 (en) | ||
JPH03265920A (en) | Pointing processing method | |
JPH07261914A (en) | Input control method for multidevice | |
JP2686167B2 (en) | Circuit drawing display device | |
JPH08335142A (en) | Mouse pointer movement control device | |
JPH07104937A (en) | Cursor display control method |