JP3679484B2 - Graphic processing apparatus and method - Google Patents

Graphic processing apparatus and method Download PDF

Info

Publication number
JP3679484B2
JP3679484B2 JP00195596A JP195596A JP3679484B2 JP 3679484 B2 JP3679484 B2 JP 3679484B2 JP 00195596 A JP00195596 A JP 00195596A JP 195596 A JP195596 A JP 195596A JP 3679484 B2 JP3679484 B2 JP 3679484B2
Authority
JP
Japan
Prior art keywords
figures
road
comparison
graphic
drawn
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
JP00195596A
Other languages
Japanese (ja)
Other versions
JPH09190524A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP00195596A priority Critical patent/JP3679484B2/en
Publication of JPH09190524A publication Critical patent/JPH09190524A/en
Application granted granted Critical
Publication of JP3679484B2 publication Critical patent/JP3679484B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、図形を描画する図形処理装置及びその方法に関するものである。
【0002】
【従来の技術】
従来、パソコンやワープロ等を用いて地図を描くことのできる図形処理装置において、道路を描画する方法としては、その描画される道路を表示するための画面に存在するカーソル等の指示手段を移動させ、その移動する軌跡で描画するものがあった。また、画面上のある2地点を指定してその間を結ぶことで道路を描画する方法があった。
【0003】
【発明が解決しようとする課題】
しかしながら、上記従来の図形処理装置においては、描画中の道路が他の道路と交差する場合、立体交差するのか、水平交差するのか等の判断を道路と交差する度に行なわなけらばならず描画に伴う操作が煩雑になるという問題点があった。
【0004】
また、一旦、描画した道路を移動する必要が生じて、描き直す場合でも、他の道路との交差状況をその度に判断して設定してやらなければならなかった。
本発明は上記も問題点を鑑みてなされたものであり、描画する道路が他の道路と交差する場合に、その交差状況を判断することなく容易に描画処理に伴う操作を実行することができる図形処理装置及びその方法を提供することを目的としている。
【0005】
上記の目的を達成するための本発明による図形処理装置は以下の構成を備える。即ち、
図形を描画する図形処理装置であって、
描画する複数の図形のそれぞれについて、相互の高さ関係を示す階層値を記憶する記憶手段と、
前記複数の図形の2つの図形が重複する場合、該2つの図形のそれぞれの階層値を前記記憶手段より獲得する獲得手段と、
前記獲得手段で獲得された前記2つの図形のそれぞれの階層値を比較する比較手段と、
前記比較手段の比較の結果によって得られる前記2つの図形の高さ関係に基づいて、前記2つの図形の重複する部分を描画する描画手段と、
新たな図形の描画を指示する描画指示手段と、
前記新たな図形が、既に表示されている図形と重なる場合、前記新たな図形の階層値を前記記憶手段に記憶する制御手段と
を備える。
【0007】
また、好ましくは、前記描画手段は、前記比較手段の比較の結果、前記2つの図形の内、一方の図形の階層値がもう一方の図形の階層値よりも高い場合、該一方の図形を該もう一方の図形の上に重なるように描画する。
また、好ましくは、前記描画手段は、前比較手段による比較の結果、前記階層値が同じ図形の場合、前記2つの図形の重複する部分をなくすように描画する。
【0008】
上記の目的を達成するための本発明による図形処理方法は以下の構成を備える。即ち、
描画する複数の図形のそれぞれについて、相互の高さ関係を示す階層値を記憶手段に記憶する記憶工程と、
前記複数の図形の2つの図形が重複する場合、該2つの図形のそれぞれの階層値を前記記憶手段より獲得する獲得工程と、
前記獲得工程で獲得された前記2つの図形のそれぞれの階層値を比較する比較工程と、
前記比較工程の比較の結果によって得られる前記2つの図形の高さ関係に基づいて、前記2つの図形の重複する部分を描画する描画工程とを有する図形処理方法であって、
新たな図形の描画を指示する描画指示工程と、
前記新たな図形が、既に表示されている図形と重なる場合、前記新たな図形の階層値を前記記憶手段に記憶する制御工程と
を備える。
【0012】
【発明の実施の形態】
以下、図面を参照して本発明の好適な実施の形態を詳細に説明する。
図1は実施の形態の図形処理装置の機能構成を示すブロック図である。
1はCPUであり、バスラインBL6を通じて、KB2、LCD3、VRAM4、FDD5、PRT7、ROM8、RAM11に接続され、各種制御を行う。2はキーボード(KB)であり、一般的な文字や図形入力、所望の処理を実行するためのキーを備えている。3はカラーのLCDであり、表示用書き込み専用メモリであるVRAM4に書き込まれた文字や図形情報を表示する。また、後述のフローチャートで実行される処理過程あるいは処理結果は、このVRAM4に書き込まれた後、LCD3に表示される。
【0013】
8は読み出し専用メモリとして機能するROMであり、KB2から入力されるデータの処理や各種処理を実行するためのプログラムを格納している。また、後述のフローチャート(図10)を実行するためのプログラムPRG8aを格納している。
11は書き込み可能メモリとして機能するRAMであり、各種プログラムやKB2から入力されるデータの作業領域及び一時待避領域である。内部はいくつかの領域に分割され、11aは上述したプログラムを動作させるために使用するワークエリアWORKである。11bは道路の描画データである道路データを格納するための記憶領域DDである。
【0014】
5は上述したDD11bを保存するための外部記憶装置として機能するFDD(フロッピーディスクドライブ)である。また、FDを装着しデータの読み書きが可能である。更に、装着されたFD(不図示)に後述する処理フローのプログラムを書き込み、該プログラムを本装置のRAM11に読み込むことで処理を実行させることができる。7は文字図形情報等を記録するためのプリンタとして機能するPRTである。
【0015】
次にRAM11のDD11bに格納されている道路データの格納状況を図2を用いて説明する。
図2は実施の形態のDD11bに格納されている道路データの1つの構成を示す図である。
DD1bにはm本(mは正の整数)の道路データを格納しており、その道路データの1つDD(m)には以下のデータが格納されている。DD11(m)の先頭には道路巾を示す数値DWが格納されており、その次に他の道路との相対的な高さを示す階層値KSが格納されている。また、階層値KSは、例えば、ある道路の階層値として0が設定されると、立体交差等でその上を通る道路は1、下を通る道路は−1というように設定される。更に、新たな地図又は道路を作製する場合は、数値以外の初期データがセットされており、描画する際にユーザが階層値KSをセットすることで階層値KSの設定が完了される。階層値KS以降は、n+1個の道路の中心座標(X0,Y0)〜(Xn,Yn)が格納されている。これらの数値の意味を図3を用いて説明する。
【0016】
図3は実施の形態の道路データによって描画される様子を説明するための図である。
例えば、道路の中心となる座標を(X0,Y0)〜(X4,Y4)が、図に示されるような位置であるとすると、まず、各座標が直線で結ばれ、各座標と結ばれた直線を中心にして、図に示されるような道路幅DWの間隔で両側に線が描画される。この際、道路として描画される両側の線は曲線になるようにする。
【0017】
尚、この道路を描画する技術は、例えば、文字のアウトライン処理と同様の技術を用いることで容易に実現できる。また、DD11bに格納されている道路データDD(m)を構成する各データは、KB2より新たなデータを入力することで随時更新することが可能であり、また、後述するフローチャートによって算出されるデータによって更新される。
【0018】
次に図1のブロック図、図2のメモリ構成図、図4〜図9の描画例及び図10のフローチャートを用いて本実施の形態の処理について説明する。
尚、本実施の形態では、LCD3に表示されるカーソル20を移動させ、そのカーソル20が移動する軌跡を座標として随時獲得し、その獲得した座標に基づいて道路データDD1bを描画する。また、本実施の形態で処理される道路の描画の過程、または処理後の道路の描画の結果はLCD3に表示されるものとして説明を行う。
【0019】
図4に示すように道路21が描画された後に、カーソル20を矢印方向に移動させて新たな道路を描く場合の例に挙げて説明する。
ステップS1で、移動させるカーソル20によって描画される道路が、他の道路と交差するか否かを判定する。他の道路と交差しない場合(ステップS1でNO)、通常の道路描画処理を行い、他の道路と交差するまで道路の描画処理を繰り返す。他の道路と交差する場合(ステップS1でYES)、ステップS2に進む。
【0020】
ステップS2で、現在描画中の道路の階層値KSが初期データであるか否かを判別する。階層値KSが初期データである場合(ステップS2でYES)、ステップS3に進む。階層値KSが初期データでない場合(ステップS2でNO)、ステップS5に進む。
ステップS3で、現在描画中の道路が、交差道路の上を通るのか下を通るのかあるいは水平交差するのか、ユーザの指示を待つ。また、ユーザによる指示は、KB2より階層値KSを入力することで指示するものとする。それまではカーソル20は、先に移動しない。
【0021】
ステップS4で、何らかの指示があればその指示に従った階層値KSをセットする。セット完了後、ステップS1に戻り、他の道路と交差するまで道路の描画処理を繰り返す。
ステップS5で、現在描画中の道路の階層値KSと交差する道路の階層値KSとの比較を行う。交差道路の階層値KSが現在描画中の道路の階層値KSよりも小さい場合、ステップS6に進む。ステップS6で、図5に示すように、描画中の道路22は、交差する道路21の上を通るように描画処理を行う。
【0022】
また、交差道路の階層値KSと描画道路の階層値KSが同じ場合、ステップS7に進む。ステップS7で、図6に示すように、描画中の道路22は、交差する道路21と水平に交差するように描画処理を行う。
更に、交差道路の階層値KSが描画道路の階層値KSよりも大きい場合、ステップS8に進む。ステップS8で、図7に示すように、描画中の道路22は、交差する道路21の下を通るように描画処理を行う。
【0023】
尚、複数の道路が既に描画されている場合、それら道路の交差点は、各道路の階層値KSによって、どのような立体交差又は水平交差になっているかが規定される。そして、更に新たに道路を描画する場合、その新たに描画する道路が、既に描画されている複数の道路と交差する場合でも、それらの道路の内の1つの道路との交差状況を指示すれば、他の道路との交差は自動的に決定される場合がある。
【0024】
例えば、図8を用いて説明すると、道路22と道路21が既に描画されていて、道路22と道路21の階層は、道路21の方が立体交差で上になるように規定されているとする。ここに、更に新たに道路23を描画する場合、最初に道路22の下を通す指示(階層値KSを設定)をした場合、道路23の階層値KSは道路22よりも小さな値になる。従って、道路22よりも大きな階層値KSを持つ道路(ここでは道路21)と交差する場合は、道路23はその道路の下を通ることになる。図8の道路21は、道路22よりも階層値KSが大きいことが規定されるので、道路23は道路21と交差する際は改めて指示しなくても自動的に道路21の下を通るように描画がなされる。
【0025】
また、一旦描画した道路を移動する場合、道路データDDの値を変更して描画し直せば良い。この場合、単に道路の位置をずらすだけであれば、その道路を構成する道路座標の各道路座標(Xn,Yn)を変更すればよい。道路幅DWと階層値KSを変えなければ、他の道路特徴とする交差状況は保存される。
例えば、図8に示した道路を描画後、図9に示すように道路23を右の方に移動させた場合、位置をずらしても階層値KSは変更されないので交差状況も保存される。従って、図9に示すように道路23は、依然として道路21の下を通るように描画される。
【0026】
以上説明したように、本実施の形態によれば、描画する道路の各道路に他の道路との相対的な高さを示す階層値KSを持たせることで、道路を描画する際、その道路が他の道路と交差する場合でも、その交差状況を判断することなく、容易に道路の描画処理を実行することができる。
また、道路の描画は道路データDD(m)に基づいて行われるので、道路データDD(m)の階層値KSが変わらなければ、その道路データDD(m)を構成する道路座標を変更しても他の道路との交差の状況は保存される。
【0027】
更に、地図の道路を描く際、交差点の状況をいちいち把握しなくとも容易に描画する事が可能になる。また、道路を移動する際にも交差点を意識せず描画することができるという効果がある。
尚、本発明は、複数の機器(例えばホストコンピュータ、インタフェイス機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
【0028】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、達成されることは言うまでもない。
【0029】
この場合、記憶媒体から読出されたプログラムコード自体が上述した実施の形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。
プログラムコードを供給するための記憶媒体としては、例えば、フロッピディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROMなどを用いることができる。
【0030】
また、コンピュータが読出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現される場合も含まれることは言うまでもない。
【0031】
更に、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0032】
本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明したフローチャートに対応するプログラムコードを格納することになるが、簡単に説明すると、図11のメモリマップ例に示す各モジュールを記憶媒体に格納することになる。
すなわち、少なくとも「記憶モジュール」、「獲得モジュール」および「描画モジュール」の各モジュールのプログラムコードを記憶媒体に格納すればよい。
【0033】
【発明の効果】
以上の説明からも明らかなように、本発明によれば、描画する道路が他の道路と交差する場合に、その交差状況を判断することなく容易に描画処理に伴う操作を実行することができる図形処理装置及びその方法を提供できる。
【図面の簡単な説明】
【図1】本実施の形態の図形処理装置の機能構成を示すブロック図である。
【図2】本実施の形態のDD11bに格納されている道路データの構成を示す図である。
【図3】本実施の形態の道路データによって描画される様子を説明するための図である。
【図4】本実施の形態のカーソル20が道路22を描画する過程を説明するための表示例を示す図である。
【図5】本実施の形態の道路22が道路21の上に交差して描画される様子を説明するための表示例である。
【図6】本実施の形態の道路22が道路21と水平交差して描画される様子を説明するための表示例である。
【図7】本実施の形態の道路22が道路21の下に交差して描画される様子を説明するための表示例である。
【図8】本実施の形態の道路22が複数の道路と交差して描画される様子を説明するための表示例である。
【図9】本実施の形態の図8の道路22を移動して描画される様子を説明するための表示例である。
【図10】本実施の形態の処理フローを説明するためのフローチャートである。
【図11】本発明で実行される処理フローのプログラムを記憶させたFDのメモリマップの構造を示す図である。
【符号の説明】
1 CPU
2 KB
3 LCD
4 VRAM
5 FDD
6 BL
7 PRT
8 ROM
8a PRG
11 RAM
11a WORK
11b DD
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a graphic processing apparatus and method for drawing a graphic.
[0002]
[Prior art]
Conventionally, in a graphics processing apparatus that can draw a map using a personal computer or a word processor, as a method of drawing a road, an instruction means such as a cursor existing on a screen for displaying the drawn road is moved. There was something to draw with the moving trajectory. There is also a method of drawing a road by designating two points on the screen and connecting them.
[0003]
[Problems to be solved by the invention]
However, in the above conventional graphic processing apparatus, when the road being drawn intersects with another road, it must be determined every time it intersects with the road, such as a three-dimensional intersection or a horizontal intersection. There has been a problem that the operation associated with is complicated.
[0004]
Also, even if it is necessary to move the drawn road once and redraw it, it is necessary to determine and set the intersection with other roads each time.
The present invention has been made in view of the above problems, and when a road to be drawn intersects with another road, an operation associated with the drawing process can be easily performed without determining the intersection state. An object of the present invention is to provide a graphic processing apparatus and method.
[0005]
In order to achieve the above object, a graphic processing apparatus according to the present invention comprises the following arrangement. That is,
A graphics processing device for drawing graphics,
Storage means for storing a hierarchical value indicating a mutual height relationship for each of a plurality of graphics to be drawn;
An acquisition means for acquiring the respective hierarchical values of the two figures from the storage means when two figures of the plurality of figures overlap;
A comparison means for comparing the respective hierarchical values of the two figures acquired by the acquisition means ;
Drawing means for drawing overlapping portions of the two figures based on the height relationship between the two figures obtained by the comparison result of the comparison means;
Drawing instruction means for instructing drawing of a new figure;
Control means for storing, in the storage means, a hierarchical value of the new graphic when the new graphic overlaps with a graphic already displayed.
[0007]
Preferably, the drawing means, as a result of the comparison by the comparing means, if the hierarchical value of one of the two figures is higher than the hierarchical value of the other figure, Draw over the other figure.
Preferably, the drawing means draws so that an overlapping portion of the two figures is eliminated when the hierarchical values are the same as a result of the comparison by the pre-comparison means.
[0008]
In order to achieve the above object, a graphic processing method according to the present invention comprises the following arrangement. That is,
For each of a plurality of graphics to be drawn, a storage step for storing a hierarchical value indicating a mutual height relationship in a storage means;
When two figures of the plurality of figures overlap, an acquisition step of obtaining the respective hierarchical values of the two figures from the storage means ;
A comparison step of comparing each hierarchical value of the two figures acquired in the acquisition step ;
A drawing process of drawing an overlapping portion of the two figures based on a height relationship between the two figures obtained by a comparison result of the comparison step ,
A drawing instruction process for instructing drawing of a new figure;
A control step of storing the hierarchical value of the new graphic in the storage means when the new graphic overlaps a graphic already displayed.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing a functional configuration of the graphic processing apparatus according to the embodiment.
Reference numeral 1 denotes a CPU which is connected to KB2, LCD3, VRAM4, FDD5, PRT7, ROM8, and RAM11 through a bus line BL6 and performs various controls. Reference numeral 2 denotes a keyboard (KB), which is provided with keys for inputting general characters and graphics and performing desired processing. Reference numeral 3 denotes a color LCD which displays characters and graphic information written in the VRAM 4 which is a display-only memory. In addition, a process or result executed in a flowchart described later is written in the VRAM 4 and then displayed on the LCD 3.
[0013]
Reference numeral 8 denotes a ROM that functions as a read-only memory, and stores a program for executing processing of data input from the KB 2 and various processing. Further, a program PRG8a for executing a flowchart (FIG. 10) described later is stored.
Reference numeral 11 denotes a RAM that functions as a writable memory, which is a work area and a temporary save area for various programs and data input from the KB2. The interior is divided into several areas, and 11a is a work area WORK used for operating the above-described program. Reference numeral 11b denotes a storage area DD for storing road data which is road drawing data.
[0014]
Reference numeral 5 denotes an FDD (floppy disk drive) that functions as an external storage device for storing the DD 11b. In addition, it is possible to read and write data by attaching an FD. Furthermore, a processing flow program to be described later can be written in the mounted FD (not shown), and the processing can be executed by reading the program into the RAM 11 of the apparatus. Reference numeral 7 denotes a PRT that functions as a printer for recording character graphic information and the like.
[0015]
Next, the storage state of the road data stored in the DD 11b of the RAM 11 will be described with reference to FIG.
FIG. 2 is a diagram illustrating one configuration of road data stored in the DD 11b according to the embodiment.
The DD1b stores m (m is a positive integer) road data, and the following data is stored in one road data DD (m). A numerical value DW indicating a road width is stored at the head of DD11 (m), and then a hierarchical value KS indicating a relative height with respect to another road is stored. Further, for example, when 0 is set as the hierarchy value of a certain road, the hierarchy value KS is set to 1 for a road that passes through a level intersection or the like, and -1 for a road that passes below. Furthermore, when creating a new map or road, initial data other than numerical values are set, and the setting of the hierarchical value KS is completed when the user sets the hierarchical value KS when drawing. After the hierarchy value KS, the central coordinates (X0, Y0) to (Xn, Yn) of n + 1 roads are stored. The meaning of these numerical values will be described with reference to FIG.
[0016]
FIG. 3 is a diagram for explaining a state of being drawn by road data according to the embodiment.
For example, assuming that coordinates (X0, Y0) to (X4, Y4) as the center of the road are positions as shown in the figure, each coordinate is first connected by a straight line and then connected to each coordinate. Centered on the straight line, lines are drawn on both sides at intervals of the road width DW as shown in the figure. At this time, the lines on both sides drawn as roads are curved.
[0017]
The technique for drawing the road can be easily realized by using a technique similar to that for character outline processing, for example. Further, each data constituting the road data DD (m) stored in the DD 11b can be updated at any time by inputting new data from the KB 2, and data calculated by a flowchart described later. Updated by.
[0018]
Next, processing of the present embodiment will be described with reference to the block diagram of FIG. 1, the memory configuration diagram of FIG. 2, the drawing examples of FIGS. 4 to 9, and the flowchart of FIG.
In the present embodiment, the cursor 20 displayed on the LCD 3 is moved, the trajectory of the movement of the cursor 20 is acquired as coordinates, and the road data DD1b is drawn based on the acquired coordinates. Further, the description will be made on the assumption that the road drawing process processed in the present embodiment or the road drawing result after processing is displayed on the LCD 3.
[0019]
An example will be described in which a new road is drawn by moving the cursor 20 in the arrow direction after the road 21 is drawn as shown in FIG.
In step S1, it is determined whether or not the road drawn by the cursor 20 to be moved intersects with another road. If it does not intersect with another road (NO in step S1), a normal road drawing process is performed, and the road drawing process is repeated until it intersects with another road. If it intersects with another road (YES in step S1), the process proceeds to step S2.
[0020]
In step S2, it is determined whether or not the hierarchical value KS of the road currently being drawn is initial data. If the hierarchy value KS is initial data (YES in step S2), the process proceeds to step S3. If the hierarchy value KS is not initial data (NO in step S2), the process proceeds to step S5.
In step S3, a user's instruction is awaited as to whether the road currently being drawn passes above or below the crossing road or crosses horizontally. Also, an instruction from the user is instructed by inputting a layer value KS from KB2. Until then, the cursor 20 does not move first.
[0021]
In step S4, if any instruction is given, the layer value KS according to the instruction is set. After the setting is completed, the process returns to step S1, and the road drawing process is repeated until it intersects with another road.
In step S5, the hierarchy value KS of the road currently being drawn is compared with the hierarchy value KS of the intersecting road. When the hierarchical value KS of the intersecting road is smaller than the hierarchical value KS of the road currently being drawn, the process proceeds to step S6. In step S6, the drawing process is performed so that the road 22 being drawn passes over the intersecting road 21 as shown in FIG.
[0022]
Further, when the hierarchical value KS of the intersection road and the hierarchical value KS of the drawing road are the same, the process proceeds to step S7. In step S7, as shown in FIG. 6, the drawing process is performed so that the road 22 being drawn intersects the intersecting road 21 horizontally.
Furthermore, when the hierarchical value KS of the intersection road is larger than the hierarchical value KS of the drawing road, the process proceeds to step S8. In step S8, as shown in FIG. 7, the drawing process is performed so that the road 22 being drawn passes under the intersecting road 21.
[0023]
When a plurality of roads are already drawn, the intersection of these roads is defined as a three-dimensional intersection or a horizontal intersection according to the hierarchical value KS of each road. When a new road is drawn, even if the newly drawn road intersects with a plurality of roads that have already been drawn, if the crossing situation with one of those roads is indicated, The intersection with other roads may be determined automatically.
[0024]
For example, referring to FIG. 8, it is assumed that the road 22 and the road 21 have already been drawn, and that the hierarchy of the road 22 and the road 21 is defined so that the road 21 is at the top at the three-dimensional intersection. . Here, when a new road 23 is drawn, when the instruction to pass under the road 22 (setting the hierarchical value KS) is first given, the hierarchical value KS of the road 23 is smaller than the road 22. Therefore, when the vehicle intersects with a road having a larger hierarchical value KS than the road 22 (here, the road 21), the road 23 passes under the road. Since the road 21 in FIG. 8 is defined to have a higher hierarchical value KS than the road 22, the road 23 automatically passes under the road 21 even if it does not give another instruction when crossing the road 21. Drawing is done.
[0025]
Further, when moving on a once drawn road, the value of the road data DD may be changed and redrawn. In this case, if the position of the road is simply shifted, each road coordinate (Xn, Yn) of the road coordinates constituting the road may be changed. If the road width DW and the hierarchy value KS are not changed, the crossing situation as another road feature is saved.
For example, when the road shown in FIG. 8 is drawn and then the road 23 is moved to the right as shown in FIG. 9, the hierarchy value KS is not changed even if the position is shifted, so the intersection state is also saved. Therefore, as shown in FIG. 9, the road 23 is drawn so as to still pass under the road 21.
[0026]
As described above, according to the present embodiment, when a road is drawn by giving each road of the road to be drawn a hierarchy value KS indicating a relative height with respect to other roads, the road is drawn. Even when the vehicle intersects with another road, the road drawing process can be easily executed without determining the intersection state.
Further, since the road is drawn based on the road data DD (m), if the hierarchy value KS of the road data DD (m) does not change, the road coordinates constituting the road data DD (m) are changed. Even the situation of intersection with other roads is preserved.
[0027]
Furthermore, when drawing a road on a map, it is possible to easily draw without having to grasp the situation of the intersection. Also, there is an effect that it is possible to draw without considering the intersection when moving on the road.
Note that the present invention can be applied to a system composed of a plurality of devices (for example, a host computer, interface device, reader, printer, etc.), or a device composed of a single device (for example, a copier, a facsimile machine, etc.). You may apply to.
[0028]
Another object of the present invention is to supply a storage medium storing software program codes for implementing the functions of the above-described embodiments to a system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the storage medium. Needless to say, this can also be achieved by reading and executing the program code stored in the.
[0029]
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.
As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
[0030]
Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) operating on the computer based on the instruction of the program code. It goes without saying that the case where the functions of the above-described embodiment are realized by performing part or all of the actual processing and the processing is included.
[0031]
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
[0032]
When the present invention is applied to the above-described storage medium, the storage medium stores program codes corresponding to the flowcharts described above. In brief, each module shown in the memory map example of FIG. Is stored in a storage medium.
That is, at least the program code of each module of “storage module”, “acquisition module”, and “drawing module” may be stored in the storage medium.
[0033]
【The invention's effect】
As is clear from the above description, according to the present invention, when a road to be drawn intersects with another road, an operation associated with the drawing process can be easily executed without determining the intersection situation. A graphic processing apparatus and method thereof can be provided.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a functional configuration of a graphic processing apparatus according to an embodiment.
FIG. 2 is a diagram illustrating a configuration of road data stored in a DD 11b according to the present embodiment.
FIG. 3 is a diagram for explaining a state of being drawn by road data according to the present embodiment.
FIG. 4 is a diagram showing a display example for explaining a process in which the cursor 20 of the present embodiment draws a road 22;
FIG. 5 is a display example for explaining a state in which a road 22 according to the present embodiment is drawn intersecting a road 21;
6 is a display example for explaining a state in which a road 22 according to the present embodiment is drawn horizontally intersecting with a road 21. FIG.
FIG. 7 is a display example for explaining a state in which a road 22 according to the present embodiment is drawn crossing under a road 21;
FIG. 8 is a display example for explaining a state in which a road 22 according to the present embodiment is drawn crossing a plurality of roads.
FIG. 9 is a display example for explaining a state of being drawn by moving on the road 22 of FIG. 8 of the present embodiment.
FIG. 10 is a flowchart for explaining the processing flow of the present embodiment;
FIG. 11 is a diagram showing the structure of a memory map of an FD in which a program for processing flow executed in the present invention is stored.
[Explanation of symbols]
1 CPU
2 KB
3 LCD
4 VRAM
5 FDD
6 BL
7 PRT
8 ROM
8a PRG
11 RAM
11a WORK
11b DD

Claims (4)

図形を描画する図形処理装置であって、
描画する複数の図形のそれぞれについて、相互の高さ関係を示す階層値を記憶する記憶手段と、
前記複数の図形の2つの図形が重複する場合、該2つの図形のそれぞれの階層値を前記記憶手段より獲得する獲得手段と、
前記獲得手段で獲得された前記2つの図形のそれぞれの階層値を比較する比較手段と、
前記比較手段の比較の結果によって得られる前記2つの図形の高さ関係に基づいて、前記2つの図形の重複する部分を描画する描画手段と、
新たな図形の描画を指示する描画指示手段と、
前記新たな図形が、既に表示されている図形と重なる場合、前記新たな図形の階層値を前記記憶手段に記憶する制御手段と
を備えることを特徴とする図形処理装置。
A graphics processing device for drawing graphics,
Storage means for storing a hierarchical value indicating a mutual height relationship for each of a plurality of graphics to be drawn;
An acquisition means for acquiring the respective hierarchical values of the two figures from the storage means when two figures of the plurality of figures overlap;
A comparison means for comparing the respective hierarchical values of the two figures acquired by the acquisition means ;
Drawing means for drawing overlapping portions of the two figures based on the height relationship between the two figures obtained by the comparison result of the comparison means;
Drawing instruction means for instructing drawing of a new figure;
And a control unit that stores a hierarchical value of the new graphic in the storage unit when the new graphic overlaps a graphic already displayed.
前記描画手段は、前記比較手段の比較の結果、前記2つの図形の内、一方の図形の階層値がもう一方の図形の階層値よりも高い場合、該一方の図形を該もう一方の図形の上に重なるように描画する
ことを特徴とする請求項1に記載の図形処理装置。
Said drawing means, the result of comparison of the comparison means, among the two figures, when the layer value of one figure is higher than the layer value of the other figures, one of the figures said of the other figures The graphic processing device according to claim 1, wherein the graphic processing device draws the image so as to overlap the upper surface.
前記描画手段は、前比較手段による比較の結果、前記階層値が同じ図形の場合、前記2つの図形の重複する部分をなくすように描画する
ことを特徴とする請求項1又は2に記載の図形処理装置。
Said rendering means, before comparison results by the comparing means, when the layer value of the same figure, the figure of claim 1 or 2, characterized in that drawing to eliminate the overlapping portions of the two figures Processing equipment.
描画する複数の図形のそれぞれについて、相互の高さ関係を示す階層値を記憶手段に記憶する記憶工程と、
前記複数の図形の2つの図形が重複する場合、該2つの図形のそれぞれの階層値を前記記憶手段より獲得する獲得工程と、
前記獲得工程で獲得された前記2つの図形のそれぞれの階層値を比較する比較工程と、
前記比較工程の比較の結果によって得られる前記2つの図形の高さ関係に基づいて、前記2つの図形の重複する部分を描画する描画工程とを有する図形処理方法であって、
新たな図形の描画を指示する描画指示工程と、
前記新たな図形が、既に表示されている図形と重なる場合、前記新たな図形の階層値を前記記憶手段に記憶する制御工程と
を備えることを特徴とする図形処理方法。
For each of a plurality of graphics to be drawn, a storage step for storing a hierarchical value indicating a mutual height relationship in a storage means;
When two figures of the plurality of figures overlap, an acquisition step of obtaining the respective hierarchical values of the two figures from the storage means ;
A comparison step of comparing each hierarchical value of the two figures acquired in the acquisition step ;
A drawing process of drawing an overlapping portion of the two figures based on a height relationship between the two figures obtained by a comparison result of the comparison step ,
A drawing instruction process for instructing drawing of a new figure;
And a control step of storing a hierarchical value of the new graphic in the storage means when the new graphic overlaps a graphic already displayed.
JP00195596A 1996-01-10 1996-01-10 Graphic processing apparatus and method Expired - Fee Related JP3679484B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00195596A JP3679484B2 (en) 1996-01-10 1996-01-10 Graphic processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00195596A JP3679484B2 (en) 1996-01-10 1996-01-10 Graphic processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH09190524A JPH09190524A (en) 1997-07-22
JP3679484B2 true JP3679484B2 (en) 2005-08-03

Family

ID=11516028

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00195596A Expired - Fee Related JP3679484B2 (en) 1996-01-10 1996-01-10 Graphic processing apparatus and method

Country Status (1)

Country Link
JP (1) JP3679484B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080238914A1 (en) * 2004-03-31 2008-10-02 Pioneer Corporation Map Information Creating Device, Map Information Creating Method, and Map Information Creating Program

Also Published As

Publication number Publication date
JPH09190524A (en) 1997-07-22

Similar Documents

Publication Publication Date Title
JPH09204288A (en) Display device
KR930000998B1 (en) Method and apparatus for processing image and/or character in computer graphics
JP3679484B2 (en) Graphic processing apparatus and method
JP2002140063A (en) Graphics drawing device
JPS63137378A (en) Graphics processing system
JPH06274303A (en) Multiwindow display method
JP2010039680A (en) Image processor, image processing program, and image processing method
JPH10124033A (en) Character processor, character processing method and memory medium
JP3639661B2 (en) Graphic processing apparatus and method
JP3341170B2 (en) Figure shape change device
JP5361315B2 (en) Information processing apparatus and information processing method
JP3647089B2 (en) Graphic processing apparatus and control method thereof
JP3618903B2 (en) Graphic processing apparatus and graphic processing method
JP3376072B2 (en) Character processing apparatus and method
JP3781923B2 (en) Line drawing apparatus, line drawing method, and computer-readable recording medium recording line drawing program
JP2616426B2 (en) String display device
JP2616427B2 (en) String display device
JP4960768B2 (en) Information processing apparatus, information processing method, and program
JPH06161728A (en) Flowchart generation system
JPH0728999A (en) Picture processing method
JP2822672B2 (en) Graphic drawing method and apparatus
JPH08249481A (en) Drawing processor
JPH0922472A (en) Image processing method
JPH05307356A (en) Electronic map display device
JPH01246673A (en) Graphic processor

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040720

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040908

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041112

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050105

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050304

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050509

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050513

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090520

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100520

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100520

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110520

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120520

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120520

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130520

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140520

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees