JPS6232568A - Graphic processor - Google Patents
Graphic processorInfo
- Publication number
- JPS6232568A JPS6232568A JP17197185A JP17197185A JPS6232568A JP S6232568 A JPS6232568 A JP S6232568A JP 17197185 A JP17197185 A JP 17197185A JP 17197185 A JP17197185 A JP 17197185A JP S6232568 A JPS6232568 A JP S6232568A
- Authority
- JP
- Japan
- Prior art keywords
- coordinates
- command
- keyboard
- graphic
- drawing command
- 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
Links
- 230000005540 biological transmission Effects 0.000 abstract 1
- 238000000034 method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 229910003460 diamond Inorganic materials 0.000 description 1
- 239000010432 diamond Substances 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
Landscapes
- Processing Or Creating Images (AREA)
Abstract
Description
【発明の詳細な説明】
発明の目的
産業上の利用分野
本発明は、コンピュータグラフィク・システムで使用さ
れる図形処理装置に関する。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to graphics processing devices used in computer graphics systems.
従来の技術
]ンピュータとの対話形式で図形の作成2wR集などの
処理を行うンピュータグラフィク・システムが普及しつ
つある。2. Description of the Related Art Computer graphics systems that perform processing such as the creation of graphics and 2wR collections in an interactive manner with a computer are becoming popular.
このようなコンピュータグラフィク・システムで使用さ
れる図形処理装置の一形式として、利用者が指定した図
形要素の座標を装置上の座標に変換しつつ図形処理を行
う形式のものがある。One type of graphic processing device used in such a computer graphics system is one that performs graphic processing while converting the coordinates of graphic elements specified by the user into coordinates on the device.
すなわち、利用者は描画しようとする画面の左上端の座
標と右下端の座標を、例えばそれぞれ(0,0)、
(N、M)とすることを最初に指定し、以後は、指定し
た画面上の座標を図形処理装置に入力してゆくと、図形
処理装置は、その入力座標を画面メモリ、画像ファイル
の記憶単位、あるいは画素などのサイズで定まる装置上
の座標に自動的に変換して図形処理を行う形式である。In other words, the user sets the coordinates of the upper left corner and the lower right corner of the screen to be drawn, for example, (0, 0), respectively.
(N, M), and then input the specified coordinates on the screen to the graphics processing device.The graphics processing device stores the input coordinates in the screen memory and image file. This is a format in which graphic processing is performed by automatically converting to coordinates on the device determined by units or sizes such as pixels.
発明が解決しようとする問題点
上記自動座標変換を伴う図形処理装置では、利用者が装
置上の画面内の分解能を超える微細なパターンの描画が
指令した場合、複数個の入力座標に対して縮退した装置
上の同一座標値と、これら同一座標値間を線分で連結す
ることを指令することなどから成る無意味な描画コマン
ドが作成され、実行されることになる。Problems to be Solved by the Invention In the above-mentioned graphic processing device with automatic coordinate conversion, when a user instructs to draw a minute pattern that exceeds the resolution within the screen of the device, degeneracy occurs for multiple input coordinates. A meaningless drawing command consisting of the same coordinate values on the device and a command to connect these same coordinate values with a line segment is created and executed.
このような無意味な描画コマンドの作成と実行は、図形
処理装置の処理速度を低下させることになる。Creating and executing such meaningless drawing commands reduces the processing speed of the graphics processing device.
発明の構成
問題点を解決するための手段
上記従来技術の問題点を解決する本発明の図形処理装置
は、変換された装置上の座標が連続して一致する場合に
はそのうちの一つだけを含む描画コマンドを図形発生部
に渡す描画コマンド作成部を備え、無意味なコマンドの
作成と実行を回避するように構成されている。Means for Solving the Constituent Problems of the Invention The graphic processing device of the present invention, which solves the problems of the prior art described above, processes only one of the converted coordinates on the device when they match consecutively. It includes a drawing command creation section that passes the included drawing commands to the figure generation section, and is configured to avoid the creation and execution of meaningless commands.
以下、本発明の作用を実施例と共に詳細に説明する。Hereinafter, the operation of the present invention will be explained in detail together with examples.
実施例
第1図は、本発明の一実施例の図形処理装置を含むコン
ピュータグラフィク・システムの構成を示す機能ブロッ
ク図である。Embodiment FIG. 1 is a functional block diagram showing the configuration of a computer graphics system including a graphic processing device according to an embodiment of the present invention.
このコンピュータグラフィク・システムは、図形処理装
置1.フレーム・メモリ29画像ファイル3.CRTイ
ンタフェース部4.キーボード5及びCRT6を備えて
いる。This computer graphics system includes a graphic processing device 1. Frame memory 29 image file 3. CRT interface section 4. It is equipped with a keyboard 5 and a CRT 6.
図形処理装置1は、描画コマンド作成部11゜図形発生
部121表示制御部13及びキーボード・インタフェー
ス部14を備えている。The graphic processing device 1 includes a drawing command creation section 11.degree. graphic generation section 121, a display control section 13, and a keyboard interface section 14.
描画コマンド作成部11は、キーボードインタフェース
部14を介してキーボードから受けた描画の種類の指定
と座標の指定に基づき、描画コマンドを作成し、これを
図形発生部12に渡す。図形発生部12は、描画コマン
ド作成部11から受は取った描画コマンドに基づき図形
を発生させ、これをフレームメモリ2内の画面に書込む
。The drawing command creation section 11 creates a drawing command based on the designation of the drawing type and the designation of the coordinates received from the keyboard via the keyboard interface section 14, and passes this to the graphic generation section 12. The figure generating section 12 generates a figure based on the drawing command received from the drawing command generating section 11, and writes this on the screen in the frame memory 2.
表示制御部13は、キーボード・インタフェース部14
を介してこのキーボード5から受けた表示の指令に従い
、フレームメモリ2内の画面をCRTインタフェース部
4を介してCRT6に表示させる。また、表示制御部1
3は、キーボード5からの指令に従って、フレームメモ
リ2内の画面と画像ファイル3内の画面の入れ換えやス
クロールなどを行う。The display control section 13 has a keyboard interface section 14.
In accordance with a display command received from the keyboard 5 via the CRT interface section 4, the screen in the frame memory 2 is displayed on the CRT 6 via the CRT interface section 4. In addition, the display control unit 1
3 performs swapping and scrolling of the screen in the frame memory 2 and the screen in the image file 3 according to commands from the keyboard 5.
利用者が、キーボード5から、複数個の座標点の連結に
よる図形の作成(ポリライン描画)を指令した場合の描
画コマンド作成部11の動作を、第2図のフローチャー
トによって説明する。The operation of the drawing command creation section 11 when the user instructs the creation of a figure by connecting a plurality of coordinate points (polyline drawing) from the keyboard 5 will be explained with reference to the flowchart in FIG.
描画コマンド作成部11は、キーボード5からポリライ
ン描画の指令を受けると、最初のステップ21において
、最初の頂点の座標の入力を待ちこれを受は取ると、次
のステップ22に進む。When the drawing command generation unit 11 receives a command to draw a polyline from the keyboard 5, in a first step 21, it waits for the input of the coordinates of the first vertex, and upon receiving the input, proceeds to the next step 22.
描画コマンド作成部11は、ステップ22において、利
用者の使用する座標(以下「ワールド座標」と称する)
で入力された最初の頂点の座標を、フレームメモリ2の
サイズ、画像ファイル3の単位記憶サイズ、あるいは利
用者が別途指定した1画面のサイズや最小画素単位など
によって決まる装置上の座標(以下「デバイス座標」と
称する)に変換する。In step 22, the drawing command creation unit 11 calculates the coordinates used by the user (hereinafter referred to as "world coordinates").
The coordinates of the first vertex inputted in are converted into coordinates on the device (hereinafter referred to as " (referred to as "device coordinates").
描画コマンド作成部11は、次のステップ23において
、新たに入力されたワールド座標から変換された新たな
デバイス座標と直前に入力されたワールド座標から変換
された直前のデバイス座標との一致、不一致を判定する
。最初に入力されるワールド座標に対する直前のデバイ
ス座標はデバイス画面外の座標に設定されているため、
判定結果は不一致となり、ステップ24に進む。In the next step 23, the drawing command creation unit 11 determines whether the new device coordinates converted from the newly input world coordinates match the previous device coordinates converted from the world coordinates input immediately before. judge. The device coordinates immediately before the first input world coordinates are set to coordinates outside the device screen, so
The determination result is no match, and the process proceeds to step 24.
描画コマンド作成部11は、最新のデバイス座標を描画
データとして保存し、次のステップ25において、直前
のデバイス座標を最新のデバイス座標によって更新する
。The drawing command creation unit 11 saves the latest device coordinates as drawing data, and in the next step 25 updates the immediately previous device coordinates with the latest device coordinates.
描画コマンド作成部11は、キーボード5からのワール
ド座標の入力が全て終了したか否かを判定する。この座
標入力の終了は、全てのワールド座標の入力の終了後に
キーボード5から発せられる描画実行指令を検出した
り、あるいはワールド座標の入力回数がポリライン描画
の指令時に指定された頂点個数に等しくなったことなど
に基づき検出される。The drawing command creation unit 11 determines whether all world coordinates have been input from the keyboard 5. This coordinate input ends when a drawing execution command issued from the keyboard 5 is detected after all world coordinates have been input, or when the number of world coordinates input becomes equal to the number of vertices specified when commanding polyline drawing. Detected based on factors such as
描画コマンド作成部11は、全頂点ついてワールド座標
座標の入力が終了していなければ、ステップ21にもど
り、次の頂点のワールド座標入力を待ったのち、ステッ
プ22からステップ26までの動作を繰り返す。If the input of world coordinates has not been completed for all vertices, the drawing command creation unit 11 returns to step 21, waits for input of the world coordinates of the next vertex, and then repeats the operations from step 22 to step 26.
描画コマンド作成部11は、ステップ23において、新
たなデバイス座標が直前のデバイス座標と一致すること
を検出した場合には、ステップ24における新たなデバ
イス座標の保存と、ステ・7プ25における直前のデバ
イス座標の更新とをスキップして直ちにステップ26に
進む。If the drawing command creation unit 11 detects in step 23 that the new device coordinates match the immediately previous device coordinates, it saves the new device coordinates in step 24 and saves the immediately previous device coordinates in step 25. The process skips updating the device coordinates and immediately proceeds to step 26.
描画コマンド作成部11は、ステップ26において、ワ
ールド座標の入力の終了を判定すると、ステップ27に
進み、保存されている全てのデバイス座標と共にポリラ
イン描画コマンドを図形発生部12に渡し、次のステッ
プ28において、直前のデバイス座標値を画面外の座標
値に設定したのち、キーボード5からのポリライン描画
指令に基づ(描画コマンド作成処理を終了する。When the drawing command generation unit 11 determines in step 26 that the input of world coordinates is completed, the process proceeds to step 27, passes the polyline drawing command along with all saved device coordinates to the figure generation unit 12, and then proceeds to the next step 28. After setting the previous device coordinate value to a coordinate value outside the screen, based on a polyline drawing command from the keyboard 5 (the drawing command creation process is finished).
描画コマンド作成部11から上記描画データを受けた図
形発生部12は、受は取ったデバイス座標を連結するポ
リライン図形をフレームメモリ2内に書込む。The figure generator 12, which has received the drawing data from the draw command generator 11, writes into the frame memory 2 a polyline figure that connects the received device coordinates.
第3図は、上述のポリライン描画のコマンド作成処理の
一例を示す概念図である。FIG. 3 is a conceptual diagram showing an example of the above-mentioned polyline drawing command creation process.
ポリライン描画指令に続いて、キーボード5から線分に
よって連結されるべき頂点のワールド座標A、B、C,
D、E及びFが順次入力される。Following the polyline drawing command, the world coordinates A, B, C, of vertices to be connected by line segments are input from the keyboard 5.
D, E and F are input sequentially.
この場合、隣接ワール・ド座標に対応するデバイス座標
の間隔が最小画素サイズ以下であるため、描画コマンド
作成部11は、第2図のステップ22において、上記ワ
ールド座標を対応のデバイス座標a、a、b、b、c、
c、に変換する。In this case, since the interval between the device coordinates corresponding to the adjacent world coordinates is less than the minimum pixel size, the drawing command creation unit 11 converts the world coordinates into the corresponding device coordinates a and a in step 22 of FIG. , b, b, c,
Convert to c.
同時に、描画コマンド作成部11は、同一のデバイス座
標が連続して作成さたことを第2図のステップ23で検
出し、2番目のデバイス座標については描画データとし
ての保存と直前のデバイス座標の更新をスキップし、a
、b、cの3個のデバイス座標だけを描画データとして
含む描画コマンドを作成し、図形発生部12に渡す。At the same time, the drawing command creation unit 11 detects in step 23 of FIG. Skip update, a
A drawing command containing only three device coordinates, , b, and c as drawing data is created and passed to the graphic generation section 12 .
CRTの画面上には、第3図に示すように、デバイス座
標a、b、cの画素が連結された線分が表示される。従
来方式のように、ワールド座標から変換した全てのデバ
イス座標a、a、b、b。As shown in FIG. 3, a line segment connecting pixels at device coordinates a, b, and c is displayed on the CRT screen. All device coordinates a, a, b, b converted from world coordinates as in the conventional method.
c、cを図形発生部12に渡した場合に作成され、表示
される図形も全く同一である。従って、本発明の図形処
理装置においては、無駄な描画データの作成、転送、実
行が回避される。The figures that are created and displayed when c and c are passed to the figure generator 12 are exactly the same. Therefore, in the graphic processing apparatus of the present invention, unnecessary creation, transfer, and execution of drawing data can be avoided.
第4図に例示するように、6個の頂点のワールド座標A
−Fを入力して多角形を描画する場合において、対応の
デバイス座標が同一になるときも同様である。As illustrated in Figure 4, the world coordinates A of six vertices
The same applies when inputting -F to draw a polygon and the corresponding device coordinates are the same.
以上、2個のデバイス座標が一致する場合を例示したが
、3個以上のデバイス座標が連続して一致する場合には
、そのうちの1個だけが描画データとして保存される。The case where two device coordinates match has been illustrated above, but if three or more device coordinates match consecutively, only one of them is saved as drawing data.
また、隣接ワールド座標間を線分で連結する描画の場合
を例示したが、対向する2隅のワールド座標を指定して
矩形を描かせる場合において対応の2隅のデバイス座標
が一致したときや、上端と右端を指定して菱形を措かせ
る場合において対応の2端のデバイス座標が一致すると
きなどにも本発明の装置の効果が発揮される。In addition, although we have illustrated the case of drawing in which adjacent world coordinates are connected by a line segment, when drawing a rectangle by specifying the world coordinates of two opposing corners, when the device coordinates of the two corresponding corners match, The effects of the apparatus of the present invention are also exhibited when the device coordinates of the two corresponding ends match when a diamond is removed by specifying the top end and right end.
さらに、描画コマンド作成部において、全てのデバイス
座標が整ってからこれらを一括して図形発生部に渡す構
成を例示したが、ワールド座標からの変換と不一致の判
定が終了したものから順に図形発生部に渡すように構成
することもできる。Furthermore, in the drawing command generation section, after all device coordinates are set, they are passed to the figure generation section in one go. It can also be configured to be passed to
発明の効果
以上詳細に説明したように、本発明の図形処理装置は、
デバイス座標が連続して一致する場合にはそのうちの一
つだけを含む描画コマンドを図形発生部に渡す描画コマ
ンド作成部を備えているので、無駄なコマンドの作成、
転送及び実行が回避され、図形処理速度が向上するとい
う効果が奏される。Effects of the Invention As explained in detail above, the graphic processing device of the present invention has the following effects:
Since it is equipped with a drawing command creation section that passes a drawing command containing only one of them to the figure generation section when the device coordinates match consecutively, it eliminates the creation of useless commands.
Transfer and execution are avoided, and the graphic processing speed is improved.
第1図は本発明の一実施例の図形処理装置を含むコンピ
ュータグラフィク・システムの構成を示す機能ブロック
図、第2図は第1図の図形処理装置1内の描画コマンド
作成部11の動作の一例を説明するためのフローチャー
ト、第3図、第4図は本発明の詳細な説明するための概
念図である。
1・・図形処理装置、11・・描画コマンド作酸部、1
2・・図形発生部、13・・表示制御部。
14・・キーボード・インタフェース部。FIG. 1 is a functional block diagram showing the configuration of a computer graphics system including a graphics processing device according to an embodiment of the present invention, and FIG. A flowchart for explaining an example, and FIGS. 3 and 4 are conceptual diagrams for explaining the present invention in detail. 1...Graphic processing device, 11...Drawing command generation unit, 1
2...Graphic generator, 13...Display control unit. 14...Keyboard interface section.
Claims (1)
しつつ図形処理を行う図形処理装置において、 変換された装置上の座標が連続して一致した場合にはそ
のうちの一つだけを含む描画コマンドを図形発生部に渡
す描画コマンド作成部を備えたことを特徴とする図形処
理装置。[Claims] In a graphic processing device that performs graphic processing while converting the coordinates of a graphic element specified by a user into coordinates on the device, if the converted coordinates on the device match continuously, 1. A graphics processing device comprising: a drawing command creation section that passes a drawing command containing only one of the following to a graphics generation section.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17197185A JPS6232568A (en) | 1985-08-03 | 1985-08-03 | Graphic processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17197185A JPS6232568A (en) | 1985-08-03 | 1985-08-03 | Graphic processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS6232568A true JPS6232568A (en) | 1987-02-12 |
Family
ID=15933144
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP17197185A Pending JPS6232568A (en) | 1985-08-03 | 1985-08-03 | Graphic processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6232568A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02148184A (en) * | 1988-11-29 | 1990-06-07 | Nec Corp | System for displaying graphics of continuous line at high speed |
-
1985
- 1985-08-03 JP JP17197185A patent/JPS6232568A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02148184A (en) * | 1988-11-29 | 1990-06-07 | Nec Corp | System for displaying graphics of continuous line at high speed |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS61131990A (en) | Videotex image producing system | |
| JP2833654B2 (en) | Graphic processing unit | |
| JPH02199579A (en) | Method of forming animation | |
| JP2818066B2 (en) | Image layout processing device | |
| JPS6177088A (en) | Image data processing device | |
| JP2975054B2 (en) | Partial moving device for still images | |
| JP2999538B2 (en) | Wipe pattern designation device | |
| JP2652435B2 (en) | Image display method | |
| JP3807052B2 (en) | Graphic drawing apparatus and storage medium | |
| JPS62212890A (en) | Drawing processing system based on picture element contour line | |
| JPS63169171A (en) | Reduced picture forming method | |
| JPH0869368A (en) | Image output device | |
| JPH0456353B2 (en) | ||
| JPS63311868A (en) | Picture processing device | |
| JPH02244384A (en) | Image data correcting system | |
| JPS6283790A (en) | Image processing device | |
| JPH0268594A (en) | Scrolling control system for image plane | |
| JPS63241625A (en) | Line drawing input device | |
| JPS60241175A (en) | Graphic processor | |
| JPH05290136A (en) | Pick input system of graphic processing system | |
| JPS6226581A (en) | Picture processor | |
| JPH0731735B2 (en) | Image data creation device | |
| JPS6151318B2 (en) | ||
| JPS62219181A (en) | Graphic drawing method | |
| JPH0375647A (en) | Layout device for handbill, catalog of the like |