[go: up one dir, main page]

JPH0731737B2 - Graphic drawing device - Google Patents

Graphic drawing device

Info

Publication number
JPH0731737B2
JPH0731737B2 JP60221283A JP22128385A JPH0731737B2 JP H0731737 B2 JPH0731737 B2 JP H0731737B2 JP 60221283 A JP60221283 A JP 60221283A JP 22128385 A JP22128385 A JP 22128385A JP H0731737 B2 JPH0731737 B2 JP H0731737B2
Authority
JP
Japan
Prior art keywords
graphic image
data
graphic
line
ram
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 - Lifetime
Application number
JP60221283A
Other languages
Japanese (ja)
Other versions
JPS6280774A (en
Inventor
利夫 浜中
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP60221283A priority Critical patent/JPH0731737B2/en
Publication of JPS6280774A publication Critical patent/JPS6280774A/en
Publication of JPH0731737B2 publication Critical patent/JPH0731737B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、複数の図形イメージを描画して表示できる図
形描画装置に関する。
The present invention relates to a graphic drawing device capable of drawing and displaying a plurality of graphic images.

[従来の技術] 従来、複数の図形イメージを描画して表示できる図形描
画装置において、例えば道幅を持った道路地図を作成す
るような場合、まず直線図形を指定して、この直線の図
形イメージを1本づつ描画して所望する地図の図形イメ
ージを表示させていた。
[Prior Art] Conventionally, in a graphic drawing device capable of drawing and displaying a plurality of graphic images, for example, when a road map having a road width is created, a straight line graphic is first designated, and this straight line graphic image is displayed. The graphic image of the desired map was displayed by drawing one by one.

[発明が解決しようとする課題] また、ある道幅をもった道路の図形イメージを順次描画
していく際、既に描画した道路とその道路とが互いに重
なるような場合がある。例えば十字路として交差するよ
うな場合であり、その交差点では十字路の図形イメージ
に書き換える必要がある。
[Problems to be Solved by the Invention] Further, when sequentially drawing a graphic image of a road having a certain road width, there is a case where the road already drawn and the road overlap each other. For example, there is a case where the vehicle intersects as a crossroads, and it is necessary to rewrite it at the intersection to a graphic image of the crossroads.

そして、従来ではその書き換えのために、これから新た
に描画しようとする道路の図形イメージはもちろんのこ
と、既に描画した道路の図形イメージそのものの、各交
差点部分を互いに補正する必要があった。この補正のた
めには、既に描画した道路の図形イメージの場合、ま
ず、その図形イメージそのものを一旦消去して、交差点
部分では十字路になるように図形イメージを描画し直す
必要があり、かなり煩雑な図形描画作業が必要であっ
た。
In the past, in order to rewrite it, it has been necessary to correct each intersection of the graphic image of the road to be newly drawn and the graphic image of the road already drawn. For this correction, in the case of a road graphic image that has already been drawn, it is necessary to first erase the graphic image itself and then redraw the graphic image so that it becomes a crossroad at the intersection, which is quite complicated. Drawing work was necessary.

本発明の課題は、所望位置に道路等の新たな図形イメー
ジを描画する際に、他の道路等の図形イメージとの重な
り(例えば交差点部分等)があるかどうかを調べて、そ
の結果に応じて自動的に補正された図形描画を簡易に行
えるようにすることである。
An object of the present invention is to, when drawing a new graphic image of a road or the like at a desired position, check whether or not there is an overlap (for example, an intersection portion) with a graphic image of another road or the like, and depending on the result. This is to make it possible to easily perform graphic drawing automatically corrected.

[課題を解決するための手段] 本発明の手段は次の通りである。[Means for Solving the Problems] Means of the present invention are as follows.

第1の図形イメージを任意指定の位置に描画する第1の
描画手段と、この第1の描画手段で描画された上記第1
の図形イメージを表示画面上に表示する第1の表示制御
手段と、上記第1の図形イメージが上記表示画面上で表
示されている状態において、所望する任意の位置での第
2の図形イメージの描画が指定された際に、この第2の
図形イメージの描画領域が上記第1の図形イメージの描
画領域の一部と重なるか否かを判別する判別手段と、こ
の判別手段で上記第2の図形イメージの描画領域が上記
第1の図形イメージの描画領域の一部と重ならないこと
が判別された際は、上記所望する任意の位置に上記第2
の図形イメージをそのまま描画し、また、上記第2の図
形イメージの描画領域が上記第1の図形イメージの描画
領域の一部と重なることが判別された際は、上記第1の
図形イメージと上記第2の図形イメージとが重なる領域
部分で連結されるように、上記第1及び第2の図形イメ
ージの個々におけるその重なり領域部分を補正して上記
第1及び上記第2の図形イメージを描画する第2の描画
手段と、この第2の描画手段で補正されずに描合された
上記第2の図形イメージ、あるいは補正されて描画され
た第1及び第2の図形イメージを上記表示画面上に表示
する第2の表示制御手段と、を有する。
First drawing means for drawing the first graphic image at an arbitrarily designated position, and the first drawing means drawn by the first drawing means.
Of the second graphic image at a desired arbitrary position in the state where the first graphic image is displayed on the display screen. When the drawing is designated, the determining means determines whether the drawing area of the second graphic image overlaps a part of the drawing area of the first graphic image, and the determining means determines the second area. When it is determined that the drawing area of the graphic image does not overlap a part of the drawing area of the first graphic image, the second area is set at the desired arbitrary position.
Is drawn as it is, and when it is determined that the drawing area of the second graphic image overlaps a part of the drawing area of the first graphic image, The overlapping area portion of each of the first and second graphic images is corrected so that the overlapping area portion is connected to the second graphic image, and the first and second graphic images are drawn. The second drawing means and the second graphic image drawn without correction by the second drawing means, or the first and second graphic images drawn with correction, are displayed on the display screen. Second display control means for displaying.

[作用] 本発明の手段の作用は次の通りである。[Operation] The operation of the means of the present invention is as follows.

第1の図形イメージが表示画面上で表示されている状態
において、所望する任意の位置での第2の図形イメージ
の描画が指定されると、判別手段はこの第2の図形イメ
ージの描画領域が上記第1の図形イメージの描画領域の
一部と重なるか否かを判別し、この判別手段で上記第2
の図形イメージの描画領域が上記第1の図形イメージの
描画領域の一部と重ならないことが判別された際は、上
記所望する任意の位置に上記第2の図形イメージがその
まま描画され、また、上記第2の図形イメージの描画領
域が上記第1の図形イメージの描画領域の一部と重なる
ことが判別された際は、上記対1の図形イメージと上記
第2の図形イメージとがその重なる領域部分で連結され
るように、上記第1及び第2の図形イメージの個々にお
けるその重なり領域部分を補正して上記第1及び上記第
2の図形イメージが描画される。そして、この補正され
ずに描画された上記第2の図形イメージ、あるいは補正
されて描画された第1及び第2の図形イメージは上位表
示画面上に表示される。
When the drawing of the second graphic image at a desired arbitrary position is designated in the state where the first graphic image is displayed on the display screen, the determining means determines that the drawing area of the second graphic image is It is determined whether or not it overlaps with a part of the drawing area of the first graphic image, and the determination means determines the second
When it is determined that the drawing area of the graphic image of FIG. 3 does not overlap a part of the drawing area of the first graphic image, the second graphic image is drawn as it is at the desired arbitrary position, and When it is determined that the drawing area of the second graphic image overlaps a part of the drawing area of the first graphic image, the area where the graphic image of the pair 1 and the second graphic image overlap each other. The first and second graphic images are drawn by correcting the overlapping area portion of each of the first and second graphic images so as to be connected by the portions. Then, the second graphic image drawn without correction or the first and second graphic images drawn with correction are displayed on the upper display screen.

従って、新たな図形イメージを所望位置を指定して描画
しようとしたときに、その図形イメージと重なる他の図
形イメージが自動的に検出され、その図形イメージとそ
の重なり領域部分で連結されるように、両図形イメージ
はその対応する部分領域のみが補正された図形イメージ
に自動的に、しかも直ちに描画させることができ、複数
の図形イメージを順次追加しながら逐次編集していくよ
うな場合、極めてスムーズな図形イメージ描画が可能に
なる。
Therefore, when you try to draw a new graphic image by designating a desired position, another graphic image that overlaps with that graphic image is automatically detected, and the graphic image and the overlapping area part are connected to each other. , Both graphic images can be automatically and immediately drawn on the graphic image in which only the corresponding partial areas are corrected, and it is extremely smooth when sequentially editing while adding multiple graphic images. It is possible to draw various graphic images.

[実施例] (1).構成 第1図はこの発明の一実施例を示すブロック図である。[Example] (1). Structure FIG. 1 is a block diagram showing an embodiment of the present invention.

第1図に於いて、1はこの発明の要旨とするところの描
画データ作成装置であり、キーボード8,ポインティング
デバイス9等の入力部より入力された始点・終点データ
と幅データとをもとに平行線の描画式を算出する描画式
算出機能、描画された平行線と新たに設定された平行線
とが交差するか否かを判断する判別機能、交差する平行
線それぞれの各交点を始点又は終点として交差する平行
線領域内の各線を消去する再描画機能等をもつもので、
その具体的な処理機能は第3図の処理フローに示され
る。
In FIG. 1, reference numeral 1 is a drawing data creating apparatus which is the gist of the present invention, and is based on start point / end point data and width data input from an input unit such as a keyboard 8 and a pointing device 9. A drawing formula calculation function that calculates the drawing formula of the parallel lines, a determination function that determines whether the drawn parallel lines and the newly set parallel lines intersect, a starting point at each intersection of the intersecting parallel lines, or It has a redraw function that erases each line in the parallel line area that intersects as the end point,
The specific processing function is shown in the processing flow of FIG.

2乃至4はそれぞれ上記描画データ作成装置1により読
出し/書込み制御されるメモリであり、このうち、2は
描画データ作成装置1で作成された表示対象となる描画
データ(始点/終点/描画式等)を記憶する表示用RA
M、3は再描画の必要が生じた描画データを記憶するス
タックRAM、4はキーボード8,ポインティングデバイス
9等の入力部より入力された始点/終点/幅等のデー
タ、及び演算結果のデータ等を記憶する演算用RAMであ
る。
Reference numerals 2 to 4 denote memories that are read / write-controlled by the drawing data creation device 1, and of these, 2 is drawing data created by the drawing data creation device 1 to be displayed (start point / end point / drawing formula, etc.). ) For display RA
M, 3 is a stack RAM that stores drawing data that needs to be redrawn, 4 is data such as the start point / end point / width input from the input unit such as the keyboard 8 and pointing device 9, and the data of the calculation result Is a calculation RAM that stores

5は上記描画データ作成装置1からの描画指令のより上
記表示用RAM2に貯えられた描画データをもとにビデオRA
M6上に図形を描画する(展開する)描画装置である。
Reference numeral 5 is a video RA based on the drawing data stored in the display RAM 2 in response to a drawing command from the drawing data creation device 1.
It is a drawing device that draws (expands) graphics on M6.

6は描画装置5の描画処理で生成された表示対象となる
図形データがパターン展開されるビデオRAM(V−RAM)
6、7はこのビデオRAM6上に描画された図形を表示する
表示装置(CRT)である。
Reference numeral 6 denotes a video RAM (V-RAM) in which the graphic data to be displayed, which is generated by the drawing processing of the drawing device 5, is pattern-developed.
Reference numerals 6 and 7 are display devices (CRTs) for displaying graphics drawn on the video RAM 6.

8、及び9はそれぞれ始点/終点/幅等を含む各種のデ
ータを入力するための入力部であり、8はキーボード、
9はポインティングデバイス(PD)である。
Reference numerals 8 and 9 are input sections for inputting various data including start point / end point / width, etc., 8 is a keyboard,
Reference numeral 9 is a pointing device (PD).

第2図(a)乃至(d)はそれぞれ上記実施例い於ける
動作を説明するための入力操作に伴う表示状態を示す図
である。ここで、図(a)は始点A1と終点A2とによって
描画された線Aの表示状態、図(b)は線Aに対して入
力された幅Hのデータに基づき生成された線B(始点;B
1,終点;B2)の表示状態、図(c)は線A,Bと交差する線
C(始点;B1,終点;B2,交点;xac,xbc)の表示状態、図
(d)は線Cに対して入力された幅Kのデータに基づき
生成された線D(始点;D1,終点;D2,交点;xad,xbd)と上
記各線(A,BとC,Dの各平行線)の再描画処理により描画
された交差点の表示状態をそれぞれ示している。
FIGS. 2 (a) to 2 (d) are views showing the display state associated with the input operation for explaining the operation in the above embodiment. Here, (a) is a display state of the line A drawn by the start point A1 and the end point A2, and (b) is a line B generated based on the data of the width H input to the line A (start point ; B
1, the end point; B2), the display state of the line C (start point; B1, the end point; B2, the intersection point; xac, xbc) intersecting the lines A and B in the figure (c), and the line C in the figure (d). The line D (start point; D1, end point; D2, intersection point; xad, xbd) generated based on the data of the width K input for the above and each line (parallel lines of A, B and C, D) The display states of the intersections drawn by the drawing process are shown.

第3図は上記描画データ作成装置1により実行される処
理フローを示すフローチャートである。ここで、START1
は始点・終点の入力による処理の開始位置、START2は幅
の入力による処理の開始位置をそれぞれ示している。
FIG. 3 is a flow chart showing a processing flow executed by the drawing data creating apparatus 1. Where START1
Indicates the processing start position by inputting the start point / end point, and START2 indicates the processing start position by inputting the width.

(2).作用 i).線Aの描画(第2図(a)参照) 先ず、キーボード8又はポインティングデバイス9によ
り、交差する一方の道路を描画するための基本となる直
線(A)の始点A1及び終点A2を設定する。
(2). Action i). Drawing of Line A (See FIG. 2A) First, the keyboard 8 or the pointing device 9 is used to set the starting point A1 and the ending point A2 of the straight line (A) which is the basis for drawing one of the intersecting roads.

描画データ作成装置1は、上記始点A1及び終点A2の座標
データを受けると、同入力データに対応した描画式を算
出し、この描画式と上記入力データ(A1,A2)とを演算
用RAM4に記憶する(第3図、START1,ステップS2)。
Upon receiving the coordinate data of the start point A1 and the end point A2, the drawing data creation device 1 calculates a drawing formula corresponding to the same input data, and stores the drawing formula and the input data (A1, A2) in the arithmetic RAM 4. It is stored (FIG. 3, START1, step S2).

そして、今、入力された始点A1及び終点A2で示される直
線(A)が、既に入力されている線、即ち表示用RAM2に
貯えられている線(ここではA1,A2が最初の設定データ
であるため、該当する線が存在しない)と交差するか否
かをチェックする(第3図ステップS3)。
Then, the straight line (A) indicated by the input start point A1 and end point A2 is the line that has already been input, that is, the line stored in the display RAM 2 (here, A1 and A2 are the first setting data). Since it exists, it is checked whether or not it intersects with the corresponding line (step S3 in FIG. 3).

ここで、上記直線(A)が、既に設定した他の線と交差
しないことが各されたならば、上記演算用RAM4に記憶し
ておいた描画データ(始点/終点/描画式)を表示用RA
M2に転送して後、演算用RAM4をクリアする(第3図ステ
ップS15,S13)。
If it is determined that the straight line (A) does not intersect with another line that has already been set, the drawing data (start point / end point / drawing formula) stored in the calculation RAM 4 is displayed. RA
After transferring to M2, the calculation RAM 4 is cleared (steps S15 and S13 in FIG. 3).

この表示用RAM2に新たな描画データが書込まれると、描
画データ作成装置1から描画装置5に描画指令が送出さ
れる。
When new drawing data is written in the display RAM 2, the drawing data creation device 1 sends a drawing command to the drawing device 5.

描画装置5は、上記描画データ作成装置1より描画指令
を受けると、表示用RAM2に新たに設定された描画データ
(始点/終点/描画式)を読出し、そのデータ内容に従
う直線(A)の線分イメージを生成してこれをビデオRA
M6上に展開する。このビデオRAM6上に展開された直線の
線分イメージは所定の表示タイミングをもって順次表示
装置7に送出され、これにより、表示装置7の表示画面
上には第2図(a)に示すような直線(A)が表示され
る(第3図ステップS14)。
When the drawing device 5 receives a drawing command from the drawing data creating device 1, the drawing data (start point / end point / drawing formula) newly set in the display RAM 2 is read out, and a line of a straight line (A) according to the data content is read out. Generate a minute image and video this RA
Deploy on M6. The straight line segment images developed on the video RAM 6 are sequentially sent to the display device 7 at a predetermined display timing, whereby a straight line image as shown in FIG. (A) is displayed (step S14 in FIG. 3).

ii).線Bの描画(第2図(b)参照) 上記基本となる直線(A)が描画された後、続いて幅
(道幅)Hを設定する。
ii). Drawing of line B (see FIG. 2B) After the basic straight line (A) is drawn, the width (road width) H is set subsequently.

描画データ作成装置1は上記幅Hのデータを受けると、
そのデータと上記直線Aの座標値とをもとに、上記直線
Aに平行する幅Hの直線(B)の始点B1及び終点B2を算
出し、更にその直線の描画式を算出して、その描画式と
算出データ(B1,B2)を演算用RAM4に記憶する(第3
図、START2,ステップS1,S2)。
When the drawing data creation device 1 receives the data of the width H,
Based on the data and the coordinate value of the straight line A, the start point B1 and the end point B2 of the straight line (B) having the width H parallel to the straight line A are calculated, and the drawing formula of the straight line is calculated. The drawing formula and the calculation data (B1, B2) are stored in the arithmetic RAM 4 (3rd
(Figure, START2, steps S1, S2).

そして、上記算出された始点B1及び終点B2で示される直
線(B)が既に入力されている線、即ち表示用RAM2に貯
えられている線(ここではA1,A2を端点とする直線A)
と交差するか否かをチェックする(第3図ステップS
3)。
The line (B) indicated by the calculated start point B1 and end point B2 has already been input, that is, the line stored in the display RAM 2 (here, the straight line A having A1 and A2 as end points).
Check whether or not it intersects with (step S in FIG. 3).
3).

ここで、上記直線(B)が、既に設定した他の線(A)
と交差しないことが確認されたならば、上記演算用RAM4
に記憶しておいた描画データ(始点/終点/描画式)を
表示用RAM2に転送して後、演算用RAM4をクリアする(第
3図ステップS15,S13)。
Here, the straight line (B) is the other line (A) already set.
If it is confirmed that it does not intersect with the above calculation RAM4
After transferring the drawing data (start point / end point / drawing formula) stored in 1 to the display RAM 2, the calculation RAM 4 is cleared (steps S15 and S13 in FIG. 3).

この表示用RAM2に新たな描画データが書込まれると、描
画データ作成装置1から描画装置5に描画指令が送出さ
れる。
When new drawing data is written in the display RAM 2, the drawing data creation device 1 sends a drawing command to the drawing device 5.

描画装置5は、上記描画データ作成装置1より描画指令
を受けると、表示用RAM2に新たに設定された描画データ
(始点/終点/描画式)を読出し、そのデータ内容に従
う直線(B)の線分イメージを生成してこれをビデオRA
M6上に展開(重ね書き)する。
When the drawing device 5 receives a drawing command from the drawing data creating device 1, the drawing data (start point / end point / drawing formula) newly set in the display RAM 2 is read, and the line of the straight line (B) according to the data content is read. Generate a minute image and video this RA
Develop (overwrite) on M6.

これにより、ビデオRAM6上には既に展開された上記直線
(A)の線分イメージに加え、同線に平行する直線
(B)の線分イメージが展開される。
As a result, in addition to the already developed line segment image of the straight line (A), the line segment image of the straight line (B) parallel to the same line is developed on the video RAM 6.

このビデオRAM6上に展開された直線の線分イメージは所
定の表示タイミングをもって順次表示装置7に送出さ
れ、これにより、表示装置7の表示画面上には第2図
(b)に示すような幅Hをもつ平行する直線(A・B)
が表示される(第3図ステップS14)。
The linear line segment images developed on the video RAM 6 are sequentially sent to the display device 7 at a predetermined display timing, whereby the width of the display screen of the display device 7 as shown in FIG. Parallel straight lines with H (AB)
Is displayed (step S14 in FIG. 3).

iii).線Cの描画(第2図(c)参照) 次に、上記平行直線A,Bによる幅Hの道路と交差する道
路を描画するための基本となる直線(C)の始点C1及び
終点C2を設定する。
iii). Drawing of line C (see FIG. 2 (c)) Next, a starting point C1 and an ending point C2 of a straight line (C), which is a basis for drawing a road intersecting with a road having a width H by the parallel straight lines A and B, are drawn. Set.

描画データ作成装置1は、上記始点C1及び終点C2の座標
データを受けると、同入力データに対応した描画式を算
出し、この描画式と上記入力データ(C1,C2)とを演算
用RAM4に記憶する(第3図、START1,ステップS2)。
Upon receiving the coordinate data of the start point C1 and the end point C2, the drawing data creation device 1 calculates a drawing formula corresponding to the same input data, and stores the drawing formula and the input data (C1, C2) in the arithmetic RAM 4. It is stored (FIG. 3, START1, step S2).

そして、今、入力された始点C1及び終点C2で示される直
線(C)が、既に入力されている線、即ち表示用RAM2に
貯えられている線(ここではA1,A2を端点とする直線A
と、B1,B2を端点とする直線B)と交差するか否かをチ
ェックする(第3図ステップS3)。
Then, the straight line (C) indicated by the input start point C1 and end point C2 is the line that has already been input, that is, the line stored in the display RAM 2 (the straight line A whose end points are A1 and A2).
Then, it is checked whether or not it intersects with the straight line B) whose end points are B1 and B2 (step S3 in FIG. 3).

ここで、上記直線(C)が、既に設定した他の線と交差
していることが確認されたならば、その各交点(xac,xb
c)を算出し、この交点の座標データを演算用RAM4に保
持する(第3図ステップS4)。
Here, if it is confirmed that the straight line (C) intersects with another line that has already been set, the respective intersections (xac, xb
c) is calculated, and the coordinate data of this intersection is held in the calculation RAM 4 (step S4 in FIG. 3).

そして、上記演算用RAM4に貯えられている描画データ
(始点C1,終点C2、及び交点)と、上記表示用RAM2に貯
えられている各描画データのうちの上記直線(C)に交
差する全ての線(A,B)とその交点の各座標データをそ
の描画式とともに各線分毎に順次、スタックRAM3にスタ
ックしてゆく(第3図ステップS4〜S6)。
Then, all the drawing data (start point C1, end point C2, and intersection) stored in the calculation RAM 4 and all of the drawing data stored in the display RAM 2 intersecting the straight line (C). Each coordinate data of the line (A, B) and its intersection is sequentially stacked together with the drawing formula for each line segment in the stack RAM 3 (steps S4 to S6 in FIG. 3).

これにより、スタックRAM3には、互いに交差する各線
(A,B,C)とその交点(xac,xbc)の座標データが描画式
を含め再描画データとして線分単位で順次スタックされ
る。
As a result, the coordinate data of the lines (A, B, C) intersecting with each other and their intersections (xac, xbc) are sequentially stacked in the stack RAM 3 in units of line segments as redrawing data including the drawing formula.

描画データ作成装置1は、上記処理により交差する全て
の線分それぞれの再描画データをスタックRAM3にスタッ
クしたならば、次に上記演算用RAM4に貯えられている描
画データ(交点xac,xbc/始点/C1,終点C2/描画式)をも
とに、上記交点を端点として二分した線分データを作成
し、この再描画データを表示用RAM2に転送する(第3図
ステップS7)。
When the drawing data creation device 1 stacks the redrawing data of each of the intersecting line segments in the stack RAM3 by the above processing, the drawing data stored in the arithmetic RAM4 (intersection points xac, xbc / start point) next. / C1, end point C2 / drawing formula), line segment data that is bisected with the intersection as the end point is created, and this redrawing data is transferred to the display RAM 2 (step S7 in FIG. 3).

更に描画データ作成装置1は上記表示用RAM2に新たな描
画データを書込んた後、幅(道幅)が設定されているか
否か(上記直線(C)に平行する線を引くか否か)を判
断し、幅が設定されていなければ、描画装置5に描画指
令を送出する(第3図ステップS8)。
Further, the drawing data creation apparatus 1 writes new drawing data in the display RAM 2 and then determines whether or not the width (road width) is set (whether to draw a line parallel to the straight line (C)). If it is determined that the width is not set, a drawing command is sent to the drawing device 5 (step S8 in FIG. 3).

描画装置5は、上記描画データ作成装置1より描画指令
を受けると、表示用RAM2に新たに設定された描画データ
(始点/終点/描画式)を読出し、そのデータ内容に従
う直線(C;C1〜xacとC2〜xbcに二分された直線)のドッ
トイメージを生成してこれをビデオRAM6上に展開(重ね
書き)する。このビデオRAM6上に展開された直線イメー
ジは所定の表示タイミングをもって順次表示装置7に送
出され、これにより、表示装置7の表示画面上には第2
図(c)に示すような二分された直線(C;C1〜xacとC2
〜xbc)と、同線に交差する平行直線(A,B)が表示され
る(第3図ステップS14)。
Upon receiving a drawing command from the drawing data creation device 1, the drawing device 5 reads the drawing data (start point / end point / drawing formula) newly set in the display RAM 2, and draws a straight line (C; C1 ~ A dot image of a straight line divided into xac and C2 to xbc) is generated and developed (overwritten) on the video RAM6. The linear image developed on the video RAM 6 is sequentially sent to the display device 7 at a predetermined display timing, whereby the second image is displayed on the display screen of the display device 7.
The bisected straight line (C; C1-xac and C2
~ Xbc) and parallel straight lines (A, B) intersecting the same line are displayed (step S14 in FIG. 3).

iv).線D(交差点)の描画(第2図(d)参照) 上記直線(C)の始点C1及び終点C2設定後、その直線に
附随して幅(道幅)Kを設定する。
iv). Drawing of line D (intersection) (see FIG. 2 (d)) After setting the start point C1 and the end point C2 of the straight line (C), the width (road width) K is set along with the straight line.

描画データ作成装置1は、上記設定された幅Kと上記直
線Cの各座標値とをもとに、上記直線Cに平行する幅K
の直線(D)の始点D1及び終点D2を算出し、更に直線の
描画式を算出して、その描画式と算出データ(D1,D2)
を演算用RAM4に記憶する(第3図、START2,ステップS1,
S2)。
The drawing data creation device 1 uses the set width K and the coordinate values of the straight line C to set the width K parallel to the straight line C.
The starting point D1 and the ending point D2 of the straight line (D) are calculated, and the drawing formula of the straight line is calculated, and the drawing formula and the calculation data (D1, D2)
Is stored in the calculation RAM 4 (FIG. 3, START2, step S1,
S2).

そして、上記算出された始点D1及び終点D2で示される直
線(D)が、既に入力されている線、即ち表示用RAM2に
貯えられている線(ここではA,B,C)と交差するか否か
をチェックする(第3図ステップS3)。
Then, does the straight line (D) indicated by the calculated start point D1 and end point D2 intersect the already input line, that is, the line (here, A, B, C) stored in the display RAM 2? It is checked whether or not (step S3 in FIG. 3).

ここで、上記直線(D)が、既に設定した他の線と交差
していることが確認されたならば、その各交点(xad,xb
d)を算出し、この交点の座標データを演算用RAM4に保
持する(第3図ステップS4)。
Here, if it is confirmed that the straight line (D) intersects with another line that has already been set, the respective intersections (xad, xb
d) is calculated, and the coordinate data of this intersection is held in the calculation RAM 4 (step S4 in FIG. 3).

そして、上記演算用RAM4に貯えられている描画データ
(交点(xad,xbd),始点D1,終点D2)と、上記表示用RA
M2に貯えられている各描画データのうちの上記直線
(D)に交差する全ての線(A,B)とその交点の各座標
データを描画式とともに各線分毎に順次、スタックRAM3
にスタックしてゆく(第3図ステップS4〜S6)。
The drawing data (intersection points (xad, xbd), start point D1, end point D2) stored in the calculation RAM 4 and the display RA
Of the drawing data stored in M2, all the lines (A, B) intersecting the straight line (D) and the coordinate data of the intersections are sequentially drawn together with the drawing formula for each line segment in the stack RAM3.
Stack (steps S4 to S6 in Fig. 3).

これにより、スタックRAM3には、互いに交差する各線
(A,B,D)とその交点(xad,xbd)の座標データが描画式
ととに線分単位で順次スタックされる。
As a result, the coordinate data of the lines (A, B, D) intersecting with each other and the intersections (xad, xbd) of the lines intersecting each other are sequentially stacked in the stack RAM 3 in units of line segments.

描画データ作成装置1は、上記処理により、互いに交差
する全ての直線及びその交点の各座標データをスタック
RAM3にスタックしたならば、次に上記演算用RAM4に貯え
られている描画データ(交点xad,xbd/始点D1,終点D2/描
画式)をもとに、上記交点を端点として二分した線分デ
ータを作成し、この再描画データを表示用RAM2に転送す
る(第3図ステップS7)。
The drawing data creation device 1 stacks the coordinate data of all the straight lines intersecting with each other and the intersections thereof by the above processing.
After stacking in RAM3, the line segment data obtained by dividing the intersection point as the end point based on the drawing data (intersection point xad, xbd / start point D1, end point D2 / drawing formula) stored in the calculation RAM4. Is created and this redrawing data is transferred to the display RAM 2 (step S7 in FIG. 3).

更に描画データ作成装置1は上記表示用RAM2に新たな描
画データを書込んだ後、幅(道幅)が設定されているが
否か(上記直線(C)に平行する線を引くか否か)を判
断する(第3図ステップS8)。
Further, the drawing data creation apparatus 1 writes new drawing data in the display RAM 2 and then sets a width (road width) or not (whether to draw a line parallel to the straight line (C)). Is determined (step S8 in FIG. 3).

ここで、描画データ作成装置1は、上記幅(K)が設定
されていることを確認すると、スタックRAM3内にスタッ
クされた描画データに対応する表示用RAM2内の各描画デ
ータを消去した後、スタックRAM3にスタックされた各線
分単位の描画データを順次読出し、その交点を含む描画
データより再描画データを作成して、この作成した再描
画データを逐次、表示用RAM2に書込んでゆく(第3図ス
テップS9,S10)。
Here, when the drawing data creation device 1 confirms that the width (K) is set, after deleting each drawing data in the display RAM 2 corresponding to the drawing data stacked in the stack RAM 3, The drawing data for each line segment stacked in the stack RAM3 is sequentially read, redrawing data is created from the drawing data including the intersections, and the created redrawing data is sequentially written to the display RAM2 ( (3) Steps S9 and S10).

そして、スタックRAM3に貯えられた描画データに対する
全ての再描画データが作成され、表示用RAM2に貯えられ
たならば、上記スタックRAM3、及び演算用RAM4をクリア
し、描画装置5に描画指令を送出する(第3図ステップ
S11〜S13)。
Then, if all redrawing data for the drawing data stored in the stack RAM3 is created and stored in the display RAM2, the stack RAM3 and the calculation RAM4 are cleared and a drawing command is sent to the drawing device 5. Yes (Fig. 3 step
S11 ~ S13).

描画装置5は、上記描画データ作成装置1より描画指令
を受けると、ビデオRAM6一旦クリアした後、表示用RAM2
に設定された再描画データを順次読出し、そのデータ内
容に従う線分イメージを生成して、これをビデオRAM6上
に展開してゆく。このビデオRAM6上に展開された直線イ
メージは所定の表示タイミングをもって順次表示装置7
に送出され、これにより、表示装置7の表示画面上には
第2図(d)に示す如く、それぞれ二分された4本の直
線(A1〜xad,xad〜D1,B1〜xbd,xbd〜D2,C1〜xac,xac〜A
2,C2〜xbc,xbc〜B2)の組合わせによる交差点が表示さ
れる(第3図ステップS14)。
When the drawing device 5 receives the drawing command from the drawing data creation device 1, the drawing RAM 5 clears the video RAM 6 once, and then the display RAM 2
The redrawing data set in step S1 is read out sequentially, a line segment image is generated according to the data content, and this is expanded on the video RAM6. The linear image developed on the video RAM 6 is sequentially displayed on the display device 7 at a predetermined display timing.
As a result, on the display screen of the display device 7, as shown in FIG. 2 (d), the four straight lines (A1 to xad, xad to D1, B1 to xbd, xbd to D2) are bisected. , C1 ~ xac, xac ~ A
2, C2 to xbc, xbc to B2) are displayed as intersections (step S14 in FIG. 3).

上記したような図形処理機能をもつことにより、交差点
の描画が極めて迅速かつ容易に行なえ、特に斜めの交差
点に於いて均一幅の道路を高い精度で容易に描画でき
る。又、既に描画された道路地図上に、交差点、更には
任意の道幅をもつ道路等を容易に加入し、変更すること
ができる。
By having the graphic processing function as described above, it is possible to draw an intersection very quickly and easily, and it is possible to easily draw a road with a uniform width with high accuracy, especially at an oblique intersection. Further, it is possible to easily add and change an intersection, a road having an arbitrary road width, or the like on the already drawn road map.

[発明の効果] 本発明によれば、新たな図形イメージを所望位置を指定
して描画しようとしたときに、その図形イメージと重な
る他の図形イメージが自動的に検出され、その図形イメ
ージとその重なり領域部分で連結されるように、両図形
イメージはその対応する部分領域のみが補正された図形
イメージに自動的に、しかも直ちに描画させることがで
き、複数の図形イメージを順次追加しながら逐次編集し
ていくような場合、極めてスムーズな図形イメージ描画
が可能になる。
EFFECTS OF THE INVENTION According to the present invention, when a new graphic image is drawn by designating a desired position, another graphic image overlapping the graphic image is automatically detected, and the graphic image and the graphic image Both graphic images can be automatically and immediately drawn on the graphic image in which only the corresponding partial areas are corrected so that they are connected at the overlapping area. In such cases, it is possible to draw an extremely smooth graphic image.

また、新たな図形イメージを所望位置を指定して描画し
ようとしたときに、その図形イメージと重なる図形イメ
ージがない場合には、そのことが自動的に判別され、そ
の新な図形イメージをその所望する位置にそのまま描画
することもでき、オペレータは新たに描画しようとする
図形イメージが他の描画表示済みの図形イメージと重な
るのかどうか等を考慮する必要は一切はない。
Also, when trying to draw a new graphic image by designating a desired position, if there is no graphic image that overlaps the new graphic image, that is automatically determined, and the new graphic image is selected as the desired graphic image. It is also possible to draw as it is at the position to be drawn, and the operator does not need to consider whether or not the graphic image to be newly drawn overlaps with the graphic image already drawn and displayed.

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

第1図はこの発明の一実施例を示すブロック図、第2図
(a)乃至(d)はそれぞれ上記実施例の動作を説明す
るための入力操作に伴う表示状態例を示す図、第3図は
上記実施例に於ける描画データ作成装置の処理フローを
示すフローチャートである。 1……描画データ作成装置、2……表示用RAM、3……
スタックRAM、4……演算用RAM、5……描画装置、6…
…ビデオRAM(V−RAM)、7……表示装置(CPT)、8
……キーボード8、9……ポインティングデバイス(P
D)。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIGS. 2 (a) to 2 (d) are diagrams showing an example of a display state accompanying an input operation for explaining the operation of the above embodiment, respectively. The drawing is a flow chart showing the processing flow of the drawing data creation apparatus in the above embodiment. 1 ... Drawing data creation device, 2 ... Display RAM, 3 ...
Stack RAM, 4 ... Calculation RAM, 5 ... Drawing device, 6 ...
… Video RAM (V-RAM), 7… Display (CPT), 8
...... Keyboard 8, 9 ...... Pointing device (P
D).

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】第1の図形イメージを任意指定の位置に描
画する第1の描画手段と、 この第1の描画手段で描画された上記第1の図形イメー
ジを表示画面上に表示する第1の表示制御手段と、 上記第1の図形イメージが上記表示画面上で表示されて
いる状態において、所望する任意の位置での第2の図形
イメージの描画が指定された際に、この第2の図形イメ
ージの描画領域が上記第1の図形イメージの描画領域の
一部と重なるか否かを判別する判別手段と、 この判別手段で上記第2の図形イメージの描画領域が上
記第1の図形イメージの描画領域の一部と重ならないこ
とが判別された際は、上記所望する任意の位置に上記第
2の図形イメージをそのまま描画し、また、上記第2の
図形イメージの描画領域が上記第1の図形イメージの描
画領域の一部と重なることが判別された際は、上記第1
の図形イメージと上記第2の図形イメージとがその重な
る領域部分で連結されるように、上記第1及び第2の図
形イメージの個々におけるその重なり領域部分を補正し
て上記第1及び上記第2の図形イメージを描画する第2
の図形シメージを描画する第2描画手段と、 この第2の描画手段で補正されずに描画された上記第2
の図形イメージ、あるいは補正されて描画された第1及
び第2の図形イメージを上記表示画面上に表示する第2
の表示制御手段と、 を具備したことを特徴とする図形描画装置。
1. A first drawing means for drawing a first graphic image at an arbitrarily designated position, and a first drawing means for displaying the first graphic image drawn by the first drawing means on a display screen. And the second graphic image drawing at the desired arbitrary position in the state where the first graphic image is displayed on the display screen. Determination means for determining whether or not the drawing area of the graphic image overlaps a part of the drawing area of the first graphic image; and the drawing area of the second graphic image is determined by the determining means. When it is determined that the drawing area does not overlap a part of the drawing area, the second graphic image is drawn as it is at the desired arbitrary position, and the drawing area of the second graphic image is the first drawing area. Drawing area The time of the overlap a part is determined, and the first
Of the first and second graphic images are corrected by correcting the overlapped area of each of the first and second graphic images so that the graphic image of FIG. Second to draw the figure image of
Second drawing means for drawing a graphic image of the second image, and the second drawing means drawn without correction by the second drawing means.
Second graphic image, or the first and second graphic images drawn after being corrected and displayed on the display screen.
And a display control means of the above.
JP60221283A 1985-10-04 1985-10-04 Graphic drawing device Expired - Lifetime JPH0731737B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60221283A JPH0731737B2 (en) 1985-10-04 1985-10-04 Graphic drawing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60221283A JPH0731737B2 (en) 1985-10-04 1985-10-04 Graphic drawing device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP6106375A Division JPH0721398A (en) 1994-05-20 1994-05-20 Graphic drawing device

Publications (2)

Publication Number Publication Date
JPS6280774A JPS6280774A (en) 1987-04-14
JPH0731737B2 true JPH0731737B2 (en) 1995-04-10

Family

ID=16764352

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60221283A Expired - Lifetime JPH0731737B2 (en) 1985-10-04 1985-10-04 Graphic drawing device

Country Status (1)

Country Link
JP (1) JPH0731737B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7520811B2 (en) 2000-08-21 2009-04-21 Igt Method and apparatus for software authentication

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2605712B2 (en) * 1987-04-14 1997-04-30 セイコーエプソン株式会社 Intersection shape creation device
JP4790280B2 (en) * 2005-02-04 2011-10-12 三菱電機株式会社 MAP DATA DISPLAY DEVICE, MAP DATA DISPLAY METHOD, NAVIGATION DEVICE, AND MAP DATA DISPLAY PROGRAM
CN109215098B (en) * 2018-08-20 2023-04-11 广州视源电子科技股份有限公司 Handwriting erasing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4633433A (en) * 1979-04-23 1986-12-30 International Business Machines Corporation Display system for displaying maps having two-dimensional roads

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7520811B2 (en) 2000-08-21 2009-04-21 Igt Method and apparatus for software authentication

Also Published As

Publication number Publication date
JPS6280774A (en) 1987-04-14

Similar Documents

Publication Publication Date Title
US4769636A (en) Display control method for multi-window system
JPH0251786A (en) Scan converting system
EP0548052A2 (en) Video picking and clipping method and apparatus
JP7109822B2 (en) Road network data generation method, apparatus and computer program for autonomous vehicles
JPH0731737B2 (en) Graphic drawing device
JPH0460589A (en) Divisional scrolling system
JPH0212516A (en) Actual dimension display system
JPH0721398A (en) Graphic drawing device
JP2598012B2 (en) Time management device
JP2934041B2 (en) Redisplay processing control method
JP3647089B2 (en) Graphic processing apparatus and control method thereof
JPH01282679A (en) Cad system
JP2575636B2 (en) Graphic display device
KR940000597B1 (en) Multi-window display control system
JP2575658B2 (en) String layout device
JPH05314269A (en) Graph preparing device
JPH05119695A (en) Device for displaying map information
JP2925216B2 (en) Image processing apparatus and method
JP2605712B2 (en) Intersection shape creation device
JPS63205772A (en) Line segment creation method in graphic processing system
JPS6237781A (en) Picture display device with partial magnifying function
JPH02143325A (en) Window displaying system
JPH0527875B2 (en)
JPH06342363A (en) Character string display device
JPS61275796A (en) Graph display unit

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term