JPH07168947A - Stereoscopic graph plotting system - Google Patents

Stereoscopic graph plotting system

Info

Publication number
JPH07168947A
JPH07168947A JP23057594A JP23057594A JPH07168947A JP H07168947 A JPH07168947 A JP H07168947A JP 23057594 A JP23057594 A JP 23057594A JP 23057594 A JP23057594 A JP 23057594A JP H07168947 A JPH07168947 A JP H07168947A
Authority
JP
Japan
Prior art keywords
graph
data
rotation angle
reference rotation
dimensional
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
JP23057594A
Other languages
Japanese (ja)
Inventor
Katsunori Kubo
勝則 久保
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Software Chubu 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 NEC Software Chubu Ltd filed Critical NEC Software Chubu Ltd
Priority to JP23057594A priority Critical patent/JPH07168947A/en
Publication of JPH07168947A publication Critical patent/JPH07168947A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a stereoscopic graph plotting system which can execute easily and speedily the plotting and the rotational plotting processing of a stereoscopic graph by two-dimensional processing. CONSTITUTION:In this stereoscopic graph plotting system, one of four kinds of reference rotation angles set for every angle range is selected by a reference rotation angle judging part 20 in accordance with the angle range obtained by quadri-secting 360 deg. to which the rotation angle to designate the viewpoint direction of the stereo-scopic graph belongs, and as procedure to read in the height data of the graph from the two-dimensional array of MXN of a stereoscopic graph image height storage area 60, graph image height data is read in by a data read-in control part 30 in conformity with four kinds of data reading-in sequence set for every reference rotation angle, and simultaneously, the graph image height data read in by a plotting control part 40 is arranged on a plotting pattern constituted of MXN pieces of grids on a plotting memory 80 in conformity with definite plotting sequence, and the plotting data of a stereoscopic graph image is generated, and the stereoscopic graph is outputted.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、立体グラフ描画システ
ムに関し、特に、2次元のデータ処理によって立体的な
グラフを高速に描画出力することが可能な立体グラフ描
画システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a three-dimensional graph drawing system, and more particularly to a three-dimensional graph drawing system capable of drawing and outputting a three-dimensional graph at high speed by two-dimensional data processing.

【0002】[0002]

【従来の技術】従来、この種の立体グラフ描画システム
は、統計用のアプリケーションプログラムとして情報処
理システムに組み込まれ、データを視覚的に表示する手
段の一つとしてしばしば用いられる。このシステムで
は、出力装置に表示されたときに隠れて見えない部分に
ついて、グラフ全体を回転させることによって表示する
機能を備える。
2. Description of the Related Art Conventionally, this type of three-dimensional graph drawing system has been incorporated into an information processing system as a statistical application program and is often used as one of means for visually displaying data. This system has a function of rotating the entire graph to display a hidden portion that cannot be seen when it is displayed on the output device.

【0003】そして、立体グラフを回転させて描画する
機能を実現するためにプログラム内部では、描画用デー
タの極座標変換処理や、陰線制御処理(より後方に見え
る描画線の消去処理)を行うことが一般的に行われてい
る。
In order to realize a function of rotating and drawing a three-dimensional graph, a polar coordinate conversion process of drawing data and a hidden line control process (a process of erasing a drawing line that appears more backward) can be performed in the program. It is commonly done.

【0004】すなわち、描画用データの極座標変換処理
においては、立体グラフを構成する角柱形状や円柱形状
の個々の立体グラフ像の極座標値(四角柱の場合、8点
の極座標値が必要)をワークメモリ上に退避しておき、
回転角度に応じて個々の立体グラフ像の極座標値を再計
算する。また、陰線制御処理においては、立体グラフを
構成する角柱形状や円柱形状の個々の立体グラフ像毎に
他の立体グラフ像との前後関係をチェックして、より後
方に位置する描画線を消去する。
That is, in the polar coordinate conversion processing of the drawing data, the polar coordinate values (in the case of a quadrangular prism, eight polar coordinate values are required) of individual prismatic column-shaped or columnar-shaped stereoscopic graph images forming a stereoscopic graph are used. Save it in memory,
The polar coordinate value of each stereograph image is recalculated according to the rotation angle. Further, in the hidden line control processing, the front-rear relationship with other stereograph images for each of the prismatic column shape and the columnar column-shaped stereograph image forming the stereograph is checked, and the drawing line located in the rear is erased. .

【0005】[0005]

【発明が解決しようとする課題】上述した従来の立体グ
ラフ描画システムは、回転角度に対する3次元の極座標
変換処理や、回転後の陰線制御処理が必要となるため、
他の平面的なグラフに比べて、プログラムが特殊で複雑
となる。この結果、実行プログラムの肥大化、描画処理
の低速化、および保守の非容易化を招く問題があった。
また、3次元の座標変換処理では、描画データが大きく
なるため、描画座標を待避するワークメモリ等、システ
ムが必要とするメモリが大きくなる欠点がある。
The conventional solid graph drawing system described above requires three-dimensional polar coordinate conversion processing for the rotation angle and hidden line control processing after rotation.
The program is special and complicated compared to other planar graphs. As a result, there are problems that the execution program is enlarged, the drawing process is slowed down, and maintenance is not easy.
Further, in the three-dimensional coordinate conversion processing, since the drawing data becomes large, there is a drawback that the memory required by the system, such as a work memory for saving the drawing coordinates, becomes large.

【0006】本発明の目的は、回転角度に対する3次元
の極座標変換処理や、回転後の陰線制御処理を行なうこ
となく、立体的なグラフの描画及び回転描画処理を2次
元上のデータ処理によって簡単かつ高速に実行すること
ができる立体グラフ描画システムを提供することにあ
る。また、処理プログラムが簡単かつ小形となり、容易
に保守を行うことができる立体グラフ描画システムを提
供する。
An object of the present invention is to easily perform three-dimensional graph drawing and rotation drawing processing by two-dimensional data processing without performing three-dimensional polar coordinate conversion processing for rotation angles and hidden line control processing after rotation. Another object of the present invention is to provide a three-dimensional graph drawing system that can be executed at high speed. In addition, the processing program is simple and small, and a stereographic graph drawing system that can be easily maintained is provided.

【0007】本発明の他の目的は、3次元の座標変換処
理をなくして、大きな描画データを退避するためのワー
クメモリ等を不要とし、これによって小さなシステム資
源で実現できる立体グラフ描画システムを提供すること
にある。
Another object of the present invention is to provide a three-dimensional graph drawing system which can be realized with a small system resource by eliminating the three-dimensional coordinate conversion processing and eliminating the need for a work memory for saving large drawing data. To do.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、M×N個(M,Nは、1以上の整数)の
2次元のグラフデータを斜視図の形式で立体的に描画出
力する立体グラフ描画システムにおいて、M×N個のグ
ラフデータに対応して個々のグラフ像の高さデータのみ
をM×Nの2次元の配列に対応して格納したグラフ像高
格納手段と、立体的なグラフの視点方向を指定する回転
角度が、360度を4等分した角度範囲の何れの範囲に
属するかを判定し、前記角度範囲毎に対応して設定され
た4種類の基準回転角度から前記指定回転角度が属する
角度範囲に対応する基準回転角度を選定する基準回転角
度選定手段と、前記グラフ像高格納手段のM×Nの2次
元配列から前記グラフ像の高さデータを読み込む順序と
して、前記基準回転角度毎に設定された4種類のデータ
読み込み順序の1つを選定された前記基準回転角度に応
じて設定するデータ読み込み制御手段と、前記設定され
たデータ読み込み順序に従ってグラフ像高データを読み
込むと共に、読込んだグラフ像高データを描画メモリ上
のM×N個の格子から構成される描画パターンに一定の
描画順序で配置することにより、立体グラフ像の描画デ
ータを生成する描画制御手段と、前記描画メモリから描
画データを読み出して立体的なグラフとして出力する出
力手段とを備える構成としている。
In order to achieve the above object, the present invention stereoscopically creates M × N (M and N are integers of 1 or more) two-dimensional graph data in a perspective view format. In a three-dimensional graph drawing system for drawing and outputting, graph image height storage means for storing only height data of individual graph images corresponding to M × N graph data, corresponding to M × N two-dimensional array. , It is determined which range of the angle range in which the viewpoint direction of the three-dimensional graph is designated is divided into four equal to 360 degrees, and four types of criteria are set corresponding to each of the angle ranges. The height data of the graph image is obtained from the reference rotation angle selection means for selecting the reference rotation angle corresponding to the angle range to which the designated rotation angle belongs from the rotation angle and the M × N two-dimensional array of the graph image height storage means. As the reading order, the reference rotation angle Data reading control means for setting one of four types of data reading order set for each according to the selected reference rotation angle, and reading and reading graph image height data in accordance with the set data reading order. Drawing control means for generating drawing data of a solid graph image by arranging the graph image height data in a drawing pattern composed of M × N grids on the drawing memory in a fixed drawing order; An output unit that reads the drawing data from the memory and outputs the drawing data as a three-dimensional graph is provided.

【0009】また、本発明は、M×N個(M,Nは、1
以上の整数)の2次元のグラフデータを斜視図の形式で
立体的に描画出力する立体グラフ描画システムにおい
て、M×N個のグラフデータに対応して個々のグラフ像
の高さデータのみをM×Nの2次元の配列に対応して格
納したグラフ像高格納手段と、立体的なグラフの視点方
向を指定する基準回転角度として予め設定された複数種
類の基準回転角度のうち、選択された1つの基準回転角
度を判定する基準回転角度選定手段と、前記グラフ像高
格納手段のM×Nの2次元配列から前記グラフ像の高さ
データを読み込む順序として、前記基準回転角度毎に設
定された4種類のデータ読み込み順序の1つを選定され
た前記基準回転角度に応じて設定するデータ読み込み制
御手段と、前記設定されたデータ読み込み順序に従って
グラフ像高データを読み込むと共に、読込んだグラフ像
高データを描画メモリ上のM×N個の格子から構成され
る描画パターンに一定の描画順序で配置することによ
り、立体グラフ像の描画データを生成する描画制御手段
と、前記描画メモリから描画データを読み出して立体的
なグラフとして出力する出力手段とを備える構成として
いる。
Further, according to the present invention, M × N (M and N are 1
In a stereoscopic graph drawing system that stereoscopically draws and outputs two-dimensional graph data of the above integer) in a perspective view format, only height data of individual graph images corresponding to M × N graph data is M A graph image height storage means stored corresponding to a two-dimensional array of × N and a plurality of types of reference rotation angles preset as a reference rotation angle for designating the viewpoint direction of a three-dimensional graph are selected. The reference rotation angle selection means for determining one reference rotation angle and the order of reading the height data of the graph image from the M × N two-dimensional array of the graph image height storage means are set for each reference rotation angle. Data reading control means for setting one of the four types of data reading order according to the selected reference rotation angle, and reading the graph image height data according to the set data reading order. Drawing control means for generating the drawing data of the stereoscopic graph image by arranging the read graph image height data in the drawing pattern composed of M × N grids on the drawing memory in a fixed drawing order. And an output means for reading the drawing data from the drawing memory and outputting it as a three-dimensional graph.

【0010】他の好ましい態様によれば、前記描画制御
手段による前記読込んだグラフ像高データを描画メモリ
上の描画パターンに描画する一定の描画順序として、前
記画像メモリ上に構成される描画パターンの後方から前
方に向かって前記グラフ像を順次重ねて描画される順序
を設定する。また、360度を4等分した角度範囲とし
て、315度から45度の範囲、45度から135度の
範囲、135度から225度の範囲、225度から31
5度の範囲の4つの角度範囲を設定し、それぞれ角度範
囲に対して基準回転角度として0度、90度、180
度、270を設定する。さらに、立体グラフを前記画像
メモリに描画するための初期情報として、立体グラフを
描画する画像メモリの描画パターンの原点座標、描画パ
ターンを形成する格子のX軸及びY軸方向の単位長、前
記描画パターンを構成する格子M×Nの値、前記描画パ
ターン上にグラフ像高データを描画する際の描画順序を
格納する格納手段を備える。
According to another preferred aspect, the drawing pattern formed on the image memory is set as a predetermined drawing order for drawing the read graph image height data by the drawing control means on the drawing pattern on the drawing memory. The order in which the graph images are sequentially overlapped and drawn from the rear side to the front side is set. Further, the angle range obtained by dividing 360 degrees into four equal parts is a range of 315 degrees to 45 degrees, a range of 45 degrees to 135 degrees, a range of 135 degrees to 225 degrees, and a range of 225 degrees to 31 degrees.
Four angle ranges of 5 degrees are set, and 0 degrees, 90 degrees, and 180 degrees are set as reference rotation angles with respect to the respective angle ranges.
The degree is set to 270. Further, as initial information for drawing the solid graph in the image memory, the origin coordinates of the drawing pattern of the image memory for drawing the solid graph, the unit lengths in the X-axis and Y-axis directions of the grid forming the drawing pattern, the drawing A storage unit for storing the value of the grid M × N forming the pattern and the drawing order when drawing the graph image height data on the drawing pattern is provided.

【0011】[0011]

【実施例】以下、本発明の実施例について図面を参照し
て詳細に説明する。本発明の好適な実施例を添付図面を
参照しつつ詳細に説明する。図1は、本発明の立体グラ
フ描画システムの一実施例の構成を示すブロック図であ
る。図1において、本実施例の立体グラフ描画システム
10は、2次元のグラフデータを斜視図の状態で立体的
に描画出力するシステムであり、基準回転角度判定部2
0と、データ読み込み制御部30と、描画制御部40
と、回転角度格納エリア50と、立体グラフ像高格納エ
リア60と、初期情報格納エリア70と、画像メモリ8
0と、出力装置90とから構成される。
Embodiments of the present invention will now be described in detail with reference to the drawings. Preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 is a block diagram showing the configuration of an embodiment of a stereograph drawing system of the present invention. In FIG. 1, a stereoscopic graph drawing system 10 of the present embodiment is a system that stereoscopically draws and outputs two-dimensional graph data in a state of a perspective view.
0, the data reading control unit 30, and the drawing control unit 40
A rotation angle storage area 50, a stereograph image height storage area 60, an initial information storage area 70, and an image memory 8
0 and an output device 90.

【0012】回転角度格納エリア50は、描画対象の立
体グラフをどの方向から見た画像とするかを指定するた
めに操作者より入力された回転角度を格納する領域であ
り、0度から360度までの任意の角度を保持する。
The rotation angle storage area 50 is an area for storing the rotation angle input by the operator in order to specify from which direction the stereoscopic graph to be drawn should be viewed as an image, and it is from 0 to 360 degrees. Hold any angle up to.

【0013】立体グラフ像高格納エリア60は、後述す
るM行×N列の仮想スケール平面に描画される立体グラ
フを構成する角柱(四角柱や三角柱)形状や円柱形状の
立体グラフ像(単位立体グラフ像)の高さデータ(単位
グラフ像高データ)をM行×N列の配列「A」として格
納する領域である。
The solid graph image height storage area 60 is a prismatic (quadrangular prism or triangular prism) shape or a cylindrical solid graph image (a unit solid shape) that constitutes a solid graph drawn on a virtual scale plane of M rows × N columns to be described later. This is an area for storing height data of the graph image (unit graph image height data) as an array “A” of M rows × N columns.

【0014】基準回転角度判定部20は、回転角度格納
エリア50に入力格納された回転角度が予め設定された
角度範囲のどこに含まれるかを判定し、その含まれる角
度範囲に対応する基準回転角度を選択する手段である。
この基準回転角度判定部20は、回転角度格納エリア5
0に入力格納された回転角度が、360度を4等分した
角度範囲の何れに属するかを判定し、属する角度範囲に
対応する基準回転角度を選択する。本実施例では、36
0度を、315度以上45度未満の範囲、45度以上1
35度未満の範囲、135度以上225度未満の範囲、
225度以上315度未満の範囲の4つの角度範囲に等
分し、それぞれの角度範囲に0度,90度,180度,
270度の基準回転角度を割り当てている。
The reference rotation angle determination unit 20 determines where the rotation angle input and stored in the rotation angle storage area 50 is included in a preset angle range, and the reference rotation angle corresponding to the included angle range. Is a means for selecting.
The reference rotation angle determination unit 20 is provided in the rotation angle storage area 5
It is determined which one of the angular ranges obtained by dividing 360 degrees into four equal parts, and the reference rotational angle corresponding to the belonging angular range is selected. In this embodiment, 36
0 degree is a range of 315 degrees or more and less than 45 degrees, 45 degrees or more 1
Less than 35 degrees, more than 135 degrees and less than 225 degrees,
Divide into four angle ranges of 225 degrees or more and less than 315 degrees, 0 degree, 90 degrees, 180 degrees,
A reference rotation angle of 270 degrees is assigned.

【0015】従って、315度以上45度未満の範囲に
含まれる場合(315度≦Φ<45度)は0度を、45
度以上135度未満の範囲に含まれる場合(315度≦
Φ<45度)は90度を、135度以上225度未満の
範囲に含まれる場合(135度≦Φ<225度)は18
0度を、225度以上315度未満の範囲に含まれる場
合(225度≦Φ<315度)は270度をそれぞれ基
準回転角度として選択する構成となっている。
Therefore, when it is included in the range of 315 degrees or more and less than 45 degrees (315 degrees ≦ Φ <45 degrees), 0 degrees is set to 45 degrees.
If the angle is included in the range of not less than 135 degrees and less than 135 degrees (315 degrees ≤
Φ <45 degrees) includes 90 degrees, and 18 is included in the range of 135 degrees or more and less than 225 degrees (135 degrees ≦ Φ <225 degrees).
When 0 degree is included in the range of 225 degrees or more and less than 315 degrees (225 degrees ≦ Φ <315 degrees), 270 degrees is selected as the reference rotation angle.

【0016】基準回転角度に対応する角度範囲は、それ
ぞれの回転角度の範囲で、ある視点からの単位立体グラ
フ像相互の前後関係が変らないことを基準として設定さ
れている。例えば、角度0度の視点で前後に2つの単位
立体グラフ像が位置する場合に、視点が315度以上4
5度未満の範囲であれば、前後関係が変わらないことを
基準としてる。
The angle range corresponding to the reference rotation angle is set based on the fact that the front-rear relationship between unit stereograph images from a certain viewpoint does not change in each rotation angle range. For example, when two unit stereoscopic graph images are located in front of and behind the viewpoint of an angle of 0 degree, the viewpoint is 315 degrees or more.
Within the range of less than 5 degrees, the standard is that the context does not change.

【0017】データ読み込み制御部30は、基準回転角
度判定部20で選択された基準回転角度に基づいて、立
体グラフ像高格納エリア60から単位グラフ像高のデー
タ読込み順序を設定する手段である。データ読み込み制
御部30には、4つの基準回転角度(0度,90度,1
80度,270度)毎に、単位立体グラフ像高のデータ
読み込み順序が予め設定されている。
The data reading control unit 30 is means for setting the data reading order of the unit graph image height from the stereoscopic graph image height storage area 60 based on the reference rotation angle selected by the reference rotation angle determination unit 20. The data read control unit 30 has four reference rotation angles (0 degree, 90 degree, 1 degree).
The data reading order of the unit stereograph image height is preset for each 80 degrees and 270 degrees.

【0018】描画制御部40は、データ読み込み制御部
30で設定された読み込み順序に従って立体グラフ像高
格納エリア60から単位立体グラフ像高データを読込む
と共に、読み込んだ単位立体グラフ像高データと描画情
報格納エリア70に設定されている描画情報に基づいて
グラフの描画データを生成して画像メモリ80に立体グ
ラフを描画する手段である。
The drawing control unit 40 reads the unit stereograph image height data from the stereograph image height storage area 60 in accordance with the reading order set by the data reading control unit 30, and also reads the read unit stereograph image height data and drawing. It is means for generating drawing data of a graph based on the drawing information set in the information storage area 70 and drawing a three-dimensional graph in the image memory 80.

【0019】描画情報格納エリア70は、立体グラフを
画像メモリ80に描画するための初期情報を格納する。
この描画情報格納エリア70には、描画の初期情報とし
て、後述する立体グラフを描画する仮想スケール平面の
原点座標、仮想スケール平面を形成する格子のX軸及び
Y軸方向の単位長(dx、dy)、上記仮想スケール平
面を構成する格子の数(M×Nの値)、仮想スケール平
面上に単位グラフ像を描画する際の描画順序(描画方向
と描画規則)が格納されている。
The drawing information storage area 70 stores initial information for drawing a three-dimensional graph in the image memory 80.
In the drawing information storage area 70, as initial information of drawing, the origin coordinates of a virtual scale plane on which a stereoscopic graph to be described later is drawn, the unit lengths (dx, dy) in the X-axis and Y-axis directions of the lattice forming the virtual scale plane. ), The number of grids forming the virtual scale plane (value of M × N), and the drawing order (drawing direction and drawing rule) when drawing the unit graph image on the virtual scale plane are stored.

【0020】出力装置90は、描画制御部40により画
像メモリに描画された立体画像を可視表示するCRT装
置またはプリンタ装置である。
The output device 90 is a CRT device or a printer device that visually displays the stereoscopic image drawn in the image memory by the drawing control unit 40.

【0021】図2は、画像メモリ80上に立体グラフを
描画するための仮想スケール平面(仮想描画パターン)
のイメージパターンを示している。図示のように、この
仮想のスケール平面は、M×N個(M,Nは共に1以上
の正の整数)の格子から構成されている。
FIG. 2 is a virtual scale plane (virtual drawing pattern) for drawing a solid graph on the image memory 80.
The image pattern of is shown. As shown in the figure, this virtual scale plane is composed of M × N (M and N are both positive integers of 1 or more) lattices.

【0022】ここで、基準回転角度を0度、90度、1
80度、270度の各基準回転角度毎の仮想スケール平
面のイメージパターンを示している。基準回転角度が0
度と180度の場合には、図中実線で表示されたパター
ンなる。このように、基準回転角度が0度と180度で
は、同じ形の描画パターンとなる。また、基準回転角度
が90度と270度の場合には、図中点線で表示された
パターンとなる。基準回転角度が90度と270度で
も、同じ形の描画パターンとなる。従って、基準回転角
度が0度、90度、180度、270度の4種類の立体
グラフが2種類のパターンで描画されることになる。
Here, the reference rotation angle is 0 °, 90 °, 1
The image pattern of the virtual scale plane for each reference rotation angle of 80 degrees and 270 degrees is shown. Reference rotation angle is 0
In the case of degrees and 180 degrees, the pattern is shown by the solid line in the figure. In this way, when the reference rotation angle is 0 ° and 180 °, the drawing patterns have the same shape. Also, when the reference rotation angles are 90 degrees and 270 degrees, the pattern is shown by the dotted line in the figure. Even if the reference rotation angle is 90 degrees and 270 degrees, the drawing pattern has the same shape. Therefore, four types of three-dimensional graphs with reference rotation angles of 0 °, 90 °, 180 °, and 270 ° are drawn with two types of patterns.

【0023】ここで、スケール平面を構成するそれぞれ
の格子の座標は、図2の一点鎖線で囲まれた部分の拡大
図である図3に示すように、格子のX軸及びY軸方向の
単位長dx,dyを用いて算出される。なお、単位長d
×,dyは、描画情報格納エリア70に予め格納されて
いる。
Here, the coordinates of each lattice constituting the scale plane are, as shown in FIG. 3, which is an enlarged view of the portion surrounded by the alternate long and short dash line in FIG. 2, a unit in the X-axis and Y-axis directions of the lattice. It is calculated using the lengths dx and dy. The unit length d
X and dy are stored in advance in the drawing information storage area 70.

【0024】たとえば、図2中のm,nで表示される格
子線の交点で与えられる点Qの座標は、((m−n)d
x,(m+n)dy)で表され、この点を90度回転し
た点Q′の座標は、m,nを使って表すと、((n−
m)dx,(m+n)dy)で表される。
For example, the coordinates of the point Q given at the intersection of the grid lines represented by m and n in FIG. 2 are ((m-n) d
x, (m + n) dy), and the coordinates of a point Q ′ obtained by rotating this point by 90 degrees are expressed by (m, n) ((n−
m) dx, (m + n) dy).

【0025】立体グラフ中のデータ値を表す個々の立体
グラフ像(以下、単位立体グラフ像)は、スケール平面
における格子線の交点の座標からなる描画位置データ
と、単位立体グラフ像の高さを示す単位グラフ像高デー
タを組み合わせて生成された描画データによって描画さ
れる。そして、仮想スケール平面のM×N個の格子分の
単位立体グラフ像の描画データにより立体グラフ全体の
描画が完成する。
The individual stereograph images (hereinafter, unit stereograph images) representing the data values in the stereograph are the drawing position data consisting of the coordinates of the intersections of the grid lines on the scale plane and the height of the unit stereograph image. Drawing is performed by drawing data generated by combining the unit graph image height data shown. Then, the drawing of the entire solid graph is completed by the drawing data of the unit solid graph image of M × N lattices on the virtual scale plane.

【0026】このとき、データ読込制御部30は、仮想
スケール平面上の描画位置に対応して立体グラフ像高格
納エリア60から単位グラフ像高データを読み込む順序
を基準回転角度に基づいて決定する。そして、描画制御
部40では、上記読み込み順序に従って立体グラフ像高
格納エリア60から読込んだ単位グラフ像高データと、
スケール平面上の描画位置とから、基準回転角度から見
た立体グラフの描画データを作成する。
At this time, the data read control unit 30 determines the order of reading the unit graph image height data from the stereograph image height storage area 60 based on the reference rotation angle, corresponding to the drawing position on the virtual scale plane. Then, in the drawing control unit 40, the unit graph image height data read from the stereograph image height storage area 60 in the reading order,
From the drawing position on the scale plane, the drawing data of the stereograph viewed from the reference rotation angle is created.

【0027】図4は、図2に示す仮想スケール平面上に
単位立体グラフ像を描画する描画順序の一例を示す図で
ある。
FIG. 4 is a diagram showing an example of a drawing sequence for drawing the unit stereograph image on the virtual scale plane shown in FIG.

【0028】仮想スケール平面の原点(0,0)からX
軸にそって(M+1)本、Y軸にそって(N+1)本の
格子線が引かれているスケール平面上にグラフを描画す
る場合、常に点P(Mdx、Ndy)側から原点(0,
0)に矢印に示す方向に向かって単位立体グラフ像を重
ねて描画することで、陰線制御処理を必要とせずに立体
投影的なイメージのグラフ像を描画させることが可能と
なる。
X from the origin (0,0) of the virtual scale plane
When a graph is drawn on a scale plane in which (M + 1) grid lines are drawn along the axis and (N + 1) grid lines are drawn along the Y axis, the origin (0, 0) is always applied from the point P (Mdx, Ndy) side.
It is possible to draw a graph image of a stereoscopic projection image without needing the hidden line control processing by drawing the unit stereo graph image in the direction indicated by the arrow in (0).

【0029】ここで、点P(Mdx、Ndy)は、グラ
フの描画開位置の座標であり、描画情報格納エリア70
に格納されているM,Nの値、単位長dx、dy及び描
画順序に基づいて描画制御部40において決定される。
また、描画開始点P(Mdx、Ndy)を描画座標とし
て描画される単位立体グラフ像は、座標(Mdx、Nd
y),((M+1)dx、Ndy),(Mdx、(N+
1)dy),((M+1)dx、(N+1)dy)で囲
まれる範囲(格子)に描画される。このときの単位立体
グラフ像のスケール平面における格子位置を[M]
[N]と表すことにする。
Here, the point P (Mdx, Ndy) is the coordinate of the drawing open position of the graph, and the drawing information storage area 70.
Is determined by the drawing control unit 40 based on the values of M and N, the unit lengths dx and dy, and the drawing order stored in the.
In addition, the unit solid graph image drawn with the drawing start point P (Mdx, Ndy) as the drawing coordinates has coordinates (Mdx, Nd).
y), ((M + 1) dx, Ndy), (Mdx, (N +
1) dy), ((M + 1) dx, (N + 1) dy) are drawn in a range (lattice). The lattice position on the scale plane of the unit solid graph image at this time is [M]
It will be represented as [N].

【0030】従って、原点(0,0)を描画座標として
描画される単位立体グラフ像を格子位置に基づいて表す
と[0][0]となり、スケール平面上のm本目の格子
線とn本目の格子線の交点Q((m−n)dx,(m+
n)dy)を描画座標として描画される単位立体グラフ
像を格子位置に基づいて表すと[m][n]となる。図
4において、基準回転角度0度における個々の単位立体
グラフ像の描画順序を格子位置に基づいて表すと次のよ
うになる。 [M][N] →[M][N−1] →……[M][0] → [M−1][N] →[M−1][N−1]→……[M−1][0]→ …… →[m][n] →…… [0][N] →[0][N−1] →……[0[0] この順序を(描画順序A)とする。
Therefore, the unit solid graph image drawn with the origin (0,0) as the drawing coordinate is expressed as [0] [0] based on the grid position, and the m-th grid line and the n-th grid line on the scale plane. Intersection points Q ((m-n) dx, (m +
A unit stereograph image drawn with n) dy) as drawing coordinates is represented by [m] [n] based on the grid position. In FIG. 4, the drawing order of the individual unit stereograph images at the reference rotation angle of 0 degree is expressed as follows based on the grid position. [M] [N] → [M] [N-1] → …… [M] [0] → [M-1] [N] → [M-1] [N-1] → …… [M- 1] [0] → ... → [m] [n] → …… [0] [N] → [0] [N−1] → …… [0 [0] This order is referred to as (drawing order A). To do.

【0031】単位立体グラフ像の描画順序については、
基準回転角度が180の場合も、上記順序Aと全く同じ
である。
Regarding the drawing order of the unit solid graph image,
Even when the reference rotation angle is 180, it is exactly the same as the above order A.

【0032】また、図5は、スケール平面を図4の状態
から90度回転させた状態を示している。ここでは、回
転角度0度の図4の場合と比べ、X軸方向の格子線がN
+1本、Y軸方向の格子線がM+1本となり、M,Nの
値が図4と逆になっている。ここでは、描画開始点が
P’(Ndx、Mdy)となり、図4と同じ方向に向か
って描画される。
Further, FIG. 5 shows a state in which the scale plane is rotated 90 degrees from the state of FIG. Here, the grid line in the X-axis direction is N compared to the case of FIG. 4 in which the rotation angle is 0 degree.
+1 and the number of grid lines in the Y-axis direction is M + 1, and the values of M and N are opposite to those in FIG. Here, the drawing start point is P '(Ndx, Mdy), and drawing is performed in the same direction as in FIG.

【0033】図4に示す交点Qを90度回転させた点
Q′((n−m)dx,(n+m)dy)を描画座標と
して描画される単位立体グラフ像は[n][m]と表さ
れる。図5において、基準回転角度90度における個々
の単位立体グラフ像の描画順序を格子位置に基づいて表
すと次のようになる。 [N][M] →[N][M−1] →……[N][0] → [N−1][M] →[N−1][M−1]→……[N−1][0]→ …… →[n][m] →…… [0][M] →[0][M−1] →……[0][0] この順序を(描画順序B)とする。
The unit solid graph image drawn with the point Q '((n-m) dx, (n + m) dy) obtained by rotating the intersection Q shown in FIG. 4 by 90 degrees as the drawing coordinates is [n] [m]. expressed. In FIG. 5, the drawing order of the individual unit stereograph images at the reference rotation angle of 90 degrees is represented as follows based on the grid position. [N] [M] → [N] [M-1] → …… [N] [0] → [N-1] [M] → [N-1] [M-1] → …… [N- 1] [0] → …… → [n] [m] → …… [0] [M] → [0] [M−1] → …… [0] [0] This order is (drawing order B) And

【0034】単位立体グラフ像の描画順序については、
基準回転角度が270の場合も、上記順序Bと全く同じ
である。
Regarding the drawing order of the unit solid graph image,
When the reference rotation angle is 270, the order B is exactly the same.

【0035】ここで、描画順序BのNにM’を、Mに
N’を代入すると、 [M’][N’] →[M’][N’−1]→……[M’][0]→ [M’−1][N’]→[M’−1][N’−1]→…[M’−1][0]→ …… →[m’][n’] →…… [0][N’] →[0][N’−1] →……[0][0] となり、順序Aと同じ順序で描画されることが分かる。
従って、基準回転角度90度の場合は、回転角度0度の
場合の描画順序Aに対してMとNの値を相互に入れ換え
れば、上記描画順序Bが得られることになる。
Substituting M'for N and N'for M in the drawing order B, [M '] [N'] → [M '] [N'-1] → ... [M'] [0] → [M′−1] [N ′] → [M′−1] [N′−1] → ... [M′−1] [0] → …… → [m ′] [n ′] → …… [0] [N ′] → [0] [N′−1] → …… [0] [0], and it can be seen that drawing is performed in the same order as the order A.
Therefore, when the reference rotation angle is 90 degrees, the drawing order B can be obtained by mutually exchanging the values of M and N with respect to the drawing order A when the rotation angle is 0 degrees.

【0036】仮想スケール平面上の描画順序について
は、方向だけを決めておけば、仮想スケール平面の原
点、単位長dx、dy及びM,Nの値によって各基準回
転角度毎に描画開始位置と終了位置が計算で簡単に求め
られる。
Regarding the drawing order on the virtual scale plane, if only the direction is determined, the drawing start position and the end position for each reference rotation angle are determined according to the origin of the virtual scale plane, the unit lengths dx, dy, and the values of M and N. The position is easily calculated.

【0037】すなわち、各基準回転角度に対するスケー
ル平面における立体グラフの描画順序は、M、Nの値が
入れ替わることにより、描画開始位置と終了位置が異な
るだけで、方向及び順番は一定である。
That is, the drawing order of the solid graph on the scale plane with respect to each reference rotation angle is the same as the drawing starting position and the ending position, but the direction and order are constant because the values of M and N are interchanged.

【0038】立体グラフ描画システム10の描画部制御
部40は、回転角度によらず、予め定められた上述のよ
うな描画順序でのみ単位立体グラフ像を逐次重ねて描画
するので、どのような角度に対しても陰線制御処理を行
うことなく立体グラフの描画が行える。
The drawing unit control unit 40 of the three-dimensional graph drawing system 10 sequentially draws unit three-dimensional graph images only in the predetermined drawing order as described above, regardless of the rotation angle. Also, it is possible to draw a solid graph without performing hidden line control processing.

【0039】すなわち、上述のように仮想スケール平面
の最後部の描画位置(図4では点P、図5では点P’)
からある一定方向(図4及び図5で右下方向)に向かっ
て順番に単位立体グラフ像を描画する。このように、仮
想スケール平面上において、常に後方から前方に向かっ
て単位立体グラフ像が順次重なるように描画する。
That is, as described above, the drawing position at the end of the virtual scale plane (point P in FIG. 4, point P'in FIG. 5).
The unit stereograph images are sequentially drawn in a certain direction (the lower right direction in FIGS. 4 and 5) from. In this way, the unit stereoscopic graph images are drawn so as to sequentially overlap from the rear to the front on the virtual scale plane.

【0040】なお、図4及び図5では、描画方向を図中
右下方向としたが、後方から前方に向かう方向であれば
よいので、図中左下方向とすることもできる。
In FIG. 4 and FIG. 5, the drawing direction is the lower right direction in the drawings, but it may be the direction from the rear to the front, and therefore the drawing direction may be the lower left direction in the drawings.

【0041】次に、データ読込制御部30によって設定
される単位グラフ像高データの読込み順序について説明
する。図6は、立体グラフ像高格納エリア60に格納さ
れる単位グラフ像高データの配列パターンを示してい
る。単位グラフ像高データは、図示のようにM行×N列
の2次元配列Aに格納され、各単位グラフ像高データは
配列中で0〜M,0〜Nの方向にそってそれぞれ格納さ
れているものとする。ここでは、配列Aにおける単位グ
ラフ像高データの格納位置を、図4及び図5のスケール
平面の格子位置に対応させて表す。すなわち、配列Aの
M行N列位置に格納される単位グラフ像高データをA
[M][N]として表す。
Next, the reading order of the unit graph image height data set by the data reading control unit 30 will be described. FIG. 6 shows an array pattern of unit graph image height data stored in the solid graph image height storage area 60. The unit graph image height data is stored in a two-dimensional array A of M rows × N columns as shown in the drawing, and each unit graph image height data is stored in the array along the directions of 0 to M and 0 to N, respectively. It is assumed that Here, the storage position of the unit graph image height data in the array A is shown in association with the grid position of the scale plane of FIGS. 4 and 5. That is, the unit graph image height data stored at the position of M row and N column of the array A is A
Represented as [M] [N].

【0042】基準回転角度が0度の場合、図4中の交点
Qで示される描画位置[m][n]に単位立体グラフ像
を描画するには、立体グラフ像高格納エリア60の図6
の位置(1)、すなわち配列A[m][n]の位置に格
納されている単位グラフ像高データが読み込まれる。
When the reference rotation angle is 0 °, in order to draw the unit stereograph image at the drawing position [m] [n] indicated by the intersection Q in FIG. 4, the stereograph image height storage area 60 shown in FIG.
(1), that is, the unit graph image height data stored at the position of the array A [m] [n] is read.

【0043】ここで、図4に示すスケール平面に基準回
転角度0度で立体グラフを描画する場合に、立体グラフ
像高格納エリア60の配列Aから単位グラフ像高データ
を読込む順序は以下のように設定されている。 A[M][N] →A[M][N−1] →……A[M][0] → …… →A[m][n] →…… A[0][N] →A[0][N−1] →……A[0][0] これを読み込順序とする。
Here, when a stereograph is drawn on the scale plane shown in FIG. 4 at a reference rotation angle of 0 degree, the unit graph image height data is read from the array A of the stereograph image height storage area 60 in the following order. Is set. A [M] [N] → A [M] [N−1] → …… A [M] [0] → …… → A [m] [n] → …… A [0] [N] → A [0] [N-1] → ... A [0] [0] This is the reading order.

【0044】ここで、上記基準回転角度0度で描画され
る立体グラフを正反対の方向から見た状態として描画す
る場合、いいか言えれば基準回転角度として180度が
選択された場合、図4中の交点Qで示される描画位置
[m][n]に単位立体グラフ像を描画するには、立体
グラフ像高格納エリア60の図6の位置(3)のデー
タ、すなわち配列A[M−m][N−n]に格納されて
いる単位グラフ像高データが読み込まれる。
Here, in the case of drawing a three-dimensional graph drawn at the reference rotation angle of 0 degrees as viewed from the opposite direction, in other words, when 180 degrees is selected as the reference rotation angle, in FIG. In order to draw the unit stereograph image at the drawing position [m] [n] indicated by the intersection point Q, the data of the position (3) in FIG. 6 in the stereograph image height storage area 60, that is, the array A [M-m ] The unit graph image height data stored in [N-n] is read.

【0045】ここで、図4に示すスケール平面に基準回
転角度180度で立体グラフを描画する場合、立体グラ
フ像高格納エリア60の配列Aから単位グラフ像高デー
タを読込む順序は以下のように設定されている。 A[0][0] →A[0][1] →……A[0][N]→ …… →A[M−m][N−n] →…… A[M][0] →A[M][1] →……A[M][N] これを読み込み順序とする。
Here, when a stereograph is drawn on the scale plane shown in FIG. 4 at a reference rotation angle of 180 degrees, the unit graph image height data is read from the array A of the stereograph image height storage area 60 in the following order. Is set to. A [0] [0] → A [0] [1] → …… A [0] [N] → …… → A [Mm] [Nn] → …… A [M] [0] → A [M] [1] → ... A [M] [N] This is the reading order.

【0046】また、基準回転角度として90度が選択さ
れた場合は、図5中の交点Q′で示される描画位置
[n][m]に単位立体グラフ像を描画するには、読込
む単位グラフ像高データは図6の(1)の位置のデー
タ、すなわち配列A[m][n]に格納されている単位
グラフ像高データが読み込まれる。しかし、スケール平
面の描画する格子の配列が変化したので、図5に示すス
ケール平面に基準回転角度90度で立体グラフを描画す
る場合、立体グラフ像高格納エリア60の配列Aから単
位グラフ像高データを読込む順序は、上記読み込み順序
と異なり、以下のように設定されている。 A[M][0]→A[M−1][0] →……A[0][0] → …… →A[m][n] →…… A[M][N]→A[M−1][N] →……A[0][N] これを読み込み順序とする。
Further, when 90 degrees is selected as the reference rotation angle, the unit to be read must be read in order to draw the unit solid graph image at the drawing position [n] [m] indicated by the intersection Q'in FIG. As the graph image height data, the data at the position (1) in FIG. 6, that is, the unit graph image height data stored in the array A [m] [n] is read. However, since the arrangement of the grids drawn on the scale plane has changed, when drawing a stereograph on the scale plane at a reference rotation angle of 90 degrees on the scale plane shown in FIG. The order of reading data is different from the order of reading and is set as follows. A [M] [0] → A [M−1] [0] → …… A [0] [0] → …… → A [m] [n] → …… A [M] [N] → A [M-1] [N] → ... A [0] [N] This is the reading order.

【0047】ここで、上記基準回転角度90度で描画さ
れる立体グラフを正反対の方向から見た状態として描画
する場合、いいか言えれば基準回転角度として270度
が選択された場合、図5中の交点Q’で示される描画位
置[n][m]に単位立体グラフ像を描画するには、立
体グラフ像高格納エリア60の図6の位置(3)のデー
タ、すなわち配列A[M−m][N−n]に格納されて
いる単位グラフ像高データが読み込まれる。
Here, in the case of drawing the three-dimensional graph drawn at the reference rotation angle of 90 degrees as viewed from the opposite direction, in other words, when 270 degrees is selected as the reference rotation angle, in FIG. In order to draw the unit stereoscopic graph image at the drawing position [n] [m] indicated by the intersection Q ′ of, the data at the position (3) in FIG. 6 in the stereographic image height storage area 60, that is, the array A [M− The unit graph image height data stored in m] [N-n] is read.

【0048】ここで、図5に示すスケール平面に基準回
転角度180度で立体グラフを描画する場合、立体グラ
フ像高格納エリア60の配列Aから単位グラフ像高デー
タを読込む順序は以下のように設定されている。 A[0][N]→A[1][N] →……A[M][N] → …… →A[M−m][N−n]→…… A[0][0]→A[1][0] →……A[M][0] これを読み込み順序とする。
Here, when a solid graph is drawn on the scale plane shown in FIG. 5 at a reference rotation angle of 180 degrees, the unit graph image height data is read from the array A of the solid graph image height storage area 60 in the following order. Is set to. A [0] [N] → A [1] [N] → …… A [M] [N] → …… → A [Mm] [Nn] → …… A [0] [0] → A [1] [0] → ... A [M] [0] This is the reading order.

【0049】このようにして、スケール平面上のグラフ
描画位置に対し、基準回転角度に応じてデータを読み込
む順序を変化させることにより、擬似的な立体グラフの
回転描画機能を実現する。すなわち、立体的なグラフを
描画するために、従来のような3次元のデータではな
く、2次元のデータ(描画位置と単位グラフ像高デー
タ)のみを用いているので、複雑な極座標変換処理及び
陰線制御処理が不要となるものである。
In this way, the pseudo drawing function of the stereoscopic graph is realized by changing the order of reading data according to the reference rotation angle with respect to the graph drawing position on the scale plane. That is, in order to draw a three-dimensional graph, only two-dimensional data (drawing position and unit graph image height data) is used instead of the conventional three-dimensional data. Therefore, complicated polar coordinate conversion processing and The hidden line control process is unnecessary.

【0050】図1の立体グラフ描画システム10による
処理内容を、図7のフローチャートに従って説明する。
ここで、回転角度格納エリア50には希望する回転角
度”Φ”を入力格納し、立体グラフ像高格納エリア60
には、単位グラフ像高データが図6で示したように、M
行×N列の2次元配列Aとして格納されているものとす
る。
The processing contents of the solid graph drawing system 10 of FIG. 1 will be described with reference to the flowchart of FIG.
Here, the desired rotation angle “Φ” is input and stored in the rotation angle storage area 50, and the stereoscopic image height storage area 60 is stored.
In the unit graph image height data, as shown in FIG.
It is assumed that they are stored as a two-dimensional array A of rows × N columns.

【0051】先ず、基準回転角度判定部20は、回転角
度格納エリア50から入力された回転角度”Φ”を読込
む(ステップ701)。読み込んだ回転角度”Φ”が、
315度≦Φ<45度の場合は0度を、315度≦Φ<
45度の場合は90度を、135度≦Φ<225度の場
合は180度を、225度≦Φ<315度の場合は27
0度をそれぞれ基準回転角度として選定する(ステップ
102)。
First, the reference rotation angle determination unit 20 reads the rotation angle "Φ" input from the rotation angle storage area 50 (step 701). The read rotation angle "Φ" is
If 315 ° ≦ Φ <45 °, 0 ° is set, and 315 ° ≦ Φ <
90 degrees in the case of 45 degrees, 180 degrees in the case of 135 degrees ≦ Φ <225 degrees, and 27 degrees in the case of 225 degrees ≦ Φ <315 degrees
0 degree is selected as the reference rotation angle (step 102).

【0052】次にデータ読み込み制御部30は、基準回
転角度判定部20で選定された基準回転角度の値を調
べ、基準回転角度が「0度」であれば立体グラフ像高格
納エリア60の読込み順序を図5で説明した読み込み順
序を、基準回転角度が「90度」であれば読み込み順
序を、基準回転角度が180度であれば読み込み順序
を、また基準回転度が270度であれば読み込み順序
をそれぞれセットする(ステップ703、ステップ7
04〜707)。
Next, the data read control unit 30 checks the value of the reference rotation angle selected by the reference rotation angle determination unit 20, and if the reference rotation angle is "0 degree", the reading of the stereograph image height storage area 60 is performed. The reading order described in FIG. 5 is read when the reference rotation angle is “90 degrees”, when the reference rotation angle is 180 degrees, and when the reference rotation angle is 270 degrees. Set the order respectively (step 703, step 7)
04-707).

【0053】次に描画制御部40は、ステップ704〜
707でセットされた何れかの読み込み順序に従って、
立体グラフ像高格納エリア60の配列Aに格納された単
位グラフ像高データを1つずつ読出す(ステップ70
8)。ここでは、配列Aから単位グラフ像高データを読
み出す毎に、読み出した単位グラフ像高データの列の値
と行の値をカウントする。
Next, the drawing control unit 40 starts from step 704.
According to any reading order set in 707,
The unit graph image height data stored in the array A of the three-dimensional graph image height storage area 60 is read one by one (step 70).
8). Here, every time the unit graph image height data is read from the array A, the column value and the row value of the read unit graph image height data are counted.

【0054】次いで、読込んだ単位グラフ像高データの
読み込み順番と基準回転角度に応じたスケール平面上の
描画順序(描画順序AまたはB)に基づいて、図3及び
図4に示したスケール平面上における上記読込んだ単位
グラフ像高データの描画位置を決定する(ステップ70
9)。そして、単位グラフ像高データ及び描画位置に基
づいて、単位立体グラフ像の描画データを生成して描画
メモリ80に描画する(ステップ710)。
Next, based on the reading order of the read unit graph image height data and the drawing order (drawing order A or B) on the scale plane according to the reference rotation angle, the scale plane shown in FIGS. The drawing position of the above-mentioned read unit graph image height data is determined (step 70).
9). Then, based on the unit graph image height data and the drawing position, drawing data of the unit stereograph image is generated and drawn in the drawing memory 80 (step 710).

【0055】その際、回転角度格納エリア50の入力回
転角度が、基準回転角度と異なる場合には、ステップ7
10において描画制御部40が、スケール平面の単位長
さdx、dyの値を入力した回転角度に合わせて変化さ
せることにより、スケール平面の格子形状及び単位立体
グラフ像の面の左右の比率を変えた状態の単位立体グラ
フ像の描画データを生成して描画メモリ80に描画す
る。これにより、入力した回転角度に対応した単位立体
グラフ像の描画データが生成される。入力回転角度が、
基準回転角度と同じ場合は、これらの処理は不要とな
る。
At this time, if the input rotation angle of the rotation angle storage area 50 is different from the reference rotation angle, step 7
In 10, the drawing control unit 40 changes the unit lengths dx and dy of the scale plane according to the input rotation angle, thereby changing the lattice shape of the scale plane and the ratio of the left and right sides of the unit stereograph image. The drawing data of the unit stereograph image in this state is generated and drawn in the drawing memory 80. As a result, drawing data of the unit solid graph image corresponding to the input rotation angle is generated. The input rotation angle is
If it is the same as the reference rotation angle, these processes are unnecessary.

【0056】立体グラフ像高格納エリア60の配列Aに
格納される単位グラフ像高データを全て読み込むまで、
すなわち単位グラフ像高データの列のカウント値がN、
行のカウント値がMになるまで、ステップ708からス
テップ710の処理を繰り返す(ステップ711,71
2)。
Until all the unit graph image height data stored in the array A of the solid graph image height storage area 60 is read,
That is, the count value of the column of the unit graph image height data is N,
The processing from step 708 to step 710 is repeated until the count value of the row reaches M (steps 711, 71).
2).

【0057】画像メモリ80にM行×N列の全ての単位
立体グラフ像が描画されると、出力装置90は、この画
像メモリ80の描画データを読み出して立体グラフを出
力する。すなわち、出力装置90が表示装置の場合は、
立体グラフが表示され、出力装置90がプリンタの場合
は、立体グラフがプリントアウトされる。
When all the M-row × N-column unit stereograph images are drawn in the image memory 80, the output device 90 reads the drawing data in the image memory 80 and outputs the stereograph. That is, when the output device 90 is a display device,
A three-dimensional graph is displayed, and when the output device 90 is a printer, the three-dimensional graph is printed out.

【0058】図8に本立体グラフ描画システム10によ
り基準回転角度「0度」で描画した立体的なグラフの例
を示す。また、図9に図8の立体グラフを「90度」回
転させて描画したグラフの例を示す。
FIG. 8 shows an example of a three-dimensional graph drawn by the present three-dimensional graph drawing system 10 at the reference rotation angle "0 degree". Further, FIG. 9 shows an example of a graph drawn by rotating the solid graph of FIG. 8 by “90 degrees”.

【0059】なお、上記実施例においては、操作者から
回転角度格納エリア50に入力された任意の回転角度が
含まれる角度範囲に基づいて基準回転角度判定部20で
基準回転角度を判定したが、操作者から入力される回転
角度を基準回転角度だけに限定すれば、基準回転角度判
定部20は選択された基準回転角度を判定するだけでよ
く、上記した判定処理(ステップ702)は不要とな
る。また、入力できる回転角度を基準回転角度に限定す
れば、ステップ710において描画制御部40が、スケ
ール平面の単位長さdx、dyの値を入力した回転角度
に合わせて変化させ、スケール平面の格子形状及び単位
立体グラフ像の面の左右の比率を変えた状態の単位立体
グラフ像の描画データを生成するといった処理も不要と
なり、より高速な描画処理が実現される。
In the above embodiment, the reference rotation angle determination unit 20 determines the reference rotation angle based on the angle range including the arbitrary rotation angle input to the rotation angle storage area 50 by the operator. If the rotation angle input by the operator is limited to the reference rotation angle, the reference rotation angle determination unit 20 only needs to determine the selected reference rotation angle, and the determination process (step 702) described above is unnecessary. . If the rotation angle that can be input is limited to the reference rotation angle, in step 710, the drawing control unit 40 changes the unit lengths dx and dy of the scale plane according to the input rotation angle, and the scale plane grid is displayed. A process of generating drawing data of a unit stereograph image in a state in which the left and right ratios of the surface of the unit stereograph image are changed is also unnecessary, and a higher speed drawing process is realized.

【0060】以上、好ましい実施例を挙げて本発明を説
明したが、本発明は必ずしも上記実施例に限定されるも
のではなく、本発明の趣旨の範囲内で種々改変すること
ができるものである。
The present invention has been described above with reference to the preferred embodiments, but the present invention is not necessarily limited to the above embodiments, and various modifications can be made within the scope of the gist of the present invention. .

【0061】[0061]

【発明の効果】以上説明したように、本実施例の立体グ
ラフ描画システムでは、描画するグラフの視点方向を決
定した後に、その視点方向(回転角度)に対応して、グ
ラフ高格納エリアに格納された単位グラフ像高データを
読込む順序の一つを決定し、この順序に従って読出した
単位グラフ像高データに基づいて、単位立体グラフ像の
描画データを作成して画像メモリに描画するので、回転
角度に対する3次元の極座標変換処理や、回転後の陰線
制御処理を行なうことなく、立体的なグラフの描画及び
回転描画処理を2次元上のデータ処理によって簡単かつ
高速に実行することができる。また、処理プログラムが
簡単かつ小形となり、容易に保守を行うことができる。
As described above, in the three-dimensional graph drawing system of the present embodiment, after the viewpoint direction of the graph to be drawn is determined, it is stored in the graph height storage area corresponding to the viewpoint direction (rotation angle). One of the order of reading the unit graph image height data is determined, and based on the unit graph image height data read according to this order, the drawing data of the unit stereoscopic graph image is created and drawn in the image memory. It is possible to easily and quickly execute the three-dimensional graph drawing and rotation drawing processing by the two-dimensional data processing without performing the three-dimensional polar coordinate conversion processing for the rotation angle and the hidden line control processing after the rotation. In addition, the processing program is simple and compact, and maintenance can be easily performed.

【0062】また、回転角度に対する3次元の極座標変
換処理を行なわないので、従来のような描画用の座標値
を待避するための大きなワークメモリが不要になり、こ
れによって小さなシステム資源で立体グラフ描画システ
ムを実現できる。
Further, since the three-dimensional polar coordinate conversion processing for the rotation angle is not performed, a large work memory for saving the coordinate values for drawing as in the conventional case is not required, and thus a solid graph is drawn with a small system resource. The system can be realized.

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

【図1】 本発明の実施例による立体グラフ描画システ
ムの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a stereoscopic graph drawing system according to an embodiment of the present invention.

【図2】 実施例による立体グラフ描画に用いられる仮
想スケール平面上のイメージパターンの一例を示す図で
ある。
FIG. 2 is a diagram showing an example of an image pattern on a virtual scale plane used for drawing a three-dimensional graph according to the embodiment.

【図3】 図2に示す仮想スケール平面の一部を拡大し
た図である。
3 is an enlarged view of a part of a virtual scale plane shown in FIG.

【図4】 実施例において回転角度を0度、または18
0度とした時のスケール平面上に単位立体グラフ像を描
画する描画順序を説明する図である。
FIG. 4 shows a rotation angle of 0 ° or 18 in the embodiment.
It is a figure explaining the drawing order which draws a unit solid graph image on a scale plane when it is set to 0 degree.

【図5】 実施例において回転角度を90度、または2
70度とした時のスケール平面上に単位立体グラフ像を
描画する描画順序を説明する図である。
FIG. 5 shows a rotation angle of 90 degrees or 2 in the embodiment.
It is a figure explaining the drawing order which draws a unit solid graph image on a scale plane when it is set to 70 degrees.

【図6】 実施例の立体グラフ像高格納エリアに格納さ
れる立体グラフ像高データの格納配列を示す図である。
FIG. 6 is a diagram showing a storage array of stereograph image height data stored in a stereograph image height storage area according to the embodiment.

【図7】 実施例の立体グラフ描画システムによるグラ
フ描画処理を説明するフローチャートである。
FIG. 7 is a flowchart illustrating a graph drawing process by the three-dimensional graph drawing system according to the embodiment.

【図8】 立体グラフ描画システムにより基準回転角度
「0度」で描画した立体的なグラフの例を示す。
FIG. 8 shows an example of a three-dimensional graph drawn at a reference rotation angle of “0 degrees” by a three-dimensional graph drawing system.

【図9】 図8の立体グラフを「90度」回転させて描
画した立体グラフの例を示す。
FIG. 9 shows an example of a stereograph drawn by rotating the stereograph of FIG. 8 by “90 degrees”.

【符号の説明】[Explanation of symbols]

10 立体グラフ描画システム 20 基準回転角度判定部 30 データ読み込み制御部 40 描画制御部 50 回転角度格納エリア 60 立体グラフ像高格納エリア 70 描画情報格納エリア 80 画像メモリ 90 出力装置 10 Solid Graph Drawing System 20 Reference Rotation Angle Judgment Unit 30 Data Read Control Unit 40 Drawing Control Unit 50 Rotation Angle Storage Area 60 Stereograph Image Height Storage Area 70 Drawing Information Storage Area 80 Image Memory 90 Output Device

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 M×N個(M,Nは、1以上の整数)の
2次元のグラフデータを斜視図の形式で立体的に描画出
力する立体グラフ描画システムにおいて、 M×N個のグラフデータに対応して個々のグラフ像の高
さデータのみをM×Nの2次元の配列に対応して格納し
たグラフ像高格納手段と、 立体的なグラフの視点方向を指定する回転角度が、36
0度を4等分した角度範囲の何れの範囲に属するかを判
定し、前記角度範囲毎に対応して設定された4種類の基
準回転角度から前記指定回転角度が属する角度範囲に対
応する基準回転角度を選定する基準回転角度選定手段
と、 前記グラフ像高格納手段のM×Nの2次元配列から前記
グラフ像の高さデータを読み込む順序として、前記基準
回転角度毎に設定された4種類のデータ読み込み順序の
1つを選定された前記基準回転角度に応じて設定するデ
ータ読み込み制御手段と、 前記設定されたデータ読み込み順序に従ってグラフ像高
データを読み込むと共に、読込んだグラフ像高データを
描画メモリ上のM×N個の格子から構成される描画パタ
ーンに一定の描画順序で配置することにより、立体グラ
フ像の描画データを生成する描画制御手段と、 前記描画メモリから描画データを読み出して立体的なグ
ラフとして出力する出力手段とを備えることを特徴とす
る立体グラフ描画システム。
1. A three-dimensional graph drawing system for three-dimensionally drawing and outputting M × N (M and N are integers of 1 or more) two-dimensional graph data in a perspective view format. Corresponding to the data, the graph image height storage means that stores only the height data of each graph image corresponding to the two-dimensional array of M × N, and the rotation angle that specifies the viewpoint direction of the three-dimensional graph are 36
It is determined which one of the angular ranges obtained by dividing 0 degrees into four equal parts, and a reference corresponding to the angular range to which the designated rotational angle belongs from the four types of reference rotational angles set corresponding to each of the angular ranges. Reference rotation angle selection means for selecting a rotation angle, and four types set for each reference rotation angle as the order of reading the height data of the graph image from the M × N two-dimensional array of the graph image height storage means. Data reading control means for setting one of the data reading orders according to the selected reference rotation angle, and the graph image height data is read in accordance with the set data reading order, and the read graph image height data is read. Drawing control means for generating drawing data of a stereoscopic graph image by arranging the drawing pattern composed of M × N grids on the drawing memory in a fixed drawing order. Stereo graph drawing system and an outputting means for outputting a three-dimensional graph reads drawing data from the drawing memory.
【請求項2】 M×N個(M,Nは、1以上の整数)の
2次元のグラフデータを斜視図の形式で立体的に描画出
力する立体グラフ描画システムにおいて、 M×N個のグラフデータに対応して個々のグラフ像の高
さデータのみをM×Nの2次元の配列に対応して格納し
たグラフ像高格納手段と、 立体的なグラフの視点方向を指定する基準回転角度とし
て予め設定された複数種類の基準回転角度のうち、選択
された1つの基準回転角度を判定する基準回転角度選定
手段と、 前記グラフ像高格納手段のM×Nの2次元配列から前記
グラフ像の高さデータを読み込む順序として、前記基準
回転角度毎に設定された4種類のデータ読み込み順序の
1つを選定された前記基準回転角度に応じて設定するデ
ータ読み込み制御手段と、 前記設定されたデータ読み込み順序に従ってグラフ像高
データを読み込むと共に、読込んだグラフ像高データを
描画メモリ上のM×N個の格子から構成される描画パタ
ーンに一定の描画順序で配置することにより、立体グラ
フ像の描画データを生成する描画制御手段と、 前記描画メモリから描画データを読み出して立体的なグ
ラフとして出力する出力手段とを備えることを特徴とす
る立体グラフ描画システム。
2. A three-dimensional graph drawing system for three-dimensionally drawing and outputting M × N (M and N are integers of 1 or more) two-dimensional graph data in a perspective view format. Corresponding to the data, only the height data of each graph image is stored corresponding to the M × N two-dimensional array, and as a reference rotation angle for designating the viewpoint direction of the three-dimensional graph. A reference rotation angle selection unit that determines one selected reference rotation angle from a plurality of preset reference rotation angles and a M × N two-dimensional array of the graph image height storage unit, Data reading control means for setting one of four types of data reading order set for each of the reference rotation angles according to the selected reference rotation angle, as the order of reading the height data, and the set data. reading The graph image height data is read in accordance with the loading order, and the read graph image height data is arranged in a drawing pattern composed of M × N grids on the drawing memory in a fixed drawing order to obtain a three-dimensional graph image. A three-dimensional graph drawing system comprising: a drawing control unit that generates drawing data; and an output unit that reads the drawing data from the drawing memory and outputs the drawing data as a three-dimensional graph.
【請求項3】 前記描画制御手段による前記読込んだグ
ラフ像高データを描画メモリ上の描画パターンに描画す
る一定の描画順序として、前記画像メモリ上に構成され
る描画パターンの後方から前方に向かって前記グラフ像
を順次重ねて描画される順序を設定することを特徴とす
る請求項1または2に記載の立体グラフ描画システム。
3. The drawing pattern height data read by the drawing control means is drawn in a drawing pattern on a drawing memory as a fixed drawing order from a rear side to a front side of a drawing pattern formed on the image memory. The three-dimensional graph drawing system according to claim 1 or 2, wherein an order in which the graph images are sequentially overlapped and drawn is set.
【請求項4】 360度を4等分した角度範囲として、
315度から45度の範囲、45度から135度の範
囲、135度から225度の範囲、225度から315
度の範囲の4つの角度範囲を設定し、それぞれ角度範囲
に対して基準回転角度として0度、90度、180度、
270を設定することを特徴とする請求項1に記載の立
体グラフ描画システム。
4. An angle range obtained by dividing 360 degrees into four equal parts,
315 to 45 degree range, 45 to 135 degree range, 135 to 225 degree range, 225 to 315 degree range
Four angle ranges of degrees are set, and 0 °, 90 °, 180 °, and reference rotation angles are set for the respective angle ranges.
The stereoscopic graph drawing system according to claim 1, wherein 270 is set.
【請求項5】 立体グラフを前記画像メモリに描画する
ための初期情報として、立体グラフを描画する画像メモ
リの描画パターンの原点座標、描画パターンを形成する
格子のX軸及びY軸方向の単位長、前記描画パターンを
構成する格子M×Nの値、前記描画パターン上にグラフ
像高データを描画する際の描画順序を格納する格納手段
を備えることを特徴とする請求項1または2に記載の立
体グラフ描画システム。
5. As initial information for drawing a three-dimensional graph in the image memory, origin coordinates of a drawing pattern of the image memory for drawing the three-dimensional graph, unit lengths of X-axis and Y-axis directions of a grid forming the drawing pattern. 3. The storage unit according to claim 1, further comprising a storage unit that stores a value of a grid M × N that forms the drawing pattern and a drawing order when drawing the graph image height data on the drawing pattern. 3D graph drawing system.
JP23057594A 1993-09-06 1994-08-31 Stereoscopic graph plotting system Pending JPH07168947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23057594A JPH07168947A (en) 1993-09-06 1994-08-31 Stereoscopic graph plotting system

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP5-220761 1993-09-06
JP22076193 1993-09-06
JP23057594A JPH07168947A (en) 1993-09-06 1994-08-31 Stereoscopic graph plotting system

Publications (1)

Publication Number Publication Date
JPH07168947A true JPH07168947A (en) 1995-07-04

Family

ID=26523907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23057594A Pending JPH07168947A (en) 1993-09-06 1994-08-31 Stereoscopic graph plotting system

Country Status (1)

Country Link
JP (1) JPH07168947A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61249177A (en) * 1985-04-26 1986-11-06 Nec Corp Three-dimensional map displaying method
JPH05181978A (en) * 1991-05-09 1993-07-23 Hitachi Ltd Image display method
JPH05225351A (en) * 1992-02-14 1993-09-03 Kobe Nippon Denki Software Kk Cubic bar graph generating device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61249177A (en) * 1985-04-26 1986-11-06 Nec Corp Three-dimensional map displaying method
JPH05181978A (en) * 1991-05-09 1993-07-23 Hitachi Ltd Image display method
JPH05225351A (en) * 1992-02-14 1993-09-03 Kobe Nippon Denki Software Kk Cubic bar graph generating device

Similar Documents

Publication Publication Date Title
US5946000A (en) Memory construct using a LIFO stack and a FIFO queue
US4967392A (en) Drawing processor for computer graphic system using a plurality of parallel processors which each handle a group of display screen scanlines
EP0311081B1 (en) Displaying method and apparatus for three-dimensional computer graphics
US20020097239A1 (en) Visualization system including data navigator for use with digital computer system
JPH10275460A (en) Memory device and picture processing device using this
JP2762502B2 (en) Stereoscopic display method and apparatus
WO2002007089A2 (en) Apparatus and method for volume rendering
JP2853355B2 (en) 3D graphic data generator
US5664077A (en) Three-dimensional graph displaying system
JPH07104961B2 (en) Three-dimensional figure processing method and apparatus
JP2002163665A (en) Plotting device
JP2659372B2 (en) 3D display method for structures
US5982377A (en) Three-dimensional graphic displaying system and method
JPH07168947A (en) Stereoscopic graph plotting system
Wright et al. ISOSRF—an algorithm for plotting iso-valued surfaces of a function of three variables
US6856325B2 (en) Information processing method and apparatus
EP0231780B1 (en) Vector pattern processing circuit for bit map display system
JPH08147496A (en) Method and device for forming rotating image
EP0961223A2 (en) Image synthesis system
JPH09198499A (en) Method and device for processing picture
JPH05298413A (en) Graphic processor
JPH08110952A (en) Texture mapping device
JP2899838B2 (en) Storage device
JP2000207576A (en) Method and device for processing image and recording medium recording image processing program
JPH07302353A (en) Method for automatically generating three-dimensional graphic