JP2707142B2 - Hidden line broken line processing method - Google Patents

Hidden line broken line processing method

Info

Publication number
JP2707142B2
JP2707142B2 JP1233458A JP23345889A JP2707142B2 JP 2707142 B2 JP2707142 B2 JP 2707142B2 JP 1233458 A JP1233458 A JP 1233458A JP 23345889 A JP23345889 A JP 23345889A JP 2707142 B2 JP2707142 B2 JP 2707142B2
Authority
JP
Japan
Prior art keywords
line
graphic
data
graphic data
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1233458A
Other languages
Japanese (ja)
Other versions
JPH0395691A (en
Inventor
雅博 許斐
Original Assignee
日立ソフトウェアエンジニアリング株式会社
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 日立ソフトウェアエンジニアリング株式会社 filed Critical 日立ソフトウェアエンジニアリング株式会社
Priority to JP1233458A priority Critical patent/JP2707142B2/en
Publication of JPH0395691A publication Critical patent/JPH0395691A/en
Application granted granted Critical
Publication of JP2707142B2 publication Critical patent/JP2707142B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、隠線部破線化処理方法に関し、特に、図形
処理装置において、図形の重なり状態を適切に表示する
ため、隠線部分を破線化して表示できる隠線部破線化処
理方法に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a hidden line broken line processing method, and more particularly, to a method of processing a hidden line portion in a graphic processing apparatus in order to appropriately display an overlapping state of graphics. The present invention relates to a hidden line broken line processing method that can be converted and displayed.

〔従来の技術〕[Conventional technology]

従来、図形処理装置においては、作成した図形をグラ
フィックディスプレイまたはXYプロッタなどの図形出力
装置に出力する。図形出力装置に図形を出力する際、重
なり図形に対しては、下側の図形と上側の図形とが重な
る部分は、隠線として表示を消去する隠線消去の処理が
施されて、表示出力される。この図形の隠線消去の表示
方法に関しては、例えば、特開昭62−221786号公報に記
載された「二次元図形における隠線消去方法」を知られ
ている。ここに記載されている隠線消去方法は、シンボ
ル図形のデータにそのシンボル図形の存在領域に相当す
る背景色からなる領域図形を併わせ持たせ、出力時に線
図形および面図形の一般図形,シンボル図形の背景色領
域図形,シンボル図形の順に出力することにより、シン
ボル図形で一般図形を隠線消去する方法がある。そこに
は、具体的に、上下水道の配管路図を計算機管理する場
合を例として、地図の水道管上に各種弁等のシンボル図
形と同じ形状の背景色の閉領域図形を出力して、隠線と
なる水道管の一部を消去して図形表示する方法の例が示
されている。
2. Description of the Related Art Conventionally, a graphic processing apparatus outputs a generated graphic to a graphic output device such as a graphic display or an XY plotter. When a graphic is output to a graphic output device, a portion where the lower graphic and the upper graphic overlap with each other is subjected to a hidden line erasing process of erasing a display as a hidden line, and the display output is performed. Is done. As a method of displaying hidden lines in a figure, for example, a "method of removing hidden lines in a two-dimensional figure" described in Japanese Patent Application Laid-Open No. 62-221786 is known. The hidden line elimination method described here is to make the data of a symbol figure accompany an area figure having a background color corresponding to the area where the symbol figure exists, and to output a general figure and a symbol of a line figure and a plane figure at the time of output. There is a method of outputting a background color area figure of a figure and a symbol figure in this order, thereby eliminating a hidden figure from a general figure with a symbol figure. There, specifically, as an example of computer management of water supply and sewage piping diagram, a closed area figure of the same background color as the symbol figure of various valves etc. is output on the water pipe of the map, An example of a method of erasing a part of a water pipe which becomes a hidden line and displaying a graphic is shown.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

ところで、製図図面においては、隠線の処理は消去よ
りもむしろ破線表示の方が一般的である。しかし、図形
処理装置には、隠線部破線化処理機能が設けられていな
いため、例えば、CAD(計算機支援設計)システムを利
用した図形を作成する設計者は、手作業で隠線部分を切
り取り、一つずつ実線から破線に変えていかなければな
らない。この手作業による操作は時間がかかり、操作ミ
スも発生しやすい。また、隠線部分の形状を修正した場
合には破線部分も変わるので、その修正により新たに隠
線となる部分に対して、更に手作業で破線とし、新たに
見えるようになった部分は再度実線化しなければならな
い。
By the way, in the drafting drawings, the processing of the hidden line is generally indicated by a broken line rather than erased. However, since the graphic processing apparatus is not provided with a function for processing a broken line into a dashed line, a designer who creates a figure using a CAD (computer aided design) system, for example, manually cuts out the hidden line. , One by one, from the solid line to the broken line. This manual operation is time-consuming and operation errors are likely to occur. In addition, when the shape of the hidden line portion is modified, the broken line portion also changes. Therefore, the portion that becomes a new hidden line due to the correction is further manually made to be a broken line, and the portion that is newly visible becomes a new one again. Must be solid line.

このように、実線の一部を破線化するだけでも手間が
かかるが、ミスや修正により一度切断し破線化した図形
を元の一つの実線図形に戻すには、さらに時間がかか
り、ここでもまた、ミスを起こしやすい。
As described above, it takes time to change a part of a solid line to a dashed line, but it takes more time to return the figure that has been cut once due to an error or correction to a dashed figure to the original solid line figure. Easy to make mistakes.

本発明は、前記問題点を解決するためになされたもの
である。
The present invention has been made to solve the above problems.

本発明の目的は、隠線に破線化作業を簡単に、しかも
確実に行える隠線部破線化処理方法を提供することにあ
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide a hidden line broken line processing method which can easily and reliably perform a broken line forming operation on a hidden line.

本発明の前記ならびにその他の目的と新規な特徴は、
本明細書の記述及び添付図面によって明らかになるであ
ろう。
The above and other objects and novel features of the present invention are as follows.
It will become apparent from the description of the present specification and the accompanying drawings.

〔課題を解決するための手段〕[Means for solving the problem]

上記目的を達成するため、本発明においては、図形計
算を行い、表示する図形の図形データと隠線部分を隠す
閉領域図形のマスク図形データとを発生させて表示装置
に送る演算装置と、図形データを蓄えておくセグメント
バッファ装置と、表示優先度に従って図形データの表示
制御を行う表示制御装置と、図形データを画面上に表示
する表示装置からなる図形処理装置において、一つの図
形に対して、実線の図形データと、実線の図形データよ
り表示優先度を高くした実線の図形と同形の破線の図形
データと、実線の図形データと破線の図形データとの間
の表示優先度で背景色とした隠線部分をおおう閉領域図
形のマスク図形データとを発生させ、表示優先度にした
がって図形表示を行い、隠線部分を破線化することを特
徴とする。
In order to achieve the above object, according to the present invention, there is provided an arithmetic unit which performs graphic calculation, generates graphic data of a graphic to be displayed and mask graphic data of a closed area graphic which hides a hidden line portion, and sends the generated data to a display device. In a graphic processing device including a segment buffer device that stores data, a display control device that controls display of graphic data according to a display priority, and a display device that displays graphic data on a screen, for one graphic, The background color is determined by the solid line graphic data, the broken line graphic data having the same shape as the solid line graphic whose display priority is higher than that of the solid line graphic data, and the display priority between the solid line graphic data and the broken line graphic data. It is characterized in that mask figure data of a closed area figure covering the hidden line part is generated, the figure is displayed according to the display priority, and the hidden line part is turned into a broken line.

〔作用〕[Action]

前記手段によれば、図形処理装置において、一つの図
形に対して、実線の図形データと、実線の図形データよ
り表示優先度を高くした実線の図形と同形の破線の図形
データと、実線の図形データと破線の図形データとの間
の表示優先度で背景色とした隠線部分をおおう閉領域図
形のマスク図形データとを発生させ、表示優先度にした
がって図形表示を行い、隠線部分を破線化する。
According to the above means, in the graphic processing device, for one graphic, solid graphic data, broken graphic data having the same shape as the solid graphic having a higher display priority than the solid graphic data, and a solid graphic Generate mask figure data of a closed area figure that covers the hidden line part that is the background color with the display priority between the data and the broken line figure data, display the figure according to the display priority, and dash the hidden line part Become

すなわち、表示制御装置は、図形データの表示優先度
にしたがって、表示装置に図形データを重ねて表示す
る。このため、隠線部分をおおう閉領域の背景色のマス
ク図形データが、実線の図形データの手前に表示されて
隠線消去の処理が行われる。そして、更に、その手前
に、実線図形と同形の破線図形が表示される。これによ
り、破線図形は、マスク図形がある図形領域では背景色
の手前に破線図形が表示されて破線となり、マスク図形
がない図形領域では、実線図形と同形の破線図形が、実
線図形と重なって表示され、実線の状態で表示される。
That is, the display control device superimposes and displays the graphic data on the display device according to the display priority of the graphic data. For this reason, the mask figure data of the background color of the closed area covering the hidden line portion is displayed in front of the solid line figure data, and the hidden line erasing process is performed. Further, a dashed figure having the same shape as the solid line figure is further displayed in front of the figure. As a result, in the graphic area where the mask graphic is present, the dashed graphic is displayed in front of the background color and becomes a dashed line, and in the graphic area where the mask graphic is not present, the dashed graphic having the same shape as the solid graphic overlaps the solid graphic. It is displayed in a solid line.

このように、隠線部分となる図形領域においては、背
景色を持ったマスク図形がそれより表示優先度の低い図
形(実線図形)の手前に表示されるが、背景色なので実
際には見えず、このため表示優先度が低い図形、即ち実
線図形のみが消去される。また、破線図形はマスク図形
よりも表示優先度を高くしてあるため、更に手前に表示
されることとなり、消去されることがない。この隠線消
去の動作は、表示図形数やマスク図形の形状に関係なく
行われる。
As described above, in the figure area which is a hidden line portion, the mask figure having the background color is displayed in front of the figure (solid line figure) having a lower display priority, but is not actually visible because it is the background color. Therefore, only the graphic having the lower display priority, that is, the solid graphic is erased. Further, since the broken line graphic has a higher display priority than the mask graphic, it is displayed further on the front side and is not erased. This hidden line erasing operation is performed irrespective of the number of display figures and the shape of the mask figure.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を用いて具体的に説明
する。
Hereinafter, an embodiment of the present invention will be specifically described with reference to the drawings.

第1図は、本発明の一実施例にかかる図形処理装置の
要部構成を示すブロック図である。第1図において、1
は図形計算を行う演算装置、2は表示制御装置、3はセ
グメントバッファ装置、4は表示装置である。
FIG. 1 is a block diagram showing a main configuration of a graphic processing apparatus according to an embodiment of the present invention. In FIG. 1, 1
Is an arithmetic unit for performing graphic calculations, 2 is a display control device, 3 is a segment buffer device, and 4 is a display device.

演算装置1は、表示装置4に表示する図形の図形デー
タに対して、隠線部分をおおうマスク図形の図形データ
を生成する演算を行い、また、各図形に対する表示優先
度を決定して、生成した図形データを表示制御装置2を
介してセグメントバッファ装置3に格納する。表示制御
装置2はセグメントバッファ装置3に格納された図形デ
ータの表示順序を表示優先度にしたがって決定し、表示
装置に送出する制御を行う制御装置である。また、セグ
メントバッファ装置3は、表示装置4において表示を行
う各々の図形の図形データを格納するバッファ記憶装置
であり、表示装置4は、表示制御装置2がセグメントバ
ッファ装置3から表示優先度に従って、読出し送出して
きた図形データを順次に重ねて画面上に表示する。
The arithmetic unit 1 performs an operation for generating graphic data of a mask graphic covering a hidden line portion on graphic data of a graphic to be displayed on the display device 4, determines display priority for each graphic, and generates the graphic data. The obtained graphic data is stored in the segment buffer device 3 via the display control device 2. The display control device 2 is a control device that determines the display order of the graphic data stored in the segment buffer device 3 according to the display priority, and controls transmission to the display device. Further, the segment buffer device 3 is a buffer storage device for storing graphic data of each graphic to be displayed on the display device 4. The graphic data read and transmitted are sequentially superimposed and displayed on the screen.

第2図は、演算装置が行う隠線部分の破線化処理の一
例を示すフローチャートである。第2図を参照して説明
すると、この破線化処理では、まず最初に、ステップ11
において、表示優先度(以下、単に優先度と称する)を
示す変数PRIの値を0に初期値設定する。次に、ステッ
プ12で、操作者から図形作成の指示が入力されると、こ
れをステップ13の判断ステップにより、図形の種類を判
定して、それぞれの図形の種類に対応した処理を行う。
すなわち、図形の指示が線分や円などの線図形であれ
ば、ステップ14に進んで、まず、優先度を1つ上げる。
すなわち変数PRIに1を加算する。次に、ステップ15
で、変数PRIを優先度として、指定された図形から実線
図形で表示する線図形データを生成する。次に、ステッ
プ16において、優先度を最大にして、同じく指定された
図形から破線図形で表示する線図形データを生成する。
これにより、指示された表示図形に対して、同じ形の実
線図形データと、表示優先度が高い破線図形データとが
生成される。この線図形の表示は、実線図形の上に破線
図形が重なって表示されるので、画面上は実線のみ表示
される状態となる。このような線図形の一部に対して、
隠線消去の必要性が発生する面図形(線図形の上側に重
なる面図形)の図形の作成指示が入力されれば(ステッ
プ12)、これを受けて、ステップ13の図形の種類の判断
ステップにより判定し、次に、ステップ17に進む。ステ
ップ17においては、実線図形の優先度より面図形の優先
度を1つ上げて表示するため、優先度を示す既設定の変
数PRIに1を加算し、次にステップ18においてこの変数P
RIを優先度として、指示された図形形状をマスク図形で
表示するマスク図形データを生成する。このマスク図形
データを表示すると、先に表示制御装置に対して送出
し、表示している実線の線図形よりは表示優先度が高
く、マスク図形データの面図形が表示されることになる
ので、面図形が重なっている部分では線図形の実線が消
去されて、マスク図形の背景色の面図形の上に線図形の
破線が表示される。すなわち、背景色のマスク図形デー
タよりも破線図形データの方が表示優先度が高いため、
破線は消去されない。これにより、線図形において、マ
スク図形が重なった部分は破線で表示されることとな
り、隠線部分が破線化されて表示される。次に、必要が
ある場合に、ステップ19において、面図形における枠線
を、マスク図形データと同じ優先度で表示する図形デー
タを生成する処理を行い、面図形の処理を終了する。
FIG. 2 is a flowchart showing an example of a process for converting a hidden line portion into a dashed line performed by the arithmetic unit. Referring to FIG. 2, in the broken line processing, first, in step 11
In, the value of a variable PRI indicating the display priority (hereinafter simply referred to as priority) is initialized to 0. Next, in step 12, when an instruction to create a figure is input from the operator, the type of the figure is determined in the determination step of step 13, and processing corresponding to the type of each figure is performed.
That is, if the instruction of the figure is a line figure such as a line segment or a circle, the process proceeds to step 14, and the priority is increased by one.
That is, 1 is added to the variable PRI. Then step 15
Then, line graphic data to be displayed as a solid line graphic is generated from the specified graphic using the variable PRI as a priority. Next, in step 16, line graphic data to be displayed as a broken line figure is generated from the figure specified in the same manner with the highest priority.
As a result, for the designated display graphic, solid-line graphic data of the same shape and broken-line graphic data of high display priority are generated. In the display of the line figure, the broken line figure is displayed on the solid line figure so that only the solid line is displayed on the screen. For some of these line shapes,
When an instruction to create a figure of a plane figure (a plane figure superimposed on a line figure) for which the necessity of hidden line elimination occurs is input (step 12), in response to the instruction, a figure type determination step of step 13 is received. Then, the process proceeds to step 17. In step 17, 1 is added to a preset variable PRI indicating the priority in order to display the surface graphic with one more priority than the solid line graphic.
Using the RI as a priority, mask figure data for displaying the designated figure shape as a mask figure is generated. When this mask graphic data is displayed, it is sent to the display control device first, and the display priority is higher than the displayed solid line graphic, and the plane graphic of the mask graphic data is displayed. The solid line of the line figure is deleted at the portion where the plane figure overlaps, and the broken line of the line figure is displayed on the plane figure of the background color of the mask figure. That is, the display priority of the broken line graphic data is higher than that of the mask graphic data of the background color.
Dashed lines are not deleted. As a result, in the line graphic, the portion where the mask graphic overlaps is displayed as a broken line, and the hidden line portion is displayed as a broken line. Next, if necessary, in step 19, processing for generating graphic data for displaying the frame lines in the plane graphic with the same priority as the mask graphic data is performed, and the processing of the plane graphic is completed.

また、ステップ12の図形作成指示入力において、終了
指示が入力された場合は、ステップ13の判断ステップで
これを判定して、処理を終了する。
If an end instruction is input in the input of the figure creation instruction in step 12, this is determined in the determination step of step 13, and the process ends.

このように1つの線図形に対して、それぞれに表示優
先度を定めて、実線図形データと、実線と同形の破線図
形データと、隠線部分のマスク図形データを生成し、表
示優先度にしたがって表示することにより、線図形の隠
線部分の破線化を行うことができる。
In this way, the display priority is determined for each of the line figures, and solid line figure data, dashed line figure data having the same shape as the solid line, and mask figure data of the hidden line portion are generated. By displaying, the hidden line portion of the line figure can be changed to a dashed line.

第3図は、線図形の隠線部分を破線化して表示する表
示処理の動作を説明する図である。
FIG. 3 is a diagram for explaining the operation of a display process for displaying a hidden line portion of a line graphic as a broken line.

第3図に示すように、隠線部分を破線化する線図形に
対して、それぞれに表示優先度を定めた実線図形データ
21、面図形のマスク図形データ22および実線図形と同形
の破線図形データ23を、表示優先度にしたがって表示す
ると、表示装置の表示画面25には、隠線部分が破線化さ
れた線図形データ24が表示される。すなわち、1つの線
図形に対して、まず、ある表示優先度(PRI=1)を定
めて実線の図形データ21を表示し、実線の図形データよ
り表示優先度(PRI=最高値)を高くした実線図形と同
形の破線図形データ23と、実線図形データ22と破線図形
データ23との間の表示優先度(PRI=2)で背景色とし
た隠線部分をおおう閉領域のマスク図形データ22とを発
生させ、表示優先度にしたがって図形表示を行い、隠線
部分を破線化した線図形データ24が表示画面25に表示さ
れる。
As shown in FIG. 3, solid line figure data in which display priorities are respectively set for line figures for converting hidden line portions into broken lines.
21. When the mask figure data 22 of the plane figure and the dashed figure data 23 having the same shape as the solid figure are displayed in accordance with the display priority, the display screen 25 of the display device displays the line figure data 24 in which the hidden line portion is broken. Is displayed. That is, for a single line figure, first, a certain display priority (PRI = 1) is determined, the solid line figure data 21 is displayed, and the display priority (PRI = highest value) is made higher than the solid line figure data. A dashed line figure data 23 having the same shape as the solid line figure data, and a mask figure data 22 of a closed area which covers a hidden line portion which is a background color with a display priority (PRI = 2) between the solid line figure data 22 and the dashed line figure data 23 Is generated, a graphic is displayed according to the display priority, and the line graphic data 24 in which the hidden line portion is changed to a broken line is displayed on the display screen 25.

次に、本発明にかかる他の実施例について説明する。
線図形の隠線部分を破線化して表示する場合、特に、面
図形に重なる線図形の数が多くなると、隠線となる部分
が多くなり、それらを区別して表示する必要がある。こ
の場合には、隠線部分の破線の種類を変えて表示できる
ようにすれば、線図形の各図形を区別して表示でき、ま
た、図形の重なりを適切に表示できるようになる。例え
ば、このような複数の種類の破線を区別して表示するた
め、ここでの破線の表示優先度は、実線図形データおよ
びマスク図形データの表示優先度より大きな値で、複数
の異なる値とする。この複数の異なる表示優先度の各々
に対応して破線の種類を設定しておく。そして、設定さ
れた破線の表示優先度の値に応じて、破線の種類を設定
し、破線の線図形データを生成して表示する。これによ
り、隠線部分の破線化処理を複数の種類の破線として表
示できる。
Next, another embodiment according to the present invention will be described.
When the hidden line portion of the line figure is displayed as a broken line, particularly when the number of line figures overlapping the plane figure increases, the number of the hidden lines increases, and it is necessary to distinguish and display them. In this case, if the type of the dashed line in the hidden line portion can be changed and displayed, each of the line figures can be distinguished and displayed, and the overlapping of the figures can be appropriately displayed. For example, in order to distinguish and display such a plurality of types of broken lines, the display priority of the broken line here is a value larger than the display priority of the solid line graphic data and the mask graphic data, and a plurality of different values. The type of the broken line is set corresponding to each of the plurality of different display priorities. Then, the type of the dashed line is set according to the set display priority value of the dashed line, and the dashed line graphic data is generated and displayed. This makes it possible to display the broken line processing of the hidden line portion as a plurality of types of broken lines.

第4図は、本発明の他の実施例にかかる演算装置が行
う隠線部分の破線化処理の他の一例を示すフローチャー
トである。第4図を参照して説明すると、この複数の種
類の破線化処理では、まず、最初に、ステップ31におい
て、優先度を示す変数PRIの値を0に初期値設定する。
次に、ステップ32で、操作者から図形作成の指示が入力
されると、これをステップ33の判断ステップにより、図
形の種類を判定して、それぞれの図形の種類に対応した
処理を行う。すなわち、図形の指示が線分や円などの線
図形であれば、ステップ34に進んで、変数PRIに1を加
算して、まず、優先度を1つ上げる。次に、ステップ35
において、変数PRIの値により、細かめの破線,一点鎖
線,二点鎖線,点線など破線の線種を決定する。次に、
ステップ36で、変数PRIを優先度として、指定された図
形を実線図形で表示する図形データとする。そして、ス
テップ37において、優先度を最大値にして、決定した種
類の破線で、同じく指定された図形を破線図形で表示す
る図形データとする。これにより、指示された表示図形
に対して、同じ形の実線図形データと、表示優先度が高
い破線図形データとが生成される。この一連のステップ
が異なる線図形に対して行なわれた場合、破線の種類を
異なる破線図形データが生成される。この線図形の表示
は、実線図形の上に破線図形が重なって表示されるの
で、画面上は実線のみ表示される状態となる。
FIG. 4 is a flowchart showing another example of a process for converting a hidden line portion into a dashed line performed by an arithmetic unit according to another embodiment of the present invention. Referring to FIG. 4, in the plurality of types of broken line processing, first, in step 31, an initial value of a variable PRI indicating a priority is set to 0.
Next, when an instruction to create a figure is input from the operator in step 32, the type of the figure is determined in the determination step of step 33, and processing corresponding to the type of each figure is performed. That is, if the instruction of the figure is a line figure such as a line segment or a circle, the process proceeds to step 34, where 1 is added to the variable PRI, and the priority is first raised by one. Then step 35
In, the type of the broken line, such as a fine broken line, a one-dot chain line, a two-dot chain line, and a dotted line, is determined by the value of the variable PRI. next,
In step 36, the designated graphic is set as graphic data to be displayed as a solid graphic with the variable PRI as the priority. Then, in step 37, the priority is set to the maximum value, and the figure specified by the broken line of the determined type is displayed as a broken line figure. As a result, for the designated display graphic, solid-line graphic data of the same shape and broken-line graphic data of high display priority are generated. When this series of steps is performed on different line figures, broken line figure data having different types of broken lines is generated. In the display of the line figure, the broken line figure is displayed on the solid line figure so that only the solid line is displayed on the screen.

このような線図形の一部に対して、隠線消去の必要性
が発生する面図形(線図形の上側に重なる面図形)の図
形の作成指示が入力されれば(ステップ32)、これを受
けて、ステップ33の図形の種類の判断ステップにより判
定し、次に、ステップ38に進む。ステップ38において
は、実線図形の優先度より面図形の優先度を1つ上げて
表示するため、優先度を示す既設定の変数PRIに1を加
算する。次に、ステップ39において、変数PRIの値によ
り、破線の線種を決定する。次に、ステップ40で、変数
PRIを優先度として、指示された図形形状をマスク図形
で表示するマスク図形データを生成する。このマスク図
形データを表示すると、先に表示制御装置に対して送出
し、表示している実線の線図形よりは表示優先度が高い
マスク図形データの面図形が表示されることになる。こ
のため、面図形が重なっている部分では線図形の実線が
消去されて、マスク図形の背景色の面図形の上に線図形
の破線が表示される。次に、ステップ41において、面図
形における枠線を、マスク図形データと同じ優先度で表
示する図形データとする処理を行い、ステップ42におい
て、優先度を最大値にして、決定した種類の破線で、同
じく指定された面図形の枠線を破線図形で表示する図形
データを生成する。これにより、指示された隠線部分が
生ずる面図形に対して、同じ形のマスク図形データと、
同じ形の枠線の実線図形データと、表示優先度が高い同
じ形の枠線の破線図形データとが生成される。この一連
のステップが異なる面図形に対して行なわれた場合、実
線の枠線の線図形データが生成され、更に、種類が異な
る破線の枠線の同形の線図形データが生成される。この
線図形の表示は、実線図形の上に破線図形が重なって表
示されるので、画面上は実線のみ表示される状態とな
る。そして、面図形が重なって、隠線部分となる面図形
の一部の枠線は、図形の種類により異なる破線で表示さ
れることとなる。
If an instruction to create a face graphic (a face graphic overlapping on the top of the line figure) for which the necessity of hidden line elimination occurs is input for a part of such a line figure (step 32), this is input. Then, the judgment is made in the step of judging the type of the figure in step 33, and then the process proceeds to step 38. In step 38, 1 is added to a preset variable PRI indicating the priority in order to display the surface graphic with one more priority than the solid line graphic. Next, in step 39, the type of the broken line is determined based on the value of the variable PRI. Next, in step 40, the variable
With PRI as priority, mask figure data for displaying the designated figure shape as a mask figure is generated. When this mask graphic data is displayed, it is sent to the display control device first, and the plane graphic of the mask graphic data having a higher display priority than the displayed solid line graphic is displayed. For this reason, the solid line of the line figure is deleted in the portion where the plane figure overlaps, and the broken line of the line figure is displayed on the plane figure of the background color of the mask figure. Next, in step 41, a process of setting the frame line in the plane graphic to graphic data to be displayed with the same priority as the mask graphic data is performed, and in step 42, the priority is set to the maximum value and the determined type of broken line is displayed. The graphic data for displaying the frame line of the designated surface graphic as a broken line graphic is generated. As a result, the mask graphic data of the same shape and
Solid line graphic data of a frame line of the same shape and broken line graphic data of a frame line of the same shape having a high display priority are generated. When this series of steps is performed on different plane figures, line figure data of a solid frame line is generated, and further, line figure data of the same type of a broken line frame line of a different type is generated. In the display of the line figure, the broken line figure is displayed on the solid line figure so that only the solid line is displayed on the screen. Then, some frame lines of the plane graphic which are overlapped with each other and become a hidden line portion are displayed with different broken lines depending on the type of the graphic.

また、ステップ32の図形作成指示入力において、終了
指示が入力された場合は、ステップ33の判断ステップで
これを判定して、処理を終了する。
If an end instruction is input in the graphic creation instruction input in step 32, this is determined in the determination step in step 33, and the process ends.

第5図は、面図形の枠線の隠線部分を破線化して表示
する表示処理の動作を説明する図である。
FIG. 5 is a diagram for explaining an operation of a display process for displaying a hidden line portion of a frame line of a plane graphic as a broken line.

面図形に対しては、第5図に示すように、面図形50に
領域の周囲に枠線51が設けられており、この枠線の線図
形データに対して、線図形と同様な隠線部破線化処理が
行われる。隠線部分を破線化するために、枠線の線図形
に対して、それぞれに表示優先度を定めた実線図形デー
タ52、面図形のマスク図形データ53および枠線の実線図
形と同形の破線図形データ54を、表示優先度にしたがっ
て表示すると、表示装置の表示画面55には、他の面図形
56により隠線部分となった枠線部分の一部57が破線化さ
れた図形データが表示される。
As shown in FIG. 5, a frame 51 is provided around the area in the plane figure 50 for the plane figure, and a hidden line similar to the line figure is provided for the line figure data of the frame. Partial broken line processing is performed. In order to convert the hidden line into a dashed line, the solid line figure data 52, the mask figure data 53 of the plane figure, and the broken line figure having the same shape as the solid line figure of the frame are set for each of the frame line figures. When the data 54 is displayed according to the display priority, the display screen 55 of the display device displays another surface graphic.
The graphic data in which a part 57 of the frame line portion which became the hidden line portion by the 56 is turned into a broken line is displayed.

以上、本発明を実施例にもとづき具体的に説明した
が、本発明は、前記実施例に限定されるものではなく、
その要旨を逸脱しない範囲において種々変更可能である
ことは言うまでもない。
As mentioned above, although the present invention was explained concretely based on an example, the present invention is not limited to the above-mentioned example.
It goes without saying that various changes can be made without departing from the scope of the invention.

〔発明の効果〕〔The invention's effect〕

以上、説明したように、本発明によれば、図形処理装
置において図面中の隠線部分の破線化を自動的に行うこ
とができ、破線化された部分の変更も特別な操作なしで
実行できるので、操作者のミスを防止し、作業負荷を大
いに軽減することができる。
As described above, according to the present invention, the graphic processing apparatus can automatically perform the dashing of the hidden line portion in the drawing, and can change the dashed portion without any special operation. Therefore, an operator's mistake can be prevented, and the work load can be greatly reduced.

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

第1図は、本発明の一実施例にかかる図形処理装置の要
部構成を示すブロック図、 第2図は、演算装置が行う隠線部分の破線化処理の一例
を示すフローチャート、 第3図は、線図形の隠線部分を破線化して表示する表示
処理の動作を説明する図、 第4図は、本発明の他の実施例にかかる演算装置が行う
隠線部分の破線化処理の他の一例を示すフローチャー
ト、 第5図は、面図形の枠線の隠線部分を破線化して表示す
る表示処理の動作を説明する図である。 図中、1……演算装置,2……表示制御装置,3……セグメ
ントバッファ装置,4……表示装置,21、52……実線図形
データ,22、53……マスク図形データ,23、54……破線図
形データ,24……線図形データ,25、55……表示画面,50
……面図形,51……枠線,56……他の面図形
FIG. 1 is a block diagram showing a configuration of a main part of a graphic processing apparatus according to an embodiment of the present invention. FIG. 2 is a flowchart showing an example of a process for converting a hidden line portion into a dashed line performed by an arithmetic unit. FIG. 4 is a diagram for explaining an operation of a display process for displaying a hidden line portion of a line graphic with a broken line, and FIG. 4 is a diagram showing another example of a hidden line portion broken line process performed by an arithmetic unit according to another embodiment of the present invention. FIG. 5 is a diagram for explaining an operation of a display process for displaying a hidden line portion of a frame of a plane graphic as a broken line. In the figure, 1 ... arithmetic unit, 2 ... display control unit, 3 ... segment buffer unit, 4 ... display unit, 21, 52 ... solid line figure data, 22, 53 ... mask figure data, 23, 54 …… Dashed line figure data, 24 …… Line figure data, 25,55 …… Display screen, 50
…… surface figure, 51 …… frame line, 56 …… other plane figure

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】図形計算を行い、表示する図形の図形デー
タと隠線部分を隠す閉領域図形のマスク図形データとを
発生させて表示装置に送る演算装置と、図形データを蓄
えておくセグメントバッファ装置と、表示優先度にした
がって図形データの表示制御を行う表示制御装置と、図
形データを画面上に表示する表示装置からなる図形処理
装置において、一つの図形に対して、実線の図形データ
と、実線の図形データより表示優先度を高くした実線の
図形と同形の破線の図形データと、実線の図形データと
破線の図形データとの間の表示優先度で背景色とした隠
線部分をおおう閉領域図形のマスク図形データとを発生
させ、表示優先度に従って図形表示を行い、隠線部分を
破線化することを特徴とする隠線部破線化処理方法。
1. An arithmetic unit for performing graphic calculation, generating graphic data of a graphic to be displayed and mask graphic data of a closed area graphic for concealing a hidden line portion, and sending the generated data to a display device, and a segment buffer for storing the graphic data. Device, a display control device that performs display control of graphic data according to display priority, and a graphic processing device that includes a display device that displays graphic data on a screen. Closes the dashed line graphic data of the same shape as the solid line graphic whose display priority is higher than that of the solid line graphic data, and covers the hidden line part with the display priority between the solid line graphic data and the broken line graphic data as the background color. A hidden line broken line processing method characterized by generating mask figure data of an area figure, displaying a figure according to the display priority, and converting a hidden line portion into a broken line.
【請求項2】請求項1に記載の隠線部破線化処理方法に
おいて、破線の表示優先示は、実線の図形データおよび
マスク図形データの表示優先度よりも大きな値で、複数
の異なる値を設定し、破線の表示優先度の値に応じて破
線の種類を指定することを特徴とする隠線部破線化処理
方法。
2. The hidden line portion dashing processing method according to claim 1, wherein the display priority of the broken line is a value larger than the display priority of the solid line graphic data and the mask graphic data, and a plurality of different values are displayed. And setting the type of the broken line according to the display priority value of the broken line.
【請求項3】面図形の図形データに対しては枠線の図形
データを設け、枠線の図形データに対して、枠線の形の
実線図形データと、該実線図形データより表示優先度を
高くした枠線の形と同形の破線の破線図形データと、実
線図形データと破線図形データとの間の表示優先度で面
図形と同形の閉領域図形のマスク図形データとを発生さ
せ、表示優先度にしたがって図形表示を行い、隠線部分
を破線化することを特徴とする請求項1に記載の隠線部
破線化処理方法。
3. Graphic data of a frame is provided for graphic data of a plane graphic, and for the graphic data of a frame, solid line graphic data in the form of a frame and a display priority based on the solid graphic data are set. Generates dashed-line figure data of a dashed line having the same shape as the shape of the raised frame line, and mask figure data of a closed-area figure having the same shape as the plane figure with a display priority between the solid-line figure data and the dashed-line figure data. 2. The hidden line broken line processing method according to claim 1, wherein the graphic display is performed according to the degree, and the hidden line portion is broken.
JP1233458A 1989-09-08 1989-09-08 Hidden line broken line processing method Expired - Fee Related JP2707142B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1233458A JP2707142B2 (en) 1989-09-08 1989-09-08 Hidden line broken line processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1233458A JP2707142B2 (en) 1989-09-08 1989-09-08 Hidden line broken line processing method

Publications (2)

Publication Number Publication Date
JPH0395691A JPH0395691A (en) 1991-04-22
JP2707142B2 true JP2707142B2 (en) 1998-01-28

Family

ID=16955351

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1233458A Expired - Fee Related JP2707142B2 (en) 1989-09-08 1989-09-08 Hidden line broken line processing method

Country Status (1)

Country Link
JP (1) JP2707142B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102287207B (en) * 2011-09-08 2013-09-04 中铁上海工程局有限公司 Assembling jacking method in relation to serious collapse of small-section tunnel

Also Published As

Publication number Publication date
JPH0395691A (en) 1991-04-22

Similar Documents

Publication Publication Date Title
EP0249399B1 (en) Multiwindow control method and apparatus for work station having multiwindow function
JP2585515B2 (en) Drawing method
US5182797A (en) Multi-processor graphics display system for displaying hierarchical data structures
JP2512080B2 (en) Display device having multi-window function
JP2707142B2 (en) Hidden line broken line processing method
JPH08241394A (en) Image cropping device
JPS6339947B2 (en)
EP0425172A2 (en) Graphics display system
JP2667454B2 (en) Plotting device
JP3286366B2 (en) Inspection apparatus for contour data and automatic drawing input system including the same
JP2000048218A (en) Computer-aided design apparatus, computer-aided design method, and recording medium recording computer-aided design program
JPH0877331A (en) Automatic page up device
JPS63247818A (en) Tablet menu input method
JPH01103784A (en) Clipping system
JPH01244502A (en) Pc program display system
JPH08194831A (en) Image processing method and apparatus
JP2652435B2 (en) Image display method
JP2532621B2 (en) Digital processor
JPH04118786A (en) Image processor
JPH10162168A (en) How to input 3D drawing vector data
JPS63211466A (en) Graphic input device
JPH0452983A (en) Three-dimensional graphic displaying system
JPH1031760A (en) Graphic processing unit
JPS61156479A (en) Displayed picture processor
JPH07141524A (en) Drawing processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees