JPH01116888A - Segment display device - Google Patents
Segment display deviceInfo
- Publication number
- JPH01116888A JPH01116888A JP27522787A JP27522787A JPH01116888A JP H01116888 A JPH01116888 A JP H01116888A JP 27522787 A JP27522787 A JP 27522787A JP 27522787 A JP27522787 A JP 27522787A JP H01116888 A JPH01116888 A JP H01116888A
- Authority
- JP
- Japan
- Prior art keywords
- value
- end point
- variation
- variable
- coordinates
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 229920006395 saturated elastomer Polymers 0.000 claims abstract description 7
- 238000010586 diagram Methods 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Image Generation (AREA)
- Complex Calculations (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、例えばドツト構成の表示部を備えたデジタ
ル電話機において、その表示部に線分を表示する線分表
示装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a line segment display device for displaying line segments on the display section of, for example, a digital telephone equipped with a dot-configured display section.
近年開発されているデジタル電話機は従来のアナログ電
話で提供されていた通話サービスの他、各種の付加サー
ビスができるようKなっている。Digital telephones that have been developed in recent years are capable of providing various additional services in addition to the call services provided by conventional analog telephones.
そのサービスの一つに簡単な図示データを伝送して表示
するものがある。これは例えば1024X824ドツト
のタブレットから座標データを毎秒147点ないしは7
3点受けとシ、それをLCD上の128×104ドツト
の区間に1/8倍して表示するものなどがある。One of these services is to transmit and display simple graphical data. For example, this means that the coordinate data from a 1024 x 824 dot tablet is 147 points or 7 points per second.
There is a 3-point receiver and a screen that displays it multiplied by 1/8 in an area of 128 x 104 dots on the LCD.
この表示を行なうため従来は始点および終点座標を直角
座標系で指定し、その間を直線の方程式によって補間し
ながら描画していた。In order to perform this display, conventionally, the coordinates of the starting point and the ending point were specified in a rectangular coordinate system, and the drawing was performed while interpolating between them using a straight line equation.
しかしながらこのような従来の装置は前述の処理をCP
U Kよって行なうことになるが、電話機に内蔵するC
PUは表示データのみ扱かうのでなく、むしろ表示デー
タの優先度は低くなっているので、従来の方法では表示
のための処理量が多く、処理速度と表示速度の整合がと
れず、スムーズな表示が行なえなかった。However, such conventional devices perform the above-mentioned processing using CP.
This will be done by UK, but the C
The PU does not only handle display data, but rather the display data has a low priority, so conventional methods require a large amount of processing for display, making it difficult to match the processing speed and display speed, making it difficult to display smoothly. could not be done.
とのような問題を解決するためにこの発明は、始点およ
び終点座標をもとに正接または余割を求める手段と、そ
の求められた結果をもとに非飽和領域の線分を表示する
手段と、飽和領域を表示する手段を備えたものである。In order to solve the problems described above, the present invention provides a means for determining the tangent or cosecant based on the coordinates of the starting point and the end point, and a means for displaying a line segment in an unsaturated region based on the determined result. and a means for displaying the saturated region.
一変数の最少変化単位毎に三角関数値をもとにして他の
変数が求められ非飽和領域の描画が行なわれ、一方の変
数が最終値に達するとその点と終点座標が最短距離で結
ばれる。For each minimum unit of change of one variable, other variables are calculated based on the trigonometric function value and a non-saturated region is drawn, and when one variable reaches its final value, that point and the coordinates of the end point are connected by the shortest distance. It will be done.
第1図はこの発明の一実施例を示すブロック図である。 FIG. 1 is a block diagram showing one embodiment of the present invention.
図において、1は正接演算器、2は余割演算器であシ、
入力される始点座標および終点座標を直交座標系で表わ
したデータをもとにtanθおよびcotoを演算する
ものである。3は描画器であシ、直交座標系で表わされ
る一方の変数を最少単位で変化させ彦がら先に求めたt
an eまたはcotoの値をもとに他方の変数の値を
求め順次線分を描画するものである。このとき、tIL
nθまたはcotoの値は演算処理を簡略化するために
「1」よシ大きい方の値を用い、小数点以下は切捨てて
いる。また、最少単位で変化させる変数は変化量の少な
い方を採用している。またこの描画器には一方の変数を
最少変化単位で変化させながら他方の変数の値を前述の
基準によって決められたtanθまたはcotoの値を
基に求め、順次線分を描画する非飽和領域描画手段と、
いずれか一方の変数の値が最終値に達したとき、その地
点から最終座標まで最短距離の線分で結ぶ飽和領域描画
手段とを備えている。In the figure, 1 is a tangent operator, 2 is a cosecant operator,
Tan θ and coto are calculated based on data representing input starting point coordinates and ending point coordinates in a rectangular coordinate system. 3 is a drawing device, and one variable expressed in the orthogonal coordinate system is changed in the smallest unit, and the t obtained earlier is
Based on the value of ane or coto, the value of the other variable is determined and line segments are drawn sequentially. At this time, tIL
For the value of nθ or coto, a value larger than “1” is used to simplify the calculation process, and the decimal places are rounded down. In addition, for variables that are changed in the smallest unit, the one with the smallest amount of change is used. This drawing device also uses non-saturated area drawing that sequentially draws line segments by changing one variable in the minimum unit of change while calculating the value of the other variable based on the value of tanθ or coto determined by the above-mentioned criteria. means and
When the value of one of the variables reaches a final value, a saturated region drawing means is provided that connects the point to the final coordinate with a line segment having the shortest distance.
このように構成された装置の動作を第2図に示すフロー
チャートに示している。始点座標(xl。The operation of the apparatus configured in this way is shown in the flowchart shown in FIG. Starting point coordinates (xl.
y+)および終点座標(zz+yz)が入力されるとX
座標の差ΔX=12 Xlおよびy座標の差ΔF=7
271が演算され(ステップ100 、101 ) 、
その値をもとにtanθ=jy/Δz 、 eotθ=
ΔX/Δyが演算される(ステップ102 、103
)。この演算結果をもとにtan #またはcotoの
いずれかを選択するが、ここでは描画する直線が第3図
に示すように傾斜が45度以上であるとするとtanθ
がlよシ大きくなるので、そちらを選択する(ステップ
104)。このとき、Xの変化量はyの変化量よシ小さ
いので、Xを最少単位で変化させながら横線を描画し、
Xの変化量とtanθの値から求められ、丸められたy
の値の量だけ縦線を描画する(ステップ105)。これ
を1 ’:: X 2になるまで繰返しく 。y+) and end point coordinates (zz+yz) are input.
Difference in coordinates ΔX=12 Difference in Xl and y coordinates ΔF=7
271 is calculated (steps 100, 101),
Based on that value, tanθ=jy/Δz, eotθ=
ΔX/Δy is calculated (steps 102, 103
). Based on this calculation result, either tan # or coto is selected. Here, if the straight line to be drawn has an inclination of 45 degrees or more as shown in Figure 3, then tan θ
is larger than l, so that is selected (step 104). At this time, the amount of change in X is smaller than the amount of change in y, so a horizontal line is drawn while changing X in the smallest unit,
The rounded y calculated from the amount of change in X and the value of tanθ
Vertical lines are drawn by the amount of the value (step 105). Repeat this until it becomes 1'::X2.
ステップ106 ) 、その時点で7 = 72となっ
ていれば描画を終了し、7”)’2になっていなければ
終点まで縦線を描画する(ステップ108)。第3図の
例はX =12になった時点でF = 72となってい
ないので、記号イの縦線を描画している。第4図の例は
傾斜が45度以下の例で、このときはステップ104で
cotoを選択し、最少変化させる変数はyであり、ス
テップ106で7=72を判断し、「YES」となって
いればステップ107でy=12を判断し、rNOjで
あればステップ108は記号口の横線を描画した例であ
る。Step 106), if 7 = 72 at that point, the drawing is finished, and if it is not 7")'2, a vertical line is drawn to the end point (step 108). In the example of Fig. 3, X = When F = 12, F = 72 is not reached, so a vertical line with symbol A is drawn.The example in Figure 4 is an example where the slope is 45 degrees or less, and in this case, coto is selected in step 104. However, the variable to be changed the least is y, and it is determined in step 106 that 7=72. If it is "YES", y = 12 is determined in step 107, and if rNOj, step 108 is the horizontal line at the symbol entrance. This is an example of drawing.
以上説明したようにこの発明は、始点および終点座標か
ら求められた線分の角度と、−変数を最少単位変化させ
たときの変化量から他の変数の変化量を求め、変化量が
飽和したときはその飽和点と終点とを直線で結ぶようk
したので、従来のものよji) CPUの処理量が少な
くなシ、スムーズな表示が行なえるように々るという効
果を有する。As explained above, this invention calculates the amount of change in other variables from the angle of the line segment found from the coordinates of the starting point and the end point, and the amount of change when the - variable is changed by the minimum unit, and then When the saturation point and the end point are connected by a straight line k
Therefore, compared to the conventional one, it has the effect of reducing the processing amount of the CPU and allowing smooth display.
【図面の簡単な説明】
第1図はこの発明の一実施例を示すブロック図、第2図
はその動作を示すフローチャート、第3図および第4図
は表示状態の例を示す図である。
1・・・・正接演算器、2・・・・余割演算器、3・・
・・描画器、4・・・・表示器。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a flowchart showing its operation, and FIGS. 3 and 4 are diagrams showing examples of display states. 1... Tangent operator, 2... Cosecant operator, 3...
...Drawer, 4...Display device.
Claims (1)
線分表示装置において、 始点座標と終点座標のデータをもとに正接の値または余
割の値の少なくとも一方を求める三角関数演算器と、 一方の変数を最少変化単位で変化させながら他方の変数
の値を三角関数演算器の演算結果をもとに求め順次線分
を描画する非飽和領域描画器と、いずれか一方の変数の
値が最終値に達したときその地点から終点座標までを最
短距離の線分で結ぶ飽和領域描画器とから構成される線
分表示装置。[Claims] In a line segment display device that specifies a start point and an end point on a screen and displays a line segment between them, at least a tangent value or a cosecant value is calculated based on data of start point coordinates and end point coordinates. A trigonometric function calculator that calculates one variable, and a non-saturated area drawer that sequentially draws line segments by calculating the value of the other variable based on the calculation results of the trigonometric function calculator while changing one variable in the minimum change unit. , and a saturated area drawer that connects the point to the end point coordinates with a line segment of the shortest distance when the value of one of the variables reaches the final value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP27522787A JPH01116888A (en) | 1987-10-30 | 1987-10-30 | Segment display device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP27522787A JPH01116888A (en) | 1987-10-30 | 1987-10-30 | Segment display device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01116888A true JPH01116888A (en) | 1989-05-09 |
Family
ID=17552476
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP27522787A Pending JPH01116888A (en) | 1987-10-30 | 1987-10-30 | Segment display device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01116888A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0468618A2 (en) * | 1990-07-03 | 1992-01-29 | Sony United Kingdom Limited | Video signal generation |
US5313566A (en) * | 1990-07-03 | 1994-05-17 | Sony United Kingdom Ltd. | Composite image generation with hidden surface removal using a single special effect generator |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5266518A (en) * | 1975-11-28 | 1977-06-02 | Sumitomo Chemical Co | Method of coating concrete or asphalt with powder |
JPS6274151A (en) * | 1985-09-27 | 1987-04-04 | Daikin Ind Ltd | Divider for linear interpolator |
JPS6292077A (en) * | 1985-10-18 | 1987-04-27 | Fujitsu Ltd | Pattern generating system |
-
1987
- 1987-10-30 JP JP27522787A patent/JPH01116888A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5266518A (en) * | 1975-11-28 | 1977-06-02 | Sumitomo Chemical Co | Method of coating concrete or asphalt with powder |
JPS6274151A (en) * | 1985-09-27 | 1987-04-04 | Daikin Ind Ltd | Divider for linear interpolator |
JPS6292077A (en) * | 1985-10-18 | 1987-04-27 | Fujitsu Ltd | Pattern generating system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0468618A2 (en) * | 1990-07-03 | 1992-01-29 | Sony United Kingdom Limited | Video signal generation |
US5313566A (en) * | 1990-07-03 | 1994-05-17 | Sony United Kingdom Ltd. | Composite image generation with hidden surface removal using a single special effect generator |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH10319898A (en) | Resolution converting method and display control device using it | |
US9183428B2 (en) | Method and device for implementing original handwriting trace, and electronic device | |
JPH10188004A (en) | Method and device for plotting | |
JPH05241502A (en) | Scrolling control method for display image in image display device | |
JPH01116888A (en) | Segment display device | |
JPH06110642A (en) | Sound output control method | |
JP4811177B2 (en) | Graph display device and graph display processing program | |
JPH05165597A (en) | Method and device for panel control | |
JPH0519952A (en) | Handwritten character input and display device | |
JP2684609B2 (en) | Graphic display method in graphic data processing device | |
JPH0736606A (en) | Waveform data analysis system | |
JPS61156290A (en) | Graphic display unit | |
JP2932844B2 (en) | Multi-branch shape figure display method | |
KR100618963B1 (en) | Method for inputting the button in portable terminal | |
JPH01116889A (en) | Straight line drawing system in clipping area | |
JP2006201331A (en) | Digital image display method, digital image display apparatus, digital image display program and recording medium in which digital image display program is recorded | |
JPH07220098A (en) | Plotting data generator for circular arc by polygonal approximation | |
CN114995738A (en) | Transformation method, device, electronic equipment, storage medium and program product | |
JPH0449474A (en) | Method and device for generating thick line | |
JPH063470Y2 (en) | Small electronic devices | |
JPH1131233A (en) | Method and device for plotting polygon | |
JPH0659814A (en) | Pointer controller | |
JPH01142921A (en) | Mouse type input device | |
JPH04326010A (en) | Thermal analysis data processor | |
JPH1131232A (en) | Method and device for plotting polygon |