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
JPH0420505B2 - - Google Patents
[go: Go Back, main page]

JPH0420505B2 - - Google Patents

Info

Publication number
JPH0420505B2
JPH0420505B2 JP61136900A JP13690086A JPH0420505B2 JP H0420505 B2 JPH0420505 B2 JP H0420505B2 JP 61136900 A JP61136900 A JP 61136900A JP 13690086 A JP13690086 A JP 13690086A JP H0420505 B2 JPH0420505 B2 JP H0420505B2
Authority
JP
Japan
Prior art keywords
hatching
start point
pattern
pattern data
graphic
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
JP61136900A
Other languages
Japanese (ja)
Other versions
JPS62293486A (en
Inventor
Junichi Nakamura
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP13690086A priority Critical patent/JPS62293486A/en
Publication of JPS62293486A publication Critical patent/JPS62293486A/en
Publication of JPH0420505B2 publication Critical patent/JPH0420505B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

【発明の詳細な説明】 〔概要〕 グラフイツク画面上に描かれた隣接する図形に
同一パターンのハツチングを施す図形出力装置で
あつて、夫々の図形のハツチングの開始点の絶対
座標を、ハツチングパターンデータ内の相対座標
に変換する変換手段と、相対座標へハツチングパ
ターンデータ転送開始点を移動する開始点移動手
段とを備えることにより、ずれの無いハツチング
を施すことができる。
[Detailed Description of the Invention] [Summary] A graphic output device that hatches the same pattern on adjacent figures drawn on a graphics screen, which uses the absolute coordinates of the hatching start point of each figure as a hatching pattern. By providing a conversion means for converting data into relative coordinates and a start point moving means for moving a hatching pattern data transfer start point to relative coordinates, it is possible to perform hatching without deviation.

〔産業上の利用分野〕[Industrial application field]

本発明は、隣接する複数の図形に同一パターン
のハツチングを施す図形出力装置に係り、特にハ
ツチングパターンにずれを無くすことができる図
形出力装置に関するものである。
The present invention relates to a graphic output device that hatches the same pattern on a plurality of adjacent graphics, and particularly to a graphic output device that can eliminate deviations in hatching patterns.

近来、各種コンピユータの出力端末機、或いは
ワードプロセツサ等にグラフイツクデイスプレイ
装置が多用されるようになつてきた。
In recent years, graphic display devices have come into widespread use as output terminals for various computers, word processors, and the like.

このような装置で表示された複数の隣接図形に
同一パターンのハツチングを施す場合にハツチン
グのずれが生じない方法が望まれている。
There is a need for a method that does not cause hatching misalignment when hatching the same pattern on a plurality of adjacent figures displayed by such an apparatus.

〔従来の技術〕[Conventional technology]

一般にグラフイツク画面上に描かれた図形にハ
ツチングを施す場合には、図形内のハツチング開
始位置を指示するハツチング開始点、及びハツチ
ングパターンを指定し、指定されたハツチングパ
ターンデータをハツチング開始点から図形内の全
域に展開するという方法が採られている。
Generally, when hatching a figure drawn on a graphics screen, a hatching start point indicating the hatching start position within the figure and a hatching pattern are specified, and the specified hatching pattern data is started from the hatching start point. A method is adopted in which the image is expanded to the entire area within the figure.

更に詳しく説明すると、第5図において、ハツ
チング開始点はハツチング処理の基準となる点で
画面への書込みの基準となる位置を表すものであ
る。ハツチングパターンデータはハツチングの模
様となるデータで、普通m×nドツトの矩形領域
として定義される。転送開始点はハツチングパタ
ーンデータの読み出しの基準となる点である。
More specifically, in FIG. 5, the hatching start point is a reference point for hatching processing and represents a reference position for writing on the screen. Hatching pattern data is data forming a hatching pattern, and is usually defined as a rectangular area of m×n dots. The transfer start point is a reference point for reading hatching pattern data.

従つて、例えば三角形の図形にハツチングする
場合に、まず、固定、或いはユーザ定義の図中に
破線で示すような矩形のハツチングパターンデー
タ(例えば8×8ドツト)を用意しておき、その
予め定められた転送開始点(例えば矩形領域の左
上角)から順次読み出されたこのハツチングパタ
ーンデータを図形内に指定されたハツチング開始
点から図形の境界線を探しつつ、画面上の境界線
内全域に亙つて転送するという処理を行う。ここ
で境界線の外の部分にはハツチングが表示され
ず、境界線の内側だけに表示される。
Therefore, when hatching a triangular figure, for example, first prepare fixed or user-defined rectangular hatching pattern data (for example, 8 x 8 dots) as shown by the broken line in the figure, and then This hatching pattern data read out sequentially from a specified transfer start point (for example, the upper left corner of a rectangular area) is searched for the boundary line of the figure from the specified hatching start point within the figure, and is transferred within the boundary line on the screen. A process of transferring data over the entire area is performed. Here, hatching is not displayed outside the border, but only inside the border.

これは模様付きのタイルを開始点を起点として
図形内に敷き詰めることに相当し“タイリング”
と呼ばれている。
This is equivalent to laying patterned tiles in a shape starting from the starting point, and is called “tiling”.
It is called.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来方法によれば、矩形のハツチングパタ
ーンデータの転送開始点が、例えば第6図に示す
ように、矩形領域の左上点というように固定にな
つている為に、図形のハツチングパターンが図形
に対するハツチング開始点の相対座標によつて一
意的に定まる。
According to the above conventional method, the transfer start point of the rectangular hatching pattern data is fixed, for example, the upper left point of the rectangular area as shown in FIG. It is uniquely determined by the relative coordinates of the hatching start point with respect to the figure.

これは、例えばハツチング開始点を起点として
唯1種類の模様で“タイリング”することに相当
する。
This corresponds to, for example, "tiling" with only one type of pattern starting from the hatching start point.

しかしこのような方法によると、ハツチング開
始点のとり方によつては、隣接する図形A,Bの
夫々に対するハツチング開始点がずれることがあ
り、従つて図形A,Bのハツチングを同一パター
ンで施しても、相互のハツチングパターンに“ず
れ”が生ずるという問題点がある。
However, with this method, depending on how the hatching starting points are taken, the hatching starting points for adjacent figures A and B may be shifted, so it is difficult to hatch figures A and B using the same pattern. However, there is a problem in that a "shift" occurs between the hatching patterns.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の原理ブロツク図を示す。 FIG. 1 shows a block diagram of the principle of the present invention.

図において、1はハツチングを行うべき図形の
指定されたハツチング開始点の画面上の絶対座標
を例えば矩形のハツチングパターンデータ内の相
対座標に二次元的に変換する変換手段、 2は変換手段1によつて変換された相対座標へ
ハツチングパターンデータの転送開始点の位置を
移動してハツチングパターンデータを再構成する
開始点移動手段である。
In the figure, 1 is a conversion means for two-dimensionally converting the absolute coordinates on the screen of a designated hatching start point of a figure to be hatched into relative coordinates within rectangular hatching pattern data, and 2 is a conversion means 1. The start point moving means moves the position of the transfer start point of the hatching pattern data to the relative coordinates converted by , and reconstructs the hatching pattern data.

従つて開始点移動手段2によつて移動した位置
からハツチングを開始するように構成されてい
る。
Therefore, hatching is started from the position moved by the starting point moving means 2.

〔作用〕[Effect]

ハツチング対象図形内に指定されたハツチング
開始点のグラフイツク画面上における夫々の絶対
座標を求め、この絶対座標を矩形のハツチングパ
ターンデータ内の相対座標に二次元的に変換し、
開始点移動手段2によつてこのハツチングパター
ンデータの転送開始点を上記相対座標へシフトし
た後、ハツチングパターンデータを画面上へ転送
する。
Find the absolute coordinates of each hatching start point specified in the hatching target figure on the graphic screen, two-dimensionally convert these absolute coordinates into relative coordinates in the rectangular hatching pattern data,
After the transfer start point of this hatching pattern data is shifted to the above-mentioned relative coordinates by the start point moving means 2, the hatching pattern data is transferred onto the screen.

このシフト量はハツチング開始点の絶対座標に
よつて一意的に定まり、画面の絶対座標上同一の
領域では同一ハツチングパターンとなるように制
御されるため、相互の縦/横方向のハツチングの
ずれは解消される。(第3図参照) これはハツチング開始点の絶対座標に従つてタ
イルの模様をシフトした後、図形内に敷き詰める
ことに相当し、見掛け上は絶対座標上に敷き詰め
たタイルの上から内部を切り抜いた図形を被せた
ようになる。
This shift amount is uniquely determined by the absolute coordinates of the hatching start point, and is controlled so that the same hatching pattern is obtained in the same area in the absolute coordinates of the screen. will be resolved. (Refer to Figure 3) This corresponds to shifting the tile pattern according to the absolute coordinates of the hatching start point and then laying it all over the figure.Apparently, the interior is cut out from above the tile laid out on the absolute coordinates. It looks like a shape has been covered.

このようにして隣接する図形に同一パターンで
“ずれ”のないハツチングを施すことができる。
In this way, adjacent figures can be hatched in the same pattern without any "shift".

〔実施例〕〔Example〕

以下、本発明の一実施例を第2図〜第4図を参
照して説明する。第2図で第1図に対応するもの
は1点鎖線で囲んで示している。全図を通じて同
一符号は同一対象物を示す。第2図はグラフイツ
クデイスプレイ装置のブロツク図である。
Hereinafter, one embodiment of the present invention will be described with reference to FIGS. 2 to 4. In FIG. 2, parts corresponding to those in FIG. 1 are shown surrounded by a dashed line. The same reference numerals indicate the same objects throughout the figures. FIG. 2 is a block diagram of a graphic display device.

演算部1aは、隣接した図形A,Bに同一パタ
ーンのハツチングを施す時に、夫々の図形のハツ
チング開始点を、画面上の絶対座標から矩形のハ
ツチングパターンデータ内の相対座標に変換する
機能を有する。例えば、第3図aに示すように、
m×nドツトの矩形のハツチングパターンデータ
を用いて、図形Aのハツチングを行う場合、図形
Aのハツチング開始点の画面上絶対座標xa,ya
は、矩形のハツチングパターンデータ内の相対座
標ia,jaに、 ia=xa mod m, ja=ya mod n (ここでmodは余り演算を示す) のように変換される。但し、画面上、及び矩形の
ハツチングパターンデータの原点を左上点とし
た。
The calculation unit 1a has a function of converting the hatching start point of each figure from absolute coordinates on the screen to relative coordinates within the rectangular hatching pattern data when hatching the same pattern on adjacent figures A and B. have For example, as shown in Figure 3a,
When hatching figure A using rectangular hatching pattern data of m×n dots, the absolute coordinates on the screen of the hatching start point of figure A are x a , y a
is converted to the relative coordinates i a , j a in the rectangular hatching pattern data as follows: i a = x a mod m, j a = y a mod n (here mod indicates the remainder operation) . However, the origin of the rectangular hatching pattern data on the screen was set to the upper left point.

図形Bについてもハツチング開始点の画面上絶
対座標xb,ybに相当するハツチングパターンデー
タ内の相対座標ib,jbとすると、同様に、 ib=xb mod m, jb=yb mod n によつて変換される。
Similarly, for figure B, if the relative coordinates i b and j b in the hatching pattern data correspond to the absolute coordinates x b and y b on the screen of the hatching start point, i b = x b mod m, j b = y b mod n.

開始点移動部2aは、例えば第3図bに図形A
の場合を示すように、演算部1aで求められた相
対座標ia,jaへハツチングパターンデータの転送
開始点をシフトさせる機能を有する。
The starting point moving unit 2a is, for example, a figure A in FIG. 3b.
As shown in the case of FIG .

即ち、転送開始点が矩形領域の左上角となるよ
うにハツチングパターンをX方向、Y方向に巡回
させ再構成(タイルの模様をずらす)する。
That is, the hatching pattern is circulated in the X and Y directions and reconfigured (the tile pattern is shifted) so that the transfer start point is at the upper left corner of the rectangular area.

図形パターンメモリ3は、ハツチングを含む各
種の図形、或いは図形要素のパターンが格納され
たメモリである。
The graphic pattern memory 3 is a memory in which patterns of various figures including hatching or patterns of graphic elements are stored.

図形処理部4は、キーボード5からの入力に基
いて図形パターンメモリ3から図形パターンを読
み出して、大きさ、位置、及び方向等を処理する
機能を有する。
The graphic processing section 4 has a function of reading a graphic pattern from the graphic pattern memory 3 based on input from the keyboard 5 and processing the size, position, direction, etc. of the graphic pattern.

6はデイスプレイ(以下CRTという)、7は
CRT6に表示されるデータが格納されるデータ
メモリ、8は主制御部を示す。
6 is a display (hereinafter referred to as CRT), 7 is
A data memory in which data to be displayed on the CRT 6 is stored; 8 indicates a main control section.

このような構成及び機能を有するので、CRT
6に表示された隣接する図形A,Bに対して同一
パターンのハツチングを施す時の作用を、第4図
のフローチヤートにより説明すると、 まず、図形Aのハツチング開始点、及びパタ
ーンを指定すると、図形処理部4は指定された
ハツチングパターンデータを図形パターンメモ
リ3より読み出して、ハツチング開始点のグラ
フイツク画面上の絶対座標xa,yaを求める。
With such a configuration and function, CRT
The operation when hatching the same pattern on adjacent figures A and B displayed in Figure 6 will be explained using the flowchart in Figure 4. First, when the hatching start point and pattern of figure A are specified, The graphic processing unit 4 reads the specified hatching pattern data from the graphic pattern memory 3 and determines the absolute coordinates x a and y a of the hatching starting point on the graphic screen.

次に絶対座標xa,yaを演算部1aで余り演算
して矩形のハツチングパターンデータ内の相対
座標ia,jaに変換する。
Next, the absolute coordinates x a , y a are computed with a remainder in the calculation unit 1a and converted into relative coordinates i a , j a within the rectangular hatching pattern data.

開始点移動部2aにより矩形パターンデータ
の転送開始点を相対座標ia,jaへシフトする。
The start point moving unit 2a shifts the transfer start point of the rectangular pattern data to relative coordinates i a and j a .

ハツチングパターンを敷き詰める。 Lay out the hatching pattern.

図形Bについても、絶対座標xb,yb、相対座
標ib,jbとしての〜のフローと同様にして
ハツチングする。
Shape B is also hatched in the same manner as the flow of ~ with absolute coordinates x b , y b and relative coordinates i b , j b .

このように図形A,Bのハツチング開始点の絶
対座標によつて、ハツチングパターンデータの転
送開始点をシフトした後、ハツチングを行うこと
により、第3図cに示すように、隣接する図形内
に“ずれ”のない同一ハツチングパターンを描く
ことができる。
In this way, by shifting the transfer start point of the hatching pattern data using the absolute coordinates of the hatching start points of figures A and B, and then performing hatching, as shown in Figure 3c, It is possible to draw the same hatching pattern without any "shift".

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、隣接する
図形内に同一パターンのハツチングを施す時に、
ずれを無くすことができるという効果がある。
As explained above, according to the present invention, when hatching the same pattern in adjacent figures,
This has the effect of eliminating misalignment.

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

第1図は本発明の原理ブロツク図、第2図は本
発明による実施例のブロツク図、第3図は第2図
の説明図、第4図は第2図のフローチヤート、第
5図はハツチング方法の説明図、第6図は従来方
法の説明図である。 図において、1は変換手段、1aは演算部、2
は開始点移動手段、2aは開始点移動部、3は図
形パターンメモリ、4は図形処理部、6はCRT、
7はデータメモリ、8は主制御部を示す。
Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a block diagram of an embodiment of the invention, Fig. 3 is an explanatory diagram of Fig. 2, Fig. 4 is a flowchart of Fig. 2, and Fig. 5 is a block diagram of an embodiment of the invention. An explanatory diagram of the hatching method, FIG. 6 is an explanatory diagram of the conventional method. In the figure, 1 is a conversion means, 1a is an arithmetic unit, and 2
2a is a starting point moving means, 2a is a starting point moving unit, 3 is a graphic pattern memory, 4 is a graphic processing unit, 6 is a CRT,
7 is a data memory, and 8 is a main control section.

Claims (1)

【特許請求の範囲】 1 出力画面に描かれる隣接する複数の図形に、
同一パターンのハツチングを施す出力装置であつ
て、 前記隣接する各々の図形のハツチング開始点の
絶対座標を夫々ハツチングパターンデータ内の相
対座標に二次元的に変換する変換手段1と、 該変換手段1によつて変換された相対座標へ前
記ハツチングパターンデータの転送開始点を移動
して該ハツチングパターンデータを再構成する開
始点移動手段2とを備え、 該開始点移動手段2によつて移動した位置から
夫々の図形のハツチングを開始することを特徴と
する図形出力装置。
[Claims] 1. A plurality of adjacent figures drawn on the output screen,
An output device that performs hatching in the same pattern, comprising: a conversion means 1 that two-dimensionally converts the absolute coordinates of the hatching start point of each of the adjacent figures into relative coordinates within hatching pattern data; and the conversion means. a starting point moving means 2 for reconfiguring the hatching pattern data by moving the transfer starting point of the hatching pattern data to the relative coordinates converted by 1; A graphic output device characterized in that hatching of each graphic starts from a moved position.
JP13690086A 1986-06-12 1986-06-12 Graphic output device Granted JPS62293486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13690086A JPS62293486A (en) 1986-06-12 1986-06-12 Graphic output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13690086A JPS62293486A (en) 1986-06-12 1986-06-12 Graphic output device

Publications (2)

Publication Number Publication Date
JPS62293486A JPS62293486A (en) 1987-12-21
JPH0420505B2 true JPH0420505B2 (en) 1992-04-03

Family

ID=15186188

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13690086A Granted JPS62293486A (en) 1986-06-12 1986-06-12 Graphic output device

Country Status (1)

Country Link
JP (1) JPS62293486A (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6042790A (en) * 1983-08-17 1985-03-07 富士通株式会社 Surface smearing pattern generation system

Also Published As

Publication number Publication date
JPS62293486A (en) 1987-12-21

Similar Documents

Publication Publication Date Title
JPH07104958B2 (en) How to activate a data display system
Mundy et al. RADIUS common development environment
JPH0420505B2 (en)
JP2502274B2 (en) Image converter
JPS6022871A (en) Method and apparatus of enlarging and reduction
US5495618A (en) System for augmenting two dimensional data sets in a two dimensional parallel computer system
JPH07120415B2 (en) Airbrush processing method
JP2625045B2 (en) Image processing device
JP2701056B2 (en) Secondary representation method for three-dimensional objects
JP3221513B2 (en) Graphic display method and apparatus
JPS6335070A (en) Image information processor
JPS60128572A (en) Output device
JP2596204B2 (en) High-speed layout device for image data
JPH0548876A (en) Picture processor with grid function
JPS59123925A (en) Address control system
JP2670093B2 (en) Plate-making material output device
JPH11144049A (en) Image conversion method and apparatus
JP2945028B2 (en) Image processing designated area information calculation device
JPS62112478A (en) Method for forming mesh image
EP0766206A2 (en) Image processing method and apparatus
JPH0456353B2 (en)
JPH0228893A (en) Graphic drawing processor
JPH1040275A (en) How to display CAD data
JPH03107156A (en) Layout device for printing plate making
JPH0214373A (en) Three-dimensional point designating system