JPH04160479A - Setting system for character string display position - Google Patents

Setting system for character string display position

Info

Publication number
JPH04160479A
JPH04160479A JP2284941A JP28494190A JPH04160479A JP H04160479 A JPH04160479 A JP H04160479A JP 2284941 A JP2284941 A JP 2284941A JP 28494190 A JP28494190 A JP 28494190A JP H04160479 A JPH04160479 A JP H04160479A
Authority
JP
Japan
Prior art keywords
character string
pixels
rectangular area
character
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2284941A
Other languages
Japanese (ja)
Inventor
Kiyoshi Sasaki
笹木 清
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.)
HOKKAIDO NIPPON DENKI SOFTWARE KK
NEC Solution Innovators Ltd
Original Assignee
HOKKAIDO NIPPON DENKI SOFTWARE KK
NEC Software Hokkaido 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 HOKKAIDO NIPPON DENKI SOFTWARE KK, NEC Software Hokkaido Ltd filed Critical HOKKAIDO NIPPON DENKI SOFTWARE KK
Priority to JP2284941A priority Critical patent/JPH04160479A/en
Publication of JPH04160479A publication Critical patent/JPH04160479A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To set a proper display position by reducing the overlap of respective character strings by the mutual relation between the display positions of character strings displayed on the same screen. CONSTITUTION:A character string occupation rectangular area calculating means 1 calculates the coordinates of a character string occupation rectangular area that a character string 6 occupies from the display position, size, inclination, etc., of a character string which is converted to a screen coordinate system, and finds the addresses of corresponding pixels. A character string overlap area retrieval means 2 retrieves a character overlap area where the calculated addresses of the pixels overlap with the address of other character string occupation rectangular areas which are already stored in a character string occupation rectangular area control memory in pixel units. When the number of pixels in the character string overlap area is not 0, a character string overlap area minimizing means 3 moves the character string occupation rectangular area to find the minimum number of pixels constituting the character string overlap area. Consequently, the extent of the overlap of character strings is reduced to optimize display positions.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は文字列表示設定方式、特に地図情報処理システ
ム等において、同一画面上に表示する文字列の重なりを
避けて表示するための文字列表示設定方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a character string display setting method, particularly in a map information processing system, etc., for displaying character strings on the same screen while avoiding overlapping. Regarding display setting method.

〔従来の技術〕[Conventional technology]

一般に、CADシステムの一つである図形処理システム
では、2次元あるいは3次元のさまざまな形状の図形お
よび図形を補足する文字列とを取扱う。これらのシステ
ムには、機械設計用CADシステムあるいはコンピュー
タグラフィックスシステムのような図形を中心とするも
のと、地図情報処理分野の電力配電設備設計用CADシ
ステムあるいは上下水道設備設計用CADシステムのよ
うな、図形の他に文字列も重要な役割を果たすものとが
ある。後者においては、地図に関する地名。
In general, graphic processing systems, which are one type of CAD system, handle various two-dimensional or three-dimensional figures and character strings that supplement the figures. These systems include those that mainly use figures, such as mechanical design CAD systems or computer graphics systems, and those in the field of map information processing, such as power distribution equipment design CAD systems or water supply and sewage equipment design CAD systems. In addition to figures, character strings also play an important role. In the latter case, place names related to maps.

建築物名称などと共に、各応用システムの属性情報であ
る各種設備コード、寸法などの大量の文字列が図形と共
に同一画面上に表示される場合が一般的である。
It is common for a large number of character strings, such as various equipment codes and dimensions, which are attribute information of each application system, to be displayed on the same screen together with the building name, etc., along with graphics.

この場合、図形については、その表示位置自体が重要な
意味を持つため正確な表示位置が要求されることが多い
が、文字列については表示位置よりも表示内容が重視さ
れることが多い。また、図形および文字列の表示位置は
、各応用システムによって別個に設定・管理されるのが
一般的である。
In this case, for graphics, accurate display positions are often required because the display position itself has important meaning, but for character strings, display content is often more important than display position. Furthermore, the display positions of figures and character strings are generally set and managed separately by each application system.

さらに、文字列の表示位置については、他の文字列と無
関係に個別に一定の規則に基づいて一意に設定され、表
示内容の見易さまでは考慮されていない。ここでの一定
の規則としては、第5図に図形と文字列との関係を示す
ように、文字列6の表示位置を対応する図形12の表示
位置から水平方向あるいは垂直方向に、Xあるいはyと
いった一定距離とする方法がとられている場合が多い。
Furthermore, the display position of a character string is uniquely set individually based on a certain rule, regardless of other character strings, and the visibility of the displayed content is not taken into account. A certain rule here is that the display position of the character string 6 is set horizontally or vertically in the X or Y direction from the display position of the corresponding figure 12, as shown in FIG. In many cases, a method of setting a certain distance is used.

一方、これらのシステムでは画像表示装置としてフレー
ムバッファデイスプレィ(framebuffer  
display)を用いるものが一般的である。これは
第6図にブロック図を示すように、1画面分の各ピクセ
ル(pix’el)に対応する輝度情報を保持するフレ
ームバッファと呼ばれる表示用メモリ13と、フレーム
バッファの各ピクセルの輝度を読取り、その値に相当し
たビデオ信号を発生してCRTに与えるデイスプレィコ
ントローラ14と、CRT15とから構成されている。
On the other hand, these systems use a frame buffer display as an image display device.
display) is common. As shown in the block diagram in Fig. 6, this consists of a display memory 13 called a frame buffer that holds luminance information corresponding to each pixel for one screen, and a display memory 13 called a frame buffer that stores luminance information corresponding to each pixel in the frame buffer. The display controller 14 includes a CRT 15 and a display controller 14 which generates a video signal corresponding to the read value and supplies it to the CRT.

以上の画像表示装置での図形表示は、一般的に各応用シ
ステムで任意に設定されたワールド座標系に定義された
図形を、画像表示装置に対応した固定的なスクリーン座
標系に変換した後にフレームバッファに展開格納し、フ
レームバッファを画面の水平方向のピクセルの集合であ
るスキャンライン(scan  I 1ne)単位にス
キャン(scan)することにより行われる。
Figures are generally displayed on the above image display devices after converting the figure defined in the world coordinate system arbitrarily set in each application system to a fixed screen coordinate system compatible with the image display device. This is performed by expanding and storing data in a buffer and scanning the frame buffer in units of scan lines (scan I 1ne), which are sets of pixels in the horizontal direction of the screen.

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

上述した従来の文字列表示位置設定方式では、各文字列
の表示位置の相互関係を考慮せずに表示位置の設定が行
われているため、文字列同志が互いに重なりあう場合が
多く、視覚による表示内容の確認を妨げる欠点を有して
いる。
In the conventional character string display position setting method described above, the display position is set without considering the mutual relationship between the display positions of each character string, so character strings often overlap each other, making it difficult to visually It has the disadvantage of hindering confirmation of the displayed contents.

本発明の目的は、同一画面上に表示する文字列に関して
、各文字列表示位置の相互間系により各文字列か重なっ
て表示される度合いを低減することにより最適な表示位
置を設定することができる文字列表示位置設定方式を提
供することにある。
An object of the present invention is to set the optimum display position for character strings to be displayed on the same screen by reducing the degree to which each character string is displayed in an overlapping manner based on the relationship between the display positions of each character string. The purpose of the present invention is to provide a method for setting the character string display position.

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

本発明の文字列表示位置設定方式は、画像表示装置に対
する文字列の表示において、文字列が占有する矩形領域
内のピクセルのアドレスを算出する矩形領域算出手段と
、この矩形領域算出手段で算出されたピクセルのアドレ
スと既に文字列のピクセルのアドレスが決められ管理メ
モリに格納されている他の文字列のピクセルのアドレス
との重複するピクセルを検出する重複領域検出手段と、
この重複領域検出手段によりピクセルの重複が検出され
た二つの文字列の矩形領域の少なくとも一方を別に設け
た範囲内でピクセル単位に移動して重複するピクセルの
数を最小とする重複領域最小化手段と、この重複領域最
小化手段で決定された文字列の矩形領域を前記管理メモ
リに格納する管理メモリ格納手段と、この管理メモリ格
納手段で格納された矩形領域の文字列のピクセルを表示
用メモリに格納する表示用メモリ格納手段とを有するこ
とにより構成される。
The character string display position setting method of the present invention includes a rectangular area calculation means that calculates the address of a pixel within a rectangular area occupied by the character string, and overlapping area detection means for detecting overlapping pixels between the address of the pixel and the address of the pixel of another character string for which the address of the pixel of the character string has already been determined and stored in the management memory;
Overlapping area minimizing means for minimizing the number of overlapping pixels by moving at least one of the rectangular areas of two character strings in which overlapping pixels have been detected by the overlapping area detecting means pixel by pixel within a separately provided range. a management memory storage means for storing the rectangular area of the character string determined by the overlap area minimization means in the management memory; and a display memory for displaying pixels of the character string in the rectangular area stored by the management memory storage means. and display memory storage means for storing data in the display memory.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例の構成図で、処理の流れも併
せて示している。第1図の実施例は文字列占有矩形領域
算出手段1と、文字列重複領域検索手段2と、文字列重
複領域最小化手段3と、文字列占有矩形領域管理メモリ
格納手段4と、表示用メモリ格納手段5とがら構成され
ている。
FIG. 1 is a block diagram of an embodiment of the present invention, and also shows the flow of processing. The embodiment shown in FIG. 1 includes a character string occupied rectangular area calculating means 1, a character string overlapping area searching means 2, a character string overlapping area minimizing means 3, a character string occupied rectangular area management memory storage means 4, and a displaying It is composed of a memory storage means 5.

文字列占有矩形領域算出手段1は、各応用システムのワ
ールド座標系で定義されスクリーン座標系に変換された
例えば第2図に示したような文字列6の表示位置および
大きさ、傾きなどに従い、対象とする文字列6の占有す
る文字列占有矩形領域7の座標を算出し、該当するピク
セルのアドレスを求める。
The character string occupied rectangular area calculation means 1 calculates the display position, size, inclination, etc. of a character string 6 defined in the world coordinate system of each application system and converted to the screen coordinate system, as shown in FIG. 2, for example. The coordinates of the character string occupied rectangular area 7 occupied by the target character string 6 are calculated, and the address of the corresponding pixel is determined.

文字列重複領域検索手段2は、算出されたピクセルのア
ドレスと既に文字列占有矩形領域管理メモリに格納され
ている他の文字列占有矩形領域とのアドレスの重複する
領域である文字列重複領域をピクセル単位で検索する。
The character string overlapping area search means 2 searches for a character string overlapping area which is an area where the address of the calculated pixel overlaps with the address of another character string occupied rectangular area already stored in the character string occupied rectangular area management memory. Search by pixel.

第3図(a)はアドレスが重複する文字列占有矩形領域
の一例を示す図、第3図(b)は第3図(a)をピクセ
ル単位で示した図であり、文字列占有矩形領域7と他の
文字列占有矩形領域8とは、それぞれピクセル9および
10と10および11とに対応し、ピクセル10が重複
しているピクセルを示している。ここで、文字列重複領
域の゛ピクセル数が0であれば、その位置が最適な表示
位置であり、そのまま文字列占有矩形領域管理メモリ格
納手段4へ制御を移す。また、文字列重複領域のピクセ
ル数が0てなければ、文字列重複領域最小化手段3へ制
御を移す。
FIG. 3(a) is a diagram showing an example of a rectangular area occupied by character strings where addresses overlap, and FIG. 3(b) is a diagram showing FIG. 3(a) in pixel units. 7 and another character string occupied rectangular area 8 correspond to pixels 9 and 10 and pixels 10 and 11, respectively, and indicate pixels where pixel 10 overlaps. Here, if the number of pixels in the character string overlapping area is 0, that position is the optimal display position, and control is directly transferred to the character string occupied rectangular area management memory storage means 4. If the number of pixels in the character string overlap area is not 0, control is transferred to the character string overlap area minimization means 3.

文字列重複領域最小化手段3では、対象とする文字列占
有矩形領域を上下左右の4方向に順次、ピクセル単位に
移動することにより文字列重複領域を構成するピクセル
数の最小値を求める。第4図(a)および<b>はそれ
ぞれ第3図(a>および(b)に対応して移動後の状態
を示した図である。このとき、検索中に文字列重複領域
のピクセル数が0になれは、文字列占有矩形領域管理メ
モリ格納手段4へ制御を移す。また、対象とする文字列
に対する図形との距離が離れ過ぎていては、図形を補足
するという文字列本来の性質が無意味になるので、検索
のために移動するピクセル数を一定値に制限する。これ
により、文字列同志の重なっている度合いが低減し、表
示位置の最適化が行われる。
The character string overlapping area minimization means 3 finds the minimum value of the number of pixels constituting the character string overlapping area by sequentially moving the target character string occupied rectangular area in four directions (up, down, left and right) pixel by pixel. FIGS. 4(a) and <b> are diagrams corresponding to FIGS. 3(a) and (b), respectively, showing the state after movement. At this time, during the search, the number of pixels in the character string duplication area If becomes 0, control is transferred to the character string occupied rectangular area management memory storage means 4.Also, if the distance from the target character string to the figure is too far, the original property of the character string to supplement the figure Since this becomes meaningless, the number of pixels moved for search is limited to a certain value.This reduces the degree to which character strings overlap and optimizes the display position.

文字列占有矩形領域管理メモリ格納手段4は、文字列占
有矩形領域を文字列占有矩形領域管理メモリにピクセル
単位で格納する。従って、ここで格納された文字列占有
矩形領域のアドレス情報が文字列重複領域検索手段2で
用いられることになる。すなわち、文字列表示位置は文
字列占有矩形領域管理メモリにより一元的に管理される
The character string occupied rectangular area management memory storage means 4 stores the character string occupied rectangular area in the character string occupied rectangular area management memory in pixel units. Therefore, the address information of the character string occupied rectangular area stored here is used by the character string overlapping area search means 2. That is, the character string display position is centrally managed by the character string occupied rectangular area management memory.

表示用メモリ格納手段5は、文字列重複領域の最小化に
より決定した位置に、対象となる文字列を画像表示装置
の表示用メモリにピクセル単位で割り当てる。これによ
り、画像表示装置で文字列の表示が行われる。
The display memory storage means 5 allocates the target character string in the display memory of the image display device pixel by pixel at the position determined by minimizing the character string overlap area. Thereby, the character string is displayed on the image display device.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、画像表示装置への文字
列の表示を他の文字列との表示位置の重なり度合いを最
小にして行うことができ、従来の各応用システムに依存
している固定的で一意的な表示位置設定方式と異なり、
利用者にとってわかりやすい画像が得られるという効果
がある。
As explained above, the present invention can display a character string on an image display device while minimizing the degree of overlapping of display positions with other character strings, and is not dependent on each conventional application system. Unlike fixed and unique display position setting methods,
This has the effect of providing an image that is easy for the user to understand.

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

第1図は本発明の一実施例の構成図、第2図は第1図中
の文字列占有矩形領域算出手段を説明するための図、第
3図(a>および(b)は第1図中の文字列重複領域検
索手段を説明するための図、第4図(a)および(b)
は第1図中の文字列重複領域最小化手段を説明するため
の図、第5図は従来の文字列表示設定方式を説明するた
めの図、第6図はフレームバッファデイスプレィのブロ
ック図である。 1・・・文字列占有矩形領域算出手段、2・・・文字列
重複領域検索手段、3・・・文字列重複領域最小化手段
、4・・・文字列占有矩形領域管理メモリ格納手段、5
・・表示用メモリ格納手段、6・・・文字列、7・・文
字列占有矩形領域、8・・・他の文字列占有矩形領域、
9.10.11・・・ピクセル、12・・・図形、13
・・・表示用メモリ、14・・・デイスプレィコントロ
ーラ、15・・・CRT。
FIG. 1 is a block diagram of one embodiment of the present invention, FIG. 2 is a diagram for explaining the character string occupied rectangular area calculation means in FIG. 1, and FIG. Diagrams for explaining the character string overlap area search means in the diagram, FIGS. 4(a) and (b)
is a diagram for explaining the character string overlapping area minimization means in Figure 1, Figure 5 is a diagram for explaining the conventional character string display setting method, and Figure 6 is a block diagram of the frame buffer display. be. DESCRIPTION OF SYMBOLS 1... Character string occupied rectangular area calculating means, 2... Character string overlapping area searching means, 3... Character string overlapping area minimizing means, 4... Character string occupied rectangular area management memory storage means, 5
... Display memory storage means, 6... Character string, 7... Character string occupied rectangular area, 8... Other character string occupied rectangular area,
9.10.11... Pixel, 12... Figure, 13
...Display memory, 14...Display controller, 15...CRT.

Claims (1)

【特許請求の範囲】[Claims] 画像表示装置に対する文字列の表示において、文字列が
占有する矩形領域内のピクセルのアドレスを算出する矩
形領域算出手段と、この矩形領域算出手段で算出された
ピクセルのアドレスと既に文字列のピクセルのアドレス
が決められ管理メモリに格納されている他の文字列のピ
クセルのアドレスとの重複するピクセルを検出する重複
領域検出手段と、この重複領域検出手段によりピクセル
の重複が検出された二つの文字列の矩形領域の少なくと
も一方を別に設けた範囲内でピクセル単位に移動して重
複するピクセルの数を最小とする重複領域最小化手段と
、この重複領域最小化手段で決定された文字列の矩形領
域を前記管理メモリに格納する管理メモリ格納手段と、
この管理メモリ格納手段で格納された矩形領域の文字列
のピクセルを表示用メモリに格納する表示用メモリ格納
手段とを有することを特徴とする文字列表示位置設定方
式。
When displaying a character string on an image display device, there is a rectangular area calculation means that calculates the address of a pixel within a rectangular area occupied by the character string, and a method that calculates the address of the pixel calculated by this rectangular area calculation means and the address of the pixel already in the character string. Overlapping area detection means for detecting pixels whose addresses overlap with the addresses of pixels of other character strings whose addresses are determined and stored in the management memory, and two character strings in which overlapping pixels are detected by the overlapping area detection means. an overlapping area minimizing means for minimizing the number of overlapping pixels by moving at least one of the rectangular areas within a separately provided range pixel by pixel; and a rectangular area of the character string determined by the overlapping area minimizing means. management memory storage means for storing in the management memory;
A character string display position setting method comprising display memory storage means for storing pixels of a character string in a rectangular area stored in the management memory storage means in a display memory.
JP2284941A 1990-10-23 1990-10-23 Setting system for character string display position Pending JPH04160479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2284941A JPH04160479A (en) 1990-10-23 1990-10-23 Setting system for character string display position

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2284941A JPH04160479A (en) 1990-10-23 1990-10-23 Setting system for character string display position

Publications (1)

Publication Number Publication Date
JPH04160479A true JPH04160479A (en) 1992-06-03

Family

ID=17685051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2284941A Pending JPH04160479A (en) 1990-10-23 1990-10-23 Setting system for character string display position

Country Status (1)

Country Link
JP (1) JPH04160479A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11248473A (en) * 1998-03-04 1999-09-17 Matsushita Electric Ind Co Ltd Geographic information presenting apparatus
JP2007003826A (en) * 2005-06-23 2007-01-11 Ekitan & Co Ltd Map data output device and output program, and route map output device, output system, and output program
JP2007529786A (en) * 2004-03-17 2007-10-25 シードラゴン ソフトウェア インコーポレイテッド Method for encoding and processing geographic information or other vector data as an image

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11248473A (en) * 1998-03-04 1999-09-17 Matsushita Electric Ind Co Ltd Geographic information presenting apparatus
JP2007529786A (en) * 2004-03-17 2007-10-25 シードラゴン ソフトウェア インコーポレイテッド Method for encoding and processing geographic information or other vector data as an image
JP2007003826A (en) * 2005-06-23 2007-01-11 Ekitan & Co Ltd Map data output device and output program, and route map output device, output system, and output program

Similar Documents

Publication Publication Date Title
JPH10105723A (en) Memory constitution for texture mapping
CA1220582A (en) Method and apparatus for continuously updating a display of the coordinates of a light pen
US5195174A (en) Image data processing apparatus capable of composing one image from a plurality of images
CN1430769B (en) Tiled graphics architecture
US5701138A (en) Resolution independent methods for rendering a graphic image on a display device
JPH04160479A (en) Setting system for character string display position
JPH0719263B2 (en) Map information display system
US4614941A (en) Raster-scan/calligraphic combined display system for high speed processing of flight simulation data
JPS62153889A (en) Vehicle navigator
JPS59187389A (en) Bit map display unit
JPS62154063A (en) Image display device
JPH0546080A (en) Perspective drawing preparing device
JPS62153887A (en) Map information display
JPH0529951B2 (en)
JPS6315617B2 (en)
JPH0736437A (en) Picture data processor
JP3312699B2 (en) Screen display method using virtual VRAM
JPS62151889A (en) Image output unit
JPS62133578A (en) Data selecting and editing device
JPS6360671A (en) Document picture processor
JPH04326474A (en) Picture display device
JPH05204374A (en) Picture display control system
JPH0318717B2 (en)
JPH05242167A (en) Pointer retrieval device for raster drawing and method for displaying vector data on raster drawing
JPH0773299A (en) Image input device