JPS6313555Y2 - - Google Patents

Info

Publication number
JPS6313555Y2
JPS6313555Y2 JP9539882U JP9539882U JPS6313555Y2 JP S6313555 Y2 JPS6313555 Y2 JP S6313555Y2 JP 9539882 U JP9539882 U JP 9539882U JP 9539882 U JP9539882 U JP 9539882U JP S6313555 Y2 JPS6313555 Y2 JP S6313555Y2
Authority
JP
Japan
Prior art keywords
hatching
intersection
coordinates
shaped area
recording
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
Application number
JP9539882U
Other languages
Japanese (ja)
Other versions
JPS594050U (en
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 filed Critical
Priority to JP9539882U priority Critical patent/JPS594050U/en
Publication of JPS594050U publication Critical patent/JPS594050U/en
Application granted granted Critical
Publication of JPS6313555Y2 publication Critical patent/JPS6313555Y2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

【考案の詳細な説明】 本考案はX−Y記録装置に関し、特に円グラフ
等のハツチングを速やかに行うことができる記録
装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an X-Y recording device, and more particularly to a recording device that can quickly hatch a pie chart or the like.

X−Y記録装置は、X,Y各方向からのデイジ
タル信号を受けて記録紙上に文字又は記号或いは
グラフ等を作図する装置である。この種の装置
は、通常コンピユータ等の外部装置と接続され、
これら外部装置の出力装置として用いられるのが
普通である。近年、パネルボードからのキー操作
により希望の図形を作図することができるスタン
ドアローン形の装置(例えば出願人の製造、販売
に係るグラフメイト)も出現してきている。
The X-Y recording device is a device that receives digital signals from each of the X and Y directions and draws characters, symbols, graphs, etc. on recording paper. This type of device is usually connected to an external device such as a computer,
It is usually used as an output device for these external devices. In recent years, stand-alone devices (for example, Graphmate, manufactured and sold by the applicant) have appeared that can draw a desired figure by operating keys from a panel board.

この種の装置で、円グラフ中の扇形領域にハツ
チング処理をほどこす場合、以下のような手順で
行われる。第1図は、従来のハツチング方法を説
明するため図である。図に示す円中、直線f1,f2
で囲まれた扇形領域Aにハツチングをほどこす場
合、図に示すような同一傾きをもつl1〜lo(nは整
数)なる直線群とf1,f2及び円との交点の座標を
連立方程式を解いて求め、これら交点間をハツチ
ングする。このような従来の方法では、各交点を
求めるための演算処理が複雑で処理時間がかかる
ので、処理速度が遅くなる。また、ハツチング領
域の境界(ハツチング線法線方向)検出が面倒で
あるため、この検出にも時間がかかつてしまう。
When using this type of device to perform hatching on a fan-shaped area in a pie chart, the following procedure is used. FIG. 1 is a diagram for explaining a conventional hatching method. In the circle shown in the figure, straight lines f 1 and f 2
When hatching is applied to the fan- shaped area A surrounded by Find it by solving simultaneous equations and hatching between these intersection points. In such conventional methods, the arithmetic processing for finding each intersection point is complex and takes a long processing time, resulting in a slow processing speed. Furthermore, since it is troublesome to detect the boundary of the hatching area (in the normal direction of the hatching line), this detection also takes time.

本考案は、このような点に鑑みてなされたもの
であつて、座標系をハツチング線が一方の軸に平
行になる座標系に変換して交点の座標を求めるよ
うにして処理速度の向上を図つたX−Y記録装置
を実現したものである。以下、図面を参照して本
考案を詳細に説明する。
The present invention was developed in view of these points, and improves processing speed by converting the coordinate system to a coordinate system in which the hatching lines are parallel to one axis and determining the coordinates of the intersection point. This realizes the X-Y recording device shown in the figure. Hereinafter, the present invention will be described in detail with reference to the drawings.

第2図は、本考案の一実施例を示す電気的構成
図である。図において、1は各種情報を入力する
キーボード、2は中央処理装置(以下CPUとい
う)で、ハーボードより作図情報を受け、必要に
応じて演算処理を行つた後、作図に関するX,Y
座標データおよび制御信号を出力するものであ
る。該CPUとしては、例えばマイクロコンピユ
ータが用いられる。なお、図示されていないが該
CPUは外部装置からの信号も受けられるように
なつている。3はCPU2に接続されたメモリ、
4はCPU2の出力信号を受けてX方向の駆動信
号を発生する第1の駆動回路、5は同じくCPU
2の出力信号を受けてY方向の駆動信号を発生す
る第2の駆動回路である。6はこれら駆動回路の
出力を受ける駆動部、7は該駆動部に取付けられ
た記録手段である。該記録手段としては、図に示
すようなインクペンの他種々のものが用いられ
る。なお、駆動回路4,5、駆動部6および記録
手段7からなる部分は、いわゆるX−Y記録手段
である。このように構成された装置の動作を説明
すれば、以下のとおりである。
FIG. 2 is an electrical configuration diagram showing an embodiment of the present invention. In the figure, 1 is a keyboard for inputting various information, 2 is a central processing unit (hereinafter referred to as CPU), which receives drawing information from Herboard, performs arithmetic processing as necessary, and then
It outputs coordinate data and control signals. For example, a microcomputer is used as the CPU. Note that although not shown in the figure,
The CPU can also receive signals from external devices. 3 is the memory connected to CPU2,
4 is a first drive circuit that receives the output signal of CPU 2 and generates a drive signal in the X direction; 5 is the same CPU
This is a second drive circuit that receives the second output signal and generates a drive signal in the Y direction. Reference numeral 6 denotes a drive section that receives the outputs of these drive circuits, and 7 indicates a recording means attached to the drive section. As the recording means, various types other than an ink pen as shown in the figure can be used. Note that the portion consisting of the drive circuits 4 and 5, the drive section 6, and the recording means 7 is a so-called XY recording means. The operation of the device configured as described above will be explained as follows.

キーボード或いは外部装置から作画に関する指
令信号がCPU2に入力されると、該CPUは入力
信号に応じたX方向及びY方向の駆動信号PX
PYを出力する。駆動回路4,5はそれぞれPX
PYを受けて駆動部6をX方向及びY方向に駆動
するための高パワーの駆動パルスを出力する。こ
のパルスにより、駆動部6はX,Yそれぞれの移
動方向に所定の距離移動する。CPU2からペン
ダウンの制御信号が与えられているときには、駆
動部6は記録ペン7をダウンさせ記録紙上に(図
示せず)点をプロツトする。記録ペン7は点を記
録した後アツプ状態に復帰するようになつてい
る。以後、同様の操作を繰り返し記録紙上に点の
連続として必要な作画を行う。
When a command signal related to drawing is input to the CPU 2 from a keyboard or an external device, the CPU generates drive signals P X and Y in the X and Y directions according to the input signal.
Output P Y. The drive circuits 4 and 5 are PX , respectively.
In response to P Y , it outputs a high power drive pulse for driving the drive unit 6 in the X direction and the Y direction. This pulse causes the drive unit 6 to move a predetermined distance in each of the X and Y movement directions. When a pen-down control signal is given from the CPU 2, the drive unit 6 brings down the recording pen 7 and plots a point (not shown) on the recording paper. The recording pen 7 is adapted to return to the up state after recording a point. Thereafter, the same operation is repeated to create the necessary drawings as a series of dots on the recording paper.

本考案装置を用いてハツチング処理を行うとき
の操作は、以下のとおりである。今第3図に示す
ような円内の扇形領域Bにハツチング処理をほど
こす場合を考える。ハツチングは、図に示すよう
に各交点SP1とep1,SP2とep2…を直線で結ぶこ
とにより行う。ハツチング処理の速度を向上させ
るには、各交点の座標をいかに速やかに算出する
ことができるかにかかつている。そこで、第3図
に示す座標系から第4図に示すようにハツチング
線がY軸に平行になる座標系に変換することを考
える。
The operations for performing hatching using the device of the present invention are as follows. Let us now consider the case where a hatching process is applied to a fan-shaped area B within a circle as shown in FIG. Hatching is performed by connecting each intersection point SP 1 and ep 1 , SP 2 and ep 2 . . . with straight lines as shown in the figure. Improving the speed of the hatching process depends on how quickly the coordinates of each intersection can be calculated. Therefore, consider converting the coordinate system shown in FIG. 3 to a coordinate system in which hatching lines are parallel to the Y axis as shown in FIG. 4.

第3図において、θをx軸とハツチング線との
なす角、f3,f4は扇形領域Bの境界線、θeをx軸
と境界線f3とのなす角、θsをx軸と境界線f4との
なす角、Pを各ハツチング線間のピツチと定義す
る。第3図に示す図形を第4図に示す図形に変換
した場合において、変換後のθe,θsに対応する角
をそれぞれe,sとすると、これらの角度相
互の間にはそれぞれ次式で示される関係が成立す
る。
In Figure 3, θ is the angle between the x-axis and the hatching line, f 3 and f 4 are the boundaries of fan-shaped area B, θe is the angle between the x-axis and the boundary line f 3 , and θs is the x-axis and the boundary. The angle P formed with line f 4 is defined as the pitch between each hatching line. When the figure shown in Figure 3 is converted to the figure shown in Figure 4, if the angles corresponding to θe and θs after conversion are respectively e and s, the relationship between these angles is expressed by the following equations. A relationship is established.

e=θe+(90゜−θ) (1) s=θs+(90゜−θ) (2) またxy座標系とXY座標系の関係は、次式で与
えられる。
e=θe+(90°-θ) (1) s=θs+(90°-θ) (2) Also, the relationship between the xy coordinate system and the XY coordinate system is given by the following equation.

x=Xcos(θ−90゜)+Ysin(θ−90゜) (3) y=−Xsin(θ−90゜)+Ycos(θ−90゜) (4) 第3図に示すxy座標系を、(1),(2)で示される
変換式を用いてXY座標系に変換すると、ハツチ
ング線はY軸に平行になる。ハツチング軸がY軸
に平行になる結果、交点SP1′とeP1′,SP2′と
eP2′…の座標は容易に求めることができる。例え
ば、交点SP1′のX座標X1が求まるとeP1′のX座標
もX1と同じであり演算処理しないで求めること
ができる。次に、交点SP2′のX座標はX1にピツ
チPを加算するだけで求まり求まつた値は即
eP2′のX座標になる。このように簡単に求めるこ
とができる。各交点のX座標が求まると、Y座標
は直線f3′,f4′或いは円を表わす式に当該X座標
を代入することにより求めることができる。
x = Xcos (θ-90°) + Ysin (θ-90°) (3) y = -Xsin (θ-90°) + Ycos (θ-90°) (4) The xy coordinate system shown in Figure 3 is When converted to the XY coordinate system using the conversion formulas shown in 1) and (2), the hatching line becomes parallel to the Y axis. As a result of the hatching axis becoming parallel to the Y axis, the intersection points SP 1 ′, eP 1 ′, and SP 2
The coordinates of eP 2 ′... can be easily determined. For example, when the X coordinate X 1 of the intersection point SP 1 ' is determined, the X coordinate of eP 1 ' is also the same as X 1 and can be determined without arithmetic processing. Next, the X coordinate of the intersection point SP 2 ' can be found by simply adding the pitch P to X 1 , and the found value is immediately
It becomes the X coordinate of eP 2 ′. It can be easily obtained in this way. Once the X-coordinate of each intersection point is determined, the Y-coordinate can be determined by substituting the X-coordinate into an equation representing a straight line f 3 ', f 4 ' or a circle.

このようにして求まつた各交点の座標は、(3),
(4)式を用いて逆回転させられ、元のxy座標系の
座標となる。上述したような演算操作は、全て
CPU2が行う。交点SP1,eP1の座標が求まると、
SP1を始点eP1を終点とする直線(点を連続記録
したもの)でハツチングが行われる。始点と終点
は逆でもかまわない。次にSP2とeP2間がハツチ
ングされる。以下同様の操作を繰り返して、全領
域のハツチング処理を終了する。このように、本
考案によればハツチングを行う2点間の各交点の
座標を容易に求めることができるので、処理速度
が向上する。また、ハツチングを行うときの境界
S,Eの検出も容易になる。即ち、境界の検出は
第4図のXY座標系で管理しておけば、X方向の
管理のみで境界の管理ができて都合がよい。
The coordinates of each intersection found in this way are (3),
It is reversely rotated using equation (4) and becomes the coordinates of the original xy coordinate system. All the calculation operations mentioned above are
Performed by CPU2. Once the coordinates of the intersection SP 1 and eP 1 are found,
Hatching is performed using a straight line (continuously recorded points) with SP 1 as the starting point and eP 1 as the ending point. The starting point and ending point may be reversed. Next, the space between SP 2 and eP 2 is hatched. The same operation is repeated thereafter to complete the hatching process for the entire area. As described above, according to the present invention, the coordinates of each intersection between two points to be hatched can be easily determined, so that the processing speed is improved. Furthermore, the boundaries S and E can be easily detected when hatching is performed. That is, if the boundary detection is managed using the XY coordinate system shown in FIG. 4, it is convenient because the boundary can be managed only in the X direction.

上述の説明では、円グラフの扇形領域をハツチ
ングする場合を例にとつて説明したが、円グラフ
に限る必要はない。関数の形で表わせるものであ
れば、どのような図形であつてもよい。例えば楕
円、双曲線等であつてもよい。また、ハツチング
線がx軸と平行となるように座標系を回転させて
も同様の効果をおさめることができる。
In the above description, the case where a fan-shaped area of a pie chart is hatched is taken as an example, but the invention is not limited to a pie chart. Any figure may be used as long as it can be expressed in the form of a function. For example, it may be an ellipse, a hyperbola, etc. Furthermore, the same effect can be achieved by rotating the coordinate system so that the hatching lines are parallel to the x-axis.

以上、詳細に説明したように、本考案によれば
座標系をハツチング線が座標系の一方の軸に平行
になるように座標系を回転させてハツチングの交
点の座標を求めるようにして処理速度の向上を図
つたX−Y記録装置を実現することができる。
As explained in detail above, according to the present invention, the processing speed is increased by rotating the coordinate system so that the hatching lines are parallel to one axis of the coordinate system and determining the coordinates of the intersection of the hatchings. It is possible to realize an X-Y recording device with improved performance.

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

第1図、第3図、第4図はハツチング操作を示
す図、第2図は本考案の一実施例を示す電気的構
成図である。 1……キーボード、2……CPU、3……メモ
リ、4,5……駆動回路、6……駆動部、7……
記録手段。
1, 3, and 4 are diagrams showing a hatching operation, and FIG. 2 is an electrical configuration diagram showing an embodiment of the present invention. 1...Keyboard, 2...CPU, 3...Memory, 4, 5...Drive circuit, 6...Drive unit, 7...
Recording means.

Claims (1)

【実用新案登録請求の範囲】 キーボードより作図情報を受け、必要に応じて
演算処理を行つた後、作図に関するX,Y座標デ
ータおよび制御信号を出力する中央処理装置と、
この中央処理装置からの出力に基づき、指示され
たX,Y座標の位置にプロツトするX−Y記録手
段を備え、円グラフなどを作図することのできる
X−Y記録装置において、 前記中央処理装置を、円グラフ等の扇形領域を
ハツチングするに際し、 (イ) ハツチング角をθとしたとき、ハツチング線
が一方の軸に平行になるように扇形領域を
(90゜−θ)だけ回転させ、 (ロ) この状態でハツチング線と扇形境界線との交
点の座標を求め、 (ハ) その後、求めた座標を再び元の位置まで逆回
転させて元の扇形領域の交点の座標に逆変換
し、 (ニ) このような演算を行つて求めた交点間をハツ
チング角θでハツチングするための座標データ
を発生する ような処理を行う処理手段を含むように構成した
ことを特徴とするX−Y記録装置。
[Scope of Claim for Utility Model Registration] A central processing unit that receives drawing information from a keyboard, performs arithmetic processing as necessary, and then outputs X, Y coordinate data and control signals related to drawing;
In an X-Y recording device capable of plotting a pie chart or the like, the X-Y recording device is equipped with an X-Y recording means for plotting at a designated X, Y coordinate position based on the output from the central processing unit, When hatching a sector-shaped area such as a pie chart, (a) When the hatching angle is θ, rotate the sector-shaped area by (90° − θ) so that the hatching line is parallel to one axis, and ( (b) In this state, find the coordinates of the intersection of the hatching line and the fan-shaped boundary line, (c) Then, reversely rotate the found coordinates back to the original position and convert them back to the coordinates of the intersection of the original fan-shaped area, (d) An X-Y record characterized by being configured to include processing means for generating coordinate data for hatching at a hatching angle θ between the intersection points obtained by performing such calculations. Device.
JP9539882U 1982-06-25 1982-06-25 X-Y recording device Granted JPS594050U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9539882U JPS594050U (en) 1982-06-25 1982-06-25 X-Y recording device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9539882U JPS594050U (en) 1982-06-25 1982-06-25 X-Y recording device

Publications (2)

Publication Number Publication Date
JPS594050U JPS594050U (en) 1984-01-11
JPS6313555Y2 true JPS6313555Y2 (en) 1988-04-18

Family

ID=30227834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9539882U Granted JPS594050U (en) 1982-06-25 1982-06-25 X-Y recording device

Country Status (1)

Country Link
JP (1) JPS594050U (en)

Also Published As

Publication number Publication date
JPS594050U (en) 1984-01-11

Similar Documents

Publication Publication Date Title
US6278445B1 (en) Coordinate input device and method having first and second sampling devices which sample input data at staggered intervals
CA2047984A1 (en) Image rotation method and image rotation processing apparatus
JPS6313555Y2 (en)
CN113650021A (en) Control method, device and equipment of mechanical arm, computer medium and mechanical arm
JP2578116B2 (en) Straight line detection method
JPS58154887A (en) Cursor function
JP3113664B2 (en) Coordinate input method and device
JPS5852255B2 (en) Interactive character/graphic/symbol input/output device
JPH0280849U (en)
JP2641726B2 (en) Interactive graphics processor
JPH0145662B2 (en)
JPS59194269A (en) On-line character recognition system
JPS63155223A (en) Touch coordinate input device
JP2751099B2 (en) Drawing tracing method and apparatus
JPH0296279A (en) Graphic forming device
JPH0573207A (en) Pointing device
JPS61279908A (en) Robot teaching method
JPS5855548B2 (en) I'm not sure what to do.
JPH0462105B2 (en)
JPS61190390A (en) Cursor display system for display unit
JPH08297591A (en) Performance evaluation program
JPH033264B2 (en)
JPH0451870B2 (en)
JPH0642251B2 (en) Dimension line display method
JPH0488561A (en) Method and device for connection processing of body constitutional graphic