JPH04123448U - graphic display device - Google Patents

graphic display device

Info

Publication number
JPH04123448U
JPH04123448U JP2748591U JP2748591U JPH04123448U JP H04123448 U JPH04123448 U JP H04123448U JP 2748591 U JP2748591 U JP 2748591U JP 2748591 U JP2748591 U JP 2748591U JP H04123448 U JPH04123448 U JP H04123448U
Authority
JP
Japan
Prior art keywords
display
line pattern
line
figures
stored
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
JP2748591U
Other languages
Japanese (ja)
Inventor
賢治 吉沢
Original Assignee
カシオ計算機株式会社
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 カシオ計算機株式会社 filed Critical カシオ計算機株式会社
Priority to JP2748591U priority Critical patent/JPH04123448U/en
Publication of JPH04123448U publication Critical patent/JPH04123448U/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】 【目的】 図形をリアルタイム表示する場合に、複数の
線が重なっても図形が消えることがなく、対象外の図形
を消すことなく表示できるようにする。 【構成】 描画No.レジスタの内容に基づいて線パター
ンNo.を求め(S2)、編集される図形データの範囲がカ
ーソルにより指定され、カーソルの表示位置に基づいて
表示用メモリ13cのアドレスを求める(S3)。次に、
求められたアドレスから表示用メモリ13cに記憶され
た図形データと、描画No.レジスタで指定された線パタ
ーンとの排他的論理和が演算され、演算結果は表示用メ
モリ13cに記憶される(S4)。描画No.レジスタの内
容を+1する(S5)。そして、全線処理終了か否か判断
され(S6)、全線処理が終了するまで上述の処理を繰り
返し実行する。
(57) [Summary] [Purpose] To display figures in real time so that the figures do not disappear even when multiple lines overlap, and figures that are not targeted can be displayed without disappearing. [Structure] The line pattern number is determined based on the contents of the drawing number register (S2), the range of graphic data to be edited is specified by the cursor, and the address of the display memory 13c is determined based on the display position of the cursor. (S3). next,
From the obtained address, the exclusive OR of the graphic data stored in the display memory 13c and the line pattern specified by the drawing number register is calculated, and the calculation result is stored in the display memory 13c (S4 ). The contents of the drawing number register are incremented by 1 (S5). Then, it is determined whether or not all line processing has been completed (S6), and the above-described processing is repeatedly executed until all line processing is completed.

Description

【考案の詳細な説明】[Detailed explanation of the idea]

【0001】0001

【産業上の利用分野】[Industrial application field]

この考案は図形のリアルタイム表示を行なう図形表示装置に関する。 This invention relates to a graphic display device that displays graphics in real time.

【0002】0002

【従来の技術】[Conventional technology]

従来、日本語ワードプロセッサ等の文書作成装置では、線で描画された図形を 表示できる作画機能を備えたものがある。この種の文書作成装置において、図形 を編集(移動、複写等)する場合は、図形をリアルタイム表示する。この場合、 編集する範囲を指定して、その範囲内で対象となる図形(表示メモリに記憶)と 線パターンとの排他的論理和を演算し、演算結果に基づいた図形を表示するのが 一般的である。排他的論理和を使用する理由は、対象図形に対して排他的論理和 を演算すると、その図形を消去する場合には、対象図形に対して排他的論理和を もう一度演算することにより、すでに書かれている対象外の図形を消すことなく 対象図形だけを消すことができるからである。 Traditionally, document creation devices such as Japanese word processors have not been able to handle figures drawn with lines. There are some that have a drawing function that can be displayed. In this type of document creation device, graphic When editing (moving, copying, etc.), display the shape in real time. in this case, Specify the range to edit and select the target shape (stored in display memory) within that range. It calculates the exclusive OR with the line pattern and displays the figure based on the calculation result. Common. The reason for using exclusive OR is that exclusive OR is applied to the target shape. If you want to erase the shape, perform exclusive OR on the target shape. By performing the calculation again, you can avoid erasing the already drawn shapes that are not the target. This is because only the target figure can be erased.

【0003】0003

【考案が解決しようとする課題】[Problem that the idea aims to solve]

しかし、この方法を使用すると同一線上に偶数本の線がある場合、重なった所 は消えてしまう。例えば、図6(A)に示すような矩形図形と図6(B)に示すよう な直線図形があり、これらの図形が図6(C)のような位置関係で表示された場合 、両方の図形を構成する線を、図7に示すような線パターンで排他的論理和を演 算して表示すると図6(D)のようになり、2つの線が重なった部分は線が消えて しまう。即ち、図8に示すように同一線上にある図形は、排他的論理和で演算さ れ、更に排他的論理和が演算されると、消えてしまうという欠点がある。 However, when using this method, if there are an even number of lines on the same line, the overlapped areas will disappear. For example, a rectangular figure as shown in Figure 6(A) and a rectangular figure as shown in Figure 6(B). If there are straight line figures and these figures are displayed in the positional relationship as shown in Figure 6(C), , perform exclusive OR on the lines that make up both figures using the line pattern shown in Figure 7. When calculated and displayed, it will look like Figure 6 (D), and the line will disappear where the two lines overlap. Put it away. In other words, as shown in Figure 8, figures that are on the same line are calculated by exclusive OR. It has the disadvantage that if the exclusive OR is further calculated, it disappears.

【0004】 また、すでに排他的論理和で書かれている線上に、2本目の線を書かないよう に方法も考えられるが、この場合、予定箇所にすでに線が書かれているか否かを 確認する必要があるため、描画処理に時間がかかるという欠点がある。0004 Also, avoid drawing a second line on a line that has already been written using exclusive OR. Another method is possible, but in this case, it is necessary to check whether a line has already been drawn at the planned location. The drawback is that the drawing process takes time because it needs to be confirmed.

【0005】 この考案の課題は、図形をリアルタイム表示する場合に、複数の線が重なって も図形が消えることがなく、対象外の図形を消すことなく表示できるようにする ことである。[0005] The problem with this idea is that when displaying shapes in real time, multiple lines overlap. Also, shapes do not disappear, and shapes that are not targeted can be displayed without disappearing. That's true.

【0006】[0006]

【課題を解決するための手段】[Means to solve the problem]

この考案の手段は次の通りである。 入力手段1(図1の機能ブロック図を参照、以下同じ)は、図形を入力する。 記憶手段2は、入力手段1により入力された図形を記憶する。 表示手段3は、記憶手段2に記憶された図形を表示する。 選択手段4は、図形を表示するための線パターンを選択する。 表示制御手段5は、選択手段4により選択された線パターンと記憶手段2に記 憶された図形との排他的論理和を演算し演算結果に基づいて図形を表示させる。 The means of this invention are as follows. Input means 1 (see the functional block diagram of FIG. 1, the same applies hereinafter) inputs a figure. The storage means 2 stores the figures input by the input means 1. The display means 3 displays the graphics stored in the storage means 2. The selection means 4 selects a line pattern for displaying a figure. The display control means 5 stores the line pattern selected by the selection means 4 and the storage means 2. An exclusive OR with the stored figure is calculated and the figure is displayed based on the calculation result.

【0007】[0007]

【作用】[Effect]

この考案の手段の作用は次の通りである。 入力手段1により入力された図形は記憶手段2に記憶され、表示手段3で表示 される。図形をリアルタイム表示する場合、図形を表示するための線パターンが 選択手段4により選択され、表示制御手段5は選択された線パターンと、記憶手 段2に記憶された図形との排他的論理和を演算し、演算結果に基づいて図形を表 示させる。 従って、図形をリアルタイム表示する場合に、複数の線が重なっても図形が消 えることがなく、対象外の図形を消すことなく表示することができる。 The function of this device is as follows. The figure input by the input means 1 is stored in the storage means 2 and displayed on the display means 3. be done. When displaying shapes in real time, the line pattern for displaying the shapes is The selected line pattern is selected by the selection means 4, and the display control means 5 displays the selected line pattern and the memory hand. Calculate the exclusive OR with the figure stored in stage 2 and display the figure based on the operation result. Let me show you. Therefore, when displaying a shape in real time, the shape will disappear even if multiple lines overlap. It is possible to display non-target figures without erasing them.

【0008】[0008]

【実施例】【Example】

以下、一実施例を図2ないし図5を参照して説明する。なお、実施例は図形を 表示できる日本語ワードプロセッサに適用した例を示す。図2は日本語ワードプ ロセッサの回路構成を示すブロック図である。入力部11は文字、図形を入力す る。入力部11から入力された文字、図形はCPU12に入力される。CPU1 2は予め記憶された制御プログラムに基づいて各部を制御するもので、入力部1 1の他、RAM13、表示部14、印刷部15、および外部記憶部16が接続さ れている。そして、CPU12は入力部11から入力された文字、図形をRAM 13に記憶させる。RAM13は、CPU12の制御により文字、図形データの 書込み/読み出しが行なわれるもので、文書データ領域13a、ワーク領域13 b、表示用メモリ13cを備えている。表示用メモリ13cは表示部14に表示 される表示データを記憶するメモリであり、表示1ドットに対して1ビットの記 憶領域が対応し、ビット内容が「1」ならばその表示ドットは点灯する。 Hereinafter, one embodiment will be described with reference to FIGS. 2 to 5. In addition, in the example, the figure is An example applied to a displayable Japanese word processor is shown below. Figure 2 is a Japanese wordpress. FIG. 2 is a block diagram showing a circuit configuration of a processor. The input section 11 is used to input characters and figures. Ru. Characters and figures input from the input section 11 are input to the CPU 12. CPU1 2 controls each section based on a pre-stored control program; the input section 1 1, a RAM 13, a display section 14, a printing section 15, and an external storage section 16 are connected. It is. Then, the CPU 12 stores the characters and figures input from the input unit 11 in the RAM. 13 to memorize it. The RAM 13 stores character and graphic data under the control of the CPU 12. Writing/reading is performed in the document data area 13a and the work area 13. b. It is equipped with a display memory 13c. The display memory 13c is displayed on the display section 14. This is a memory that stores the display data to be displayed, and one bit is recorded for one display dot. If the storage area corresponds and the bit content is "1", the display dot lights up.

【0009】 表示部14は、例えばドットマトリクス型液晶表示装置により構成され、文書 データおよび図形データを表示する。印刷部15は、例えばサーマルプリンタに より構成されるもので、文書データおよび図形データを印刷する。外部記憶部1 6は、RAM13から読み出された文書データおよび図形データを記憶する。[0009] The display unit 14 is composed of, for example, a dot matrix type liquid crystal display device, and displays documents. Display data and graphical data. The printing unit 15 is, for example, a thermal printer. Prints document data and graphic data. External storage unit 1 6 stores document data and graphic data read from the RAM 13.

【0010】 次に、上記実施例の動作を説明する。入力部11から入力された図形はRAM 13の文書データ領域13aに格納される。そして、文書データ領域13aに格 納された図形は、表示用メモリ13cとの排他的論理和が演算され、表示部14 に表示される。図形をリアルタイム編集(移動、複写等)する場合には、まずカ ーソル等により範囲の指定を行ない、その範囲内で対象となる図形を表示用メモ リ13cと線パターンとの排他的論理和を演算して表示される。0010 Next, the operation of the above embodiment will be explained. The figure input from the input section 11 is stored in the RAM. 13 document data area 13a. Then, it is stored in the document data area 13a. The stored graphics are subjected to an exclusive OR operation with the display memory 13c, and displayed on the display section 14. will be displayed. When editing a shape in real time (move, copy, etc.), first Specify a range using a cursor, etc., and display the target shape within that range as a memo. The exclusive OR of the line pattern 13c and the line pattern is calculated and displayed.

【0011】 図3(1)〜(4)は、リアルタイム表示用として容易された4つの線パターンを 示す図である。この場合、夫々の線パターンは図3(1)の線パターンを1ドット ずつずらしたものである。[0011] Figures 3 (1) to (4) show four line patterns that have been simplified for real-time display. FIG. In this case, each line pattern is one dot of the line pattern in Figure 3 (1). It is shifted by one step.

【0012】 描画処理において、複数の線を描画する場合は1本目は図3(1)の線パターン 、2本目は図3(2)の線パターン、3本目は図3(2)の線パターン、4本目は図 3(4)の線パターン、5本目は最初に戻って図3(1)の線パターンというように 、線パターンを順次変更して排他的論理和を演算する。そうすると、1本の線を 表示する場合は図4(1)に示すように表示され、2本の線が重なったときは図4 (2)に示すように表示され、3本の線が重なったときは図4(3)に示すように表 示される。以下、図4(4),図4(5),図4(6),図4(7),図4(8)に示すよ うに表示される。0012 In the drawing process, when drawing multiple lines, the first line is the line pattern shown in Figure 3 (1). , the second line is the line pattern shown in Figure 3(2), the third line is the line pattern shown in Figure 3(2), and the fourth line is the line pattern shown in Figure 3(2). 3 (4) line pattern, the 5th line goes back to the beginning and becomes the line pattern in Figure 3 (1), and so on. , sequentially change the line pattern and calculate exclusive OR. Then, one line When displayed, it is displayed as shown in Figure 4 (1), and when two lines overlap, Figure 4 It will be displayed as shown in (2), and when three lines overlap, it will be displayed as shown in Figure 4 (3). shown. Below, as shown in Figure 4 (4), Figure 4 (5), Figure 4 (6), Figure 4 (7), and Figure 4 (8). displayed.

【0013】 図5は描画処理の動作を示すフローチャートである。まず、ステップS1では CPU12に内蔵された描画No.レジスタ(図示せず)に、2進データ「000 00000」を書き込んで記憶内容を初期設定する。[0013] FIG. 5 is a flowchart showing the operation of the drawing process. First, in step S1 Binary data “000” is stored in the drawing number register (not shown) built into the CPU 12. 00000" to initialize the memory contents.

【0014】 ステップS2においては、描画No.レジスタの内容に基づいて線パターンNo.を 求める。即ち、今の場合は描画No.レジスタの内容「00000000」と更新 データ「00000011」との論理積(AND)を演算し、線パターンNo.「 00000000」が求められる。この場合、線パターンNo.「0000000 0」は図3(1)に示す線パターンを指定することになる。同様に、線パターンNo .「00000001」は図3(2)に示す線パターン、線パターンNo.「0000 0002」は図3(3)に示す線パターン、線パターンNo.「00000003」 は図3(4)に示す線パターンに対応する。[0014] In step S2, the line pattern number is determined based on the contents of the drawing number register. demand. In other words, in this case, the content of the drawing number register is updated to "00000000". The logical product (AND) with the data “00000011” is calculated, and the line pattern No. “ 00000000" is required. In this case, line pattern No. “0000000 0'' specifies the line pattern shown in FIG. 3(1). Similarly, line pattern No. "00000001" is the line pattern shown in Figure 3 (2), line pattern No. "0000 0002" is the line pattern shown in Figure 3 (3), line pattern No. "00000003" corresponds to the line pattern shown in FIG. 3(4).

【0015】 続くステップS3では、編集される図形データの範囲がカーソルにより指定さ れ、カーソルの表示位置に基づいて表示用メモリ13cのアドレスを求める。こ こで、カーソルにより指定される表示位置には始点と終点で指定される場合や、 矩形の範囲が指定される場合などがある。[0015] In the following step S3, the range of graphic data to be edited is specified with the cursor. Then, the address of the display memory 13c is determined based on the display position of the cursor. child Here, the display position specified by the cursor may be specified by the start point and end point, or In some cases, a rectangular range is specified.

【0016】 ステップS4では、ステップS3で求められたアドレスから表示用メモリ13 cに記憶された図形データと、指定された線パターン即ち図3(1)の線パターン との排他的論理和が演算され、演算結果は表示用メモリ13cに記憶される。こ の結果、図4(1)に示すような線パターンで、図形データが表示される。[0016] In step S4, the display memory 13 is The graphic data stored in c and the specified line pattern, that is, the line pattern in Figure 3 (1) The exclusive OR is calculated, and the calculation result is stored in the display memory 13c. child As a result, the graphic data is displayed in a line pattern as shown in FIG. 4(1).

【0017】 次に、ステップS5において描画No.レジスタの内容「00000000」を +1し、この場合は「00000001」とする。[0017] Next, in step S5, the contents of the drawing number register "00000000" are +1, in this case "00000001".

【0018】 ステップS6では、全線処理終了か否か即ち編集すべき全部の図形データにつ いて描画処理が終了したか否かが判断される。ステップS6で、YESと判断さ れた場合は図5の処理を終了し、NOの場合はステップS2に戻る。[0018] In step S6, it is determined whether or not all line processing has been completed, that is, all the graphic data to be edited is checked. It is then determined whether or not the drawing process has been completed. In step S6, it is determined as YES. If the answer is NO, the process of FIG. 5 is ended, and if the answer is NO, the process returns to step S2.

【0019】 いまの場合、まだ処理すべき図形データが残っているので、ステップS6では NOと判断されてステップS2に戻る。以下、上述と同様に描画No.レジスタの 内容「00000001」と更新データ「00000011」との論理積(AN D)を演算し、線パターンNo.「00000001」が求められる。この場合、 線パターンNo.「00000001」は図3(2)に示す線パターンを指定する。 ステップS3では、編集される図形データの範囲がカーソルにより指定され、カ ーソルの表示位置に基づいて表示用メモリ13cのアドレスを求める。ステップ S4では、ステップS3で求められたアドレスから表示用メモリ13cに記憶さ れた図形データと、図3(2)の線パターンとの排他的論理和が演算され、演算結 果は表示用メモリ13cに記憶される。この結果、図4(2)に示すような線パタ ーンで、図形データが表示される。次に、ステップS5において描画No.レジス タの内容「00000001」を+1して、「00000002」とする。以下 、ステップS6でYESと判断されるまで、上述と同様にステップS2〜S6の 処理が繰り返し実行される。[0019] In this case, there is still graphic data to be processed, so in step S6 If NO is determined, the process returns to step S2. Below, write the drawing number register in the same way as above. Logical AND (AN) of content “00000001” and update data “00000011” D) is calculated, and line pattern No. "00000001" is obtained. in this case, Line pattern No. "00000001" specifies the line pattern shown in FIG. 3(2). In step S3, the range of graphic data to be edited is specified by the cursor, and The address of the display memory 13c is determined based on the display position of the cursor. step In S4, the address obtained in step S3 is stored in the display memory 13c. The exclusive OR of the drawn graphic data and the line pattern in Figure 3 (2) is calculated, and the calculation result is calculated. The results are stored in the display memory 13c. As a result, the line pattern shown in Figure 4(2) The shape data is displayed on the screen. Next, in step S5, the drawing number register The contents of the data "00000001" are incremented by 1 to become "00000002". below , steps S2 to S6 are performed in the same manner as described above until YES is determined in step S6. The process is executed repeatedly.

【0020】[0020]

【考案の効果】[Effect of the idea]

この考案によれば、図形編集の際に排他的論理和を演算するリアルタイム表示 において、線パターンを1本ずつずらすことにより、複数の線が重なっても図形 が消えることがなく、対象外の図形を消すことなく表示することができる。従っ て、計算量を増やすことなく表示確認ができる。 According to this invention, real-time display that calculates exclusive OR when editing shapes By shifting the line pattern one by one, even if multiple lines overlap, the shape does not disappear, and non-target figures can be displayed without disappearing. follow This allows you to check the display without increasing the amount of calculation.

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

【図1】この考案の機能ブロック図である。FIG. 1 is a functional block diagram of this invention.

【図2】回路構成を示すブロック図である。FIG. 2 is a block diagram showing a circuit configuration.

【図3】複数の線パターンを示す図である。FIG. 3 is a diagram showing a plurality of line patterns.

【図4】図形の表示状態を示す図である。FIG. 4 is a diagram showing a display state of figures.

【図5】動作を示すフローチャートである。FIG. 5 is a flowchart showing the operation.

【図6】図形の表示例を示す図である。FIG. 6 is a diagram illustrating an example of graphic display.

【図7】線パターンの一例を示す図である。FIG. 7 is a diagram showing an example of a line pattern.

【図8】図形データを排他的論理和で演算する状態を示
す図である。
FIG. 8 is a diagram showing a state in which graphic data is operated by exclusive OR.

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

1…入力手段 2…記憶手段 3…表示手段 4…選択手段 5…表示制御手段 11…入力部 12…CPU 13…RAM 14…表示部 15…印刷部 16…外部記憶部 1...Input means 2...Storage means 3...Display means 4...Selection means 5...Display control means 11...Input section 12...CPU 13...RAM 14...Display section 15...Printing department 16...External storage unit

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】図形を入力する入力手段と、この入力手段
により入力された図形を記憶する記憶手段と、この記憶
手段に記憶された図形を表示する表示手段と、図形を表
示するための線パターンを選択する選択手段と、この選
択手段により選択された線パターンと上記記憶手段に記
憶された図形との排他的論理和を演算し演算結果に基づ
いて図形を表示させる表示制御手段とを具備したことを
特徴とする図形表示装置。
1. An input means for inputting a figure, a storage means for storing the figure input by the input means, a display means for displaying the figure stored in the memory means, and a line for displaying the figure. A selection means for selecting a pattern, and a display control means for calculating an exclusive OR of the line pattern selected by the selection means and the figure stored in the storage means and displaying the figure based on the calculation result. A graphic display device characterized by:
JP2748591U 1991-04-22 1991-04-22 graphic display device Pending JPH04123448U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2748591U JPH04123448U (en) 1991-04-22 1991-04-22 graphic display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2748591U JPH04123448U (en) 1991-04-22 1991-04-22 graphic display device

Publications (1)

Publication Number Publication Date
JPH04123448U true JPH04123448U (en) 1992-11-09

Family

ID=31911767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2748591U Pending JPH04123448U (en) 1991-04-22 1991-04-22 graphic display device

Country Status (1)

Country Link
JP (1) JPH04123448U (en)

Similar Documents

Publication Publication Date Title
JPH04123448U (en) graphic display device
JP2713219B2 (en) Graphic display device
JP2887603B2 (en) Figure registration control method
US4829292A (en) Method for displaying box cursors
JPS6144317B2 (en)
JPH05143575A (en) Input character display method by means of enlarged character
JPS6366630A (en) Input device for print position
JPS63244226A (en) Display device
JP3035126B2 (en) Information processing device
JP2799499B2 (en) Composition design equipment
JPH067307B2 (en) Cursor display method
JP2560999B2 (en) String output method
JPH06161728A (en) Flowchart generation system
JPH0525115B2 (en)
JPH0445875B2 (en)
JPH0436430B2 (en)
JPH1185733A (en) Document editing device and its method and recording medium
JPH06110442A (en) Character and figure processor and method for deforming character of figure
JPS6080897A (en) Display unit
JPH0589214A (en) Editing device
JPH0258158A (en) Documentation device
JPH0778129A (en) Arrow-added ruled line input device
JPS62986A (en) Document processor
JPH06332435A (en) Information processor
JPS63200190A (en) Information processor