JP2012107988A - Device for displaying round bar graph and drawing method thereof - Google Patents

Device for displaying round bar graph and drawing method thereof Download PDF

Info

Publication number
JP2012107988A
JP2012107988A JP2010257045A JP2010257045A JP2012107988A JP 2012107988 A JP2012107988 A JP 2012107988A JP 2010257045 A JP2010257045 A JP 2010257045A JP 2010257045 A JP2010257045 A JP 2010257045A JP 2012107988 A JP2012107988 A JP 2012107988A
Authority
JP
Japan
Prior art keywords
display
bar graph
displayed
pattern data
display pattern
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.)
Granted
Application number
JP2010257045A
Other languages
Japanese (ja)
Other versions
JP5524811B2 (en
Inventor
Kazuyoshi Ogasawara
一賀 小笠原
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.)
Yazaki Corp
Original Assignee
Yazaki Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yazaki Corp filed Critical Yazaki Corp
Priority to JP2010257045A priority Critical patent/JP5524811B2/en
Publication of JP2012107988A publication Critical patent/JP2012107988A/en
Application granted granted Critical
Publication of JP5524811B2 publication Critical patent/JP5524811B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Indicating Measured Values (AREA)
  • Instrument Panels (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an indicator of high accuracy with a reduced indication error, without increasing a processing load of a graphic controller and the like when displaying a round bar graph.SOLUTION: A whole of a maximum display area corresponding to a maximum indication value of a bar graph to be displayed is divided into a plurality of N predetermined sub-areas, and N pieces of display pattern data on two-dimensional bitmaps corresponding to the respective sub-areas are prepared beforehand. Z (Z≤N) pieces of display pattern data are selected correspondingly to an indication value to be displayed among the N pieces of display pattern data, and the selected Z pieces of display pattern data are pasted in areas of coordinates for display allocated beforehand (S12). An error area corresponding to an indication error between a value indicated by a bar graph displayed by combining the Z pieces of display pattern data and an indication value to be displayed is detected, and correction drawing processes (S14-S17) are executed on the error area.

Description

本発明は、自動車用の計器等の表示に利用可能な丸形バーグラフ表示器およびその描画方法に関する。   The present invention relates to a round bar graph display that can be used for displaying an automobile instrument and the like, and a drawing method thereof.

従来より、様々な計器において指示値を表示するためにバーグラフ表示器が用いられている。バーグラフの表示形態については、直線形状の表示パターンや、曲線状の表示パターンや、丸形すなわち円弧状の表示パターンが用いられる。つまり、指示すべき数値の大きさを表示状態のバーの長さによって表現する。また、指針を有する一般的なアナログ計器の指針が指し示す位置と同じ位置を、表示状態のバーの先端位置の変化により表現できるので、指針の代わりにバーグラフ表示を用いることができる。   Conventionally, bar graph displays have been used to display the indicated values in various instruments. As a display form of the bar graph, a linear display pattern, a curved display pattern, or a round display pattern, that is, an arc display pattern, is used. That is, the size of the numerical value to be indicated is expressed by the length of the bar in the display state. Further, since the same position as the position indicated by the pointer of a general analog instrument having a pointer can be expressed by the change in the tip position of the bar in the display state, a bar graph display can be used instead of the pointer.

車両用のメータユニットにバーグラフ表示を採用した従来技術として、例えば特許文献1に開示された技術が知られている。特許文献1においては、直線形状の表示パターンのをバーグラフ表示を採用した燃料計や、円弧状の表示パターンのバーグラフ表示と指針の表示とを組み合わせたスピードメータなどが開示されている。   As a prior art employing a bar graph display in a vehicle meter unit, for example, a technique disclosed in Patent Document 1 is known. Patent Document 1 discloses a fuel meter that uses a bar graph display of a linear display pattern, a speedometer that combines a bar graph display of an arc-shaped display pattern and a pointer display.

また、特許文献2の車両用計器においては、エンジン回転計の計器内の指針の近傍に扇形状のレーダイメージをグラフィック表示するための技術を開示している。また、円弧状の目盛りの最小位置から最大位置までの指示範囲を一定の間隔(100回転/min)で81個の扇形状部S1〜S81に分割し、各々の扇形状部に独立したパレット番号を割り当てている。すなわち、それぞれのパレット番号にカラーデータを書き込むことにより、扇形状部毎に表示色を切り替えてその位置にレーダイメージをグラフィック表示することができる。   Moreover, in the vehicle instrument of patent document 2, the technique for carrying out the graphic display of the fan-shaped radar image in the vicinity of the pointer | guide in the meter of an engine tachometer is disclosed. Further, the indicated range from the minimum position to the maximum position of the arc-shaped scale is divided into 81 fan-shaped portions S1 to S81 at a constant interval (100 rotations / min), and a pallet number independent of each fan-shaped portion. Assigned. That is, by writing color data to each pallet number, the display color can be switched for each fan-shaped portion and the radar image can be displayed graphically at that position.

特開2009−75025号公報JP 2009-75025 A 特開2003−137007号公報JP 2003-137007 A

ところで、近年では液晶表示器等の表示デバイスの技術の進歩によって画素数の多い表示器を比較的容易に利用できるようになっている。画素数の多い表示器を用いてグラフィック表示を行う場合には、高精細な画像パターンを描画できるので、例えば円弧状のバーグラフをグラフィック表示する場合であっても、表示すべき指示値と実際の表示位置との誤差が小さい計器を実現することが可能である。   By the way, in recent years, a display having a large number of pixels can be used relatively easily due to the advancement of the technology of a display device such as a liquid crystal display. When graphic display is performed using a display device with a large number of pixels, a high-definition image pattern can be drawn. For example, even when an arc-shaped bar graph is displayed graphically, the indication value to be displayed and the actual display value It is possible to realize an instrument with a small error from the display position.

しかしながら、高解像度の画像パターンを表示するためには、膨大な数の画素のそれぞれに対する表示オンオフや表示色の切り替えを行う必要があるので、それを処理するグラフィックコントローラの負担が大きくなり、装置コストが上昇するのは避けられない。   However, in order to display a high-resolution image pattern, it is necessary to perform display on / off and display color switching for each of a large number of pixels, which increases the burden on the graphic controller that processes the display and increases the device cost. It is inevitable that will rise.

特に、円弧状のバーグラフをグラフィック表示する場合には、曲線的なパターンを扱うことになるので、非常に複雑な計算が必要になり、この処理を膨大な数の画素のそれぞれに適用することになるのでグラフィックコントローラの負担が非常に大きい。もしも、能力の小さいグラフィックコントローラを用いると、処理対象の全ての画素を描画するまでの所要時間が長くなるので、表示の更新周期が長くなるのは避けられない。その結果、車速やエンジン回転数などの測定値が急速に変化した場合に、表示される指示値の追従が測定値の変化に対して遅延することになる。   In particular, when an arc-shaped bar graph is displayed graphically, a curved pattern is handled, which requires very complicated calculations, and this processing must be applied to each of a large number of pixels. Therefore, the burden on the graphic controller is very large. If a graphic controller with a small capability is used, the time required to draw all the pixels to be processed becomes long, so it is inevitable that the display update cycle becomes long. As a result, when measured values such as vehicle speed and engine speed change rapidly, the follow-up of the displayed instruction value is delayed with respect to the change in measured value.

従って、グラフィックコントローラの処理の負担を減らすために、例えば特許文献2に開示されている技術と同様に、円弧状のバーグラフの指示範囲を一定の間隔毎に区切り、区切られた多数の扇形状の領域毎にグラフィックパターンの描画処理を施すことが想定できる。しかし、その場合には表示デバイスの画素数が多い場合であっても、扇形状の領域の区切り単位でしか指示位置を切り替えできなくなる。   Therefore, in order to reduce the processing load of the graphic controller, for example, as in the technique disclosed in Patent Document 2, the indicated range of the arc-shaped bar graph is divided at regular intervals, and a large number of divided fan shapes It can be assumed that a graphic pattern drawing process is performed for each area. However, in this case, even when the number of pixels of the display device is large, the designated position can be switched only in units of sector-shaped regions.

例えば、車速を表示するスピードメータを円弧状のバーグラフで表示する場合に、5km/h毎に区切って多数の扇形状の領域を割り当て、扇形状の領域毎にグラフィックの描画処理を行うと、実際の車速の測定値が57km/hであっても、55km/h又は60km/hの位置しか指示できない。従って、測定値と指示値との間に大きな誤差が発生してしまう。   For example, when a speedometer that displays the vehicle speed is displayed as an arc-shaped bar graph, a large number of fan-shaped areas are allocated by dividing every 5 km / h, and graphic drawing processing is performed for each fan-shaped area. Even if the actual measured value of the vehicle speed is 57 km / h, only the position of 55 km / h or 60 km / h can be indicated. Accordingly, a large error occurs between the measured value and the indicated value.

また、円弧状のバーグラフで正しい位置を指示させるために、例えばグラフィックパターンの表示位置や表示角度を変更しようとすると、膨大な数の画素のそれぞれについて、複雑な計算を伴う座標変換処理を行わざるを得ず、グラフィックコントローラの処理の負担が大きくなる。   Also, in order to indicate the correct position on the arc-shaped bar graph, for example, when changing the display position and display angle of the graphic pattern, coordinate conversion processing involving complicated calculations is performed for each of a large number of pixels. Inevitably, the processing load of the graphic controller increases.

本発明は、上述した事情に鑑みてなされたものであり、その目的は、丸形バーグラフを表示する場合に、グラフィックコントローラ等の処理の負担を増やすことなく、高精度で指示誤差の小さい計器を実現することが可能な丸形バーグラフ表示器およびその描画方法を提供することにある。   The present invention has been made in view of the above-described circumstances, and an object of the present invention is to provide a high-precision and small instruction error without increasing the processing load of a graphic controller or the like when displaying a round bar graph. Is to provide a round bar graph display capable of realizing the above and a drawing method thereof.

前述した目的を達成するために、本発明に係る丸形バーグラフ表示器の描画方法は、下記(1)〜(4)を特徴としている。
(1) 表示画素の集合によりグラフィック表示が可能な丸形、または楕円形のグラフィック表示領域の少なくとも一部分を利用して、表示対象の指示値に対応したバーグラフを表示する丸形バーグラフ表示器の描画方法であって、
表示するバーグラフの最大指示値に対応する最大表示領域の全体を予め定めた複数のN個の小領域に区分して、前記N個の小領域のそれぞれに対応した二次元ビットマップのN個の表示パターンデータを予め用意し、
前記N個の表示パターンデータの中から表示対象の指示値に対応して(Z≦N)であるZ個の表示パターンデータを選択し、
選択された前記Z個の表示パターンデータを、それぞれに予め割り当てられた表示座標の領域に貼り付け、
前記Z個の表示パターンデータの合成によって表示されるバーグラフの指示値と、表示対象指示値との指示誤差に相当する誤差領域を検出し、前記誤差領域に対して補正描画処理を施す
こと。
(2) 前記(1)に記載の丸形バーグラフ表示器の描画方法であって、
前記補正描画処理においては、3つの頂点を有する三角形状パターンの二次元ビットマップデータを、前記誤差領域に対応する1つ又は2つの三角形状領域にそれぞれ書き込む
こと。
(3) 前記(1)に記載の丸形バーグラフ表示器の描画方法であって、
前記N個の表示パターンデータの全てについて、扇形状の表示パターンが内部に含まれる矩形パターンを用いる
こと。
(4) 前記(3)に記載の丸形バーグラフ表示器の描画方法であって、
前記扇形状の表示パターンは予め定めた表示色の属性データを有し、前記表示パターン以外の前記矩形パターンの領域は透明色の属性データを有する
こと。
In order to achieve the above-described object, a drawing method for a round bar graph display according to the present invention is characterized by the following (1) to (4).
(1) A round bar graph display that displays a bar graph corresponding to the indicated value to be displayed using at least a part of a round or oval graphic display area capable of graphic display by a set of display pixels. Drawing method,
The entire maximum display area corresponding to the maximum indication value of the bar graph to be displayed is divided into a plurality of predetermined N small areas, and N two-dimensional bitmaps corresponding to each of the N small areas Display pattern data is prepared in advance,
Selecting Z display pattern data (Z ≦ N) corresponding to the instruction value to be displayed from the N display pattern data;
The selected Z pieces of display pattern data are pasted into display coordinate areas assigned in advance,
Detecting an error area corresponding to an instruction error between an instruction value of a bar graph displayed by combining the Z display pattern data and a display target instruction value, and performing a correction drawing process on the error area;
(2) The drawing method of the round bar graph display device according to (1),
In the correction drawing process, two-dimensional bitmap data of a triangular pattern having three vertices is written in one or two triangular areas corresponding to the error area, respectively.
(3) The drawing method of the round bar graph display device according to (1),
A rectangular pattern including a fan-shaped display pattern is used for all of the N display pattern data.
(4) The drawing method of the round bar graph display device according to (3),
The fan-shaped display pattern has predetermined display color attribute data, and the rectangular pattern area other than the display pattern has transparent color attribute data.

上記(1)の構成の丸形バーグラフ表示器の描画方法によれば、予め用意されたZ個の表示パターンデータを選択して予め割り当てられた表示座標の領域に貼り付けるだけなので、回転などの複雑な計算処理を行う必要がない。また、Z個の表示パターンデータの合成によって表示されるバーグラフの指示値と、表示対象指示値との指示誤差に相当する誤差領域の大きさはバーグラフ全体に比べて小さいので、前記補正描画処理の負担も比較的小さい。
上記(2)の構成の丸形バーグラフ表示器の描画方法によれば、前記誤差領域に対する描画処理についても、形状が単純な三角形状パターンの領域について処理を施すだけなので、複雑な計算が不要であり、処理能力の小さいグラフィックコントローラを用いる場合であっても短時間で処理できる。
上記(3)の構成の丸形バーグラフ表示器の描画方法によれば、最も形状が単純な矩形パターンを貼り付けるだけなので処理が極めて単純であり、扇形状パターンを構成する画素の数が非常に多い場合であっても短時間で描画処理できる。
上記(4)の構成の丸形バーグラフ表示器の描画方法によれば、複数の矩形パターンを一部分が重なり合うように貼り付ける場合であっても、透明色の属性データの領域が前記扇形状の表示パターンを上書きすることがない。従って、非常に単純な処理だけで丸形バーグラフを描画できる。
According to the drawing method of the round bar graph display configured as described in (1) above, since only Z display pattern data prepared in advance are selected and pasted in the area of display coordinates assigned in advance, rotation, etc. There is no need to perform complicated calculation processing. In addition, since the size of the error area corresponding to the indication error between the indication value of the bar graph displayed by combining the Z display pattern data and the display target indication value is smaller than the entire bar graph, the correction drawing The processing burden is relatively small.
According to the drawing method of the round bar graph display configured as described in (2) above, the drawing process for the error area is performed only for the triangular pattern area having a simple shape, so that no complicated calculation is required. Even when a graphic controller with a small processing capability is used, processing can be performed in a short time.
According to the drawing method of the round bar graph display having the configuration (3), the processing is very simple because only the rectangular pattern having the simplest shape is pasted, and the number of pixels constituting the fan-shaped pattern is very large. Even if there are many cases, drawing processing can be performed in a short time.
According to the drawing method of the round bar graph display configured as described in (4) above, even when a plurality of rectangular patterns are pasted so as to partially overlap, the transparent attribute data area has the sector shape. The display pattern is not overwritten. Therefore, it is possible to draw a round bar graph by a very simple process.

前述した目的を達成するために、本発明に係る丸形バーグラフ表示器は、下記(5)を特徴としている。
(5) 表示画素の集合によりグラフィック表示が可能な丸形、または楕円形のグラフィック表示領域の少なくとも一部分を利用して、表示対象の指示値に対応したバーグラフを表示する丸形バーグラフ表示器であって、
表示するバーグラフの最大指示値に対応する最大表示領域の全体を予め定めた複数のN個の小領域に区分する場合の、前記N個の小領域のそれぞれに対応した二次元ビットマップのN個の表示パターンデータを予め保持する小領域パターンデータ保持部と、
前記N個の表示パターンデータの中から表示対象の指示値に対応して(Z≦N)であるZ個の表示パターンデータを選択し、選択された前記Z個の表示パターンデータを、それぞれに予め割り当てられた表示座標の領域に貼り付け、前記Z個の表示パターンデータの合成によって表示されるバーグラフの指示値と、表示対象指示値との指示誤差に相当する誤差領域を検出し、前記誤差領域に対して補正描画処理を施す描画処理部と
を備えること。
In order to achieve the above-described object, a round bar graph display according to the present invention is characterized by the following (5).
(5) A round bar graph display that displays a bar graph corresponding to the indicated value to be displayed using at least a part of a round or oval graphic display area capable of graphic display by a set of display pixels. Because
When the entire maximum display area corresponding to the maximum indication value of the bar graph to be displayed is divided into a plurality of predetermined N small areas, N of the two-dimensional bitmap corresponding to each of the N small areas A small area pattern data holding unit for holding pieces of display pattern data in advance,
Z pieces of display pattern data (Z ≦ N) corresponding to the instruction value to be displayed are selected from the N pieces of display pattern data, and the selected Z pieces of display pattern data are respectively set. An error area corresponding to an indication error between the indication value of the bar graph displayed by combining the Z pieces of display pattern data and the indication value of the display object is pasted to a display coordinate area assigned in advance, and A drawing processing unit that performs correction drawing processing on the error area.

上記(5)の構成の丸形バーグラフ表示器によれば、予め用意されたZ個の表示パターンデータを選択して予め割り当てられた表示座標の領域に貼り付けるだけなので、回転などの複雑な計算処理を行う必要がない。また、Z個の表示パターンデータの合成によって表示されるバーグラフの指示値と、表示対象指示値との指示誤差に相当する誤差領域の大きさはバーグラフ全体に比べて小さいので、前記補正描画処理の負担も比較的小さい。   According to the round bar graph display having the configuration (5), since only Z pieces of display pattern data prepared in advance are selected and pasted to a display coordinate area assigned in advance, complicated rotation such as rotation is required. There is no need to perform calculation processing. In addition, since the size of the error area corresponding to the indication error between the indication value of the bar graph displayed by combining the Z display pattern data and the display target indication value is smaller than the entire bar graph, the correction drawing The processing burden is relatively small.

本発明の丸形バーグラフ表示器およびその描画方法によれば、グラフィックコントローラ等の処理の負担を増やすことなく、高精度で指示誤差の小さい計器を実現することが可能である。   According to the round bar graph display and the drawing method of the present invention, it is possible to realize an instrument with high accuracy and small instruction error without increasing the processing load of the graphic controller or the like.

以上、本発明について簡潔に説明した。更に、以下に説明される発明を実施するための形態を添付の図面を参照して通読することにより、本発明の詳細は更に明確化されるであろう。   The present invention has been briefly described above. Further, details of the present invention will be further clarified by reading through the modes for carrying out the invention described below with reference to the accompanying drawings.

本発明の実施形態の丸形バーグラフを表示するための主要な処理に関する手順を表すフローチャートである。It is a flowchart showing the procedure regarding the main processes for displaying the round bar graph of embodiment of this invention. 本発明の実施形態の丸形バーグラフを表示するために用いる要素データのレイアウトおよび表示形態の具体例を示す模式図である。It is a schematic diagram which shows the specific example of the layout of element data used in order to display the round bar graph of embodiment of this invention, and a display form. 車両用グラフィックメータのハードウェアの構成例を示すブロック図である。It is a block diagram which shows the structural example of the hardware of the graphic meter for vehicles. 複数の要素データとこれらの組み合わせにより表示される丸形バーグラフの具体例を示す模式図である。It is a schematic diagram which shows the specific example of the round bar graph displayed by several element data and these combination. 丸形バーグラフを表示するための制御で用いるテーブルの構成の具体例を示す模式図である。It is a schematic diagram which shows the specific example of a structure of the table used by control for displaying a round bar graph. 複数の要素データの組み合わせで表示される丸形バーグラフの指示誤差を低減するための処理を表す模式図である。It is a schematic diagram showing the process for reducing the indication error of the round bar graph displayed by the combination of a some element data. 表示される丸形バーグラフの指示誤差を低減するための処理の変形例を表す模式図である。It is a schematic diagram showing the modification of the process for reducing the indication error of the round bar graph displayed.

本発明の丸形バーグラフ表示器およびその描画方法に関する具体的な実施の形態について、各図を参照しながら以下に説明する。   Specific embodiments of the round bar graph display and drawing method of the present invention will be described below with reference to the drawings.

本実施形態で丸形バーグラフを表示するための主要な処理に関する処理手順が図1に示されている。図1に示した処理手順の描画方法は、例えば図3に示すような装置の表示制御に適用することができる。図3においては、車両の計器板に搭載されるグラフィックメータのハードウェアの構成例が示されている。   FIG. 1 shows a processing procedure relating to main processing for displaying a round bar graph in the present embodiment. The drawing method of the processing procedure shown in FIG. 1 can be applied to display control of an apparatus as shown in FIG. 3, for example. FIG. 3 shows a hardware configuration example of a graphic meter mounted on a vehicle instrument panel.

図3に示すグラフィックメータは、グラフィックディスプレイ10、GDC(グラフィックディスプレイコントローラ)11、マイクロコンピュータ(CPU)12、メモリ(RAM)13、メモリ(ROM)14、外部信号入出力回路15、アナログ表示部21、22、モータドライバ23、24、及びインジケータランプ25、26を備えている。なお、GDC11、マイクロコンピュータ12、メモリ(RAM)13、メモリ(ROM)14等は一体として構成することも可能である。   The graphic meter shown in FIG. 3 includes a graphic display 10, a GDC (graphic display controller) 11, a microcomputer (CPU) 12, a memory (RAM) 13, a memory (ROM) 14, an external signal input / output circuit 15, and an analog display unit 21. , 22, motor drivers 23 and 24, and indicator lamps 25 and 26. Note that the GDC 11, the microcomputer 12, the memory (RAM) 13, the memory (ROM) 14, and the like can be configured integrally.

グラフィックディスプレイ10は、例えば液晶表示デバイス等で構成され、横方向及び縦方向に一定のピッチで並べて配置された多数の表示素子を有している。各々の表示素子は個別に表示色や濃淡を制御することができ、1つの表示素子を用いて1つの画素を表示できる。多数の画素の集合について表示を制御することで、所望の形状の2次元パターンを表示することができる。   The graphic display 10 is composed of, for example, a liquid crystal display device or the like, and has a large number of display elements arranged side by side at a constant pitch in the horizontal and vertical directions. Each display element can individually control display colors and shades, and one pixel can be displayed using one display element. A two-dimensional pattern having a desired shape can be displayed by controlling the display of a large number of pixels.

GDC11は、メモリ13上に事前に用意した表示用データに基づいて表示画像のビットマップデータを作成する機能や、表示画像のビットマップデータからグラフィックディスプレイ10の表示に必要な画像信号や同期信号を生成する機能を有している。   The GDC 11 generates a display image bitmap data based on display data prepared in advance on the memory 13, and an image signal and a synchronization signal necessary for display on the graphic display 10 from the display image bitmap data. It has a function to generate.

マイクロコンピュータ12は、メモリ(ROM)14上に予め用意したプログラムを実行することにより、このグラフィックメータの表示制御に必要な機能を実現する。このプログラムには、丸形バーグラフの表示制御に必要な図1に示した処理の内容も含まれている。   The microcomputer 12 implements functions necessary for display control of the graphic meter by executing a program prepared in advance on a memory (ROM) 14. This program includes the contents of the processing shown in FIG. 1 necessary for the display control of the round bar graph.

メモリ(RAM)13は、データの読み出し及び書き込みが自在な半導体記憶装置である。メモリ13上には、グラフィックディスプレイ10の画面上に表示される画像のビットマップデータを保持するためのビデオRAMの記憶領域や、GDC11及びマイクロコンピュータ12が使用する一時的なデータを保持するための記憶領域が備わっている。   The memory (RAM) 13 is a semiconductor memory device that can freely read and write data. On the memory 13, a storage area of a video RAM for holding bitmap data of an image displayed on the screen of the graphic display 10, and temporary data used by the GDC 11 and the microcomputer 12 are held. A storage area is provided.

メモリ(ROM)14は、マイクロコンピュータ12が実行すべきプログラムのデータや、様々な制御においてマイクロコンピュータ12やGDC11が使用する様々な定数データを予め保持している。メモリ14が保持する定数データの中には、表示される丸形バーグラフパターンの元になる複数の要素データも含まれている。   The memory (ROM) 14 holds in advance data of a program to be executed by the microcomputer 12 and various constant data used by the microcomputer 12 and the GDC 11 in various controls. The constant data stored in the memory 14 includes a plurality of element data that are the basis of the displayed round bar graph pattern.

外部信号入出力回路15は、例えば車速の信号、エンジン回転数の信号、燃料残量の信号、冷却水温度の信号のように車両側から入力される様々な信号を処理してマイクロコンピュータ12に与えたり、マイクロコンピュータ12が出力する各種信号を車両側に出力するための信号処理を行う。   The external signal input / output circuit 15 processes various signals input from the vehicle side, such as a vehicle speed signal, an engine speed signal, a fuel remaining amount signal, and a coolant temperature signal, to the microcomputer 12. Or signal processing for outputting various signals output from the microcomputer 12 to the vehicle side.

アナログ表示部21、22は、それぞれ物理的に移動可能な指針および目盛りを有するアナログ計器として利用される表示部であり、指針を駆動するために電気モータを内蔵している。なお、グラフィックディスプレイ10上で全ての計器を表示できるような場合には、アナログ表示部21、22の搭載は省略することもできる。   The analog display units 21 and 22 are display units that are used as analog instruments having hands and scales that are physically movable, respectively, and incorporate an electric motor to drive the hands. In addition, when all the instruments can be displayed on the graphic display 10, mounting of the analog display units 21 and 22 can be omitted.

モータドライバ23、24は、マイクロコンピュータ12の制御に従ってそれぞれアナログ表示部21、22の電気モータを駆動して指針の指示する位置を調整する。   The motor drivers 23 and 24 adjust the positions indicated by the hands by driving the electric motors of the analog display units 21 and 22, respectively, according to the control of the microcomputer 12.

インジケータランプ25、26は、所定のドライバを介してマイクロコンピュータ12と接続されており、マイクロコンピュータ12の制御により点灯/消灯の状態が切り替わる。インジケータランプ25、26を個別に点灯することで、様々な警告表示を行うことができる。   The indicator lamps 25 and 26 are connected to the microcomputer 12 via a predetermined driver, and the on / off state is switched under the control of the microcomputer 12. By lighting the indicator lamps 25 and 26 individually, various warning displays can be performed.

本実施形態で丸形バーグラフを表示するために用いる要素データのレイアウトおよび表示形態の具体例が図2に示されている。この例では、丸形の計器をバーグラフで表示するために、図2に示すようなN個の要素データE1、E2、E3、・・・、ENを2次元固定パターンのビットマップデータとしてメモリ(ROM)14上に予め用意してある。   A specific example of the layout and display form of element data used for displaying a round bar graph in this embodiment is shown in FIG. In this example, in order to display a round instrument with a bar graph, N pieces of element data E1, E2, E3,..., EN as shown in FIG. (ROM) 14 is prepared in advance.

すなわち、丸形の表示範囲の最小値位置から最大値位置までを一定の間隔、例えば指示方向の角度の10度毎に分割してN個の小領域を形成してあり、N個の小領域のそれぞれの形状(扇形に近い形状)に対応するN個の要素データE1〜ENが用意してある。   In other words, N small areas are formed by dividing the round display range from the minimum value position to the maximum value position at regular intervals, for example, every 10 degrees of the angle in the indicated direction. N element data E1 to EN corresponding to each shape (shape close to a sector) are prepared.

これらの要素データのそれぞれは、例えば図4に示す要素データE2のように、4つの頂点(P21〜P24)を有する矩形パターンの形状をなし、横方向及び縦方向に並んだ多数の表示画素に相当するビットマップデータで構成されている。また、この矩形パターンの輪郭の辺の内側に接するように、扇形状の表示パターン51が形成してある。扇形状の表示パターン51は、バーグラフの表示に用いる所定の表示色の属性データを有している。また、扇形状の表示パターン51以外の背景領域52は、表示に影響を及ぼさない透明色の属性データを有している。   Each of these element data has a rectangular pattern shape having four vertices (P21 to P24) as in element data E2 shown in FIG. 4, for example, in a large number of display pixels arranged in the horizontal and vertical directions. It consists of corresponding bitmap data. In addition, a fan-shaped display pattern 51 is formed so as to be in contact with the inner side of the outline of the rectangular pattern. The fan-shaped display pattern 51 has attribute data of a predetermined display color used for displaying a bar graph. The background area 52 other than the fan-shaped display pattern 51 has transparent color attribute data that does not affect the display.

図2に示すように、例えば、N個の要素データE1〜ENの1番目から4番目までの4個の要素データE1〜E4を取り出してこれらを所定の位置に並べると、上段側に示された丸形のバーグラフB1を表示することができる。同様に、1番目から13番目までの13個の要素データE1〜E13を取り出してこれらを所定の位置に並べると、上段側に示された丸形のバーグラフB2を表示することができ、1番目からN番目までのN個全ての要素データE1〜ENを取り出してこれらを所定の位置に並べると、上段側に示された丸形のバーグラフB3を表示することができる。   As shown in FIG. 2, for example, when the first to fourth element data E1 to E4 of the N element data E1 to EN are taken out and arranged at predetermined positions, they are shown on the upper side. A round bar graph B1 can be displayed. Similarly, by extracting 13 element data E1 to E13 from the 1st to the 13th and arranging them at a predetermined position, the round bar graph B2 shown on the upper side can be displayed. When all the N element data E1 to EN from the nth to the Nth are taken out and arranged at predetermined positions, a round bar graph B3 shown on the upper side can be displayed.

但し、図2に示すように要素データE1〜ENの一部分又は全部を単純に並べることにより表示されるバーグラフ(B1〜B3)だけでは正確な指示値を表示することができない。例えば、N個の要素データE1〜ENに対応する小領域の分割間隔が10度毎である場合には、最小値位置から40度や50度の方向であれば正しい指示値をバーグラフ先端位置で指示できるが、最小値位置から41度〜49度の方向のような中間位置を正しく指示することはできない。例えば分割間隔を1度毎のように小さくすれば指示位置の誤差は小さくなるが、用意すべき要素データの数が増えるし、描画処理の負担も増える。従って、図1に示す処理手順には、バーグラフの指示位置の誤差を減らすための処理も含まれている。   However, as shown in FIG. 2, it is not possible to display an accurate instruction value only by a bar graph (B1 to B3) displayed by simply arranging a part or all of the element data E1 to EN. For example, when the division interval of the small area corresponding to the N element data E1 to EN is every 10 degrees, if the direction is 40 degrees or 50 degrees from the minimum position, the correct indication value is set to the bar graph tip position. However, it is not possible to correctly indicate an intermediate position such as a direction of 41 to 49 degrees from the minimum value position. For example, if the division interval is reduced as much as every one degree, the error in the designated position is reduced, but the number of element data to be prepared increases and the burden of the drawing process also increases. Therefore, the processing procedure shown in FIG. 1 includes processing for reducing the error in the indicated position of the bar graph.

本実施形態では、丸形バーグラフを表示する制御のために、例えば図5に示すようなテーブルを利用する。このテーブルの内容は、定数データとしてメモリ(ROM)14上に予め用意してある。   In this embodiment, for example, a table as shown in FIG. 5 is used for the control of displaying a round bar graph. The contents of this table are prepared in advance on the memory (ROM) 14 as constant data.

図5に示す例では、前述の要素データE1〜ENに対応するバー要素の番号(1〜N)と、バー要素の画像(ビットマップデータ)の所在を表す情報(AP1〜APN)と、バー要素の矩形パターンの各頂点を特定可能な情報(DP1〜DPN)と、貼り付け位置の座標((x1,y1)〜(xN,yN))とがテーブルの内容に含まれている。   In the example shown in FIG. 5, the bar element numbers (1 to N) corresponding to the element data E1 to EN described above, information (AP1 to APN) indicating the location of the bar element image (bitmap data), the bar The contents of the table include information (DP1 to DPN) that can specify each vertex of the rectangular pattern of the element and coordinates ((x1, y1) to (xN, yN)) of the pasting position.

図5に示す情報AP1、AP2、AP3、・・・のそれぞれは、該当する要素データ(E1〜ENのいずれか)が存在するアドレスや、それを表すファイル名などに相当する。また、情報DP1、DP2、DP3、・・・のそれぞれは、該当する矩形パターンの大きさなどを表す情報である。貼り付け位置の座標(x1,y1)は、矩形パターンの基準点に対応する貼り付け先の座標を表す。   Each of the information AP1, AP2, AP3,... Shown in FIG. 5 corresponds to an address where the corresponding element data (any one of E1 to EN) exists, a file name representing the address, and the like. Further, each of the information DP1, DP2, DP3,... Is information representing the size of the corresponding rectangular pattern. The coordinates (x1, y1) of the pasting position represent the coordinates of the pasting destination corresponding to the reference point of the rectangular pattern.

例えば、図4に示す要素データE1の表示内容は、4つの頂点P11、P12、P13、P14を有する矩形パターンの輪郭に内接する扇形状のパターンなので、4つの頂点P11、P12、P13、P14を特定できればその中の扇形状のパターンも特定できる。従って、具体例としては、矩形パターンの基準点が特定の頂点P11であることを表す情報や、頂点P11−P14間の距離を表す情報や、頂点P11−P12間の距離を表す情報を情報DP1に含めることが想定される。   For example, since the display content of the element data E1 shown in FIG. 4 is a fan-shaped pattern inscribed in the outline of a rectangular pattern having four vertices P11, P12, P13, and P14, the four vertexes P11, P12, P13, and P14 are displayed. If it can be specified, the fan-shaped pattern can be specified. Therefore, as specific examples, information DP1 includes information indicating that the reference point of the rectangular pattern is a specific vertex P11, information indicating the distance between the vertices P11 and P14, and information indicating the distance between the vertices P11 and P12. It is assumed to be included in

次に、図1に示す処理手順について説明する。
ステップS11では、マイクロコンピュータ12が表示対象の最新の指示値を入力し、この指示値をバーグラフで指示するために必要な画像(要素データE1〜EN)の枚数Zを算出する。
Next, the processing procedure shown in FIG. 1 will be described.
In step S11, the microcomputer 12 inputs the latest instruction value to be displayed, and calculates the number Z of images (element data E1 to EN) necessary to instruct the instruction value with a bar graph.

例えば、要素データE1〜ENが10度毎に分割されたN個の小領域に対応する場合に、表示最小値に対する指示値の方向の角度θ1が35度の場合であれば、35度方向又はそれを超える方向を指示するために、枚数Zを4に決定する。つまり(10×Z≧ θ1)の関係を満たすようにZを決定する。   For example, when the element data E1 to EN correspond to N small areas divided every 10 degrees, if the angle θ1 in the direction of the instruction value with respect to the display minimum value is 35 degrees, In order to indicate a direction beyond that, the number of sheets Z is determined to be 4. That is, Z is determined so as to satisfy the relationship of (10 × Z ≧ θ1).

ステップS12、13では、マイクロコンピュータ12がステップS11で決定した枚数Zに対応する全ての画像を、グラフィックディスプレイ10の表示画面に対応する2次元表示座標が割り当てられたRAM(13)上の領域に書き込み、基本的な丸形バーグラフを描画する。   In steps S12 and S13, all images corresponding to the number Z determined by the microcomputer 12 in step S11 are placed in an area on the RAM (13) to which the two-dimensional display coordinates corresponding to the display screen of the graphic display 10 are assigned. Write and draw a basic round bar graph.

例えば、枚数Zが4の場合には、図2に示すように4枚分の要素データE1、E2、E3、E4の内容を順番にコピー元のメモリ(ROM)14から取り出して、貼り付け先であるビデオRAM上の指定された位置にそれぞれ貼り付ける。これにより、図2に示す丸形のバーグラフB1が表示される。   For example, when the number of sheets Z is 4, as shown in FIG. 2, the contents of the element data E1, E2, E3, and E4 for four sheets are sequentially taken out from the copy source memory (ROM) 14 and pasted. Are pasted at designated positions on the video RAM. Thereby, the round bar graph B1 shown in FIG. 2 is displayed.

図4に示す具体例について、図5に示したテーブルの内容を使用する場合を想定して説明する。図4の例では、各要素データE1、E2、E3の矩形パターンの基準点がそれぞれ頂点P12、P22、P32になっている。   The specific example shown in FIG. 4 will be described assuming that the contents of the table shown in FIG. 5 are used. In the example of FIG. 4, the reference points of the rectangular patterns of the element data E1, E2, and E3 are the vertices P12, P22, and P32, respectively.

最初の要素データE1を貼り付ける時には、1番目のバー要素の貼り付け先の位置として座標(x1,y1)がテーブルで指定されているので、この要素データE1の矩形パターンの基準点(P12)が貼り付け先の座標(x1,y1)と一致するように、P11、P12、P13、P14の4頂点で表される矩形パターン全体のビットマップデータを貼り付ける。   When the first element data E1 is pasted, since the coordinates (x1, y1) are specified in the table as the paste destination position of the first bar element, the reference point (P12) of the rectangular pattern of this element data E1 The bitmap data of the entire rectangular pattern represented by the four vertices of P11, P12, P13, and P14 is pasted so that is coincident with the coordinates (x1, y1) of the pasting destination.

同様に、2番目の要素データE2を貼り付ける時には、このバー要素の貼り付け先の位置として座標(x2,y2)が指定されているので、この要素データE2の矩形パターンの基準点(P22)が貼り付け先の座標(x2,y2)と一致するように、P21、P22、P23、P24の4頂点で表される矩形パターン全体のビットマップデータを貼り付ける。   Similarly, when the second element data E2 is pasted, the coordinates (x2, y2) are designated as the paste destination position of this bar element, so the reference point (P22) of the rectangular pattern of this element data E2 The bitmap data of the entire rectangular pattern represented by the four vertices of P21, P22, P23, and P24 is pasted so that is coincident with the coordinates (x2, y2) of the pasting destination.

同様に、3番目の要素データE3を貼り付ける時には、このバー要素の貼り付け先の位置として座標(x3,y3)が指定されているので、この要素データE3の矩形パターンの基準点(P32)が貼り付け先の座標(x3,y3)と一致するように、P31、P32、P33、P34の4頂点で表される矩形パターン全体のビットマップデータを貼り付ける。   Similarly, when the third element data E3 is pasted, since the coordinates (x3, y3) are designated as the paste destination position of this bar element, the reference point (P32) of the rectangular pattern of this element data E3 The bitmap data of the entire rectangular pattern represented by the four vertices of P31, P32, P33, and P34 is pasted so that is coincident with the paste destination coordinates (x3, y3).

なお、連続的な形状のバーグラフを表示するためには、図4に示す例のように互いに隣接する矩形形状の要素データE1と要素データE2とを一部分が重なり合うように配置する必要がある。この場合、要素データE1の画像を書き込んだ後で、次の要素データE2の画像を書き込むことになるので、重なり合う領域については要素データE1の画像を要素データE2の画像によって上書きすることになる。   In order to display a bar graph having a continuous shape, it is necessary to arrange the rectangular element data E1 and element data E2 adjacent to each other so as to partially overlap each other as in the example shown in FIG. In this case, since the image of the next element data E2 is written after the image of the element data E1 is written, the image of the element data E1 is overwritten with the image of the element data E2 in the overlapping region.

しかし、各要素データの背景領域52は、表示に影響を及ぼさない透明色の属性データを有しているので、データを上書きすることはない。つまり、1番目の要素データE1の表示パターン51の画像の上に2番目の要素データE2の背景領域52を書き込んでも、要素データE1の表示パターン51が上書きされて消えることはない。   However, since the background area 52 of each element data has transparent color attribute data that does not affect the display, the data is not overwritten. That is, even if the background area 52 of the second element data E2 is written on the image of the display pattern 51 of the first element data E1, the display pattern 51 of the element data E1 is not overwritten and disappears.

従って、図4に示す例では、要素データE1の扇形状の表示パターン51と、要素データE2の扇形状の表示パターン51と、要素データE3の扇形状の表示パターン51とが組み合わされた結果として、所定の表示属性の色で描画された丸形バーグラフB10が現れている。   Therefore, in the example shown in FIG. 4, as a result of the combination of the fan-shaped display pattern 51 of the element data E1, the fan-shaped display pattern 51 of the element data E2, and the fan-shaped display pattern 51 of the element data E3. A round bar graph B10 drawn in the color of a predetermined display attribute appears.

一方、図1のステップS14以降では、表示されるバーグラフの指示値と、表示対象指示値との指示誤差を減らすための補正描画処理をマイクロコンピュータ12が行う。すなわち、ステップS13までの処理によって表示される図4の丸形バーグラフB10のような表示によって正しく指示可能な指示値の方向は、予め定めた分割単位(例えば10度)毎に限定され、指示誤差が発生することになる。   On the other hand, in step S14 and subsequent steps in FIG. 1, the microcomputer 12 performs a correction drawing process for reducing an instruction error between the indicated value of the bar graph to be displayed and the display target instruction value. That is, the direction of the instruction value that can be correctly instructed by the display such as the round bar graph B10 of FIG. 4 displayed by the processing up to step S13 is limited for each predetermined division unit (for example, 10 degrees). An error will occur.

ステップS14では、補正描画処理を行う必要があるか否かをマイクロコンピュータ12が識別する。例えば、バーグラフの領域分割単位の角度がθo(例えば10度)である場合に、表示最小値に対するバーグラフB10先端方向の角度(θo×Z)と、本来の指示値の方向の角度θ1とを比較する。そして、これらが一致する場合は補正描画処理を行う必要はないので処理を終了し、一致しない場合は補正描画処理を行う必要があるとみなしてステップS15に進む。   In step S <b> 14, the microcomputer 12 identifies whether it is necessary to perform correction drawing processing. For example, when the angle of the area division unit of the bar graph is θo (for example, 10 degrees), the angle (θo × Z) of the bar graph B10 tip direction with respect to the display minimum value, and the angle θ1 of the original indicated value direction Compare If they match, the correction drawing process does not need to be performed, so the process ends. If they do not match, the correction drawing process needs to be performed, and the process proceeds to step S15.

図4に示したバーグラフB10の一部分の詳細が図6に示されている。図6においては、表示最小値(一般的には0)の方向をA1で表し、バーグラフB10の先端である要素データE3の表示パターン51の辺51aの方向をA3で表し、本来の指示値の方向をA2で表してある。また、表示の中心座標をOで表してある。つまり、表示最小値の方向A1と指示値の方向A2との角度θ1は、(θo×Z)よりも小さいので、バーグラフB10の先端の領域が指示値の方向A2よりも上側にはみ出して描画されている。従って、正しい指示値の方向A2と一致する線分51bの位置からはみ出している表示パターン51の領域を消去すれば、先端(51aに相当)が正しい指示値を指示するバーグラフを表示できる。   Details of a part of the bar graph B10 shown in FIG. 4 are shown in FIG. In FIG. 6, the direction of the display minimum value (generally 0) is represented by A1, the direction of the side 51a of the display pattern 51 of the element data E3 that is the tip of the bar graph B10 is represented by A3, and the original instruction value Is indicated by A2. The center coordinates of the display are represented by O. That is, the angle θ1 between the direction A1 of the minimum display value and the direction A2 of the instruction value is smaller than (θo × Z), so that the area at the tip of the bar graph B10 protrudes above the direction A2 of the instruction value. Has been. Accordingly, if the region of the display pattern 51 that protrudes from the position of the line segment 51b that coincides with the direction A2 of the correct instruction value is deleted, a bar graph in which the tip (corresponding to 51a) indicates the correct instruction value can be displayed.

図1のステップS15では、表示対象の指示値と予め割り当てられた目盛り上の各数値の位置関係とに基づき、この指示値の方向A2を表す回転角度θ1をマイクロコンピュータ12が算出する。更に、図6に示す2つの点P7、P8の座標を算出する。   In step S15 in FIG. 1, the microcomputer 12 calculates a rotation angle θ1 representing the direction A2 of the instruction value based on the instruction value to be displayed and the positional relationship between the numerical values on the scale assigned in advance. Further, the coordinates of the two points P7 and P8 shown in FIG. 6 are calculated.

点P7は、例えば要素データE3の表示パターン51の頂点P35におけるバーグラフ外周の円弧との接線と指示値の方向A2との交点の座標として決定される。なお、頂点P35の座標は頂点P31−P34を結ぶ辺と辺51aとの交点として求めることができる。点P8は、例えば要素データE3の頂点P33−P34を結ぶ辺と、指示値の方向A2との交点の座標として決定される。   The point P7 is determined, for example, as the coordinate of the intersection of the tangent to the arc on the outer periphery of the bar graph at the vertex P35 of the display pattern 51 of the element data E3 and the direction A2 of the indicated value. The coordinates of the vertex P35 can be obtained as the intersection of the side connecting the vertices P31 to P34 and the side 51a. The point P8 is determined as, for example, the coordinates of the intersection of the side connecting the vertices P33 to P34 of the element data E3 and the direction A2 of the instruction value.

図1のステップS16では、3つの頂点P7、P8、Pn6(n=Z)で表される三角形パターンの領域の内側の表示を消去する。なお、頂点Pn6は、図6における頂点P36に相当する。この頂点P36の座標は、頂点P33−P34を結ぶ辺と辺51aとの交点として求めることができる。実際には、表示が消去された状態の背景色と同じ色のデータでP7、P8、Pn6の三角形パターンの領域全体を上書きすることで、この領域の表示パターン51の表示を部分的に消去することができる。   In step S16 in FIG. 1, the display inside the triangular pattern area represented by the three vertices P7, P8, and Pn6 (n = Z) is erased. The vertex Pn6 corresponds to the vertex P36 in FIG. The coordinates of the vertex P36 can be obtained as the intersection of the side connecting the vertices P33 to P34 and the side 51a. Actually, the display pattern 51 in this area is partially erased by overwriting the entire triangular pattern area of P7, P8, and Pn6 with the data of the same color as the background color in the erased state. be able to.

図1のステップS17では、3つの頂点P7、Pn5、Pn6(n=Z)で表される三角形パターンの領域の内側の表示を消去する。なお、頂点Pn5及びPn6は、それぞれ図6における頂点P35及びP36に相当する。この頂点P35の座標は、頂点P31−P34を結ぶ辺と辺51aとの交点として求めることができる。実際には、表示が消去された状態の背景色と同じ色のデータでP7、Pn5、Pn6の三角形パターンの領域全体を上書きすることで、この領域の表示パターン51の表示を部分的に消去することができる。   In step S17 of FIG. 1, the display inside the triangular pattern area represented by the three vertices P7, Pn5, and Pn6 (n = Z) is erased. The vertices Pn5 and Pn6 correspond to the vertices P35 and P36 in FIG. 6, respectively. The coordinates of the vertex P35 can be obtained as the intersection of the side connecting the vertices P31 to P34 and the side 51a. Actually, the display pattern 51 in this area is partially erased by overwriting the entire triangular pattern area of P7, Pn5, and Pn6 with the data of the same color as the background color in the erased state. be able to.

つまり、図1に示す処理を実行することにより、予め用意された要素データE1〜ENの中からZ枚の画像を選択し、これらをビデオRAM上の指定された位置にそれぞれ貼り付けて図4に示すような丸形バーグラフB10を表示した後、正しい指示値の位置(51b)から余分にはみ出している領域を、2つの三角形パターンの描画により消去することができる。   That is, by executing the processing shown in FIG. 1, Z images are selected from the element data E1 to EN prepared in advance, and these images are pasted at specified positions on the video RAM, respectively. After displaying the round bar graph B10 as shown in FIG. 5, the region that extends excessively from the position (51b) of the correct indication value can be erased by drawing two triangular patterns.

従って、パターンを回転させるような高度な処理を行う必要はなく、膨大な数の画素を組み合わせて高品質なバーグラフを表示する場合であっても、単純なビットマップデータの貼り付けだけで正確な指示値を指示する丸形バーグラフを描画できる。また、バーグラフのはみ出した領域を消去する処理についても、最も単純な形状である三角形パターンの描画なので、この処理にかかる負担は極めて小さい。   Therefore, it is not necessary to perform advanced processing such as rotating the pattern, and even when displaying a high-quality bar graph by combining a large number of pixels, it is accurate only by pasting simple bitmap data. It is possible to draw a round bar graph that indicates various indication values. Also, the processing for deleting the protruding area of the bar graph is drawn with a triangular pattern which is the simplest shape, and therefore the burden on this processing is very small.

表示される丸形バーグラフの指示誤差を低減するための処理の変形例が図7に示されている。前述の処理においては、正しい指示値の位置(51b)から余分にはみ出しているバーグラフの領域を2つの三角形パターンの描画により消去しているが、図7に示す処理においては単一の三角形パターンTR1だけで消去するように変更してある。   FIG. 7 shows a modification of the process for reducing the indication error of the displayed round bar graph. In the above-described processing, the bar graph region that protrudes excessively from the position (51b) of the correct instruction value is erased by drawing two triangular patterns. In the processing shown in FIG. It has been changed so that it is erased only by TR1.

すなわち、正しい指示値の方向A2やその角度θ1、バーグラフの中心座標O、はみ出している領域の先端の方向A3やその角度(θo×Z)、丸形バーグラフの外周の半径(r)等が既知であるので、これらに基づいて消去に必要な三角形パターンTR1の3つの頂点を特定できる。例えば、1番目の頂点をバーグラフの中心座標Oに定め、1番目の頂点から2番目の頂点までの距離および1番目の頂点から3番目の頂点までの距離を(Rp>r)の条件を満たす定数Rpで定めれば、指示値の方向A2と一致する2番目の頂点の座標およびはみ出している領域の先端の方向A3と一致する3番目の頂点の座標も特定できる。   That is, the direction A2 of the correct instruction value and its angle θ1, the central coordinate O of the bar graph, the direction A3 of the tip of the protruding area and its angle (θo × Z), the radius (r) of the outer periphery of the round bar graph, etc. Is known, and based on these, the three vertices of the triangular pattern TR1 necessary for erasure can be specified. For example, the first vertex is set as the center coordinate O of the bar graph, and the distance from the first vertex to the second vertex and the distance from the first vertex to the third vertex are set as the condition (Rp> r). If the constant Rp is satisfied, the coordinates of the second vertex that matches the direction A2 of the instruction value and the coordinates of the third vertex that matches the direction A3 of the tip of the protruding area can also be specified.

なお、図7に示した三角形パターンTR1の各頂点の座標や、図6に示した2つの三角形パターンの各頂点の座標を得るための処理については、予め定めた定数を用いることにより計算を省略することもできる。その場合は、様々な指示値のそれぞれについて、消去すべき三角形パターンの各頂点の座標を表す定数を保持するテーブルを予め用意しておけばよい。   The processing for obtaining the coordinates of each vertex of the triangular pattern TR1 shown in FIG. 7 and the coordinates of each vertex of the two triangular patterns shown in FIG. 6 is omitted by using a predetermined constant. You can also In that case, a table holding constants representing the coordinates of the respective vertices of the triangular pattern to be deleted may be prepared in advance for each of various indication values.

なお、丸形バーグラフを描画するための図1に示した処理については、基本的にはマイクロコンピュータ12が実行するプログラムによって実現することが想定されるが、一部分の処理についてはGDC11側で処理することも考えられる。例えば、はみ出している領域を消去するための三角形パターンを描画する際には、三角形パターンの各頂点の座標と描画色を表す命令コードをマイクロコンピュータ12側で生成し、この命令コードをGDC11側が読み取り、その結果に基づいてGDC11側で描画処理を実行することが想定される。   The processing shown in FIG. 1 for drawing the round bar graph is basically realized by a program executed by the microcomputer 12, but a part of the processing is processed on the GDC 11 side. It is also possible to do. For example, when drawing a triangle pattern for erasing the protruding area, a command code representing the coordinates and drawing color of each vertex of the triangle pattern is generated on the microcomputer 12 side, and this command code is read by the GDC 11 side. Based on the result, it is assumed that the drawing process is executed on the GDC 11 side.

いずれにしても、本発明においては矩形や三角形のように非常に単純な形状パターンのビットマップデータを貼り付けるだけで丸形バーグラフを描画することができる。しかも、指示値の最小値から最大値までの表示範囲の分割数(N)が少ない場合であっても、正しい指示値の位置を指示する丸形バーグラフを描画できる。従って、膨大な数の画素を制御して高品質の丸形バーグラフを表示する場合であっても、高性能のグラフィックコントローラ等を用いることなしに短時間で描画処理を実行でき、表示の更新周期を短くすることができる。   In any case, in the present invention, a round bar graph can be drawn only by pasting bitmap data of a very simple shape pattern such as a rectangle or a triangle. In addition, even when the number of divisions (N) of the display range from the minimum value to the maximum value of the instruction value is small, it is possible to draw a round bar graph indicating the position of the correct instruction value. Therefore, even when a large number of pixels are controlled to display a high-quality round bar graph, drawing processing can be executed in a short time without using a high-performance graphic controller, etc. The period can be shortened.

なお、図1に示した処理においては、Z枚の画像の合成によって、指示値と同じかそれを超える範囲を指示するバーグラフを表示するように、ステップS11で(θo×Z≧ θ1)の関係を満たすようにZを決定し、はみ出したバーグラフの領域を消去するように処理している。一方、例えば(θo×Z≦ θ1)の関係を満たすようにZを決定し、本来の指示値に対して不足するバーグラフの領域を追加的に描画するように処理することも考えられる。しかし、その場合には綺麗な曲線状のパターンを描画するために複雑な計算等の処理が必要になるので、前述の処理の方が優れている。   In the process shown in FIG. 1, in step S11, (θo × Z ≧ θ1) is displayed so that a bar graph indicating the range equal to or exceeding the specified value is displayed by combining the Z images. Z is determined so as to satisfy the relationship, and processing is performed so as to erase the protruding bar graph region. On the other hand, for example, it may be considered that Z is determined so as to satisfy the relationship of (θo × Z ≦ θ1), and processing is performed so as to additionally draw a bar graph region that is insufficient with respect to the original instruction value. However, in such a case, complicated processing or the like is required to draw a beautiful curved pattern, and thus the above-described processing is superior.

以上のように、本発明の丸形バーグラフ表示器およびその描画方法は、例えば車両の計器板等に搭載されるスピードメータ、タコメータなどの各種計器を丸形バーグラフで表示する場合に適用することが想定できる。表示するバーグラフの形状については、円弧状等の丸形に限らず、楕円形やこれに類似した形状にすることも可能である。   As described above, the round bar graph display device and the drawing method thereof according to the present invention are applied when, for example, various instruments such as a speedometer and a tachometer mounted on a vehicle instrument panel are displayed as a round bar graph. Can be assumed. The shape of the bar graph to be displayed is not limited to a circular shape such as an arc shape, but may be an elliptical shape or a similar shape.

10 グラフィックディスプレイ
11 GDC
12 マイクロコンピュータ
13 メモリ(RAM)
14 メモリ(ROM)
15 外部信号入出力回路
21,22 アナログ表示部
23,24 モータドライバ
25,26 インジケータランプ
10 Graphic display 11 GDC
12 Microcomputer 13 Memory (RAM)
14 Memory (ROM)
15 External signal input / output circuit 21, 22 Analog display 23, 24 Motor driver 25, 26 Indicator lamp

Claims (5)

表示画素の集合によりグラフィック表示が可能な丸形、または楕円形のグラフィック表示領域の少なくとも一部分を利用して、表示対象の指示値に対応したバーグラフを表示する丸形バーグラフ表示器の描画方法であって、
表示するバーグラフの最大指示値に対応する最大表示領域の全体を予め定めた複数のN個の小領域に区分して、前記N個の小領域のそれぞれに対応した二次元ビットマップのN個の表示パターンデータを予め用意し、
前記N個の表示パターンデータの中から表示対象の指示値に対応して(Z≦N)であるZ個の表示パターンデータを選択し、
選択された前記Z個の表示パターンデータを、それぞれに予め割り当てられた表示座標の領域に貼り付け、
前記Z個の表示パターンデータの合成によって表示されるバーグラフの指示値と、表示対象指示値との指示誤差に相当する誤差領域を検出し、前記誤差領域に対して補正描画処理を施す
ことを特徴とする丸形バーグラフ表示器の描画方法。
A drawing method for a round bar graph display that displays a bar graph corresponding to an indicated value to be displayed using at least a part of a round or oval graphic display area capable of graphic display by a set of display pixels Because
The entire maximum display area corresponding to the maximum indication value of the bar graph to be displayed is divided into a plurality of predetermined N small areas, and N two-dimensional bitmaps corresponding to each of the N small areas Display pattern data is prepared in advance,
Selecting Z display pattern data (Z ≦ N) corresponding to the instruction value to be displayed from the N display pattern data;
The selected Z pieces of display pattern data are pasted into display coordinate areas assigned in advance,
Detecting an error area corresponding to an instruction error between an instruction value of a bar graph displayed by combining the Z display pattern data and a display target instruction value, and performing a correction drawing process on the error area; A drawing method of a featured round bar graph display.
前記補正描画処理においては、3つの頂点を有する三角形状パターンの二次元ビットマップデータを、前記誤差領域に対応する1つ又は2つの三角形状領域にそれぞれ書き込む
ことを特徴とする請求項1に記載の丸形バーグラフ表示器の描画方法。
2. The correction drawing process, wherein two-dimensional bitmap data of a triangular pattern having three vertices is respectively written in one or two triangular areas corresponding to the error area. To draw a round bar graph display.
前記N個の表示パターンデータの全てについて、扇形状の表示パターンが内部に含まれる矩形パターンを用いる
ことを特徴とする請求項1に記載の丸形バーグラフ表示器の描画方法。
The drawing method of the round bar graph display device according to claim 1, wherein a rectangular pattern including a fan-shaped display pattern is used for all of the N display pattern data.
前記扇形状の表示パターンは予め定めた表示色の属性データを有し、前記表示パターン以外の前記矩形パターンの領域は透明色の属性データを有する
ことを特徴とする請求項3に記載の丸形バーグラフ表示器の描画方法。
The round shape according to claim 3, wherein the fan-shaped display pattern has attribute data of a predetermined display color, and the region of the rectangular pattern other than the display pattern has attribute data of a transparent color. How to draw a bar graph display.
表示画素の集合によりグラフィック表示が可能な丸形、または楕円形のグラフィック表示領域の少なくとも一部分を利用して、表示対象の指示値に対応したバーグラフを表示する丸形バーグラフ表示器であって、
表示するバーグラフの最大指示値に対応する最大表示領域の全体を予め定めた複数のN個の小領域に区分する場合の、前記N個の小領域のそれぞれに対応した二次元ビットマップのN個の表示パターンデータを予め保持する小領域パターンデータ保持部と、
前記N個の表示パターンデータの中から表示対象の指示値に対応して(Z≦N)であるZ個の表示パターンデータを選択し、選択された前記Z個の表示パターンデータを、それぞれに予め割り当てられた表示座標の領域に貼り付け、前記Z個の表示パターンデータの合成によって表示されるバーグラフの指示値と、表示対象指示値との指示誤差に相当する誤差領域を検出し、前記誤差領域に対して補正描画処理を施す描画処理部と
を備えることを特徴とする丸形バーグラフ表示器。
A round bar graph display that displays a bar graph corresponding to an indicated value to be displayed using at least a part of a round or oval graphic display area capable of graphic display by a set of display pixels. ,
When the entire maximum display area corresponding to the maximum indication value of the bar graph to be displayed is divided into a plurality of predetermined N small areas, N of the two-dimensional bitmap corresponding to each of the N small areas A small area pattern data holding unit for holding pieces of display pattern data in advance,
Z pieces of display pattern data (Z ≦ N) corresponding to the instruction value to be displayed are selected from the N pieces of display pattern data, and the selected Z pieces of display pattern data are respectively set. An error area corresponding to an indication error between the indication value of the bar graph displayed by combining the Z pieces of display pattern data and the indication value of the display object is pasted to a display coordinate area assigned in advance, and A round bar graph display comprising: a drawing processing unit that performs correction drawing processing on an error region.
JP2010257045A 2010-11-17 2010-11-17 Round bar graph display and drawing method thereof Active JP5524811B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010257045A JP5524811B2 (en) 2010-11-17 2010-11-17 Round bar graph display and drawing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010257045A JP5524811B2 (en) 2010-11-17 2010-11-17 Round bar graph display and drawing method thereof

Publications (2)

Publication Number Publication Date
JP2012107988A true JP2012107988A (en) 2012-06-07
JP5524811B2 JP5524811B2 (en) 2014-06-18

Family

ID=46493774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010257045A Active JP5524811B2 (en) 2010-11-17 2010-11-17 Round bar graph display and drawing method thereof

Country Status (1)

Country Link
JP (1) JP5524811B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324404A (en) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 Information acquisition progress display method and device, electronic equipment and readable medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324404A (en) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 Information acquisition progress display method and device, electronic equipment and readable medium
CN111324404B (en) * 2020-01-20 2023-11-24 北京有竹居网络技术有限公司 Information acquisition progress display method and device, electronic equipment and readable medium

Also Published As

Publication number Publication date
JP5524811B2 (en) 2014-06-18

Similar Documents

Publication Publication Date Title
US8384619B2 (en) Graphic meter display
US10810703B2 (en) Display device
JP5467763B2 (en) Moving object image drawing apparatus and vehicle display system
JP5455828B2 (en) Instrument graphic display apparatus and method
US10988024B2 (en) Display device
JP4251141B2 (en) Meters and instrument pointer display methods
JP2011105253A (en) Display device
JP5323251B2 (en) Animation display device
JP2015004583A (en) Display device
JP5524811B2 (en) Round bar graph display and drawing method thereof
JP5020771B2 (en) In-vehicle device and meter display method
JP5515487B2 (en) Image processing device
WO2012107952A1 (en) Meter display device
JP5565754B2 (en) Vehicle display device
JP2009015284A (en) Display device
JP6079155B2 (en) Display control device
JPH08240447A (en) Analog type display measuring meter and its display method
JP6335525B2 (en) How to calculate the indicator value
JP2011113041A (en) Display device, sensor device, display method for display screen, and display program of display screen
JP2016071114A (en) Display device for vehicle
JP2009075024A (en) Vehicular meter unit
JP6425084B2 (en) Vehicle display device
JP6392584B2 (en) Vehicle display device
JP6278655B2 (en) Graphic meter
JP5228836B2 (en) Vehicle display device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120420

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20120420

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131017

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131106

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: 20140311

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140410

R150 Certificate of patent or registration of utility model

Ref document number: 5524811

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250