JPH0411908B2 - - Google Patents
Info
- Publication number
- JPH0411908B2 JPH0411908B2 JP56093823A JP9382381A JPH0411908B2 JP H0411908 B2 JPH0411908 B2 JP H0411908B2 JP 56093823 A JP56093823 A JP 56093823A JP 9382381 A JP9382381 A JP 9382381A JP H0411908 B2 JPH0411908 B2 JP H0411908B2
- Authority
- JP
- Japan
- Prior art keywords
- command
- graphic
- parameters
- figures
- displayed
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Processing Or Creating Images (AREA)
- Digital Computer Display Output (AREA)
- Document Processing Apparatus (AREA)
Description
【発明の詳細な説明】
本発明は、マンマシン対話によつて、デイスプ
レイ装置上に次々と図形を描いていく図形編集方
式に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a figure editing method in which figures are drawn one after another on a display device through man-machine interaction.
従来の計算機グラフイツクス技術では、計算機
内部に表現された設計データや技術計算結果など
を、人間に理解しやすい形へと変換する点に主眼
が置かれており、図を変形したり、一部消去した
り、新しい図形を挿入したりして多様な図を構成
するというような、いわゆる図形編集の機能につ
いては殆んど考慮されていなかつた。 In conventional computer graphics technology, the main focus is on converting design data and technical calculation results expressed inside a computer into a form that is easy for humans to understand. Little consideration has been given to so-called figure editing functions, such as configuring various figures by editing or inserting new figures.
最近、例えばエーシーエム(Association for
Computing Machinery)、シーグラフ80、コン
フアレンス、プロシーデイング、314頁〜320頁に
示されているように、画面上での図形を書き換え
ることが検討され始められている。しかし、上記
文献で述べられている方法では画面上の不必要な
部分までが書き換えられてしまい、書き換え操作
が困難になる問題があつた。 Recently, for example, ACM (Association for
As shown in "Computing Machinery", SIGGRAPH 80, Conference, Proceedings, pp. 314-320, studies have begun to consider rewriting figures on the screen. However, the method described in the above-mentioned document has the problem that even unnecessary portions on the screen are rewritten, making the rewriting operation difficult.
本発明は、デイスプレイ装置上に、操作者の意
のままに任意に多様な図を描くことのできる図形
編集方式を提供することを目的とする。 SUMMARY OF THE INVENTION An object of the present invention is to provide a graphic editing method that allows an operator to arbitrarily draw various diagrams on a display device.
上記の目的を達成するために、本発明では、図
を層状に積み重ねられた図形の集合と考え、図を
構成する各図形を、図上の座標値x、yを入力と
し、真偽を論理値1、0で出力するような計算体
系を持つものとして定義する。この基本的考え方
により、比較的単純な基本図形の論理的な組合せ
で、より複雑な複合図形が定義できるようになる
とともに、デイスプレイ装置の画面上の一点x、
yを与えるだけで、そこに描かれた図形を発見す
る処理が極めて容易に実現できるようになつた。
したがつて、図形を消去したり挿入したり変形し
たりするいわゆる図形編集処理が効率的に実行で
きるようになつた。 In order to achieve the above object, in the present invention, a diagram is considered as a set of figures stacked in layers, and each figure constituting the diagram is inputted with coordinate values x and y on the diagram, and the truth or falsehood is determined by logic. It is defined as having a calculation system that outputs values 1 and 0. This basic idea makes it possible to define more complex composite figures by logical combinations of relatively simple basic figures, and also allows you to define a single point x on the screen of a display device.
By simply giving y, it has become extremely easy to discover the figure drawn there.
Therefore, it has become possible to efficiently perform so-called figure editing processing, in which figures are deleted, inserted, or transformed.
以下、本発明を実施例を参照して詳細に説明す
る。 Hereinafter, the present invention will be explained in detail with reference to Examples.
第1図は、本発明による図形編集方式を実現す
る図形編集装置の一構成例を示している。図にお
いて、処理装置1はキーボード2からの操作者の
指令に応答して図形情報をメモリ3の中に図形コ
マンドとして蓄積するとともに、その図形情報を
もとに画像制御回路4の中の画像メモリに図形を
描く。画像メモリは水平・垂直両方向に連続して
ラスタスキヤンされ、得られた映像信号がデイス
プレイ装置5上に表示される。6はジヨイステイ
ツクであり、デイスプレイ装置5の画面上に表示
されたカーソル(十字線)の位置を制御するため
のものである。また7は、出来上つた図を転写す
るための図形出力装置であり、通常のフイルム出
力装置を用いれば、スライドフイルムが出来上
る。また用途によつては、通常のプリンタを用い
ることにより、図のハードコピーを得ることも出
来る。一方、8は任意のフアイル装置であり、出
来上つた図をのちの再使用などのためにここに保
存できる。本発明では、図が後述するように図形
コマンド群として表現されるので極めて小さな記
憶容量で記憶でき、従つてフアイル装置8として
は、ミニフロツピイ装置を用いることができる。
上述の処置装置1としては、通常のマイクロコン
ピユータを利用できるので、本発明の方式は、た
とえば卓上スタンドアロン型の小型図形編集装置
でも実現できることになる。 FIG. 1 shows an example of the configuration of a graphic editing device that implements the graphic editing method according to the present invention. In the figure, a processing device 1 stores graphic information in a memory 3 as a graphic command in response to an operator's command from a keyboard 2, and also stores graphic information in an image memory in an image control circuit 4 based on the graphic information. Draw a shape. The image memory is continuously raster scanned in both the horizontal and vertical directions, and the obtained video signal is displayed on the display device 5. A joy stick 6 is used to control the position of a cursor (crosshair) displayed on the screen of the display device 5. Reference numeral 7 denotes a graphic output device for transferring the finished drawing, and if a normal film output device is used, a slide film can be produced. Also, depending on the application, a hard copy of the diagram can be obtained using an ordinary printer. On the other hand, 8 is an arbitrary file device, in which the completed diagram can be saved for later reuse. In the present invention, since the diagrams are expressed as a group of graphical commands as will be described later, they can be stored in an extremely small storage capacity, and therefore a mini-floppy device can be used as the file device 8.
Since a normal microcomputer can be used as the above-mentioned treatment device 1, the method of the present invention can be realized even in a small-sized figure editing device, such as a tabletop stand-alone type.
さて、以上のような構成において、操作者はデ
イスプレイ装置5の画面を見ながらキーボード2
とジヨイステイツク6によつて処理装置1に図形
情報を入力する。図形情報とは、描きたい図形の
種類とその図形の属性としてのパラメータであ
る。たとえば、図形の種類としては、円、四角、
三角、楕円、文字、記号などといつたあらかじめ
定められたメニユーを、たとえば文字でデイスプ
レイ装置5の画面上の一部を使つて番号とともに
表示し、その番号に対応する数字キーを押すこと
で選択入力できる。たとえば円が選択されると、
引続いてデイスプレイ装置5の画面上に「直径を
入力下さい」というような文字表示を行ない、キ
ーボード2の数字キーからの数値入力を受付ける
ようにできる。また、その円を書くべき位置
(x0、y0)の問合せでは、数字キーからでも、あ
るいはカーソル位置としてでも入力できる。この
ようにして、次の(1)式の円のすべての幾何パラメ
ータx0、y0、Rが確定する。 Now, in the above configuration, the operator presses the keyboard 2 while looking at the screen of the display device 5.
Graphic information is input to the processing device 1 by the joystick 6. The figure information is the type of figure to be drawn and parameters as attributes of the figure. For example, the types of shapes include circles, squares,
A predetermined menu of triangles, ellipses, letters, symbols, etc. is displayed using a part of the screen of the display device 5 in letters, for example, along with numbers, and selection is made by pressing the number key corresponding to the number. Can be input. For example, if a circle is selected,
Subsequently, characters such as ``Please enter the diameter'' are displayed on the screen of the display device 5, and numerical input from the numeric keys of the keyboard 2 can be accepted. Furthermore, when inquiring about the position (x 0 , y 0 ) at which the circle should be drawn, input can be made using the numeric keys or as a cursor position. In this way, all the geometric parameters x 0 , y 0 , and R of the circle in the following equation (1) are determined.
(x−x0)2+(y−y0)2≦R2 (1) なお、Rは円の直径である。 (x−x 0 ) 2 +(y−y 0 ) 2 ≦R 2 (1) Note that R is the diameter of the circle.
本方式では、文字も図形の一種とみなされてお
り、もし図形の種類として「文字」が選択される
と、引続き平かな、片かな、漢字、英数字といつ
たような、より小さなカテゴリーのメニユーが表
示され、ここで漢字を選択すると、さらにその読
みを問合せ、その読みをキーボード2から例えば
ローマ字で入力する。それにより、その読みに対
応する候補漢字を表示し、その中から所望の漢字
を選択できる。この文字の選択については、この
他にも、通常のワードプロセツサで行なわれてい
る方式が代用できる。 In this method, characters are also considered to be a type of figure, and if ``character'' is selected as the type of figure, it will be followed by smaller categories such as plain, katakana, kanji, and alphanumeric characters. A menu is displayed, and when a kanji is selected here, the reading is further queried, and the reading is input from the keyboard 2, for example, in Roman letters. Thereby, candidate kanji corresponding to the reading are displayed, and a desired kanji can be selected from among them. For character selection, the method used in ordinary word processors can be used instead.
このように、メニユー選択を基本とした対話的
な手法によつて、キーボード2とジヨイステイツ
ク6から、図形の種類とその属性とをパラメータ
として入力し、これらを一まとまりの情報として
メモリ3の中に一つの図形コマンドとして記憶す
る。 In this way, using an interactive method based on menu selection, the type of figure and its attributes are input as parameters from the keyboard 2 and joystick 6, and these are stored in the memory 3 as a set of information. Store as one graphic command.
このように、すべてのパラメータ入力が終了し
て、図形コマンドとして確定すると、引続きこの
図形コマンドが実行され、画像制御回路4中の画
像メモリに図形が書込まれ、デイスプレイ装置5
上に表示される。 In this way, when all parameter input is completed and it is determined as a graphic command, this graphic command is subsequently executed, the graphic is written to the image memory in the image control circuit 4, and the graphic is written to the display device 5.
displayed above.
このような過程を次々と実行していくと、デイ
スプレイ装置5上にはたとえば第2図に示すよう
な図が出来上る。この図は、ある位置に円をたと
えば赤で描き、次いで少しずれた位置に四角を青
で描き、さらに三角を緑で描いた図を模式的に示
している。すなわち次々と図形を作つていくと、
デイスプレイ装置5上には、これらの図形があた
かも多層に重畳されているかのような図として表
現されることになり、またメモリ3中には、書込
んでいく順序に応じて、順次図形コマンドが出来
上がる。すなわち、メモリ3中では、図は順序を
持つた図形コマンド列として第3図のような形に
表現されることになる。 When such processes are executed one after another, a diagram as shown in FIG. 2, for example, is created on the display device 5. This figure schematically shows a circle drawn in red at a certain position, a square drawn in blue at a slightly shifted position, and a triangle drawn in green. In other words, if you create shapes one after another,
On the display device 5, these figures are expressed as a diagram as if they were superimposed in multiple layers, and in the memory 3, figure commands are sequentially written in accordance with the order in which they are written. It's done. That is, in the memory 3, the diagram is expressed as an ordered graphic command string as shown in FIG.
第3図においては、図はn個の図形からなる図
形コマンド列として表現され、各コマンドはm個
のパラメータを持つている。このうちパラメータ
1は既述の図形の種類であり、パラメータ2以降
が既述の幾何パラメータや色などに相当する。各
図形には特有の図形コードをあらかじめ定めてお
くことにより、パラメータ1にはこの図形コード
を格納すればよい。とくに図形が漢字の場合は、
日本工業規格で定まつている漢字コードをそのま
ま利用できる。この時には、この漢字コードをも
とにさらに別の位置に格納された対応漢字のドツ
トパターンを索引できる。上述の各コマンドは、
必ずしも等長である必要はなく、また、別のテー
ブルとして付属情報を持たせることも出来る。こ
のときには、この付属情報の格納位置とその長さ
とを、各コマンドのパラメータとして保有させれ
ばよい。上述の漢字のドツトパターンは、図形種
類を表わすパラメータから直接にアクセスできる
付属情報の一種である。付属情報としては、この
他に図形に次第に変化していくような色付けをす
るときの色付けの仕方を表わす情報とか、ハツチ
ングを施こすときのハツチングパターンの情報な
どが含まれる。 In FIG. 3, a diagram is expressed as a graphic command string consisting of n figures, and each command has m parameters. Among these, parameter 1 is the type of figure described above, and parameter 2 and subsequent parameters correspond to the geometric parameters, colors, etc. described above. By predetermining a unique graphic code for each graphic, this graphic code may be stored in parameter 1. Especially if the figure is a kanji,
Kanji codes defined by Japanese Industrial Standards can be used as is. At this time, based on this kanji code, the dot pattern of the corresponding kanji stored in another location can be indexed. Each of the above commands is
They do not necessarily have to be of equal length, and additional information can be provided as a separate table. In this case, the storage location and length of this additional information may be retained as parameters of each command. The above-mentioned kanji dot pattern is a type of attached information that can be accessed directly from the parameter representing the type of figure. In addition to this, the attached information includes information indicating how to color a figure in a manner that gradually changes, information on a hatching pattern when hatching is applied, and the like.
第4図は、第1図に示した画像制御回路4の一
具体実施例を示し、その主要構成要素として画像
メモリ10とカラー指定メモリ11とを持つてい
る。画像メモリ10は、本例では512×512の絵素
を持ち、深さが3ビツトのメモリであり、各絵素
はデイスプレイ装置5の画面の各位置に対応づけ
られている。通常、デイスプレイ装置5のラスタ
状走査に応じて、その走査アドレスが走査アドレ
スバス17によつてマルチプレクサ12を介して
供給され、各絵素の情報が次々と読出され、マル
チプレクサ13を介してカラー指定メモリ11の
アドレスとして入力される。カラー指定メモリ1
1には、通常第5図に示すような情報が記憶され
ており、画像メモリからの3ビツトの入力に応じ
この例では6ビツトの情報が次々と出力される。
この6ビツトの情報は、第5図に示したように2
ビツトずつが赤(R)、緑(G)、青(B)に対応
し、各3原色の0〜3の計4段階の混合量を表わ
している。従つてこの2ビツトずつをDA変換器
14でアナログ変換してデイスプレイ装置5の色
端子に導けば、画面にはカラー図形が表示され
る。この例では、2ビツトずつ3色の混合で表わ
される64色の色が表示可能であり、そのうちの任
意の8個の組合せをあらかじめデータバス16か
らカラー指定メモリ11に書込んでおけば、これ
が画像メモリ10に書かれた3ビツト情報000〜
111によつてアクセスされ、対応した色を出力す
る。従つて、画像メモリ10に図形を描くこと
は、その図形に対応した画像メモリ上のすべての
x、y位置に指定された色コードを書込むことで
ある。この書込みは、処理装置1からアドレスバ
ス15にx、y座標データを送り、マルチプレク
サ12を介して画像メモリ10にアクセスし、同
時にデータバス16に色コードを出力すること
で、デイスプレイの合間を縫つて実行できる。 FIG. 4 shows a specific embodiment of the image control circuit 4 shown in FIG. 1, which has an image memory 10 and a color designation memory 11 as its main components. In this example, the image memory 10 is a memory having 512×512 picture elements and a depth of 3 bits, and each picture element is associated with each position on the screen of the display device 5. Normally, in response to the raster scanning of the display device 5, the scanning address is supplied by the scanning address bus 17 via the multiplexer 12, and the information of each pixel is read out one after another, and the color is specified via the multiplexer 13. It is input as an address of memory 11. Color specification memory 1
1 normally stores information as shown in FIG. 5, and in this example, 6-bit information is successively output in response to 3-bit input from the image memory.
This 6-bit information consists of 2 bits as shown in Figure 5.
Each bit corresponds to red (R), green (G), and blue (B), and represents a total of four levels of mixing amounts from 0 to 3 of each of the three primary colors. Therefore, if each of these two bits is converted into analog by the DA converter 14 and sent to the color terminal of the display device 5, a color figure is displayed on the screen. In this example, 64 colors represented by a mixture of 3 colors of 2 bits each can be displayed, and if any combination of 8 of them is written in advance from the data bus 16 to the color specification memory 11, this can be displayed. 3-bit information written in image memory 10 000~
111 and outputs the corresponding color. Therefore, drawing a figure in the image memory 10 means writing specified color codes at all x and y positions on the image memory corresponding to the figure. This writing is performed by sending x and y coordinate data from the processing device 1 to the address bus 15, accessing the image memory 10 via the multiplexer 12, and simultaneously outputting the color code to the data bus 16, thereby eliminating the need for display breaks. It can be executed.
また第4図において18はカーソル制御回路で
あり、ジヨイステイツクからの信号19を受けて
その中のカウンタを更新するとともに、そのカウ
ンタで表わされる数値に対応した位置に十字線を
表示するために、ビデオ信号に重畳される信号2
0を出力する。このカウンタの内容は、データバ
ス16を介して処理装置に読み込まれるので、処
理装置は常に現在のカーソル位置を知ることがで
きるようになつている。 Further, in FIG. 4, 18 is a cursor control circuit which receives a signal 19 from the joystick and updates a counter therein, and also controls the video in order to display a crosshair at a position corresponding to the value represented by the counter. Signal 2 superimposed on the signal
Outputs 0. The contents of this counter are read into the processing device via the data bus 16, so that the processing device always knows the current cursor position.
以上に述べたような構成において、第2図に示
したような図を描くには、まずコマンド1で色コ
ードを001(赤)として円を描く。この場合、円の
パラメータの一つとして、コマンド作成時に自動
的に演算されて記憶されている円の変域を利用す
ることによつて、効率的に円を塗つていく。すな
わち、円に外接した四角形を考え、これを座標の
最大値(xnax、ynax)最小値(xnio、ynio)として
のパラメータの一部として記憶しておけば、円の
図形コマンドを実行するときには、この変域の中
だけで座標x、yを次々と変更し、式(1)に示した
条件が成立すれば、画像メモリの点(x、y)に
指定された色コードを書込んでいく。このように
して円を描いたあと、コマンド2として四角を指
定するとその四角に外接する四角(回転がないと
きにはもとの四角と一致)を変域として、
|X|≦A、|Y|≦B (2)
が計算され、ともに成立すれば四角の内点とみな
して指定された色コード011(青)を塗る。ここで
A、Bは四角の二辺の長さの半分に相当するパラ
メータとして図形コマンド作成時に入力された値
であり、X、Yは、変域内の座標x、yから、図
形の回転角θを表わすパラメータをもとに回転変
換された座標値を示している。同様にしてコマン
ド3で三角形を指定すると、その内点に同様にし
て色コード010(緑)を書込む。このようにして、
各図形を次々と画像メモリ10に書込んでいく
と、各図形の重なつた部分は、もつとも新しく書
込まれた図形の色コードで塗り変えられており、
従つて第2図に示したような図が画面上に表示さ
れることになる。 In the configuration described above, to draw a diagram like the one shown in FIG. 2, first use command 1 to draw a circle with the color code set to 001 (red). In this case, the circle is painted efficiently by using, as one of the parameters of the circle, the range of the circle that is automatically calculated and stored when the command is created. In other words, if you consider a rectangle circumscribed to a circle and memorize it as part of the parameters for the maximum value (x nax , y nax ) and minimum value (x nio , y nio ) of the coordinates, you can use the circle shape command. When executing, the coordinates x and y are changed one after another within this domain, and if the condition shown in equation (1) is satisfied, the specified color code is assigned to the point (x, y) in the image memory. I'll write it down. After drawing a circle in this way, if you specify a square as command 2, the domain will be the square circumscribed to that square (which coincides with the original square if there is no rotation), |X|≦A, |Y|≦ B (2) is calculated, and if both are true, it is regarded as the interior point of the square and painted with the specified color code 011 (blue). Here, A and B are the values input when creating the figure command as parameters corresponding to half the length of the two sides of the square, and X and Y are the rotation angle θ of the figure from the coordinates x and y in the domain. It shows the coordinate values that have been rotationally transformed based on the parameters representing . Similarly, when a triangle is specified using command 3, the color code 010 (green) is written to its interior points in the same way. In this way,
As each figure is written one after another into the image memory 10, the overlapping parts of each figure are naturally recolored with the color code of the newly written figure.
Therefore, a diagram as shown in FIG. 2 will be displayed on the screen.
さて、ここで、次のような問題が生じる。すな
わち第2図において、四角形を削除したくなつた
とき、どのような処理をすればよいか、である。
単純に色コードのみに着用して消去したのでは第
6図のaのようになるであろうし、また四角形の
部分をすべて消去したのでは同図bのようになつ
てしまう。本発明では、このような図形の削除と
挿入とを、第7図に示すように、もつとも自然な
形に実行できるように配慮した。すなわち、本発
明では、ある図形を削除するときには、その図形
によつて隠れていた図形の一部を復元し、また、
挿入のときには、その図形よりもあとに書かれた
図形には何ら影響を与えないようにした。 Now, the following problem arises. In other words, what kind of processing should be performed when a user wants to delete a rectangle in FIG. 2?
If you simply apply and erase only the color code, you will end up with something like a in Figure 6, and if you erase all the rectangular parts, you will end up with something like b in Figure 6. In the present invention, consideration has been given to allowing such deletion and insertion of figures to be carried out in a very natural manner, as shown in FIG. That is, in the present invention, when deleting a certain figure, a part of the figure hidden by the figure is restored, and
When inserting a shape, it does not affect any shapes drawn after it.
このような処理が簡単に実行できるように、本
発明では、図形を第8図に示すようなものとして
定義した。すなわち図形とは、パラメータと座標
値x、yとを入力とし、ある計算条件を満たせば
真(論理値“1”)、満たさなければ偽(論理値
“0”)を出力するような計算体系を持つたもので
ある。その最も簡単な例は、式(1)に示したような
計算体系を持つた円であり、さらに式(2)に示した
ような計算体系を持つた四角である。この計算体
径は、計算機のような処理装置では、パラメータ
の格納位置と、座標x、yとを引数し、論理値
“1”、“0”のいずれかを出力するサブルーチン
として構成できる。また少し専用的な処理装置で
は、パラメータ中の図形の種類を表わす図形コー
ドで起動されるマイクロプログラムとして実現で
きる。 In order to easily carry out such processing, the present invention defines a figure as shown in FIG. 8. In other words, a figure is a calculation system that takes parameters and coordinate values x, y as input, and outputs true (logical value "1") if certain calculation conditions are met, and false (logical value "0") if not. It is something that has. The simplest example is a circle with a calculation system shown in equation (1), and a square with a calculation system shown in equation (2). In a processing device such as a computer, this calculated body diameter can be configured as a subroutine that takes the storage position of the parameter and the coordinates x and y as arguments and outputs a logical value of "1" or "0". Furthermore, in a slightly specialized processing device, it can be implemented as a microprogram activated by a graphic code representing the type of graphic in the parameter.
以上のような図形の定義のもとでは、数式的に
表わされるあらゆる幾何図形はすべて、ここでい
う図形たりうるし、また文字も図形たりうる。す
なわち例えば漢字1字を16×18ドツトから構成さ
れるドツトパターンとして記憶しているとすれ
ば、この漢字は、二辺が16と18(すなわちA=8、
B=9)の、しかもすき間だらけの四角形と考え
ることができる。四角形と同様に、変域が定義さ
れ、拡大率、回転角などのパラメータも属性とし
て持たせられる。すなわち、変域内の座標x、y
からまずこの四角形の内点かどうかを判定し、内
点であればさらにもとの漢字パターン上に座標を
マツピング変換し、もとの漢字パターンのドツト
の有無によつて最終的に内点かどうかを判定する
という処理が付加されるだけである。 Under the above definition of figure, any geometric figure that can be expressed mathematically can be a figure, and letters can also be figures. In other words, for example, if one kanji is stored as a dot pattern consisting of 16 x 18 dots, then this kanji has two sides of 16 and 18 (i.e. A=8,
B=9), and can be thought of as a rectangle with lots of gaps. Similar to a rectangle, a domain is defined, and parameters such as magnification and rotation angle are also given as attributes. That is, the coordinates x, y in the domain
First, it is determined whether it is an interior point of this rectangle, and if it is an interior point, the coordinates are further mapped onto the original kanji pattern, and finally it is determined whether it is an interior point depending on the presence or absence of dots in the original kanji pattern. Only the processing of determining whether or not this is the case is added.
この他に任意の幅を持つ直線も、四角形が一方
向に縮退した、面積をもつた図形として、第8図
に示した定義の範ちゆうで表現できるし、さらに
また、任意の点群を直線で接続してできる閉図形
も同じ定義のもとに実現でき、本発明の図形編集
方式で扱える図形を極めて多様化している。 In addition, a straight line with an arbitrary width can also be expressed as a figure with an area in which a rectangle is degenerated in one direction, within the scope of the definition shown in Figure 8. Closed figures connected by straight lines can also be realized based on the same definition, greatly diversifying the figures that can be handled by the figure editing method of the present invention.
以上に述べたように、各図形は、それぞれに特
有の計算体系を持つているが、これらを一つの計
算体系にまとめて、パラメータ1(図形の種類)
によつてその内部で枝分かれすることで、その図
形固有の計算体系を起動するようにできる。すな
わち入力されたパラメータのうちパラメータ1に
よつて異つたサブルーチンを起動するような総合
的な一つの計算体系とする。このようにすると、
第8図に示した考え方は、本発明方式で用いられ
るあらゆる図形に対して共通に適用できることに
なる。 As mentioned above, each figure has its own unique calculation system, but by combining these into one calculation system, parameter 1 (type of figure)
By branching within it, a calculation system specific to that figure can be activated. That is, one comprehensive calculation system is used in which different subroutines are activated depending on parameter 1 among input parameters. In this way,
The concept shown in FIG. 8 can be commonly applied to all figures used in the method of the present invention.
このとき、ある図形を書込む場合には、その図
形のパラメータを固定し、座標x、yを変化させ
てやればよいが、逆に、座標x、yを固定して、
パラメータを次々と変更するとすれば、どの図形
の時に論理出力1を出すかによつて、その座標点
x、yがどの図形に属する点であるかがわかるこ
とになる。すなわち、たとえば、画面上のカーソ
ル位置x、yをもとに、第3図に示したコマンド
列を下の方から次々と上方向に走査していくとす
る。すなわち、x、yを固定して、パラメータと
してまずコマンドnのパラメータを与え、もし論
理出力が0なら続いてコマンドn−1のパラメー
タを与える。このようなパラメータの変更は、通
常、単にパラメータの先頭アドレスを引数として
上述の総合計算体系を呼ぶだけで実行できる。こ
のようにして最初に論理出力1が出力されるコマ
ンドiが、そのカーソルで指示された図形とな
る。このように、カーソル位置をジヨイステイツ
クである図形上の「任意の点」上に合わせ、図形
コマンド列を逆方向走査するだけで、その図形に
対応した図形コマンドを発見できることになる。
このようにして発見された図形コマンドiを消去
するには、メモリ上で単に消し去り、たとえばi
+1をi、i+2をi+1、…nをn−1という
ように、i以降のコマンド列を繰上げればよい。
このように図形コマンド上での消去は極めて簡単
に実行できるが、表示された図形上では次のよう
にする。すなわち、図形iを消去するために、コ
マンドiに書かれている図形iの変域をまず引出
し、この中で座標x、yを一つ定める。このx、
yのもとで、その図形iの論理出力が1であれ
ば、さらに、パラメータを第3図のコマンド列の
最終コマンドnから出発して次々とコマンドi+
1まで変化し、その時の出力を調べる。もし途中
で論理出力1が出力されれば、その点にはその図
形よりもあとに別の図形が書かれているわけだか
ら、その座標点には何の操作もせずに次の座標に
進む。もしこのときコマンド列n〜i+1の間で
すべて論理出力が0であれば、あとで書かれた図
形がこの点には重畳されていないので、この点
x、yは消去の対象となる。このとき、さらにコ
マンドi−1を起点としてコマンド1までを逆方
向走査し、初めて論理出力1が出力されるコマン
ドを見付け、そのコマンドのパラメータの中に書
かれている色コードでもつて、その点x、yの色
コードを置き換える。すなわち、消去しようとす
る図形の点x、yの色を、それが書かれる以前に
既に書かれていた図形の色と置換える。もしコマ
ンド1まで逆方向走査し、一つも論理出力が1で
なければ、そこには図形はもともとなかつたわけ
だから所定の背景色コード(例えば黒)と置きか
えればよい。このような、コマンド列の逆方向走
査をしつつ、その図形の変域にわたつて座標x、
yを走査するという処理により、その図形に隠れ
ていた他の図形が自然な形で復元され、すでに第
7図に示したような自然な削除処理が実行できる
ことになる。 At this time, if you want to write a certain figure, you can fix the parameters of that figure and change the coordinates x, y, but conversely, if you fix the coordinates x, y,
If the parameters are changed one after another, it can be determined to which figure the coordinate points x and y belong, depending on which figure the logical output 1 is output for. That is, for example, suppose that the command string shown in FIG. 3 is scanned upward one after another from the bottom based on the cursor positions x and y on the screen. That is, with x and y fixed, the parameters of command n are first given as parameters, and if the logical output is 0, then the parameters of command n-1 are given. Such parameter changes can usually be performed by simply calling the above-mentioned comprehensive calculation system using the parameter's starting address as an argument. In this way, the command i that first outputs a logic output of 1 becomes the figure designated by the cursor. In this way, by simply positioning the cursor on the joystick, which is an "arbitrary point" on a figure, and scanning the figure command string in the reverse direction, the figure command corresponding to that figure can be found.
To erase a graphical command i found in this way, simply erase it in memory, e.g. i
The command string after i may be incremented such that +1 is i, i+2 is i+1, . . . n is n-1.
In this way, deletion on a graphic command can be executed extremely easily, but on a displayed graphic, it can be done as follows. That is, in order to erase figure i, the domain of figure i written in command i is first drawn out, and one coordinate x, y is determined therein. This x,
If the logic output of the figure i under y is 1, then the parameter is changed to command i+ one after another starting from the last command n of the command sequence in FIG.
Change it to 1 and check the output at that time. If logical output 1 is output midway, it means that another figure is written at that point after that figure, so proceed to the next coordinate without performing any operations on that coordinate point. At this time, if all logical outputs are 0 between the command string n to i+1, then the points x and y are to be erased because the later drawn figure is not superimposed on this point. At this time, further scan backwards from command i-1 to command 1, find the command that outputs logic output 1 for the first time, and use the color code written in the parameter of that command to Replace the x and y color codes. That is, the color of the points x and y of the figure to be erased is replaced with the color of the figure that was already written before it was written. If a backward scan is performed up to command 1 and there is no logic output of 1, it means that there was originally no figure there, so it can be replaced with a predetermined background color code (for example, black). While scanning the command string in the reverse direction, the coordinates x,
By the process of scanning y, other figures hidden behind that figure are restored in a natural form, and the natural deletion process as shown in FIG. 7 can be executed.
一方、挿入処理では、コマンド列上では単にコ
マンドi以降のコマンドを繰下げ、コマンドiに
新たな図形コマンドを挿入すればよい、これを表
示図形上で実行するには、次のようにする。まず
挿入しようとする図形の変域の中で座標x、yを
定め、その点がその図形の内点であればさらに図
形コマンド列上を図形コマンドnからiまで逆方
向走査し、1つでも論理出力1があればその点は
その後の図形で隠れるべき点であるので何の操作
もせず、次の座標点に進む。もし論理出力がコマ
ンドn〜iの間に1つもなければ、その点には新
しく挿入される図形の色コード書込む。このよう
な処理を、挿入すべき図形の変域全体にわたつて
実行すれば、第7図に示したような自然な挿入処
理が実現できる。 On the other hand, in the insertion process, the commands after command i are simply moved down on the command string, and a new graphic command is inserted into command i. To execute this on the displayed graphic, do as follows. First, determine the coordinates x and y within the domain of the figure to be inserted, and if that point is an interior point of the figure, further scan the figure command sequence in the reverse direction from figure command n to i, and if even one If there is a logic output of 1, that point is a point that should be hidden in the subsequent figure, so no operation is performed and the process proceeds to the next coordinate point. If there is no logical output between commands n to i, the color code of the newly inserted figure is written at that point. If such processing is executed over the entire domain of the figure to be inserted, natural insertion processing as shown in FIG. 7 can be realized.
さらにもし、以前に書かれている図形を拡大し
たり移動したり回転したいという時などには、上
述のようにその図形上の任意の点にカーソルを合
せることで対応する図形コマンドiを見出し、こ
のコマンド中の対応するパラメータを変更する。
このようなコマンド列の上での処理は、適切なマ
ンマシン対話手法で簡単に実現できる。一方、表
示された図形上の変更は、上述した消去処理と挿
入処理を併用すればよい。すなわち古いパラメー
タでの図形を消去し、新しいパラメータでの図形
を挿入する。 Furthermore, if you want to enlarge, move, or rotate a previously drawn figure, you can find the corresponding figure command i by placing the cursor on any point on the figure as described above. Modify the corresponding parameter in this command.
Processing on such a command sequence can be easily realized using appropriate man-machine interaction techniques. On the other hand, changes to the displayed figure can be made by using the above-mentioned deletion process and insertion process together. That is, the figure with the old parameters is deleted and the figure with the new parameters is inserted.
以上述べたように、図を図形コマンド列として
表現し、図形を座標x、yとパラメータとを入力
とした計算体系として表現すると、パラメータを
固定して座標x、yを変更する処理で新しい図形
が書込めるし、パラメータを図形コマンド列の逆
方向走査で変更しつつ座標x、yを変更していく
処理で、既に書込まれている図形の消去、挿入、
変更が容易に実現できるようになり、これにより
多様な図形編集が可能となる。 As mentioned above, if a figure is expressed as a figure command string and a figure is expressed as a calculation system using coordinates x, y and parameters as input, a new figure can be created by fixing the parameters and changing the coordinates x, y. can be written, and by the process of changing the coordinates x and y while changing the parameters by scanning the figure command sequence in the reverse direction, it is possible to delete, insert, and erase the already written figures.
Changes can be easily made, which enables a variety of graphic editing.
本発明方式のもう一つの大きな利点は、図形が
論理出力1を出す座標点x、yの集合として定義
されているところから、図形間の論理演算が簡単
に実行でき、従つて、いくつかの図形の論理接続
で多様な複合図形が定義できる点にある。たとえ
ば図形Aと図形Bとの論理和は、両図形のユニオ
ンAUBとなるが、これは図形Aの計算体系か図
形Bの計算体系のいずれかから論理出力1が出れ
ばよい。すなわち計算体系からの出力間の論理演
算がそのまま図形の論理接続を意味することにな
る。この場合、x、yを次々と変更しつつ両計算
体系の論理和が1となる点に色コードを書いて行
けばよい。 Another great advantage of the method of the present invention is that since a figure is defined as a set of coordinate points x and y that produce a logical output of 1, logical operations between figures can be easily performed. The point is that a variety of complex figures can be defined by logical connections of figures. For example, the logical sum of figure A and figure B becomes the union AUB of both figures, but this can be done if a logical output of 1 is output from either the calculation system of figure A or the calculation system of figure B. In other words, the logical operations between the outputs from the calculation system directly mean the logical connections of the figures. In this case, it is sufficient to write a color code at a point where the logical sum of both calculation systems is 1 while changing x and y one after another.
一方、ある図形Aの否定図形は、第8図の出
力の真偽を反転するだけであるから、たとえば大
きい円Aと小さい円の否定との論理積A・に
よつて輪が定義でき、その書込みには、x、yを
変更しつつ計算体系Aと計算体系Bの出力A、B
がA・=1となる点x、yに色コードを書込め
ばよい。このような論理接続は、第3図に示した
図形コマンド列の中では、一つの図形コマンドと
して表現でき、パラメータの一つとして論理接続
の様式を記憶し、それで接続される図形の情報を
付属情報として持たせればよい。このように、図
形間の論理接続による複合図形も一つの図形とし
て表現でき、その時に与えられた点x、yがその
複合図形の内点かどうかは、各単位図形間での指
定された通りの論理演算を実行して判定できる。
またこの場合、複合図形の変域も、それを構成す
る単位図形の変域間から、論理接続の様式を考慮
しつつ自動的に演算し、決定できる。従つて上述
した本発明の方式においては、他の図形と何ら矛
盾なく取扱うことができる。 On the other hand, a negation figure of a certain figure A simply inverts the truth of the output in Figure 8, so for example, a ring can be defined by the logical product A of the large circle A and the negation of the small circle. To write, output A, B of calculation system A and calculation system B while changing x and y.
All you have to do is write the color code at the points x and y where A.=1. Such a logical connection can be expressed as a single figure command in the figure command string shown in Figure 3, and the style of the logical connection is stored as one of the parameters, and information about the connected figures is attached. Just keep it as information. In this way, a compound figure created by a logical connection between figures can also be expressed as a single figure, and whether a given point It can be determined by performing logical operations.
Further, in this case, the domain of the composite figure can also be automatically calculated and determined from the domains of the unit figures that constitute it, taking into consideration the mode of logical connection. Therefore, in the method of the present invention described above, it can be handled without any contradiction with other figures.
以上詳述したように、本発明による図形編集方
式では、図を図形コマンド列として表現し、その
図形コマンド列を逆方向走査することで編集処理
が容易に実行できるようになつた。この方式を用
いて実際に図形編集装置を構成した結果、多様な
図が簡単な走査で作成できることが実証された。
とくに、出来上つた図形のフアイルには図形コマ
ンド列をそのまま記憶するので、後の再編集が容
易であるだけでなく、図を図として絵素単位でフ
アイルする場合に比べ、記憶容量が通常1/20程度
で済むことが明らかとなつた。 As described in detail above, in the graphic editing method according to the present invention, the editing process can be easily executed by expressing a diagram as a graphic command string and scanning the graphic command string in the reverse direction. As a result of actually configuring a figure editing device using this method, it was demonstrated that a variety of figures can be created by simple scanning.
In particular, since the graphics command string is stored as-is in the completed graphics file, not only is it easy to re-edit it later, but the storage capacity is usually 1 smaller compared to the case where graphics are saved in units of pixels. It has become clear that it can be done with about /20.
本発明方式では、図形ははじめから面積を持つ
たものとして定義されており、通常の計算機グラ
フイツクスが、点間を結ぶ線を基本として構成さ
れ、かつ、このような線の集合、あるいは線間の
領域として面を定義する場合と異なり、編集処理
が整然と実行できる点が極めて特徴的である。と
くに上述の各図形に対応した計算体系は、専用ハ
ードウエア化によつて図形発生器として実現でき
ることになり、通常のグラフイツクスでの直線発
生器、曲線発生器と対照した場合、大きな差異と
なつている。 In the method of the present invention, a figure is defined as having an area from the beginning, and ordinary computer graphics is constructed based on lines connecting points, and a set of such lines or a Unlike the case where a surface is defined as a region, it is extremely distinctive in that the editing process can be executed in an orderly manner. In particular, the calculation system that corresponds to each of the figures mentioned above can be realized as a figure generator by using dedicated hardware, which is a big difference when compared to the straight line generator and curve generator in normal graphics. There is.
また、本発明の方式は、図形を編集してスライ
ド用原画を作る装置が簡単に実現できるばかりで
なく、例えばワードプロセツサ技術との結合によ
るドキユメント・プロセツサとしての用途、静止
画放送での原画像作成など種々考えられ、工業的
価値は極めて高い。 In addition, the method of the present invention not only allows for easy implementation of a device that edits figures to create original images for slides, but also enables applications such as application as a document processor by combining with word processing technology, and original images for still image broadcasting. It can be used for various purposes such as image creation, and has extremely high industrial value.
第1図は、本発明の図形編集方式を実現する装
置の具体的一構成例を示すブロツク線図、第2図
は本発明方式によつて描かれた図のデイスプレイ
結果を示す模式図、第3図は本発明方式によつて
出来上がる図が、図形コマンド列として表現され
ていることを説明するための図、第4図は第1図
の画像制御回路の、具体的実施例を示すブロツク
線図、第5図は第4図のカラー指定メモリの内容
例を示した説明図、第6図は第2図に示した図か
らある図形を削除するときに、従来のやり方での
欠陥結果例を示した説明図、第7図は本発明方式
によつて図形が削除されたり挿入されたりすると
きの図の様子を示す説明図、第8図は本発明の基
本となる図形の考え方を説明するための図であ
る。
1……処理装置、2……キーボード、3……メ
モリ、4……画像制御回路、5……デイスプレイ
装置。
FIG. 1 is a block diagram showing a specific example of the configuration of a device that implements the graphic editing method of the present invention, and FIG. 2 is a schematic diagram showing the display result of a diagram drawn by the method of the present invention. FIG. 3 is a diagram for explaining that the diagram created by the method of the present invention is expressed as a graphic command string, and FIG. 4 is a block line diagram showing a specific example of the image control circuit of FIG. 1. Figure 5 is an explanatory diagram showing an example of the contents of the color specification memory shown in Figure 4, and Figure 6 is an example of defect results obtained using the conventional method when deleting a certain figure from the diagram shown in Figure 2. FIG. 7 is an explanatory diagram showing the state of the figure when a figure is deleted or inserted by the method of the present invention, and FIG. 8 is an explanatory diagram showing the concept of figures which is the basis of the present invention. This is a diagram for 1... Processing device, 2... Keyboard, 3... Memory, 4... Image control circuit, 5... Display device.
Claims (1)
種類と少なくとも幾何パラメータを含む図形の属
性を示すパラメータを図形コマンドとして所定の
順序で記憶する第1の記憶手段と、記憶された上
記図形コマンドを読み出し、表示すべき図のパタ
ーンに展開する処理手段と、上記パターンを記憶
する第2の記憶手段を備え、上記処理手段は、図
形の変更に際して、変更に係る図形コマンドのパ
ラメータに基づき、上記第1の記憶手段に記憶さ
れた図形コマンドのパラメータの少なくとも一部
を上記所定の順序と逆の順序で読み出し、変更す
べき図形に属する各点が表示している図形の内点
か否かを判定して上記第2の記憶手段の記憶した
パターンを変更することを特徴とする図形編集方
式。1. A first storage means for storing, in a predetermined order, parameters indicating the type of the figure and attributes of the figure, including at least geometric parameters, as figure commands for figures constituting a figure to be displayed, and the stored figure commands. and a second storage means for storing the pattern, and when changing a figure, the processing means reads the figure and expands it into a pattern of a diagram to be displayed, and when changing a figure, the processing means reads the At least a part of the parameters of the graphic command stored in the first storage means are read out in an order opposite to the above-described predetermined order, and it is determined whether each point belonging to the figure to be changed is an inner point of the displayed figure. A graphic editing method characterized in that the pattern stored in the second storage means is changed based on the determination.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56093823A JPS57209563A (en) | 1981-06-19 | 1981-06-19 | Diagram editing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56093823A JPS57209563A (en) | 1981-06-19 | 1981-06-19 | Diagram editing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS57209563A JPS57209563A (en) | 1982-12-22 |
| JPH0411908B2 true JPH0411908B2 (en) | 1992-03-02 |
Family
ID=14093114
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56093823A Granted JPS57209563A (en) | 1981-06-19 | 1981-06-19 | Diagram editing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS57209563A (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60153565A (en) * | 1984-01-21 | 1985-08-13 | Hitachi Medical Corp | Method for forming characteristic curve in picture processing |
| JPS62182873A (en) * | 1986-02-05 | 1987-08-11 | Shin Nikkei Co Ltd | Plotting system for fitting |
| JPS6376069A (en) * | 1986-09-19 | 1988-04-06 | Fujitsu Ltd | Display control system |
| JP5417185B2 (en) * | 2010-01-07 | 2014-02-12 | 1stホールディングス株式会社 | Object processing apparatus and object selection method |
-
1981
- 1981-06-19 JP JP56093823A patent/JPS57209563A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS57209563A (en) | 1982-12-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0803107B1 (en) | Method and apparatus for processing a table | |
| JPH05210722A (en) | Graphics-display-tool | |
| US5345544A (en) | Data base system | |
| JP2001526807A (en) | Creating a service | |
| EP0538715B1 (en) | Graphics processing system | |
| US5485563A (en) | System for scaling computerized images | |
| US5231694A (en) | Graphics data processing apparatus having non-linear saturating operations on multibit color data | |
| JPH0411908B2 (en) | ||
| US4625288A (en) | Method and apparatus for creating a structured image data set based on acquired image data | |
| KR102558566B1 (en) | Method for replaying vector image | |
| US6356267B1 (en) | Method of creating two dimensional shapes drawing system | |
| JPH08235344A (en) | Scenario editor | |
| JP2887603B2 (en) | Figure registration control method | |
| JPH0767136B2 (en) | Image processing device | |
| JPH0146905B2 (en) | ||
| JPS6144317B2 (en) | ||
| JPH087656B2 (en) | Menu display device | |
| JPH0456890A (en) | Presentation system and its scenario editing method | |
| JP3015066B2 (en) | Document processing device | |
| JP3397424B2 (en) | Handwriting input device | |
| JP2856243B2 (en) | Checkered pattern automatic creation apparatus and method | |
| JP2671365B2 (en) | Character / graphic editing device | |
| JPS6224833B2 (en) | ||
| JP2586404B2 (en) | Screen editing device | |
| JPS60258680A (en) | Image processor |