JPH04313171A - System for recording and selecting line segment data - Google Patents

System for recording and selecting line segment data

Info

Publication number
JPH04313171A
JPH04313171A JP3105127A JP10512791A JPH04313171A JP H04313171 A JPH04313171 A JP H04313171A JP 3105127 A JP3105127 A JP 3105127A JP 10512791 A JP10512791 A JP 10512791A JP H04313171 A JPH04313171 A JP H04313171A
Authority
JP
Japan
Prior art keywords
line segment
screen
data
display
segment data
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
JP3105127A
Other languages
Japanese (ja)
Inventor
Yukihiko Saitou
斉藤 至彦
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP3105127A priority Critical patent/JPH04313171A/en
Publication of JPH04313171A publication Critical patent/JPH04313171A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To reduce the calculation amount for processing discriminating a display line segment and a non-display line segment and to shorten screen display processing time when the screen is shifted. CONSTITUTION:A line segment data recording means 4 obtains data indicating the screen specific range when the line segment is the display line segment if the data concerning the coordinate of the line segment for processing is notified from a data input device 3, and the line segment data equipped with the data indicating the line segment and the data indicating the screen specific range are recorded on a line segment data management table 6. A line segment data selection means 5 selects the display line segment by referring to the line segment data management table 6 when the data indicating the change of the location of the screen is inputted by the data input device 3, and the display line segment data is notified to a screen control means 2.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、線分(線分からなる図
形を含む)を有する画面をディスプレイ装置に表示しあ
たかも線分・図形領域(画面よりも大きな領域)の一部
を画面上に表示しているかのように見せる情報処理シス
テム(画面表示処理システム)に関し、特に画面に表示
する線分(以下、表示線分という)と画面に表示しない
線分(以下、非表示線分という)とを画面の位置および
線分の座標等に基づいて判別するための線分データ記録
・選択方式に関する。
[Industrial Application Field] The present invention displays a screen having line segments (including figures made up of line segments) on a display device, and displays part of the line segment/figure area (area larger than the screen) on the screen. Regarding information processing systems that appear to be displayed (screen display processing systems), especially line segments that are displayed on the screen (hereinafter referred to as "displayed line segments") and line segments that are not displayed on the screen (hereinafter referred to as "hidden line segments") This invention relates to a line segment data recording/selection method for determining line segment data based on screen position, line segment coordinates, etc.

【0002】0002

【従来の技術】従来、上述のような情報処理システムに
おいて、表示線分と非表示線分とを判別し表示線分を選
択するためには、次のような処理が行われていた。
2. Description of the Related Art Conventionally, in the information processing system as described above, the following processing has been performed in order to distinguish between display line segments and non-display line segments and select display line segments.

【0003】まず、処理対象の線分の両端点の少なくと
も一方が画面の範囲内にある場合には、その線分を表示
線分と判定する。
First, if at least one of the end points of a line segment to be processed is within the range of the screen, that line segment is determined to be a display line segment.

【0004】その線分の両端点が画面の範囲外にある場
合には、その線分が画面を横切るか否かを判定する。
[0004] If both end points of the line segment are outside the range of the screen, it is determined whether the line segment crosses the screen.

【0005】その線分が画面を横切る場合には、その線
分を表示線分と判定する。その線分が画面を横切らない
場合には、その線分を非表示線分と判定する。
[0005] If the line segment crosses the screen, the line segment is determined to be a display line segment. If the line segment does not cross the screen, the line segment is determined to be a non-display line segment.

【0006】なお、「線分が画面を横切るか否かの判定
」は、「線分と画面の周囲の線とが交差するか否かの判
定」または「線分と画面の対角線とが交差するか否かの
判定(画面が四角形の場合の方式である)」等によって
行われる。
Note that "determining whether a line segment crosses the screen" means "determining whether a line segment intersects with lines around the screen" or "determining whether a line segment intersects with a diagonal line of the screen". (This method is used when the screen is a rectangle).

【0007】[0007]

【発明が解決しようとする課題】上述した従来の表示線
分を選択する方式では、両端点が画面の範囲外にある線
分の全てについて「線分が画面を横切るか否かの判定」
のための計算を行う必要があるので、処理対象の線分の
数が多くなると、計算量が増加し、画面の移動等の際に
おける位置変更後の画面に線分を表示する処理時間(画
面表示処理時間)が長くなる(操作者はその処理時間中
に他の操作ができなくなる)という欠点があった。
[Problem to be Solved by the Invention] In the conventional display line segment selection method described above, for all line segments whose both end points are outside the range of the screen, it is necessary to "determine whether the line segment crosses the screen or not."
Therefore, as the number of line segments to be processed increases, the amount of calculation increases, and the processing time (screen This has the disadvantage that the display processing time (display processing time) becomes long (the operator cannot perform other operations during the processing time).

【0008】最近では画面に多数の線分や線分からなる
図形を描いて各種の設計作業等を進める場合が多くなっ
ているので、上述の画面表示処理の遅れはそのような設
計作業等の遅延を招く原因ともなっていた。
[0008] Recently, it has become common for various design work to be carried out by drawing a large number of line segments or figures made up of line segments on the screen, so the delay in screen display processing described above is due to the delay in such design work, etc. It was also a cause of.

【0009】本発明の目的は、上述の点に鑑み、表示線
分と非表示線分とを判別する処理のための計算量を減少
することができ、画面の移動等の際における画面表示処
理時間を短縮することができる線分データ記録・選択方
式を提供することにある。
In view of the above-mentioned points, it is an object of the present invention to reduce the amount of calculation required for the process of discriminating between display line segments and non-display line segments, and to improve the screen display process when moving the screen, etc. An object of the present invention is to provide a line segment data recording/selection method that can reduce time.

【0010】0010

【課題を解決するための手段】本発明の線分データ記録
・選択方式は、線分を有する画面をディスプレイ装置に
表示し線分・図形領域の一部を画面上に表示しているか
のように見せる情報処理システムにおいて、ディスプレ
イ装置に対する画面の表示を制御する画面制御手段と、
画面の表示に関するデータを入力するデータ入力装置と
、このデータ入力装置により入力されたデータに基づく
線分データを記憶する線分データ管理テーブルと、前記
データ入力装置により処理対象の線分の座標に関するデ
ータが通知された場合にその線分を表示線分とするとき
の画面特定範囲を示すデータを求め当該線分を示すデー
タと当該画面特定範囲を示すデータとを持つ線分データ
を前記線分データ管理テーブルに記録する線分データ記
録手段と、前記データ入力装置により画面の位置の変更
を示すデータが入力された場合に前記線分データ記録手
段により線分データが記録されている前記線分データ管
理テーブルを参照して位置変更後の画面に係る表示線分
を選択し当該表示線分を示すデータを前記画面制御手段
に通知する線分データ選択手段とを有する。
[Means for Solving the Problems] The line segment data recording/selection method of the present invention displays a screen having line segments on a display device, and displays part of the line segment/figure area on the screen. In an information processing system that is displayed on a screen, a screen control means for controlling display of a screen on a display device;
a data input device for inputting data regarding screen display; a line segment data management table for storing line segment data based on the data input by the data input device; and a line segment data management table for storing line segment data based on the data input by the data input device; When the data is notified, the data indicating the screen specific range when the line segment is to be displayed is obtained, and the line segment data having the data indicating the line segment and the data indicating the screen specific range is obtained from the line segment. a line segment data recording means for recording in a data management table; and the line segment in which line segment data is recorded by the line segment data recording means when data indicating a change in screen position is inputted by the data input device. and line segment data selection means for selecting a display line segment related to the screen after the position change by referring to a data management table and notifying data indicating the display line segment to the screen control means.

【0011】[0011]

【作用】本発明の線分データ記録・選択方式では、画面
制御手段がディスプレイ装置に対する画面の表示を制御
し、データ入力装置が画面の表示に関するデータを入力
し、線分データ管理テーブルがデータ入力装置により入
力されたデータに基づく線分データを記憶し、線分デー
タ記録手段がデータ入力装置により処理対象の線分の座
標に関するデータが通知された場合にその線分を表示線
分とするときの画面特定範囲を示すデータを求め当該線
分を示すデータと当該画面特定範囲を示すデータとを持
つ線分データを線分データ管理テーブルに記録し、線分
データ選択手段がデータ入力装置により画面の位置の変
更を示すデータが入力された場合に線分データ記録手段
により線分データが記録されている線分データ管理テー
ブルを参照して位置変更後の画面に係る表示線分を選択
し当該表示線分を示すデータを画面制御手段に通知する
[Operation] In the line segment data recording/selection method of the present invention, the screen control means controls the screen display on the display device, the data input device inputs data related to the screen display, and the line segment data management table inputs data. When storing line segment data based on data input by the device and using the line segment as a display line segment when the line segment data recording means is notified of data regarding the coordinates of the line segment to be processed by the data input device. The line segment data having the data indicating the screen specific range and the data indicating the screen specific range is recorded in the line segment data management table, and the line segment data selection means selects the data indicating the screen specific range using the data input device. When data indicating a change in position is input, the line segment data recording means refers to the line segment data management table in which line segment data is recorded and selects the display line segment related to the screen after the position change. Data indicating display line segments is notified to the screen control means.

【0012】0012

【実施例】次に、本発明について図面を参照して詳細に
説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained in detail with reference to the drawings.

【0013】図1は、本発明の線分データ記録・選択方
式の一実施例の構成を示すブロック図である。本実施例
の線分データ記録・選択方式は、ディスプレイ装置1と
、画面制御手段2と、データ入力装置3(キーボードや
マウス等)と、線分データ記録手段4と、線分データ選
択手段5と、線分データ管理テーブル6とを含んで構成
されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the line segment data recording/selection method of the present invention. The line segment data recording/selection method of this embodiment includes a display device 1, a screen control means 2, a data input device 3 (keyboard, mouse, etc.), a line segment data recording means 4, and a line segment data selection means 5. and a line segment data management table 6.

【0014】図2は、線分を有する線分・図形領域(デ
ィスプレイ装置1に表示される画面よりも大きな領域)
と実際にディスプレイ装置1に表示される画面との関係
の一例を示す図である。ここでは、線分・図形領域上に
線分21〜25が存在するものとする。
FIG. 2 shows a line segment/figure area (an area larger than the screen displayed on the display device 1) having line segments.
3 is a diagram illustrating an example of the relationship between the image data and the screen actually displayed on the display device 1. FIG. Here, it is assumed that line segments 21 to 25 exist on the line segment/graphic area.

【0015】画面は、データ入力装置3からの指示に基
づいて線分・図形領域の任意の位置に移動されることが
可能である。データ入力装置3から指示された位置の画
面の範囲に存在する線分が、ディスプレイ装置1に表示
される。例えば、図2中の線分21は、両端点が画面の
範囲内にあるので、画面中に表示される(この場合の線
分21は表示線分となる)。線分22は、両端点が画面
の範囲外にあるが、その一部が画面の範囲内にあるので
、画面中に表示される(この場合の線分21は表示線分
となる)。線分23〜25は、全く画面の範囲外にある
ので、画面中に表示されない(この場合の線分23〜2
5は非表示線分となる)。
The screen can be moved to any position in the line/graphic area based on instructions from the data input device 3. Line segments existing within the screen range of the position specified by the data input device 3 are displayed on the display device 1. For example, line segment 21 in FIG. 2 has both end points within the range of the screen, so it is displayed on the screen (line segment 21 in this case becomes a display line segment). Line segment 22 has both end points outside the range of the screen, but part of it is within the range of the screen, so it is displayed on the screen (line segment 21 in this case becomes a display line segment). Line segments 23 to 25 are completely outside the screen range, so they are not displayed on the screen (in this case, line segments 23 to 2
5 is a hidden line segment).

【0016】図3(a)〜(d)は、端点AおよびBを
持つ線分ABが表示線分として表示される画面の位置の
範囲を示す図である。図3(a)〜(d)中の破線の四
角形のそれぞれが1つの画面を示しており、各四角形(
画面)は横(X方向)の長さWxおよび縦(Y方向)の
長さWyを有している。
FIGS. 3A to 3D are diagrams showing the range of positions on the screen in which a line segment AB having end points A and B is displayed as a display line segment. Each of the dashed rectangles in FIGS. 3(a) to (d) indicates one screen, and each rectangle (
The screen) has a horizontal (X direction) length Wx and a vertical (Y direction) length Wy.

【0017】図3(a)は線分ABが右上がりである場
合を示す図であり、図3(b)は線分ABが左上がりで
ある場合を示す図であり、図3(c)は線分ABが水平
である場合を示す図であり、図3(d)は線分ABが垂
直である場合を示す図である。
FIG. 3(a) is a diagram showing the case where the line segment AB is upward to the right, FIG. 3(b) is a diagram showing the case where the line segment AB is upward to the left, and FIG. 3(c) is a diagram showing the case where the line segment AB is upward to the left. 3(d) is a diagram showing a case where line segment AB is horizontal, and FIG. 3(d) is a diagram showing a case where line segment AB is vertical.

【0018】図3(a)の場合には画面の特定位置(本
実施例では画面の左上角の位置を画面の特定位置として
いる)が点C,D,A,B,EおよびFで囲まれる範囲
(図中の実線で示す範囲)内にあればその画面において
線分ABが表示線分となり、図3(b)の場合には画面
の特定位置が点C,D,E,B,FおよびGで囲まれる
範囲内にあればその画面において線分ABが表示線分と
なり、図3(c)の場合には画面の特定位置が点C,D
,BおよびEで囲まれる範囲内にあればその画面におい
て線分ABが表示線分となり、図3(d)の場合には画
面の特定位置が点C,D,BおよびEで囲まれる範囲内
にあればその画面において線分ABが表示線分となる。 なお、線分ABが表示線分となる画面の特定位置の範囲
を、以下線分ABの「画面特定範囲」という。
In the case of FIG. 3(a), a specific position on the screen (in this embodiment, the upper left corner of the screen is the specific position on the screen) is surrounded by points C, D, A, B, E, and F. If the line segment AB is within the range shown by the solid line in the figure, the line segment AB becomes the displayed line segment on that screen, and in the case of FIG. 3(b), the specific position on the screen is the point C, D, E, B, If it is within the range surrounded by F and G, line segment AB becomes the displayed line segment on that screen, and in the case of Fig. 3(c), the specific position on the screen is point C, D.
, B, and E, line segment AB becomes the displayed line segment on that screen, and in the case of FIG. 3(d), the specific position on the screen is within the range surrounded by points C, D, B, and E. If it is within the range, line segment AB becomes the displayed line segment on that screen. Note that the range of a specific position on the screen where line segment AB is a display line segment will be hereinafter referred to as the "screen specific range" of line segment AB.

【0019】図4は、線分データ管理テーブル6の内容
を示す図である。線分データ管理テーブル6は、処理対
象の線分についてその線分の座標(その線分を示すデー
タ)とその線分の画面特定範囲を示すデータとを持つ線
分データを管理している。この線分データ管理テーブル
6は、1つの線分に関する線分データを1つのエントリ
で記録し、エントリ数の最大がN(正整数)である。ま
た、現時点で線分データ管理テーブル6に記録されてい
るエントリの数はn(N以下の正整数)であり、このn
も線分データ管理テーブル6に記録されている。各エン
トリの線分データ(図3に示す線分ABの線分データと
する)は、端点Aの座標(XA,YA)と、端点Bの座
標(XB,YB)と、画面特定範囲におけるX座標の最
小値Xminと、画面特定範囲におけるX座標の最大値
Xmaxと、画面特定範囲におけるY座標の最小値Ym
inと、画面特定範囲におけるY座標の最大値Ymax
と、線分ABが水平または垂直であるか否かを識別する
ためのフラグ(図3(c)または(d)の場合には「1
」が設定され、図3(a)または(b)の場合には「0
」が設定されるフラグ)と、図3(a)または(b)の
場合における線分ABの傾きaと、図3(a)の場合に
は線分CFのY軸切片であり図3(b)の場合には線分
GFのY軸切片であるb1と、図3(a)の場合には線
分ABのY軸切片であり図3(b)の場合には線分DE
のY軸切片であるb2とを持つ。
FIG. 4 is a diagram showing the contents of the line segment data management table 6. The line segment data management table 6 manages line segment data having coordinates of the line segment to be processed (data indicating the line segment) and data indicating the screen specific range of the line segment. This line segment data management table 6 records line segment data regarding one line segment in one entry, and the maximum number of entries is N (positive integer). In addition, the number of entries currently recorded in the line segment data management table 6 is n (a positive integer less than or equal to N), and this n
are also recorded in the line segment data management table 6. The line segment data of each entry (segment data of line segment AB shown in Figure 3) consists of the coordinates of end point A (XA, YA), the coordinates of end point B (XB, YB), and the X The minimum coordinate value Xmin, the maximum X coordinate value Xmax in the screen specific range, and the minimum Y coordinate value Ym in the screen specific range
in and the maximum value Ymax of the Y coordinate in the screen specific range
and a flag for identifying whether line segment AB is horizontal or vertical (in the case of FIG. 3(c) or (d), "1"
” is set, and in the case of FIG. 3(a) or (b), “0
" is set), the slope a of the line segment AB in the case of FIG. 3(a) or (b), and the Y-axis intercept of the line segment CF in the case of FIG. 3(a). In the case of b), b1 is the Y-axis intercept of the line segment GF, and in the case of FIG. 3(a), it is the Y-axis intercept of the line segment AB, and in the case of FIG. 3(b), the line segment DE
b2, which is the Y-axis intercept of .

【0020】図5は、線分データ記録手段4の処理を示
す流れ図である。この処理は、両端点設定ステップ51
と、X座標判定ステップ52と、Y座標判定ステップ5
3と、「XA≠XB」および「YA<YB」処理ステッ
プ54と、「XA≠XB」および「YA>YB」処理ス
テップ55と、「XA=XB」または「YA=YB」処
理ステップ56と、線分データ記録ステップ57とから
なる。
FIG. 5 is a flow chart showing the processing of the line segment data recording means 4. This process includes both end point setting step 51
, X coordinate determination step 52, and Y coordinate determination step 5.
3, "XA≠XB" and "YA<YB" processing step 54, "XA≠XB" and "YA>YB" processing step 55, and "XA=XB" or "YA=YB" processing step 56. , line segment data recording step 57.

【0021】図6は、線分データ選択手段5の処理を示
す流れ図である。この処理は、初期設定ステップ61と
、カウンタ判定ステップ62と、線分データ取得ステッ
プ63と、第1次X座標範囲判定ステップ64と、第1
次Y座標範囲判定ステップ65と、フラグ判定ステップ
66と、第2次X座標判定ステップ67と、第2次Y座
標判定ステップ68と、表示線分座標通知ステップ69
と、カウンタ増加ステップ70とからなる。
FIG. 6 is a flowchart showing the processing of the line segment data selection means 5. This process includes an initial setting step 61, a counter determination step 62, a line segment data acquisition step 63, a first X coordinate range determination step 64, and a first X coordinate range determination step 64.
Next Y coordinate range determination step 65, flag determination step 66, second X coordinate determination step 67, second Y coordinate determination step 68, display line segment coordinate notification step 69
and a counter increment step 70.

【0022】次に、このように構成された本実施例の線
分データ記録・選択方式の動作について説明する。
Next, the operation of the line segment data recording/selection method of this embodiment configured as described above will be explained.

【0023】線分データ記録手段4は、以下に示すよう
な処理を行う(図5参照)。データ入力装置3から処理
対象の線分の両端点の座標データが通知されると、実行
を開始する。
The line segment data recording means 4 performs the following processing (see FIG. 5). When coordinate data of both end points of the line segment to be processed is notified from the data input device 3, execution is started.

【0024】両端点を点Aと点Bとに区分する(ステッ
プ51)。すなわち、両端点の中でX座標の値が小さい
端点を点Aとし、X座標の値が大きい端点を点Bとする
。両方のX座標の値が同一の場合には、Y座標の値が大
きい端点を点Aとし、Y座標の値が小さい端点を点Bと
する。以上の区分により、処理対象の線分を図3におけ
る線分ABとして位置付け、線分ABの両端点Aおよび
Bの座標を(XA,YA)および(XB,YB)として
設定する。
Both end points are divided into point A and point B (step 51). That is, among both end points, the end point with the smaller X coordinate value is set as point A, and the end point with the larger X coordinate value is set as point B. If both X coordinate values are the same, the end point with the larger Y coordinate value is set as point A, and the end point with the smaller Y coordinate value is set as point B. Based on the above classification, the line segment to be processed is positioned as line segment AB in FIG. 3, and the coordinates of both end points A and B of line segment AB are set as (XA, YA) and (XB, YB).

【0025】次に、XAとXBとが等しいか否か、すな
わち線分ABが垂直か否かを判定する(ステップ52)
。また、XAとXBとが等しくない場合には、YAとY
Bとを比較する(ステップ53)。
Next, it is determined whether XA and XB are equal, that is, whether line segment AB is perpendicular (step 52).
. Also, if XA and XB are not equal, then YA and Y
B is compared (step 53).

【0026】ステップ52の判定およびステップ53の
比較で「XA≠XB」および「YA<YB」の場合(図
3(a)の場合)には、以下のような値の設定を行う(
ステップ54)。■  フラグに「0」を設定する。■
  Xminに「XA−Wx」(点Cまたは点DのX座
標)を設定する。■  XmaxにXB(点Bまたは点
EのX座標)を設定する。■  YminにYA(点A
または点DのY座標)を設定する。■  Ymaxに「
YB+Wy」(点Eまたは点FのY座標)を設定する。 ■  aに「(YB−YA)/(XB−XA)」(線分
ABまたは線分CFの傾き)を設定する。■  b1に
「YA+Wy−a(XA−Wx)」(線分CFのY軸切
片)を設定する。■  b2に「YA−aXA」(線分
ABのY軸切片)を設定する。
If "XA≠XB" and "YA<YB" are found in the judgment at step 52 and the comparison at step 53 (the case of FIG. 3(a)), the following values are set (
Step 54). ■ Set the flag to "0". ■
Set "XA-Wx" (X coordinate of point C or point D) to Xmin. ■ Set XB (X coordinate of point B or point E) to Xmax. ■ YA to Ymin (point A
or the Y coordinate of point D). ■ “Ymax”
YB+Wy” (Y coordinate of point E or point F). (2) Set "(YB-YA)/(XB-XA)" (the slope of line segment AB or line segment CF) to a. (2) Set "YA+Wy-a (XA-Wx)" (Y-axis intercept of line segment CF) to b1. ■ Set "YA-aXA" (Y-axis intercept of line segment AB) to b2.

【0027】ステップ52の判定およびステップ53の
比較で「XA≠XB」および「YA>YB」の場合(図
3(b)の場合)には、以下のような値の設定を行う(
ステップ55)。■  フラグに「0」を設定する。■
  Xminに「XA−Wx」(点Cまたは点DのX座
標)を設定する。■  XmaxにXB(点Bまたは点
FのX座標)を設定する。■  YminにYB(点B
または点EのY座標)を設定する。■  Ymaxに「
YA+Wy」(点Cまたは点GのY座標)を設定する。 ■  aに「(YB−YA)/(XB−XA)」(線分
AB,線分DEまたは線分GFの傾き)を設定する。■
  b1に「YA+Wy−aXA」(線分GFのY軸切
片)を設定する。■  b2に「YA−a(XA−Wx
)」(線分DEのY軸切片)を設定する。
If "XA≠XB" and "YA>YB" are found in the judgment at step 52 and the comparison at step 53 (the case of FIG. 3(b)), the following values are set (
Step 55). ■ Set the flag to "0". ■
Set "XA-Wx" (X coordinate of point C or point D) to Xmin. ■ Set XB (X coordinate of point B or point F) to Xmax. ■ YB to Ymin (point B
or the Y coordinate of point E). ■ “Ymax”
YA+Wy” (Y coordinate of point C or point G). (2) Set "(YB-YA)/(XB-XA)" (the slope of line segment AB, line segment DE, or line segment GF) to a. ■
Set "YA+Wy-aXA" (Y-axis intercept of line segment GF) to b1. ■ “YA-a (XA-Wx
)” (Y-axis intercept of line segment DE).

【0028】ステップ52の判定およびステップ53の
比較で「XA=XB」または「YA=YB」の場合(図
3(d)または(c)の場合)には、以下のような値の
設定を行う(ステップ56)。■  フラグに「1」を
設定する。■  Xminに「XA−Wx」(点Cまた
は点DのX座標)を設定する。■  XmaxにXB(
点Bまたは点EのX座標)を設定する。■  Ymin
にYB(点Bまたは点DのY座標)を設定する。■  
Ymaxに「YA+Wy」(点Cまたは点EのY座標)
を設定する。
If "XA=XB" or "YA=YB" is found in the judgment in step 52 and the comparison in step 53 (in the case of FIG. 3(d) or (c)), set the following values. (step 56). ■ Set "1" to the flag. ■ Set "XA-Wx" (X coordinate of point C or point D) to Xmin. ■ XB to Xmax (
Set the X coordinate of point B or point E). ■ Ymin
Set YB (Y coordinate of point B or point D) to . ■
"YA+Wy" for Ymax (Y coordinate of point C or point E)
Set.

【0029】ステップ54,55または56の処理が終
了すると、線分データ管理テーブル6中の記録線分デー
タ数nを1増加し、線分データ管理テーブル6中のn番
目のエントリにステップ51およびステップ54,55
または56で求めた各データ(XA,YA,XB,YB
,Xmin,Xmax,Ymin,Ymax,フラグ,
a,b1およびb2)を線分データとして格納し(ステ
ップ57)、処理を終了する。
When the processing of steps 54, 55 or 56 is completed, the number n of recorded line segment data in the line segment data management table 6 is increased by 1, and the nth entry in the line segment data management table 6 is filled with steps 51 and 56. Steps 54, 55
Or each data obtained in 56 (XA, YA, XB, YB
, Xmin, Xmax, Ymin, Ymax, flag,
a, b1, and b2) as line segment data (step 57), and the process ends.

【0030】線分データ選択手段5は、以下に示すよう
な処理を行う(図6参照)。
The line segment data selection means 5 performs the following processing (see FIG. 6).

【0031】データ入力装置3から画面位置の変更デー
タ(画面の位置の変更を示すデータ)、すなわち位置変
更後の画面の特定位置(左上角の位置)の座標(Xw,
Yw)が通知されると、実行を開始する。
The data input device 3 inputs the screen position change data (data indicating a change in the screen position), that is, the coordinates (Xw,
When Yw) is notified, execution starts.

【0032】現在の画面に表示されている線分の表示を
削除するとともに、繰り返しを制御するためのカウンタ
iに1を設定する(ステップ61)。
The display of the line segment currently displayed on the screen is deleted, and a counter i for controlling repetition is set to 1 (step 61).

【0033】カウンタiが線分データ管理テーブル6中
の記録線分データ数nを越えたか否かを判定する(ステ
ップ62)。
It is determined whether the counter i has exceeded the number n of recorded line segment data in the line segment data management table 6 (step 62).

【0034】ステップ62の判定でカウンタiが記録線
分データ数nを越えている場合には、処理を終了する。
If it is determined in step 62 that the counter i exceeds the recording line segment data number n, the process is terminated.

【0035】ステップ62の判定でカウンタiが記録線
分データ数nを越えていない場合には、線分データ管理
テーブル6中のi番目のエントリに格納されている線分
データ(XA,YA,XB,YB,Xmin,Xmax
,Ymin,Ymax,フラグ,a,b1およびb2)
を取得する(ステップ63)。
If it is determined in step 62 that the counter i does not exceed the number n of recorded line segment data, the line segment data (XA, YA, XB, YB, Xmin, Xmax
, Ymin, Ymax, flags, a, b1 and b2)
(step 63).

【0036】位置変更後の画面の特定位置の座標(Xw
,Yw)がXminとXmaxとの範囲内およびYmi
nとYmaxとの範囲内であるか否かを判定する(ステ
ップ64および65)。
Coordinates of the specific position on the screen after the position change (Xw
, Yw) is within the range of Xmin and Xmax and Ymi
It is determined whether it is within the range between n and Ymax (steps 64 and 65).

【0037】ステップ64および65の判定で座標(X
w,Yw)がXminとXmaxとの範囲内およびYm
inとYmaxとの範囲内でない場合には、当該線分A
Bが位置変更後の画面の非表示線分であることが確定す
るので、カウンタiの値を1増加し(ステップ70)、
線分データ管理テーブル6中の次のエントリの線分デー
タに関する処理を行うためにステップ62に実行を戻す
In the judgments of steps 64 and 65, the coordinate (X
w, Yw) is within the range of Xmin and Xmax and Ym
If it is not within the range of in and Ymax, the line segment A
Since it is confirmed that B is a hidden line segment on the screen after the position change, the value of the counter i is increased by 1 (step 70).
Execution returns to step 62 to perform processing regarding the line segment data of the next entry in the line segment data management table 6.

【0038】ステップ64および65の判定で座標(X
w,Yw)がXminとXmaxとの範囲内およびYm
inとYmaxとの範囲内である場合には、フラグの値
が1であるか否か、すなわち当該線分ABが図3(c)
に示すような水平線または図3(d)に示すような垂直
線であるか否かを判定する(ステップ66)。
The coordinates (X
w, Yw) is within the range of Xmin and Xmax and Ym
If it is within the range of in and Ymax, check whether the value of the flag is 1 or not, that is, the line segment AB is shown in FIG. 3(c).
It is determined whether it is a horizontal line as shown in FIG. 3(d) or a vertical line as shown in FIG. 3(d) (step 66).

【0039】ステップ66の判定でフラグの値が1であ
る場合には、当該線分ABが位置変更後の画面の表示線
分であることが確定するので、ステップ67および68
の処理をスキップし、画面制御手段2に当該線分ABの
両端点AおよびBの座標(XA,YA)および(XB,
YB)を通知して当該線分ABの表示を促す(ステップ
69)。
If the value of the flag is 1 in the determination at step 66, it is determined that the line segment AB is the displayed line segment on the screen after the position change, so steps 67 and 68 are performed.
The screen control means 2 is given the coordinates (XA, YA) and (XB,
YB) to prompt display of the line segment AB (step 69).

【0040】ステップ66の判定でフラグの値が1でな
い場合には、位置変更後の画面の特定位置の座標(Xw
,Yw)が図3(a)中の線分CFまたは図3(b)中
の線分GFの下方に位置するか否か(「Yw<aXw+
b1」であるか否か)を判定する(ステップ67)。 また、ステップ67の判定で座標(Xw,Yw)が図3
(a)中の線分CFまたは図3(b)中の線分GFの下
方に位置する場合には、座標(Xw,Yw)が図3(a
)中の線分ABまたは図3(b)中の線分DEの上方に
位置するか否か(「Yw>aXw+b2」であるか否か
)を判定する(ステップ68)。
If the value of the flag is not 1 in the determination at step 66, the coordinates (Xw
, Yw) is located below the line segment CF in FIG. 3(a) or the line segment GF in FIG. 3(b) ("Yw<aXw+
b1" (step 67). Also, in the determination at step 67, the coordinates (Xw, Yw) are
If the coordinates (Xw, Yw) are located below the line segment CF in (a) or the line segment GF in FIG. 3(b), the coordinates (Xw, Yw) are
) or the line segment DE in FIG. 3B (step 68).

【0041】ステップ67および68の判定で位置変更
後の画面の特定位置の座標(Xw,Yw)が図3(a)
中の線分CFまたは図3(b)中の線分GFの下方に位
置し図3(a)中の線分ABまたは図3(b)中の線分
DEの上方に位置する場合には、当該線分ABが位置変
更後の画面の表示線分であることが確定するので、画面
制御手段2に当該線分ABの両端点AおよびBの座標(
XA,YA)および(XB,YB)を通知して当該線分
ABの表示を促す(ステップ69)。
As determined in steps 67 and 68, the coordinates (Xw, Yw) of the specific position on the screen after the position change are as shown in FIG. 3(a).
If it is located below the middle line segment CF or the line segment GF in FIG. 3(b) and above the line segment AB in FIG. 3(a) or the line segment DE in FIG. 3(b), , since it is determined that the line segment AB is the line segment displayed on the screen after the position change, the screen control means 2 is informed of the coordinates of both end points A and B of the line segment AB (
XA, YA) and (XB, YB) to prompt display of the line segment AB (step 69).

【0042】ステップ67の判定で位置変更後の画面の
特定位置の座標(Xw,Yw)が図3(a)中の線分C
Fまたは図3(b)中の線分GFの下方に位置しない場
合またはステップ68の判定で座標(Xw,Yw)が図
3(a)中の線分ABまたは図3(b)中の線分DEの
上方に位置しない場合には、当該線分ABが位置変更後
の画面の非表示線分であることが確定するので、カウン
タiの値を1増加し(ステップ70)、線分データ管理
テーブル6中の次のエントリの線分データに関する処理
を行うためにステップ62に実行を戻す。
It is determined in step 67 that the coordinates (Xw, Yw) of the specific position on the screen after the position change are the line segment C in FIG. 3(a).
If the coordinates (Xw, Yw) are not located below line segment AB in FIG. 3(a) or line segment GF in FIG. 3(b), or if it is determined in step 68 that the coordinates (Xw, Yw) If the line segment AB is not located above the minute DE, it is confirmed that the line segment AB is a hidden line segment on the screen after the position change, so the value of the counter i is increased by 1 (step 70), and the line segment data is Execution returns to step 62 to perform processing regarding the line segment data of the next entry in the management table 6.

【0043】ステップ69の処理が終了すると、カウン
タiの値を1増加し(ステップ70)、線分データ管理
テーブル6中の次のエントリの線分データに関する処理
を行うためにステップ62に実行を戻す。
When the process of step 69 is completed, the value of the counter i is incremented by 1 (step 70), and the process is executed in step 62 in order to process the line segment data of the next entry in the line segment data management table 6. return.

【0044】以上のステップ64〜68の判定は、線分
データ管理テーブル6中のi番目のエントリの線分デー
タに係る線分が表示線分であるか非表示線分であるかを
判別するための判定である。
The determinations in steps 64 to 68 above determine whether the line segment related to the line segment data of the i-th entry in the line segment data management table 6 is a display line segment or a non-display line segment. This is a judgment for.

【0045】画面制御手段2は、従来技術により、線分
データ選択手段5から通知された両端点AおよびBの座
標(XA,YA)および(XB,YB)に基づいて、デ
ィスプレイ装置1上の位置変更後の画面に、表示線分と
して選択された当該線分ABの表示を行う。
According to the prior art, the screen control means 2 displays information on the display device 1 based on the coordinates (XA, YA) and (XB, YB) of both end points A and B notified from the line segment data selection means 5. The line segment AB selected as the display line segment is displayed on the screen after the position change.

【0046】[0046]

【発明の効果】以上説明したように本発明は、線分デー
タ管理テーブル,線分データ記録手段および線分データ
選択手段を設けること等により、表示線分と非表示線分
とを判別する処理のための計算量を従来に比べて減少す
ることができ、画面の移動等の際における画面表示処理
時間を短縮することができるという効果がある。この効
果に基づいて、画面に多数の線分や線分からなる図形が
描かれて行われる各種の設計作業等におけるマンマシン
インタフェースを改善することができ、そのような設計
作業等の遅延を避けることができるようになる。
As explained above, the present invention provides a process for discriminating between displayed line segments and non-displayed line segments by providing a line segment data management table, line segment data recording means, and line segment data selection means. The present invention has the advantage that the amount of calculation required for this can be reduced compared to the conventional method, and the screen display processing time when moving the screen can be shortened. Based on this effect, it is possible to improve the man-machine interface in various types of design work, etc., where many line segments and figures consisting of line segments are drawn on the screen, and avoid delays in such design work. You will be able to do this.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】図1に示す線分データ記録・選択方式で取り扱
われる線分・図形領域と画面との関係を説明するための
図である。
FIG. 2 is a diagram for explaining the relationship between a screen and a line segment/graphic area handled by the line segment data recording/selection method shown in FIG. 1;

【図3】図1に示す線分データ記録・選択方式における
処理対象の線分とその線分の画面特定範囲との関係を説
明するための図である。
FIG. 3 is a diagram for explaining the relationship between a line segment to be processed and a screen specific range of the line segment in the line segment data recording/selection method shown in FIG. 1;

【図4】図1中の線分データ管理テーブルの内容を示す
図である。
FIG. 4 is a diagram showing the contents of a line segment data management table in FIG. 1;

【図5】図1中の線分データ記録手段の処理を示す流れ
図である。
FIG. 5 is a flowchart showing the processing of the line segment data recording means in FIG. 1;

【図6】図1中の線分データ選択手段の処理を示す流れ
図である。
FIG. 6 is a flowchart showing the processing of the line segment data selection means in FIG. 1;

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

1  ディスプレイ装置 2  画面制御手段 3  データ入力装置 4  線分データ記録手段 5  線分データ選択手段 6  線分データ管理テーブル 21〜25  線分 1 Display device 2 Screen control means 3 Data input device 4 Line segment data recording means 5 Line segment data selection means 6 Line segment data management table 21-25 Line segment

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  線分を有する画面をディスプレイ装置
に表示し線分・図形領域の一部を画面上に表示している
かのように見せる情報処理システムにおいて、ディスプ
レイ装置に対する画面の表示を制御する画面制御手段と
、画面の表示に関するデータを入力するデータ入力装置
と、このデータ入力装置により入力されたデータに基づ
く線分データを記憶する線分データ管理テーブルと、前
記データ入力装置により処理対象の線分の座標に関する
データが通知された場合にその線分を表示線分とすると
きの画面特定範囲を示すデータを求め当該線分を示すデ
ータと当該画面特定範囲を示すデータとを持つ線分デー
タを前記線分データ管理テーブルに記録する線分データ
記録手段と、前記データ入力装置により画面の位置の変
更を示すデータが入力された場合に前記線分データ記録
手段により線分データが記録されている前記線分データ
管理テーブルを参照して位置変更後の画面に係る表示線
分を選択し当該表示線分を示すデータを前記画面制御手
段に通知する線分データ選択手段とを有することを特徴
とする線分データ記録・選択方式。
Claim 1: In an information processing system that displays a screen having line segments on a display device and makes it appear as if part of the line segment/figure area is displayed on the screen, the display of the screen on the display device is controlled. a screen control means; a data input device for inputting data related to screen display; a line segment data management table for storing line segment data based on data input by the data input device; When data regarding the coordinates of a line segment is notified, data indicating a screen specific range when the line segment is to be displayed is obtained, and a line segment having data indicating the line segment and data indicating the screen specific range is obtained. a line segment data recording means for recording data in the line segment data management table; and a line segment data recording means for recording line segment data when data indicating a change in screen position is inputted by the data input device. and line segment data selection means for selecting a display line segment related to the screen after the position change by referring to the line segment data management table, and notifying the screen control means of data indicating the display line segment. Characteristic line segment data recording/selection method.
JP3105127A 1991-04-11 1991-04-11 System for recording and selecting line segment data Pending JPH04313171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3105127A JPH04313171A (en) 1991-04-11 1991-04-11 System for recording and selecting line segment data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3105127A JPH04313171A (en) 1991-04-11 1991-04-11 System for recording and selecting line segment data

Publications (1)

Publication Number Publication Date
JPH04313171A true JPH04313171A (en) 1992-11-05

Family

ID=14399118

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3105127A Pending JPH04313171A (en) 1991-04-11 1991-04-11 System for recording and selecting line segment data

Country Status (1)

Country Link
JP (1) JPH04313171A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006028158A1 (en) * 2004-09-09 2006-03-16 Ssd Company Limited Tilt detection method and entertainment system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006028158A1 (en) * 2004-09-09 2006-03-16 Ssd Company Limited Tilt detection method and entertainment system

Similar Documents

Publication Publication Date Title
EP0249399B1 (en) Multiwindow control method and apparatus for work station having multiwindow function
US4819189A (en) Computer system with multiwindow presentation manager
KR900006042B1 (en) Display control apparatus for use in composite document processing apparatus
US5625782A (en) Differently magnified interlocked windows with automatic scrolling
JPH0421198B2 (en)
JPH04313171A (en) System for recording and selecting line segment data
JPH0549993B2 (en)
US5204945A (en) Method of displaying thick line and information unit and display system used therefor
JPH03282586A (en) Brightness control system of multiwindow display device
JP2692842B2 (en) Multi-window display
JPH10133822A (en) Mouse cursor control system
JP3028543B2 (en) Shape redisplay method
JPH0462090B2 (en)
JP2664903B2 (en) Graphic system
JP3674164B2 (en) Display device and display method
JPH1021010A (en) Document editor
JPH09204166A (en) Document editing device
JPH10154040A (en) Image processor
JP2538040B2 (en) Process priority setting method and multi-process management device
JPH07230357A (en) Method and device for input pointer display
JPH04336321A (en) Window display system
JP2544778B2 (en) Media processing method
JPH03226796A (en) Image processor
JPH0619670A (en) Window system and window display method
JPH01161525A (en) System for controlling display of sub-window