[go: up one dir, main page]

JPH02291083A - Pick processing method - Google Patents

Pick processing method

Info

Publication number
JPH02291083A
JPH02291083A JP1112583A JP11258389A JPH02291083A JP H02291083 A JPH02291083 A JP H02291083A JP 1112583 A JP1112583 A JP 1112583A JP 11258389 A JP11258389 A JP 11258389A JP H02291083 A JPH02291083 A JP H02291083A
Authority
JP
Japan
Prior art keywords
pick
hit
line
aperture
intersections
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
JP1112583A
Other languages
Japanese (ja)
Inventor
Hideyuki Hara
秀幸 原
Makoto Fujita
良 藤田
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP1112583A priority Critical patent/JPH02291083A/en
Publication of JPH02291083A publication Critical patent/JPH02291083A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To quickly perform judgement for pick hit/pick mis-hit by detecting the number of intersections of a half-line setting an arbitrary one point as an endpoint and an operation targeted drawing, and judging the odd-even of the number of intersections. CONSTITUTION:A quadrangle 21 is comprised of four line segments 22, 23, 24, and 25. The number of intersections of the half-line 27 extending in a right horizontal direction setting a left point as the endpoint and the line segment of the quadrangle goes to only one point, the intersection 31, when a pick aperture 26 exists in the quadrangle. When the pick aperture 26 is extended outside the quadrangle 21, two intersections 31 and 32 are generated. When the pick hit is applied, the number of intersections goes to an odd number, and when the pick mis-hit is applied, it goes to an even number. In such a way, it is possible to remarkably shorten the judging time of the pick hit/pick mis-hit.

Description

【発明の詳細な説明】 (産業」二の利用分野) 本発明はグラフィック処理におけるピック処理方法に係
り、特に、ピックヒソ1・/ピックミスヒン1・の判定
を短時間で行うことを可能にするピンク処理方法に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Application in Industry) The present invention relates to a pick processing method in graphic processing, and in particular, to a pink processing method that makes it possible to determine pick hiso 1/pick miss 1 in a short time. It is about the method.

(従来の技術) コンピュータ・グラフィックスにおいて、ディスプレイ
」−に表示された図形の色を変更したり、模様を変更す
るために表示図形の選択を行う場合には、その表示図形
をカーソルやライ1・ペンで指示して図形選択信号を発
生し、選択された図形をホストコンピュータに知らせる
ピック処理が行われる。
(Prior Art) In computer graphics, when selecting a displayed figure in order to change the color or pattern of a figure displayed on a display, the displayed figure must be moved with a cursor or line. - A pick process is performed in which a figure selection signal is generated by pointing with a pen, and the selected figure is notified to the host computer.

第8図は、三角形81、円形82、および四角形83の
3つの図形が、その一部分が互いに重なるように表示さ
れている場合のピンク処理方法を説明するための図であ
り、図中に示した丸数′−T:■〜■は、図形同士の重
なり回数を示している。
FIG. 8 is a diagram for explaining the pink processing method when three figures, a triangle 81, a circle 82, and a rectangle 83, are displayed with parts of them overlapping each other. Circle numbers '-T: ■ to ■ indicate the number of times the figures overlap.

複数の図形が表7J<されている場合の、一般的なグラ
フィック処理におけるピンク処理では、それそれの表示
図形による重なり回数か1回、3回、・・等の奇数回数
のところ(以下、ピック前可領域)を一箇所指定すれば
、重なり回数か奇数回数のところは全て同時にピックさ
れる。
In the pink processing in general graphic processing when multiple figures are displayed in Table 7J, the number of overlaps due to each display figure or the odd number of times such as 1, 3, etc. (hereinafter referred to as pick) is If you specify one location (previous possible area), all overlapped or odd numbered locations will be picked at the same time.

たたし、アプリケーションプログラム等を変更すれば、
−1一記とは逆の指定をすることも可能であり、その場
合には、重なり回数か2回、4回、・・等の偶数回数の
ところを一箇所指定すれば、重なり回数が偶数回数のと
ころは全て同時にピックされる。
However, if you change the application program etc.
-1 It is also possible to specify the opposite of the above. In that case, if you specify the number of overlaps or an even number such as 2 times, 4 times, etc., the number of overlaps will be an even number. All the times are picked at the same time.

そして、ピック処理領域を指定する場合は、前記カーソ
ル等で指定される領域(以下、ピックアパーチャ)が、
前記ピック許可領域を指定することが要求され、ピック
許可領域か指定されればその指定はピックヒットと判定
され、それ以外の場所か指定されれば、その指定はビッ
クミスヒッ1・と判定される。
When specifying a pick processing area, the area specified by the cursor etc. (hereinafter referred to as pick aperture) is
It is required to specify the pick permission area, and if the pick permission area is specified, the specification is determined to be a pick hit, and if any other location is specified, the specification is determined to be a big miss hit.

ビックミスヒッ1・と判定されると、オペレータは改め
て場所指定を行い、ピックヒッ1・と判定された後に次
の処理を行う。
If it is determined that there is a big miss hit 1, the operator specifies the location again, and after it is determined that the pick hit is 1, the operator performs the next process.

従来技術のピック処理方法は、例えば日経エレク1・ロ
ニクス、19’83年5月9日号の第84〜87頁にお
いて論じられている。
Prior art pick processing methods are discussed, for example, in Nikkei Electronics, May 9, 19'83, pages 84-87.

この場合のピックヒッ1・/ピックミスヒットの判定は
、ピックアパーチャで指定された位置の121T:.標
値Aをレジスタ等に記憶し、その後、この座標値Aを、
ビューボート上の全ての画素の座標値Bnと順次比較し
、前記座標値Aがピック許可領域内の座標値Bnと一致
したか否かによって行われ、一致した場合にはピックヒ
ットと判定され、一致しない場合にはビックミスヒッ1
・と判定される。
In this case, pick hit 1/pick miss is determined by 121T: . The target value A is stored in a register etc., and then this coordinate value A is
This is performed by sequentially comparing the coordinate values Bn of all pixels on the view boat, and determining whether the coordinate value A matches the coordinate value Bn within the pick permission area, and if they match, it is determined as a pick hit, If it doesn't match, big miss hit 1
・It is determined that

(発明が解決しようとする課題) 上記した従来技術では、ピックヒッ1・/ピックミスヒ
ットの判定が、ピックアパーチャで指定された位置の座
標値Aをビューボ−1・七の全ての画素の座標値B n
と比較することによって行われていたために、ピックヒ
ッ1・/ピックミスヒットの判定に長時間を要してしま
うという問題があった。
(Problem to be Solved by the Invention) In the above-mentioned conventional technology, the determination of pick hit 1/pick miss hit is made by converting the coordinate value A of the position specified by the pick aperture to the coordinate value of all pixels of view points 1 and 7. B n
Since this was done by comparing the results with the previous one, there was a problem in that it took a long time to determine whether there was a pick hit or a pick miss.

本発明の目的は、以上に述べた問題点を解決し、ピック
ヒッ1・/ピックミスヒットの判定か素早く行われるピ
ック処理方法を提供することてある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and provide a pick processing method that quickly determines pick hit 1/pick miss hit.

(課題を解決するための手段) 前記の問題点を解決するために、本発明は、コンピュー
タ・グラフィックス装置におけるピック処理方法におい
て、画面上に操作対象図形を表示し、画面上の所望する
位置にピックアパーチャを設定し、ピックアパーチャ内
の任意の一点を端点とする半直線を設定し、前記半直線
と操作対象図形を構成する全ての線分との交点の数を検
出し、前記交点数の偶奇に応じてピックヒット/ピック
ミスヒットを判定するようにした点に特徴がある。
(Means for Solving the Problems) In order to solve the above-mentioned problems, the present invention provides a pick processing method in a computer graphics device, in which a figure to be operated is displayed on a screen, and a desired position on the screen is Set a pick aperture to The feature is that pick hit/pick miss hit is determined according to the evenness of .

(作用) 上記した構成によれば、ピックヒット/ピックミスヒッ
トの判定が、線分の交点数の偶奇に基づいて行われる。
(Operation) According to the above-described configuration, pick hit/pick miss hit determination is performed based on whether the number of intersections of line segments is even or odd.

したがって、従来技術のように、ピックアパーチャで指
定された位置の座標値をビューポート内の全ての画素の
座標と比較する必要か無くなり、ピックヒット/ピック
ミスヒットの判定が短時間で行えるようになる。
Therefore, it is no longer necessary to compare the coordinate values of the position specified by the pick aperture with the coordinates of all pixels in the viewport as in the conventional technology, and pick hits/pick misses can be determined in a short time. Become.

(実施例) 以下に、図面を参照して本発明を詳細に説明する。(Example) The present invention will be explained in detail below with reference to the drawings.

第2図および第3図は本発明の基本概念を説明するため
の図であり、特に、4本の線分22、23、24、25
によって囲まれた四角形21をピックアパーチャ26で
ピック(指示)する場合を示している。
2 and 3 are diagrams for explaining the basic concept of the present invention, and in particular, four line segments 22, 23, 24, 25
The case where a rectangle 21 surrounded by is picked (instructed) by the pick aperture 26 is shown.

両図において、ピックアパーチャ26の輪郭上の左下点
を端点として左水平方向へ延びた半直線27と前記4本
の線分との交点数をみると、ピックアパーチャ26が四
角形21内、すなわちピックヒットしている第2図のよ
うな場合では、その交点は線分25との交点28の1箇
所たけであり、ピックアパーチャ26が四角形21外、
すなわちピックミスヒットしている第3図のような場合
では、その交点は線分25との交点31および線分23
との交点32の2箇所となる。
In both figures, looking at the number of intersections between the four line segments and the half-line 27 extending in the left horizontal direction with the lower left point on the contour of the pick aperture 26 as the end point, it is found that the pick aperture 26 is within the rectangle 21, that is, the pick In the case of a hit as shown in FIG. 2, there is only one intersection 28 with the line segment 25, and the pick aperture 26 is outside the rectangle 21.
In other words, in the case of a pick miss hit as shown in FIG. 3, the intersection is the intersection 31 with the line segment 25 and the line segment 23.
There are two points of intersection 32 with .

すなわち、ピックヒットしている場合には交点数が奇数
となり、ピックミスヒットしている場合には偶数となる
。このような交点数の偶奇とピックヒット/ピックミス
ヒットとの関係は、複数の図形が重なり合っている場合
にも同様に当てはまることは容易に理解されるであろう
That is, the number of intersections is an odd number when there is a pick hit, and an even number when there is a pick miss hit. It will be easily understood that the relationship between the evenness of the number of intersections and the pick hit/pick miss hit similarly applies to the case where a plurality of figures overlap.

そこで、本発明においては、前記交点数の偶奇判定を行
い、奇数と判定された場合にはピックヒットと判定し、
偶数と判定された場合にはビックミスヒットと判定する
ようにした。
Therefore, in the present invention, the number of intersections is determined to be even or odd, and if it is determined to be an odd number, it is determined that it is a pick hit,
If it is judged as an even number, it is judged as a big miss hit.

[第1実施例] 第1図は、上記したピックヒット/ピックミスヒット判
定の処理手順を示したフローチャートである。
[First Embodiment] FIG. 1 is a flowchart showing the processing procedure for the pick hit/pick miss hit determination described above.

ステップS1では、初期設定として総交点数Nが0に初
期化される。
In step S1, the total number of intersections N is initialized to 0 as an initial setting.

ステップS2では、与えられた表示画面を構成する線分
(要素)が1つづつ取り出される。
In step S2, line segments (elements) constituting the given display screen are extracted one by one.

ステップS3では、前記取り出された各要素がビックア
バーチャを横切るか否かが判定される。
In step S3, it is determined whether each of the extracted elements crosses a big aperture.

なお、この判定処理はクリップ処理そのものであり、従
来技術を適用できるので、その説明は省略する。
Note that this determination processing is clip processing itself, and conventional techniques can be applied, so a description thereof will be omitted.

このステップS3で、ある要素がピックアパーチャを横
切ると判定されると、当該処理はステップS9へ移行し
、ここでピックヒットと判定される。
If it is determined in step S3 that a certain element crosses the pick aperture, the process moves to step S9, where it is determined that a pick hit has occurred.

ステップS4では、各要素が、ピックアパーチャの輪郭
上の1点を端点とした半直線と交差するか否かが判定さ
れ、交差する場合にはステップS5へ、交差しない場合
にはステップS6へ移行する。なお、この判定処理に関
しては、後に第4図を用いて詳細に説明する。
In step S4, it is determined whether each element intersects with a half-line with one point on the contour of the pick aperture as an end point. If the element intersects, the process moves to step S5; if it does not intersect, the process moves to step S6. do. Note that this determination process will be explained in detail later using FIG. 4.

ステップS5では、総交点数Nに今回の交点数が加算さ
れる。
In step S5, the current number of intersections is added to the total number of intersections N.

ステップS6では、表示画面を構成する要素の全てに対
して交点の有無判定が行われたか否かが判定され、終了
していない場合は当該処理はステップS2へ移行して上
記と同様の処理を他の要素に対しても行う。
In step S6, it is determined whether or not the presence or absence of an intersection point has been determined for all elements constituting the display screen. If the determination has not been completed, the process moves to step S2 and the same process as above is performed. Do this for other elements as well.

ステップS7では、前記総交点数Nの偶奇判定が行われ
、偶数である場合にはステップS8においてビックミス
ヒットと判定され、奇数である場合にはステップS9に
おいてピックヒットと判定される。
In step S7, the total number of intersections N is determined to be even or odd. If it is an even number, it is determined to be a big miss hit in step S8, and if it is odd, it is determined to be a pick hit in step S9.

第4図は、前記ステップS4において行われる交点の有
無判定方法を説明するだめの図である。
FIG. 4 is a diagram for explaining the method for determining the presence or absence of an intersection point performed in step S4.

本実施例では、ピックアパーチャ26の輪郭−Lの左下
点49を端点として左水平方向へ延びた半直線27と線
分との交点の偶奇を判定するようになっている。
In this embodiment, it is determined whether the intersection of a line segment and a half straight line 27 extending in the left horizontal direction with the lower left point 49 of the outline -L of the pick aperture 26 as an end point is determined.

ピックアパーチャ26を中心としたビューポ1・を9分
割I7、それぞれ左上領域5].(0110λ」二領域
52(0010)、右上領域53(1010)、左領域
54(0100)、中心領域(ピックアパーチャ)55
 (0000)、右領域56(1000)、左下領域5
7(0101)、下領域58(0001.)、右下領域
59 (1001)とする。
The view point 1 centering on the pick aperture 26 is divided into nine parts I7, each in the upper left area 5]. (0110λ) 2 area 52 (0010), upper right area 53 (1010), left area 54 (0100), center area (pick aperture) 55
(0000), right area 56 (1000), lower left area 5
7 (0101), lower area 58 (0001.), and lower right area 59 (1001.).

なお、括弧内に示した4桁の数字は、それぞれの領域を
示すものとして与えられた領域コードであり、後述する
交点の有無判定を行う場合に用いられる。
Note that the four-digit numbers shown in parentheses are area codes given to indicate each area, and are used when determining the presence or absence of an intersection, which will be described later.

このように9分割された領域に着目すると、半直線27
と交差し、かつピックアバーチャを横切らない線分は、
線分41〜48までの8通り存在することになる。
If we pay attention to the area divided into nine areas in this way, we can see that the half line 27
A line segment that intersects with and does not cross the pick aperture is
There are eight types of line segments 41 to 48.

第5図は、前記領域コードを用いて交点の有無判定を行
う場合のフローチャ−1・である。
FIG. 5 is a flowchart 1 for determining the presence or absence of an intersection using the area code.

ステップSllでは、対象となっている線分のいずれか
一方の端点の領域コードか゛’0 1 0 1゜′であ
るか否かが判定され、”0101”である場合にはステ
ップS14へ移行する。
In step Sll, it is determined whether the area code of either end point of the target line segment is ``'0 1 0 1'', and if it is ``0101'', the process moves to step S14. .

ステップS14では、他方の端点が “×010″×100”×110” (“×″は“1″  “0”のいずれでもijJ )の
いずれかであるか否かが判定され、これらのいずれかで
ある場合には“交点有”と判定され、いずれでもない場
合には“交点無′゛と判定される。
In step S14, it is determined whether the other end point is either "x010"x100"x110"("x" is either "1" or "0" or ijJ); If it is, it is determined that there is an intersection, and if neither is true, it is determined that there is no intersection.

一方、ステップSllにおいて一方の端点の領域コード
が“0101“でないと判定された場合には、ステップ
S i 2において、両端点の領域コドのビッ1・毎の
論理和および論理積が算出される。
On the other hand, if it is determined in step Sll that the area code of one end point is not "0101", in step S i 2, the logical sum and logical product for each bit of the area code of both end points are calculated. .

ステップS13では、論理積が゛×××O”かつ論理和
が”×1×1″であるか否かが判定され、この条件か満
足された場合には“交点有“と判定され、満足されない
場合には“交点無“と判定される。
In step S13, it is determined whether the logical product is “×××O” and the logical sum is “×1×1”, and if these conditions are satisfied, it is determined that there is an “intersection”, and the condition is satisfied. If not, it is determined that there is no intersection.

本実施例によれば、ビックアバーチャを横切る線分の有
無判定および半直線と線分との交点の有無判定が、共に
領域コードを用いて簡単に判定されるので、処理の簡素
化が可能になる。
According to this embodiment, the presence or absence of a line segment that crosses a big aperture and the presence or absence of an intersection between a half-line and a line segment are both easily determined using area codes, so processing can be simplified. become.

[第2実施例] 」二記した実施例では、交点数の偶奇判定に基づいてピ
ックヒット/ピックミスヒットを判定する方法に関して
説明したが、このピックヒッ1・/ピックミスヒット判
定は、ラスタ・スキャン方式のグラフィックス表示装置
での図形の塗り潰し処理を利用し、ピックアパーチャが
塗り潰し領域にある場合にはピックヒッ1・とじ、塗り
潰し領域以Aにある場合にはピックミスヒントとするこ
とによっても行える。
[Second Embodiment] In the second embodiment described above, the method of determining pick hit/pick miss hit based on the even/odd determination of the number of intersections has been explained. This can also be done by using the figure filling process on a scan-type graphics display device, and setting the pick hit 1/stop when the pick aperture is in the filled area, and the pick miss hint when it is located at A beyond the filled area. .

以下に、塗り潰し処理を利用したピックヒット/ピック
ミスヒット判定方法に関して説明する。
A pick hit/pick miss hit determination method using fill-in processing will be described below.

ラスタ・スキャン方式のグラフィックス表示装置を具備
したコンピュータ・グラフィックス装置においては、画
面」−に表示された操作対象図形の塗り潰しを、操作線
と操作対象図形を構成する線分との交点を検出し、たき
えは、走査開始点より奇数番1」の交点から偶数番「I
の交点までの部分は塗り潰し、偶数番目の交点から奇数
番]−」の交点までの部分は塗り潰さないというように
して行っている。
In a computer graphics device equipped with a raster scan type graphics display device, the operation target figure displayed on the screen is filled in by detecting the intersection of the operation line and the line segments that make up the operation target figure. Then, the trace is from the intersection of the odd number 1 from the scanning start point to the even number I
The area up to the intersection of is filled in, and the area from the even-numbered intersection to the odd-numbered intersection is not filled out.

第6図は、」二記した構成のコンビj.−夕・グラフィ
ックス装置における塗り潰し方法を説明するだめの図で
ある。
FIG. 6 shows a combination j. - FIG. 2 is a diagram illustrating a filling method in a graphics device.

走査線62と操作対象図形61を構成する各線分との交
点を、走査開始点てあるビューボイン1・の一端(例え
ば左端)から順次検出する。同図に示した例では、第1
交点63、第2交点64、第3交点65、第4交点66
か検出される。
Intersections between the scanning line 62 and each line segment constituting the operation target figure 61 are sequentially detected from one end (for example, the left end) of the view point 1, which is the scanning start point. In the example shown in the figure, the first
Intersection 63, second intersection 64, third intersection 65, fourth intersection 66
detected.

そし,て、奇数番目の交点から偶数番目の交点に至るま
での部分、すなわち交点63から交点64までと、交点
65から交点66まての部分を塗り潰すものとし、この
ような操作を全ての走査線に関して行う。
Then, the area from the odd-numbered intersection to the even-numbered intersection, that is, the area from intersection 63 to intersection 64 and from intersection 65 to intersection 66, is filled in, and this operation is applied to all This is done for scanning lines.

そこで、本実施例では、このような塗り潰し処理におけ
る偶奇間または奇偶間判定処理の一部を利用することに
よって、ピック処理プログラムの簡略化を図る。
Therefore, in this embodiment, the pick processing program is simplified by using a part of the even-odd or odd-even determination processing in such filling processing.

第7図は、塗り潰し処理の一部を、ピックヒット/ピッ
クミスヒットの判定に利用した実施例の処理内容を説明
するための図である。
FIG. 7 is a diagram for explaining the processing contents of an embodiment in which a part of the filling process is used to determine pick hit/pick miss hit.

本実施例では、ピックアパーチャ71の輪郭」二の左下
点72を端点として左水平方向へ延びた半直線73、お
よびピックアパーチャ75の輪郭上の左下点76を端点
として左水平方向へ延びた半直線70を前記走査線と見
なすものとする。
In this embodiment, a half straight line 73 extends in the left horizontal direction with the lower left point 72 of the contour of the pick aperture 71 as an end point, and a half straight line 73 extends in the left horizontal direction with the lower left point 76 on the contour of the pick aperture 75 as an end point. The straight line 70 shall be regarded as the scanning line.

同図に示したような操作表示図形61がある場合に、そ
の内側かピックアパーチャで指示されればピックヒット
と判定されるようにする必要がある。
When there is an operation display figure 61 as shown in the same figure, it is necessary to determine that it is a pick hit if an instruction is made inside the figure with the pick aperture.

ピックヒットとなる領域内にピックアパーチャ71があ
る場合には、半直線73は交点74においてのみ操作対
象図形61の構成線分と交わるので、実質上ピックアパ
ーチャ71は奇数番目の交点から偶数番目の交点に至る
までの領域にあることになる。
If the pick aperture 71 is within the area that will be a pick hit, the half straight line 73 intersects the constituent line segments of the operation target figure 61 only at the intersection 74, so the pick aperture 71 will actually move from the odd-numbered intersection to the even-numbered intersection. It will be in the area up to the intersection.

一方、操作表示図形61の外側にピックアパーチャ75
がある場合には、半直線70は交点77、交点78、交
点79、交点80の4カ所において操作対象図形61の
構成線分と交わるので、実質上ピックアパーチャ75は
偶数番口の交点から奇数番目の交点に至るまでの領域に
あることになる。
On the other hand, a pick aperture 75 is provided outside the operation display figure 61.
If there is, the half straight line 70 intersects with the constituent line segments of the operation target figure 61 at four points: intersection 77, intersection 78, intersection 79, and intersection 80, so the pick aperture 75 is actually set from the even-numbered intersection to the odd-numbered intersection. It is in the area up to the th intersection point.

したがって、塗り潰し処理における偶奇間または奇偶間
判定を利用することによってもピックヒット/ピックミ
スヒットの判定を行えることは明らかである。
Therefore, it is clear that a pick hit/pick miss hit can also be determined by using the even-odd or odd-even determination in the filling process.

本実施例によれば、本発明によるピックヒット/ピック
ミスヒットの判定処理を、既存の塗り潰し処理の一部分
を利用して行うことができるので、処理プログラムの容
量を小さくすることかできるようになる。
According to this embodiment, the pick hit/pick miss hit determination process according to the present invention can be performed using a part of the existing filling process, so the capacity of the processing program can be reduced. .

なお、上記した実施例においては、主に操作対象図形を
構成する要素が線分である場合について説明したが、曲
線も細かい線分とみれば、同様にして処理することが可
能になる。
In the above-described embodiments, the case where the elements constituting the operation target graphic are mainly line segments has been described, but if curves are viewed as fine line segments, they can be processed in the same way.

また、半直線の始点は、必ずしもピックアパーチャの輪
郭線上にある必要は無く、ピックアパーチャで指定され
る領域内であれば任意の位置で良0。
Furthermore, the starting point of the half-line does not necessarily have to be on the outline of the pick aperture, and can be at any position as long as it is within the area specified by the pick aperture.

(発明の効果) 以上の説明から明らかなように、本発明によれば次のよ
うな効果が達成される。
(Effects of the Invention) As is clear from the above description, the following effects are achieved according to the present invention.

(1)ピックヒット/ピックミスヒットの判定が、ピッ
クアパーチャ上の一点を端点とする半直線と操作対象図
形を構成する線分との交点数に基づいて行われるので、
判定時間を大巾に短縮することができるようになる。
(1) Pick hit/pick miss is determined based on the number of intersections between a half line whose end point is a point on the pick aperture and a line segment that constitutes the target figure.
Judgment time can be drastically reduced.

(2)交点数の検出を、従来からの塗り潰し処理の一部
分を利用して行うことができるので、処理プログラムの
容量を節約することができるようになる。
(2) Since the number of intersections can be detected using part of the conventional filling process, the capacity of the processing program can be saved.

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

第1図は本発明によるピックヒット/ピックミスヒット
判定の処理手順を示したフローチャ−1・である。 第2、3図は本発明の基本概念を説明するための図であ
る。 第4図は本発明による交点の有無判定方法を説明するだ
めの図である。 第5図は領域コードを用いて交点の有無判定を行う場合
のフローチャートである。 第6図はラスタ・スキャン方式における操作対象図形の
塗り潰し方法を説明するための図である。 第7図は塗り潰し処理の一部を、ピックヒット/ピック
ミスヒットの判定に利用した場合の処理内容を説明する
ための図である。 第8図はピック処理方法を説明するための図である。
FIG. 1 is a flowchart 1 showing a processing procedure for pick hit/pick miss hit determination according to the present invention. 2 and 3 are diagrams for explaining the basic concept of the present invention. FIG. 4 is a diagram for explaining the method for determining the presence or absence of an intersection point according to the present invention. FIG. 5 is a flowchart for determining the presence or absence of an intersection using area codes. FIG. 6 is a diagram for explaining a method of filling in an operation target figure in the raster scan method. FIG. 7 is a diagram for explaining the processing contents when a part of the filling process is used for determining pick hit/pick miss hit. FIG. 8 is a diagram for explaining the pick processing method.

Claims (5)

【特許請求の範囲】[Claims] (1)コンピュータ・グラフィックス装置の表示装置上
に表示された図形の中から操作対象となる図形を選択し
、その図形選択信号を発生するピック処理方法であって
、 画面上に操作対象図形を表示し、 画面上の所望する位置にピックアパーチャを設定し、 ピックアパーチャ内の任意の一点を端点とする半直線を
設定し、 前記半直線と操作対象図形を構成する全ての線分との交
点の数を検出し、 前記交点数の偶奇に応じてピックヒット/ピックミスヒ
ットを判定することを特徴とするピック処理方法。
(1) A pick processing method in which a figure to be manipulated is selected from among the figures displayed on the display device of a computer graphics device and a figure selection signal is generated, the target figure being displayed on the screen. display, set the pick aperture at the desired position on the screen, set a half line with an arbitrary point within the pick aperture as the end point, and find the intersections of the half line and all the line segments that make up the operation target figure. A pick processing method characterized by: detecting the number of intersection points, and determining pick hit/pick miss hit according to whether the number of intersections is even or odd.
(2)前記線分がピックアパーチャ内を横切るか否かを
さらに判定し、ピックアパーチャ内を横切る線分が有る
場合には、前記交点数の偶奇にかかわらずピックヒット
を判定し、ピックアパーチャ内を横切る線分が無い場合
には前記交点数の偶奇に応じてピックヒット/ピックミ
スヒットを判定することを特徴とする特許請求の範囲第
1項記載のピック処理方法。
(2) It is further determined whether or not the line segment crosses within the pick aperture, and if there is a line segment that crosses within the pick aperture, a pick hit is determined regardless of whether the number of intersections is even or odd, and 2. The pick processing method according to claim 1, wherein if there is no line segment that crosses the line segment, pick hit/pick miss hit is determined depending on whether the number of intersections is even or odd.
(3)前記表示装置の表示方式はラスタ・スキャン方式
であって、前記半直線は走査線と平行であることを特徴
とする特許請求の範囲第1項または第2項記載のピック
処理方法。
(3) The pick processing method according to claim 1 or 2, wherein the display method of the display device is a raster scan method, and the half line is parallel to a scanning line.
(4)ラスタ・スキャン方式のグラフィックス表示装置
上に表示された操作対象図形の塗り潰し処理を、走査線
と操作対象図形を構成する全ての線分との交点を検出し
、予め決められた、走査開始点より偶数または奇数番目
の交点の一方から次の交点までを塗り潰すことによって
行うコンピュータ・グラフィックス装置の、該表示装置
上に表示された図形の中から、操作対象となる図形を選
択し、その図形選択信号を発生するピック処理方法であ
って、 画面上に操作対象図形を表示し、 画面上の所望する位置にピックアパーチャを設定し、 ピックアパーチャ内の任意の一点を端点とし、走査線に
平行な半直線を設定し、 前記半直線と操作対象図形を構成する線分との交点を検
出し、 ピックアパーチャの位置が、塗り潰し領域にあるか否か
を、前記塗り潰し処理と同じ処理によって検出し、これ
によってピックヒット/ピックミスヒットを判定するこ
とを特徴とするピック処理方法。
(4) The filling process of the operation target figure displayed on the raster scan type graphics display device is performed by detecting the intersections of the scanning line and all the line segments that make up the operation target figure, and using a predetermined method. Selecting a figure to be operated from among the figures displayed on the display device of a computer graphics device by filling in from one of the even or odd numbered intersections to the next intersection from the scanning start point. The pick processing method generates the figure selection signal, and includes: displaying the figure to be manipulated on the screen; setting a pick aperture at a desired position on the screen; and setting an arbitrary point within the pick aperture as an end point; Set a half-line parallel to the scanning line, detect the intersection of the half-line and the line segment that constitutes the operation target figure, and check whether the pick aperture position is in the filled area or not using the same method as the filling process described above. A pick processing method characterized by detecting through processing and determining pick hit/pick miss hit based on the detection.
(5)前記ピックアパーチャ内の任意の一点は、ピック
アパーチャの輪郭上の任意の一点であることを特徴とす
る特許請求の範囲第1項ないし第4項のいずれかに記載
のピック処理方法。
(5) The pick processing method according to any one of claims 1 to 4, wherein the arbitrary point within the pick aperture is an arbitrary point on the outline of the pick aperture.
JP1112583A 1989-05-01 1989-05-01 Pick processing method Pending JPH02291083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1112583A JPH02291083A (en) 1989-05-01 1989-05-01 Pick processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1112583A JPH02291083A (en) 1989-05-01 1989-05-01 Pick processing method

Publications (1)

Publication Number Publication Date
JPH02291083A true JPH02291083A (en) 1990-11-30

Family

ID=14590359

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1112583A Pending JPH02291083A (en) 1989-05-01 1989-05-01 Pick processing method

Country Status (1)

Country Link
JP (1) JPH02291083A (en)

Similar Documents

Publication Publication Date Title
US5657050A (en) Distance control for displaying a cursor
US4814755A (en) Interactive display system
JPH05265689A (en) Information processing equipment
US5020002A (en) Method and apparatus for decomposing a quadrilateral figure for display and manipulation by a computer system
EP0653697B1 (en) Cursor with multiple pointing spots
JPH02291083A (en) Pick processing method
US5117485A (en) Method and apparatus for sorting line segments for display and manipulation by a computer system
JP4207003B2 (en) Drawing tool and drawing method
JPH0668270A (en) Picture processing method and picture processor
JPS61267179A (en) Cursor window displaying system
JPH09288741A (en) Graphic designation supporting device
JP2562498B2 (en) Coordinate detection method for specified figure
JPS59148975A (en) Editing device of pattern
JPH07325931A (en) Image processor
JPH0727572B2 (en) Apparatus and method for comparing and generating signals
JPH04290172A (en) Drawing element selection system
JP2667454B2 (en) Plotting device
JPH0765057A (en) Dimensional line writing system
JPH0830259A (en) Sprite drawing device and drawing method
JPH0293588A (en) Cursor controller and dot pattern generating device
JPH0727444B2 (en) Character / graphic data input / output device
JPH0643853A (en) Method and device for controlling display attribute
JP2001242982A (en) Plotting support method and medium stored with cad program
JPH03134727A (en) Screen input method
JPH07282275A (en) Graphic drawing device