Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2932844B2 - Multi-branch shape figure display method - Google Patents
[go: Go Back, main page]

JP2932844B2 - Multi-branch shape figure display method - Google Patents

Multi-branch shape figure display method

Info

Publication number
JP2932844B2
JP2932844B2 JP4217599A JP21759992A JP2932844B2 JP 2932844 B2 JP2932844 B2 JP 2932844B2 JP 4217599 A JP4217599 A JP 4217599A JP 21759992 A JP21759992 A JP 21759992A JP 2932844 B2 JP2932844 B2 JP 2932844B2
Authority
JP
Japan
Prior art keywords
graphic
coordinate
command
branch
branches
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP4217599A
Other languages
Japanese (ja)
Other versions
JPH0668230A (en
Inventor
裕子 村山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP4217599A priority Critical patent/JP2932844B2/en
Publication of JPH0668230A publication Critical patent/JPH0668230A/en
Application granted granted Critical
Publication of JP2932844B2 publication Critical patent/JP2932844B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、多分岐形状図形表示方
式に関し、特に、図形コマンドを生成して図形を表示す
る情報処理システムの多分岐形状図形表示方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multi-branch graphic display system, and more particularly to a multi-branch graphic display system for an information processing system which generates a graphic command and displays a graphic.

【0002】[0002]

【従来の技術】従来の多分岐形状図形表示方式は、利用
者がツリー構造のような分岐した形状の線の表示を要求
するときには、まず、一連続線として描画できる線を一
つの図形として描画要求を行い、分岐点を始点とする各
線に関しては、複数の別の図形として描画要求を行わな
ければならなかった。
2. Description of the Related Art In a conventional multi-branch shape graphic display system, when a user requests display of a line having a branch shape such as a tree structure, first, a line that can be drawn as a continuous line is drawn as one figure. A request was made, and for each line starting at the branch point, a drawing request had to be made as a plurality of different graphics.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の多分岐
形状図形表示方式は、ツリー構造のように分岐する形状
の線を描画を要求するときに、利用者が複数の線の描画
を要求しなければならなかったので、分岐点の座標値を
利用者が再度指定しなければならず、また、生成される
図形コマンドが複数になるという問題点を有している。
In the conventional multi-branch graphic display method described above, when a user requests drawing of a line having a branching shape such as a tree structure, the user requests drawing of a plurality of lines. However, there is a problem that the coordinate value of the branch point must be specified again by the user, and a plurality of graphic commands are generated.

【0004】[0004]

【課題を解決するための手段】本発明の多分岐形状図形
表示方式は、図形表示装置に図形の表示を行うときに、
アプリケーションプログラムから図形描画要求がある
と、図形コマンドを生成して、図形表示を行う機能を有
する情報処理システムの多分岐形状図形表示方式におい
て、アプリケーションプログラムで利用者が図形表示位
置の座標値を指定するときに、その座標を始点とする線
分の数も指定する分岐数指定手段と、オペレーションコ
ード,座標数,各座標を始点とする線分の数,座標値を
要素として持つ図形コマンドの生成を行う図形コマンド
生成手段と、生成された図形コマンドにより、指定され
た数の線分の描画処理を行う描画手段とを有し、図形の
描画に際して、アプリケーションプログラムで図形表示
位置の座標値の指定を行うときに、分岐数の指定を行え
るようにすることによって、ツリー構造のように分岐点
を持ち、一連続の線としては描画できない線を一回の描
画要求で表示可能にすることにより構成されている。
According to the present invention, there is provided a multi-branch graphic display system for displaying a graphic on a graphic display device.
When a graphic drawing request is received from an application program, a user specifies a coordinate value of a graphic display position in an application program in a multi-branch shape graphic display method of an information processing system having a function of generating a graphic command and displaying a graphic. Means for specifying the number of line segments starting from the coordinates, and generating a figure command having an operation code, the number of coordinates, the number of line segments starting from each coordinate, and a coordinate value as elements. And a drawing means for performing a drawing process of a specified number of lines according to the generated figure command. When drawing a figure, an application program designates a coordinate value of a figure display position. Is performed, the number of branches can be specified, so that the tree has a branch point like a tree structure and a continuous line Is constructed by the in to be visible lines can not be drawn in a single draw call.

【0005】[0005]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。図1は本発明の多分岐形状図形表示方式の
一実施例を表すブロック図である。図1は、利用者によ
る図形描画要求時の各座標の分岐数の指定、図形コマン
ドの生成、及び描画の処理の一例を示している。アプリ
ケーションプログラムで分岐数指定手段10によって、
図形表示位置の座標値及び分岐数が指定されると、図形
処理システム20では、図形コマンド生成手段21が呼
び出される。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a multi-branch graphic display system according to the present invention. FIG. 1 shows an example of a process of designating a branch number of each coordinate, generating a graphic command, and drawing when a user requests a graphic drawing. By the number-of-branches designating means 10 in the application program,
When the coordinate value of the graphic display position and the number of branches are designated, in the graphic processing system 20, the graphic command generating means 21 is called.

【0006】そして、図形コマンド生成手段21では、
オペレーションコードと座標数と各座標の分岐数及び座
標値とを要素として持つ図形コマンドを生成する。ま
た、描画手段22では、図形コマンド生成手段21によ
って生成された図形コマンドの分岐数を参照しながら、
図形表示装置30に図形の表示を行う。
Then, the graphic command generating means 21
A figure command having an operation code, the number of coordinates, the number of branches of each coordinate, and a coordinate value as elements is generated. The drawing means 22 refers to the number of branches of the graphic command generated by the graphic command generating means 21 while referring to the number of branches.
The graphic is displayed on the graphic display device 30.

【0007】図2は、分岐数指定手段10と図形コマン
ド生成手段21と描画手段22との処理の一例を示す流
れ図である。図2に示すように、まず、アプリケーショ
ンプログラムで、利用者は、図形描画の要求時に、各座
標について座標値とともに、各座標を始点とする線分の
数を指定する(処理201)。
FIG. 2 is a flowchart showing an example of the processing of the number-of-branches specifying means 10, the graphic command generating means 21, and the drawing means 22. As shown in FIG. 2, first, in the application program, at the time of a request for drawing a graphic, the user specifies a coordinate value for each coordinate and the number of line segments starting from each coordinate (step 201).

【0008】そして、座標の指定順は、上から下とし、
分岐している場合には、左側の座標を優先させて指定す
る。もし、その座標から線分がさらに下に続いている場
合には、左側優先で下に辿っていき、線分の終わりまで
座標を指定していく。一つの線を辿ってその下端まで指
定したら、一つ上の分岐点に戻り、そこを始点とする線
を左側優先で下に辿っていき、下端まで座標を指定す
る。このときに、戻った分岐点の座標を再度指定する必
要はない。
[0008] The coordinate designation order is from top to bottom.
If there is a branch, the coordinates on the left side are given priority. If the line segment continues further down from the coordinates, the line is traced downward with priority on the left, and the coordinates are designated until the end of the line segment. After tracing one line and designating to the lower end thereof, return to the branch point one level higher, follow the line starting from there at the left side with priority, and specify the coordinates to the lower end. At this time, there is no need to specify the coordinates of the returned branch point again.

【0009】図形描画が要求されると、オペレーション
コードと座標数と各座標について二次元あるいは三次元
の座標値データと分岐数の情報とを持つ図形コマンドを
生成する(処理202)。
When a graphic drawing is requested, a graphic command having two-dimensional or three-dimensional coordinate value data and information on the number of branches is generated for each coordinate (operation 202).

【0010】そこで、処理202で生成された図形コマ
ンドを使用して線の描画を行うが、まず、図形コマンド
中の最初の座標から、分岐数が「0」である最初の座標
までは、一連続の図形として線を描画する(処理20
3)。そのときに、始点データとして処理した座標の分
岐数の値を、−1する。
Therefore, a line is drawn using the graphic command generated in the process 202. First, from the first coordinate in the graphic command to the first coordinate in which the number of branches is "0", one line is drawn. Draw a line as a continuous figure (Process 20
3). At this time, the value of the branch number of the coordinates processed as the start point data is decremented by -1.

【0011】その後には、図形コマンドの各座標データ
を順に参照し(処理204)、その座標値を終点データ
として設定する(処理206)。始点は、そこまでの座
標データを逆に参照し、分岐数が1以上である最初の座
標である(処理207,208)。その座標値を始点デ
ータとして設定し、分岐数の値を−1する(処理20
9)。分岐数の値は、その座標を始点とする線分の描画
処理が全て終わった時点で0になる。
Thereafter, each coordinate data of the graphic command is sequentially referred to (step 204), and the coordinate values are set as end point data (step 206). The start point refers to the coordinate data up to that point in reverse, and is the first coordinate where the number of branches is 1 or more (processes 207 and 208). The coordinate value is set as start point data, and the value of the number of branches is decremented by one (process 20).
9). The value of the number of branches becomes 0 when all the line segment drawing processes starting from the coordinates have been completed.

【0012】そして、始点データと終点データとが設定
されると、線分の描画処理を行う(処理210)。
When the start point data and the end point data are set, a line segment drawing process is performed (process 210).

【0013】図3は、図形コマンド生成手段21で生成
される二次元あるいは三次元のコマンド形式の一例を示
す図である。図3に示すように、コマンド形式は、オペ
レーションコードと座標数と各座標に関しての座標値と
分岐数を示す情報とを持っている。
FIG. 3 is a diagram showing an example of a two-dimensional or three-dimensional command format generated by the graphic command generating means 21. As shown in FIG. 3, the command format includes an operation code, the number of coordinates, coordinate values for each coordinate, and information indicating the number of branches.

【0014】図4は、ツリー構造の表示の一例を示す図
である。図4に示すような図形を描画しようとすると、
図中のアルファベットで示す順に、各座標について、座
標値を設定するとともに、分岐数を指定する。
FIG. 4 is a diagram showing an example of a tree structure display. When trying to draw a figure as shown in FIG.
In the order shown by the alphabets in the figure, coordinate values are set for each coordinate, and the number of branches is specified.

【0015】図5は、図4のツリー構造を描画するため
の本実施例の図形コマンドの一例を示す図である。図4
のようなツリー構造を表示しようとして、分岐数指定を
した図形描画要求により生成される図形コマンドは、三
次元の場合に、図5のようになる。この座標値及び分岐
数を利用して、図形描画手段22によって多分岐形状の
線を描画する。
FIG. 5 is a diagram showing an example of a graphic command of the present embodiment for drawing the tree structure of FIG. FIG.
FIG. 5 shows a graphic command generated by a graphic drawing request specifying the number of branches to display a tree structure as shown in FIG. Using this coordinate value and the number of branches, the figure drawing means 22 draws a multi-branched line.

【0016】まず、最初の座標aから、分岐数が「0」
である最初の座標dまでは、一連続の線として描画す
る。このときに、座標a,座標b,座標cは、それぞれ
始点として処理したので、その分岐数を−1する。
First, from the first coordinate a, the number of branches is "0".
Is drawn as a continuous line up to the first coordinate d. At this time, since the coordinates a, b, and c have been processed as starting points, the number of branches is decremented by one.

【0017】以降には、図形コマンドを順に参照してい
くが、次の座標であるeの分岐数は「0」なので、既に
描画した図形コマンドの座標を逆に参照していき、最初
に現れる分岐数が1以上である座標cを始点として、座
標cと座標eとを結ぶ線を描画する。座標cの分岐数は
−1され、分岐数は0になる。
Thereafter, the graphic commands are sequentially referred to, but since the number of branches of the next coordinate e is "0", the coordinates of the graphic command already drawn are referred to in reverse, and appear first. A line connecting the coordinate c and the coordinate e is drawn starting from the coordinate c having the number of branches of 1 or more. The number of branches at the coordinate c is decremented by one, and the number of branches becomes zero.

【0018】次の座標fに関しては、まず、座標値を終
点データとして設定し、既に描画した図形コマンドの座
標を逆に参照していき、最初に現れる分岐数が1以上で
ある座標bを始点として、座標bと座標fとを結ぶ線を
描画する。
Regarding the next coordinate f, first, the coordinate value is set as end point data, and the coordinates of the already drawn graphic command are referred to in reverse. , A line connecting the coordinate b and the coordinate f is drawn.

【0019】以降に、同様の処理を、座標値データの終
わりまで繰り返す。
Thereafter, the same processing is repeated until the end of the coordinate value data.

【0020】[0020]

【発明の効果】以上説明したように、本発明の多分岐形
状図形表示方式は、分岐点を持つ線の表示に関して、利
用者が座標値指定の際に、分岐数の指定を行えるように
することによって、特にツリー構造のような図形を表示
するような場合に、図形の描画要求を複数回行う必要が
なく、そのために、図形処理システムでは、一つの図形
コマンドを生成すればよいという効果を有している。
As described above, the multi-branch shape graphic display method of the present invention allows a user to specify the number of branches when specifying a coordinate value for displaying a line having a branch point. This eliminates the need to issue a figure drawing request a plurality of times, especially when a figure such as a tree structure is to be displayed. Therefore, the figure processing system has the effect of generating only one figure command. Have.

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

【図1】本発明の多分岐形状図形表示方式の一実施例を
示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a multi-branch shape graphic display method according to the present invention.

【図2】分岐数指定手段10と図形コマンド生成手段2
1と描画手段22との処理の一例を示す流れ図である。
FIG. 2 is a diagram showing a branch number designation unit and a figure command generation unit;
3 is a flowchart showing an example of processing between the drawing unit 1 and the drawing unit 22.

【図3】図形コマンド生成手段21で生成されるコマン
ド形式の一例を示す図である。
FIG. 3 is a diagram illustrating an example of a command format generated by a graphic command generation unit 21;

【図4】ツリー構造の表示の一例を示す図である。FIG. 4 is a diagram showing an example of a display of a tree structure.

【図5】図4のツリー構造を描画するための本実施例の
図形コマンドの一例を示す図である。
FIG. 5 is a diagram showing an example of a graphic command of the embodiment for drawing the tree structure of FIG. 4;

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

10 分岐数指定手段 20 図形処理システム 21 図形コマンド生成手段 22 描画手段 30 図形表示装置 DESCRIPTION OF REFERENCE NUMERALS 10 branch number specifying means 20 graphic processing system 21 graphic command generating means 22 drawing means 30 graphic display device

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 図形表示装置に図形の表示を行うとき
に、アプリケーションプログラムから図形描画要求があ
ると、図形コマンドを生成して、図形表示を行う機能を
有する情報処理システムの多分岐形状図形表示方式にお
いて、 アプリケーションプログラムで利用者が図形表示位置の
座標値を指定するときに、その座標を始点とする線分の
数も指定する分岐数指定手段と、 オペレーションコード,座標数,各座標を始点とする線
分の数,座標値を要素として持つ図形コマンドの生成を
行う図形コマンド生成手段と、 生成された図形コマンドにより、指定された数の線分の
描画処理を行う描画手段とを有し、 図形の描画に際して、アプリケーションプログラムで図
形表示位置の座標値の指定を行うときに、分岐数の指定
を行えるようにすることによって、ツリー構造のように
分岐点を持ち、一連続の線としては描画できない線を一
回の描画要求で表示可能にすることを特徴とする多分岐
形状図形表示方式。
1. A multi-branch graphic display of an information processing system having a function of generating a graphic command and performing graphic display when a graphic drawing request is received from an application program when displaying a graphic on a graphic display device. In the method, when a user specifies a coordinate value of a graphic display position in an application program, a branch number specifying means for specifying the number of line segments starting from the coordinate, and an operation code, the number of coordinates, and each coordinate as a starting point. A figure command generating means for generating a figure command having the number of line segments and coordinate values as elements, and a drawing means for performing a drawing process of a specified number of lines by the generated figure command. When drawing a figure, the number of branches can be specified when the coordinate value of the figure display position is specified by the application program. By, has a branch point as a tree structure, a multi-branch shape graphic display system, characterized in that the visible lines can not be drawn as one continuous line in one draw call.
JP4217599A 1992-08-17 1992-08-17 Multi-branch shape figure display method Expired - Lifetime JP2932844B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4217599A JP2932844B2 (en) 1992-08-17 1992-08-17 Multi-branch shape figure display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4217599A JP2932844B2 (en) 1992-08-17 1992-08-17 Multi-branch shape figure display method

Publications (2)

Publication Number Publication Date
JPH0668230A JPH0668230A (en) 1994-03-11
JP2932844B2 true JP2932844B2 (en) 1999-08-09

Family

ID=16706824

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4217599A Expired - Lifetime JP2932844B2 (en) 1992-08-17 1992-08-17 Multi-branch shape figure display method

Country Status (1)

Country Link
JP (1) JP2932844B2 (en)

Also Published As

Publication number Publication date
JPH0668230A (en) 1994-03-11

Similar Documents

Publication Publication Date Title
JPH07200218A (en) Method and equipment for interlocking of graphical object
JP2932844B2 (en) Multi-branch shape figure display method
JPH0620021A (en) Method and device for graphic processing
JPH05334440A (en) Display method of branch shape figure
JP2667454B2 (en) Plotting device
JP2904994B2 (en) Coordinate connection display method
JPH06282618A (en) Graphic drawing device
JPS62274467A (en) Intellectual conversation processing method
JPH05225354A (en) Three-dimensional graphic display processing apparatus and method, and graphic display method thereof
JP2714114B2 (en) Graphic processing method and graphic system
JPH0399369A (en) Drawing management method, drawing management device, and its drawing display method
JPH0855244A (en) 3D figure data input method
JP2832007B2 (en) Information processing device
JP3089740B2 (en) Line drawing device
JP3043579B2 (en) Graphic processing system
JPH0546707A (en) Information processor
JPS6385978A (en) Graphic editing device
JP2001175849A (en) Processing method for geographical information
JPH0467230B2 (en)
JPS63311481A (en) Method for picking graphic system
JPH064624A (en) Graphic processor and method therefor
JPH1031760A (en) Graphic processing unit
JPS63150767A (en) Ellipse input system
JPS61267096A (en) Smear drawing display unit for polygonal graphic
JPH02244384A (en) Image data correcting system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990427