[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JP3387561B2 - Triangle creation method in figure editing system - Google Patents

Triangle creation method in figure editing system

Info

Publication number
JP3387561B2
JP3387561B2 JP19806393A JP19806393A JP3387561B2 JP 3387561 B2 JP3387561 B2 JP 3387561B2 JP 19806393 A JP19806393 A JP 19806393A JP 19806393 A JP19806393 A JP 19806393A JP 3387561 B2 JP3387561 B2 JP 3387561B2
Authority
JP
Japan
Prior art keywords
triangle
unit
input
information
created
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 - Fee Related
Application number
JP19806393A
Other languages
Japanese (ja)
Other versions
JPH0757112A (en
Inventor
雅己 佐藤
由里恵 佐藤
淳一 中村
裕造 前田
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 Social Science Labs Ltd
Original Assignee
Fujitsu Social Science Labs 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 Social Science Labs Ltd filed Critical Fujitsu Social Science Labs Ltd
Priority to JP19806393A priority Critical patent/JP3387561B2/en
Publication of JPH0757112A publication Critical patent/JPH0757112A/en
Application granted granted Critical
Publication of JP3387561B2 publication Critical patent/JP3387561B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Digital Computer Display Output (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は,図形編集システムにお
ける三角形の作成方式に関する。近年,コンピュータシ
ステムのマルチメディア化に伴い,イメージ情報の重要
性が増しており,高速でかつ手軽な図形編集システムが
求められている。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a triangle creating method in a graphic editing system. In recent years, the importance of image information has increased with the development of multimedia computer systems, and there is a demand for a high-speed and easy graphic editing system.

【0002】このため,図形編集システムには,優れた
インタフェースが提供されているが,現状のものでは充
分でなく,より精密な図形を作成するための手段が求め
られている。
Therefore, although the graphic editing system is provided with an excellent interface, the existing one is not sufficient, and a means for creating a more precise graphic is required.

【0003】[0003]

【従来の技術】従来の図形編集システムにおいては,三
角形の作成は,マウスなどで座標を指定することにより
行い,座標指定時の補助情報や補助手段としては,マウ
ス位置の座標情報,グリッド表示,クロスカーソルなど
が用いられていた。
2. Description of the Related Art In a conventional graphic editing system, a triangle is created by designating coordinates with a mouse or the like. As supplementary information and means for designating coordinates, mouse position coordinate information, grid display, Cross cursors were used.

【0004】[0004]

【発明が解決しようとする課題】従来の図形編集システ
ムにおいても,正三角形のような正多角形の作成用の手
段は大概標準装備されているので,正多角形の作成は,
比較的容易に行うことができる。しかし,二等辺三角形
や直角三角形などの三角形を作成する場合,提供される
補助情報が座標情報のみであるため,底辺と頂点の位置
や距離の関係しか分からず,角度に関する正確な情報が
無いので,二等辺三角形や直角三角形を正確に作成する
ことが困難である,という問題があった。
In the conventional graphic editing system as well, since the means for creating a regular polygon such as a regular triangle is usually provided as standard equipment, the regular polygon is created as follows.
It can be done relatively easily. However, when creating triangles such as isosceles triangles and right triangles, since the only auxiliary information provided is coordinate information, only the relationship between the position and distance between the base and the vertex can be known, and there is no accurate information about the angle. However, there is a problem that it is difficult to accurately create an isosceles triangle or a right triangle.

【0005】従って,教育上の配慮から正確さが必要と
される学習用教材の算数や幾何などで使用される三角形
を作成する場合,3点の座標を前もって計算してから作
成したり,作成後に座標から角度を求めて一度作成した
三角形を修正する必要がある,という問題を生じてい
た。
Therefore, when creating a triangle to be used in arithmetic or geometry of a teaching material for which accuracy is required in consideration of education, the coordinates of three points are calculated in advance or created. After that, there was a problem that it was necessary to find the angle from the coordinates and correct the triangle once created.

【0006】その結果,正確な三角形を作成することが
極めて困難である,という問題があった。本発明は,上
記の問題点を解決して,正確な三角形を作成できるよう
にして,図形編集システムの性能を向上させることので
きる,図形編集システムにおける三角形の作成方式を提
供することを目的とする。
As a result, there is a problem that it is extremely difficult to create an accurate triangle. SUMMARY OF THE INVENTION It is an object of the present invention to solve the above problems and to provide a triangle creating method in a graphic editing system that can create an accurate triangle and improve the performance of the graphic editing system. To do.

【0007】[0007]

【課題を解決するための手段】図1は,本発明の基本構
成を示す図である。図1に示すように,本発明は,ディ
スプレイ画面上において,各種の図形を作成・編集する
のに用いられる図形編集システムにおける三角形の作成
方式であって,入力獲得部1,図形作成部2,座標計算
部3,データ保持部4,および図形描画部5を備えてい
る。
FIG. 1 is a diagram showing the basic configuration of the present invention. As shown in FIG. 1, the present invention is a method of creating a triangle in a graphic editing system used to create and edit various graphics on a display screen. A coordinate calculation unit 3, a data holding unit 4, and a graphic drawing unit 5 are provided.

【0008】入力獲得部1は,マウスやキーボードなど
の入力手段から,正三角形,二等辺三角形,直角三角形
などの各種三角形の形状,および直角や等角などの補助
情報から成る選択情報,並びに三角形作成時における位
置座標情報から成る入力情報を獲得する。
The input acquisition unit 1 uses input means such as a mouse and a keyboard to select various triangle shapes such as an equilateral triangle, an isosceles triangle, and a right triangle, and selection information including auxiliary information such as right angles and equiangular angles, and triangles. Input information consisting of position coordinate information at the time of creation is acquired.

【0009】図形作成部2は,入力獲得部1が獲得した
入力情報に基づいて,作成しようとする三角形の点情報
をデータ保持部4から獲得する。座標計算部3は,図形
作成部2が入力獲得部1から獲得した入力情報およびデ
ータ保持部4から獲得した三角形の点情報に基づく底辺
の座標と作成しようとする三角形の形状から取り得る座
標を算出する。
The graphic creation unit 2 acquires the point information of the triangle to be created from the data holding unit 4 based on the input information acquired by the input acquisition unit 1. The coordinate calculation unit 3 calculates the coordinates of the base based on the input information acquired by the graphic creation unit 2 from the input acquisition unit 1 and the point information of the triangle acquired from the data holding unit 4 and the coordinates that can be taken from the shape of the triangle to be created. calculate.

【0010】データ保持部4は,各種三角形の点情報お
よび座標計算部3が算出した作成しようとする三角形の
形状から取り得る座標を保持している。図形描画部5
は,ディスプレイ画面上に,データ保持部4が保持して
いる作成中の三角形の確定した底辺と,当該三角形が取
り得る頂点とを結ぶ線を暫定的に描画し,入力獲得部の
入力手段により頂点を確定した時点で確定した三角形を
描画する。さらに,ディスプレイ画面上に,データ保持
部4が保持している作成中の三角形の確定した底辺と,
当該三角形が取り得る頂点とを結ぶ線を暫定的に描画
し,入力獲得部1の入力手段により頂点を確定した時点
で,直角や等角などの補助情報を所定の位置に描画す
る。
The data holding unit 4 holds the point information of various triangles and the coordinates that can be taken from the shape of the triangle to be created calculated by the coordinate calculation unit 3. Figure drawing part 5
Tentatively draws on the display screen a line connecting the determined base of the triangle being created held by the data holding unit 4 and the apex that the triangle can take, and the input means of the input acquisition unit Draw the fixed triangle when the vertex is fixed. Further, on the display screen, the determined base of the triangle being created which is held by the data holding unit 4,
A line connecting the vertices that the triangle can take is tentatively drawn, and when the vertices are fixed by the input means of the input acquisition unit 1, auxiliary information such as right angle and equiangular is drawn at a predetermined position.

【0011】[0011]

【作用】図2は,三角形の頂点の定め方を示す図であ
る。図2に示すように,作成する三角形の種別と底辺と
が確定すれば,それに応じて頂点の座標が取り得る範囲
は自ずと決まる。したがって,作成する三角形の種別を
事前に設定することをできるようにすれば,正確な三角
形を作成することが可能になる。
FIG. 2 is a diagram showing how to define the vertices of a triangle. As shown in FIG. 2, if the type and the base of the triangle to be created are determined, the range in which the coordinates of the vertices can be taken is naturally determined. Therefore, if the type of the triangle to be created can be set in advance, an accurate triangle can be created.

【0012】以下,図2を用いて,各種三角形の頂点の
定め方を説明する。 (正三角形)頂点は,底辺と等しい長さの2辺の交点2
点のうちのどちらか一方に限定される。
The method of determining the vertices of various triangles will be described below with reference to FIG. (Equilateral triangle) The vertex is the intersection 2 of two sides with the same length as the base.
Limited to either one of the points.

【0013】(二等辺三角形)頂点は,底辺の中心を通
る垂線上のどこかに限定される。 (直角三角形)頂点は,底辺の両端から延びる2本の垂
線上のどこか,または底辺を直径とする円周上のどこか
に限定される。
The (isosceles triangle) vertex is limited to somewhere on a perpendicular line passing through the center of the base. The (right-angled triangle) apex is limited to somewhere on two perpendicular lines extending from both ends of the base or on a circumference having a diameter at the base.

【0014】(直角二等辺三角形)底辺の中心を通る垂
線上にある直角に交わる2辺の交点2点のうちのどちら
かに限定される。
(Right-angled isosceles triangle) It is limited to either of two intersection points of two sides intersecting at a right angle on a perpendicular line passing through the center of the base.

【0015】(その他の三角形)その性質上,頂点は,
底辺と無関係であるから,特に限定されない。以上述べ
た各種三角形の頂点の定め方を本発明では,次のように
実現する。
(Other triangles) By its nature, the vertices are
There is no particular limitation because it has nothing to do with the base. In the present invention, the method of defining the vertices of various triangles described above is realized as follows.

【0016】本発明では,三角形作成コマンドを選択す
ると,ディスプレイ画面上に形状選択ウィンドウが表示
され,ユーザに三角形の種別を選択するよう要求する。
ユーザがマウスやキーボードを用いて特定種別の三角形
を選択すると,システムは,選択結果すなわち作成しよ
うとする三角形の種別(形状)を記憶する。
In the present invention, when the triangle creation command is selected, a shape selection window is displayed on the display screen, requesting the user to select the triangle type.
When the user selects a particular type of triangle using the mouse or keyboard, the system stores the selection result, that is, the type (shape) of the triangle to be created.

【0017】続いて,ユーザがマウスを用いてディスプ
レイ画面上に三角形の底辺を指定すると,システムが監
視しているマウス座標と選択された三角形の種別とに応
じて,三角形の頂点として取り得る座標の範囲内にガイ
ドが表示される。ガイドとしては,細線,底辺と輝度や
色の異なる線や点線などを用いる。
Next, when the user uses the mouse to specify the base of the triangle on the display screen, the coordinates that can be taken as the vertices of the triangle depending on the mouse coordinates monitored by the system and the type of the selected triangle. The guide is displayed within the range. As the guide, use thin lines, lines with different brightness and color from the bottom, or dotted lines.

【0018】ガイドが表示されても,マウスカーソルの
座標は,ガイド上に束縛されず,マウスカーソルの座標
のみが監視の対象となり,システムは,未確定部分を示
す線分をガイド上に表示する。
Even if the guide is displayed, the coordinates of the mouse cursor are not bound on the guide, only the coordinates of the mouse cursor are subject to monitoring, and the system displays a line segment indicating an undetermined portion on the guide. .

【0019】ユーザがガイド上の任意の点で終了指定を
行うと,頂点の座標が確定し,三角形の作成が完了す
る。このとき,形状選択ウィンドウ内で,直角や等角な
どの補助情報の選択も行っていれば,完成した三角形の
所定の位置に直角や等角などの補助情報が表示され,三
角形の作成が確定すると図形データ中に取り込まれる。
When the user designates the end at an arbitrary point on the guide, the coordinates of the vertices are fixed and the creation of the triangle is completed. At this time, if auxiliary information such as right angle or equiangular is also selected in the shape selection window, auxiliary information such as right angle or equiangular is displayed at a predetermined position of the completed triangle, and creation of the triangle is confirmed. Then, it is taken into the figure data.

【0020】以上のように,本発明によれば,形状の異
なる各種の三角形を正確かつ容易に作成することが可能
になる。この処理の対象となるデータは,ペイント(ビ
ットマップ)データおよびドロー(オブジェクト)デー
タである。
As described above, according to the present invention, various triangles having different shapes can be accurately and easily created. The data to be processed are paint (bitmap) data and draw (object) data.

【0021】[0021]

【実施例】図3は,本発明のハードウェア構成を示す図
であり,本発明に係る図形編集システムの実現に必要な
ハードウェアの構成とそれぞれの関係を示している。
FIG. 3 is a diagram showing the hardware configuration of the present invention, and shows the configuration of the hardware necessary to realize the graphic editing system according to the present invention and their respective relationships.

【0022】図中,11はコンピュータシステム,12
はキーボード,13はマウス,14はコンピュータモニ
タ(ディスプレイ),15はファイル,16は利用者
(ユーザ)である。
In the figure, 11 is a computer system, and 12
Is a keyboard, 13 is a mouse, 14 is a computer monitor (display), 15 is a file, and 16 is a user.

【0023】コンピュータシステム11上のプログラム
は,利用者(ユーザ)16が操作するマウス13からの
入力情報を受け取り,メモリ上またはファイル15上に
あるデータから算出した三角形の頂点として取り得る座
標範囲をコンピュータモニタ(ディスプレイ)14上に
ガイド表示する。
The program on the computer system 11 receives the input information from the mouse 13 operated by the user (user) 16 and sets the coordinate range that can be taken as the vertices of the triangle calculated from the data in the memory or the file 15. A guide is displayed on the computer monitor (display) 14.

【0024】図4は,本発明のデータ構成を示す図であ
る。各三角形データは,3個の点データを必ず持ってお
り,各点データは,それぞれX/Yの座標情報から構成
されている。各点は,他の2点とそれぞれ直線で結ばれ
る。
FIG. 4 is a diagram showing the data structure of the present invention. Each triangle data always has three point data, and each point data is composed of X / Y coordinate information. Each point is connected to the other two points by a straight line.

【0025】以下,本発明による三角形作成の具体例を
説明する。 (1)画面上での表示例(その1)(図5参照) 本例は,直角三角形を作成する場合であり,図5の左側
には三角形作成の処理フローが示されており,右側には
ディスプレイ画面上の表示が示されている。
A specific example of triangle formation according to the present invention will be described below. (1) Display example on screen (1) (see FIG. 5) This example is for creating a right triangle, and the processing flow of triangle creation is shown on the left side of FIG. Is shown on the display screen.

【0026】(s1)キーボードまたはマウスにより,
『三角形』コマンドが選択される。 (s2)システムが,ディスプレイ画面上に,「形状選
択ウィンドウ」を表示する。
(S1) With a keyboard or a mouse,
The "triangle" command is selected. (S2) The system displays a "shape selection window" on the display screen.

【0027】(s3)キーボードまたはマウスにより,
作成する三角形が選択される。本例では,「直角三角
形」が選択される。次いで,補助情報として「直角」が
選択される。
(S3) With a keyboard or a mouse,
The triangle to be created is selected. In this example, “right triangle” is selected. Then, "right angle" is selected as the auxiliary information.

【0028】(s4)システムが,ディスプレイ画面上
に表示された「形状選択ウィンドウ」を消去する。 (s5)ディスプレイ画面上でマウスの左ボタンをクリ
ックすることにより,三角形の底辺の始点が指定され
る。
(S4) The system erases the "shape selection window" displayed on the display screen. (S5) By clicking the left mouse button on the display screen, the starting point of the base of the triangle is specified.

【0029】(s6)マウスを右方に移動させた後,マ
ウスの左ボタンをクリックすることにより,三角形の底
辺が確定される。 (s7)システムは,マウスクリックによる頂点の終了
指定までの間,三角形の種別とマウス位置とに応じて,
ディスプレイ画面上にガイドを表示する。図では,2本
の点線で示す。
(S6) After moving the mouse to the right, click the left button of the mouse to set the base of the triangle. (S7) The system, depending on the type of the triangle and the mouse position, until the end of the vertex is specified by clicking the mouse,
Display the guide on the display screen. In the figure, it is shown by two dotted lines.

【0030】(s8)ガイド上の任意の点でマウスの左
ボタンをクリックすると,頂点の位置が確定し,三角形
が完成する。補助情報として「直角」が選択されている
場合には,所定の位置に補助情報「直角」が表示され,
完成した直角三角形中に取り込まれる。
(S8) When the left button of the mouse is clicked at an arbitrary point on the guide, the positions of the vertices are fixed and the triangle is completed. When "Right angle" is selected as the auxiliary information, the auxiliary information "Right angle" is displayed at a predetermined position,
It is captured in the completed right triangle.

【0031】以上の各ステップを経て,図5の右下に示
す2個の直角三角形のうちのいずれかが作成される。 (2)画面上での表示例(その2)(図6参照) 本例は,二等辺三角形を作成する場合であり,図6の左
側には三角形作成の処理フローが示されており,右側に
はディスプレイ画面上の表示が示されている。
Through the above steps, one of the two right triangles shown in the lower right of FIG. 5 is created. (2) Display example on screen (2) (see FIG. 6) This example is for creating an isosceles triangle, and the processing flow of triangle creation is shown on the left side of FIG. Shows the display on the display screen.

【0032】(s1)キーボードまたはマウスにより,
『三角形』コマンドが選択される。 (s2)システムが,ディスプレイ画面上に,「形状選
択ウィンドウ」を表示する。
(S1) With a keyboard or a mouse,
The "triangle" command is selected. (S2) The system displays a "shape selection window" on the display screen.

【0033】(s3)キーボードまたはマウスにより,
作成する三角形が選択される。本例では,「二等辺三角
形」が選択される。次いで,補助情報として「等角」が
選択される。
(S3) With a keyboard or a mouse,
The triangle to be created is selected. In this example, “isosceles triangle” is selected. Then, “equal angle” is selected as the auxiliary information.

【0034】(s4)システムが,ディスプレイ画面上
に表示された「形状選択ウィンドウ」を消去する。 (s5)ディスプレイ画面上でマウスの左ボタンをクリ
ックすることにより,三角形の底辺の始点が指定され
る。
(S4) The system erases the "shape selection window" displayed on the display screen. (S5) By clicking the left mouse button on the display screen, the starting point of the base of the triangle is specified.

【0035】(s6)マウスを右方に移動させた後,マ
ウスの左ボタンをクリックすることにより,三角形の底
辺が確定される。 (s7)システムは,マウスクリックによる頂点の終了
指定までの間,三角形の種別とマウス位置とに応じて,
ディスプレイ画面上にガイドを表示する。図では,2本
の点線で示す。
(S6) After moving the mouse to the right, click the left button of the mouse to set the base of the triangle. (S7) The system, depending on the type of the triangle and the mouse position, until the end of the vertex is specified by clicking the mouse,
Display the guide on the display screen. In the figure, it is shown by two dotted lines.

【0036】(s8)ガイド上の任意の点でマウスの左
ボタンをクリックすると,頂点の位置が確定し,三角形
が完成する。補助情報として「等角」が選択されている
場合には,所定の位置に補助情報「等角」が表示され,
完成した二等辺三角形中に取り込まれる。
(S8) When the left mouse button is clicked at any point on the guide, the positions of the vertices are determined and the triangle is completed. When "isometric" is selected as the auxiliary information, the auxiliary information "isometric" is displayed at a predetermined position,
It is included in the completed isosceles triangle.

【0037】以上の各ステップを経て,図6の右下に示
す2個の二等辺三角形のうちのいずれかが作成される。
次に,本発明の処理フローを説明する。図7は,本発明
のイベントループを示す図である。
Through the above steps, one of the two isosceles triangles shown in the lower right of FIG. 6 is created.
Next, the processing flow of the present invention will be described. FIG. 7 is a diagram showing an event loop of the present invention.

【0038】(s1)マウスボタンが押下されているか
否かを判定する。YESならばs2の処理に進み,NO
ならばs7の処理に進む。 (s2)三角形の底辺が確定された後か否かを判定す
る。YESならばs3の処理に進み,NOならばs6の
処理に進む。
(S1) It is determined whether or not the mouse button is pressed. If YES, then proceed to s2, NO
If so, the process proceeds to s7. (S2) It is determined whether or not the bottom of the triangle has been determined. If YES, the process proceeds to s3, and if NO, the process proceeds to s6.

【0039】(s3)頂点の確定処理を行うと共に作成
が完了した三角形を表示する。 (s4)「直角」や「等角」などの補助情報があるか否
かを判定する。YESならばs5の処理に進み,NOな
らば三角形の作成を終了する。
(S3) The vertices are confirmed and the completed triangles are displayed. (S4) It is determined whether or not there is auxiliary information such as “right angle” or “equal angle”. If YES, the process proceeds to s5, and if NO, the creation of the triangle ends.

【0040】(s5)作成完了後に表示された三角形の
所定の位置に「直角」や「等角」などの補助情報を表示
する。 (s6)ディスプレイ画面上でマウスを移動させ,マウ
スボタンをクリックすることにより三角形の底辺を作成
する。システムは,三角形の底辺の作成が完了すると,
太線などでそれを表示する。
(S5) Auxiliary information such as "right angle" or "equal angle" is displayed at a predetermined position of the triangle displayed after the creation is completed. (S6) Move the mouse on the display screen and click the mouse button to create the base of the triangle. When the system finishes creating the base of the triangle,
Display it with a bold line.

【0041】(s7)マウスが移動中であるか否かを判
定する。YESならばs8の処理に進み,NOならばs
1の処理に戻る。 (s8)三角形の底辺が確定された後か否かを判定す
る。YESならばs9の処理に進み,NOならばs11
の処理に進む。
(S7) It is determined whether or not the mouse is moving. If YES, the process proceeds to s8, and if NO, s
Return to processing of 1. (S8) It is determined whether or not the bottom of the triangle has been determined. If YES, the process proceeds to s9, and if NO, s11.
Go to processing.

【0042】(s9)マウスの座標と選択された三角形
の形状とから,頂点の座標を計算する。 (s10)底辺からs8の処理により算出した頂点の座
標範囲にガイドを表示する。
(S9) The coordinates of the vertices are calculated from the coordinates of the mouse and the shape of the selected triangle. (S10) The guide is displayed from the bottom to the coordinate range of the apex calculated by the process of s8.

【0043】(s11)作成しようとする三角形の底辺
のガイドを表示する。 以上の各ステップを経て,三角形の作成処理が終了す
る。次に,図8を用いて,頂点の計算の処理フローを説
明する。
(S11) A guide on the bottom of the triangle to be created is displayed. Through the above steps, the triangle creation process ends. Next, the processing flow of vertex calculation will be described with reference to FIG.

【0044】(s1)選択された三角形が「正三角形」
であるか否かを判定する。YESならばs2の処理に進
み,NOならばs4の処理に進む。 (s2)底辺の各端点を中心とし,底辺を半径とする円
の2交点を求める。
(S1) The selected triangle is an "equal triangle"
Or not. If YES, the process proceeds to s2, and if NO, the process proceeds to s4. (S2) Two intersections of a circle centered on each end point of the base and having a radius at the base are obtained.

【0045】(s3)s2の処理で求めた2交点とマウ
ス座標との距離の短い方の点を有効として,頂点の座標
の候補とする。 (s4)選択された三角形が「二等辺三角形」であるか
否かを判定する。YESならばs5の処理に進み,NO
ならばs6の処理に進む。
(S3) The point having the shorter distance between the two intersections obtained in the processing of s2 and the mouse coordinates is validated and is used as the vertex coordinate candidate. (S4) It is determined whether the selected triangle is an “isosceles triangle”. If YES, then proceed to s5, NO
If so, the process proceeds to s6.

【0046】(s5)底辺の中点を通る垂線とマウス座
標との交点を求める。この交点を頂点の座標の候補とす
る。 (s6)選択された三角形が「直角三角形」であるか否
かを判定する。YESならばs7の処理に進み,NOな
らばs10の処理に進む。
(S5) An intersection between a perpendicular line passing through the midpoint of the bottom and mouse coordinates is obtained. This intersection is a candidate for the coordinates of the vertex. (S6) It is determined whether the selected triangle is a "right triangle". If YES, the process proceeds to s7, and if NO, the process proceeds to s10.

【0047】(s7)底辺の端点を通る垂線とマウス座
標との2交点を求める。 (s8)底辺を直径とする円周と底辺の中点からマウス
座標へ延びる直線との交点を求める。
(S7) Two intersections of a perpendicular line passing through the end points of the bottom and mouse coordinates are obtained. (S8) An intersection between a circumference having a diameter at the bottom and a straight line extending from the midpoint of the bottom to the mouse coordinates is obtained.

【0048】(s9)s7の処理で求めた2交点および
s8の処理で求めた1交点からなる3交点とマウス座標
との距離の最も短い点を有効として,頂点の座標の候補
とする。
(S9) The point having the shortest distance between the mouse coordinates and the three intersections, which are the two intersections obtained in the processing of s7 and the one intersection obtained in the processing of s8, is validated as the vertex coordinate candidates.

【0049】(s10)選択された三角形が「直角二等
辺三角形」であるか否かを判定する。YESならばs1
1の処理に進み,NOならば頂点の計算を終了する。 (s11)底辺の中点を通る垂線と底辺を直径とする円
周との2交点を求める。
(S10) It is judged whether or not the selected triangle is a "right isosceles triangle". If YES, s1
The process proceeds to step 1, and if NO, the calculation of the vertex is ended. (S11) Two intersections of a perpendicular line passing through the midpoint of the base and a circumference having a diameter at the base are obtained.

【0050】(s12)s11の処理で求めた2交点と
マウス座標との距離の短い方の点を有効として,頂点の
座標の候補とする。 以上の各ステップを経て,正三角形,二等辺三角形,直
角三角形,および直角二等辺三角形の頂点の計算が終了
する。
(S12) The point having the shorter distance between the two intersections obtained in the processing of s11 and the mouse coordinates is validated and the vertex coordinates are selected. Through the above steps, the calculation of the vertices of an equilateral triangle, an isosceles triangle, a right triangle, and an isosceles right triangle is completed.

【0051】[0051]

【発明の効果】本発明によれば,図形編集システムにお
いて,三角形作成前に,正三角形,二等辺三角形,直角
三角形,および直角二等辺三角形などの形状種別を選択
し,底辺を指定するとディスプレイ画面上に頂点の候補
と成り得る座標範囲を表すガイドが表示されるので,ユ
ーザは,マウスをガイド上に移動させて頂点を指定する
だけで,正確な形状の各種三角形を容易に作成すること
が可能になる。
According to the present invention, in the graphic editing system, if a shape type such as an equilateral triangle, an isosceles triangle, a right triangle, and an isosceles right triangle is selected and a base is designated, the display screen is displayed. A guide that shows the coordinate range that can be a candidate for a vertex is displayed on the top, so the user can easily create various triangles with an accurate shape simply by moving the mouse over the guide and specifying the vertex. It will be possible.

【0052】また,本発明では,底辺の指定から三角形
を作成するようにしているので,底辺が水平または垂直
でなく,傾いている三角形を作成する場合や,1辺を他
の図形と重ね合わせる場合などでも,正確な形状の三角
形を簡単に作成することが可能になる。
Further, in the present invention, since the triangle is created from the designation of the base, when the base is not horizontal or vertical but an inclined triangle is created, or one side is overlapped with another figure. Even in cases such as this, it is possible to easily create a triangle with an accurate shape.

【0053】したがって,本発明によれば,教育上の配
慮から正確さが必要とされる学習用教材の算数や幾何な
どで使用される各種の三角形を,正確かつ迅速に作成す
ることが可能になる。
Therefore, according to the present invention, it is possible to accurately and promptly create various triangles used in arithmetic and geometry of teaching materials for learning, which are required to be accurate in consideration of education. Become.

【0054】以上のように,本発明は,図形編集システ
ムの性能向上に寄与するところが大きい。
As described above, the present invention largely contributes to the performance improvement of the graphic editing system.

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

【図1】本発明の基本構成を示す図である。FIG. 1 is a diagram showing a basic configuration of the present invention.

【図2】三角形の頂点の定め方を示す図である。FIG. 2 is a diagram showing how to define the vertices of a triangle.

【図3】本発明のハードウェア構成を示す図である。FIG. 3 is a diagram showing a hardware configuration of the present invention.

【図4】本発明のデータ構成を示す図である。FIG. 4 is a diagram showing a data structure of the present invention.

【図5】画面上での表示例(その1)を示す図である。FIG. 5 is a diagram showing a display example (No. 1) on the screen.

【図6】画面上での表示例(その2)を示す図である。FIG. 6 is a diagram showing a display example (No. 2) on the screen.

【図7】本発明のイベントループを示す図である。FIG. 7 is a diagram showing an event loop of the present invention.

【図8】頂点の計算の処理フローを示す図である。FIG. 8 is a diagram showing a processing flow of vertex calculation.

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

1 入力獲得部 2 図形作成部 3 座標計算部 4 データ保持部 5 図形描画部 1 Input acquisition section 2 figure creation department 3 Coordinate calculation unit 4 Data storage 5 Graphic drawing section

───────────────────────────────────────────────────── フロントページの続き (72)発明者 中村 淳一 東京都品川区大崎1丁目6番4号 株式 会社富士通ソーシアルサイエンスラボラ トリ内 (72)発明者 前田 裕造 東京都品川区大崎1丁目6番4号 株式 会社富士通ソーシアルサイエンスラボラ トリ内 (56)参考文献 特開 昭63−24460(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 11/80 G06F 3/00 G09G 5/36 G06F 17/50 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Junichi Nakamura 1-6-4 Osaki, Shinagawa-ku, Tokyo Within Fujitsu Social Science Laboratory (72) Inventor Yuzo Maeda 1-6-6 Osaki, Shinagawa-ku, Tokyo No. 4 in Fujitsu Social Science Laboratory (56) References JP-A-63-24460 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G06T 11/80 G06F 3 / 00 G09G 5/36 G06F 17/50

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ディスプレイ画面上において,各種の図
形を作成・編集するのに用いられる図形編集システムに
おける三角形の作成方式であって,入力獲得部,図形作
成部,座標計算部,データ保持部,および図形描画部を
備え,入力獲得部は,マウスやキーボードなどの入力手
段から,正三角形,二等辺三角形,直角三角形などの各
種三角形の形状,および直角や等角などの補助情報から
成る選択情報,並びに三角形作成時における位置座標情
報から成る入力情報を獲得し,図形作成部は,入力獲得
部が獲得した入力情報に基づいて,作成しようとする三
角形の点情報をデータ保持部から獲得し,座標計算部
は,図形作成部が入力獲得部から獲得した入力情報およ
びデータ保持部から獲得した三角形の点情報に基づく底
辺の座標と作成しようとする三角形の形状から取り得る
座標を算出し,データ保持部は,各種三角形の点情報お
よび座標計算部が算出した作成しようとする三角形の形
状から取り得る座標を保持しており,図形描画部は,デ
ィスプレイ画面上に,データ保持部が保持している作成
中の三角形の確定した底辺と,当該三角形が取り得る頂
点とを結ぶ線を暫定的に描画し,入力獲得部の入力手段
により頂点を確定した時点で確定した三角形を描画する
ことを特徴とする図形編集システムにおける三角形の作
成方式。
1. A method of creating a triangle in a graphic editing system used to create and edit various graphics on a display screen, comprising: an input acquisition unit, a graphic creation unit, a coordinate calculation unit, a data holding unit, And a figure drawing section, and the input acquisition section uses input information such as a mouse or keyboard to select various triangle shapes such as equilateral triangles, isosceles triangles, and right triangles, and auxiliary information such as right angles and equiangular angles. , And the input information consisting of the position coordinate information at the time of creating the triangle, the figure creating unit acquires the point information of the triangle to be created from the data holding unit based on the input information acquired by the input acquiring unit, The coordinate calculation unit should create the coordinates of the base based on the input information acquired by the figure generation unit from the input acquisition unit and the point information of the triangle acquired from the data storage unit. The coordinates that can be taken from the shape of the triangle to be calculated are calculated, and the data holding unit holds the point information of various triangles and the coordinates that can be taken from the shape of the triangle to be created calculated by the coordinate calculation unit. Tentatively draws on the display screen a line connecting the determined base of the triangle being created which is held by the data holding unit and the vertex that the triangle can take, and the vertex is input by the input unit of the input acquisition unit. A method for creating a triangle in a graphic editing system, which is characterized in that a triangle which is determined when is determined is drawn.
【請求項2】 請求項1において,図形描画部は,ディ
スプレイ画面上に,データ保持部が保持している作成中
の三角形の確定した底辺と,当該三角形が取り得る頂点
とを結ぶ線を暫定的に描画し,入力獲得部の入力手段に
より頂点を確定した時点で,直角や等角などの補助情報
を所定の位置に描画することを特徴とする図形編集シス
テムにおける三角形の作成方式。
2. The graphic drawing unit according to claim 1, wherein the graphic drawing unit tentatively draws a line connecting a fixed base of the triangle being created which is held by the data holding unit and a vertex which the triangle can take on the display screen. A method of creating triangles in a graphic editing system, which is characterized in that auxiliary information such as right angle and equiangular is drawn at a predetermined position when a vertex is determined by the input means of the input acquisition unit.
JP19806393A 1993-08-10 1993-08-10 Triangle creation method in figure editing system Expired - Fee Related JP3387561B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19806393A JP3387561B2 (en) 1993-08-10 1993-08-10 Triangle creation method in figure editing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19806393A JP3387561B2 (en) 1993-08-10 1993-08-10 Triangle creation method in figure editing system

Publications (2)

Publication Number Publication Date
JPH0757112A JPH0757112A (en) 1995-03-03
JP3387561B2 true JP3387561B2 (en) 2003-03-17

Family

ID=16384916

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19806393A Expired - Fee Related JP3387561B2 (en) 1993-08-10 1993-08-10 Triangle creation method in figure editing system

Country Status (1)

Country Link
JP (1) JP3387561B2 (en)

Also Published As

Publication number Publication date
JPH0757112A (en) 1995-03-03

Similar Documents

Publication Publication Date Title
US5371845A (en) Technique for providing improved user feedback in an interactive drawing system
US5841440A (en) System and method for using a pointing device to indicate movement through three-dimensional space
US5583977A (en) Object-oriented curve manipulation system
US6014127A (en) Cursor positioning method
JPH05507568A (en) Graphical inference engine
JPS61290525A (en) Facilitation of selection of graphic object
JPH03174191A (en) Three-dimensional display device
US5384909A (en) Precision automatic scrolling for an image display system
JP3993266B2 (en) Method and apparatus for providing a dynamically redirected compass cursor on a computer display
EP0640906B1 (en) Display apparatus
US5483626A (en) Method and apparatus for transforming graphics
US5852442A (en) Method of drawing a three-dimensional object
US5485561A (en) Method of and apparatus for replacing region of interest
EP0653697B1 (en) Cursor with multiple pointing spots
CN105243469A (en) Method for mapping from multidimensional space to low-dimensional space, and display method and system
JP3387561B2 (en) Triangle creation method in figure editing system
JP3357760B2 (en) Character / graphic input editing device
US20020047845A1 (en) Method, apparatus, and article of manufacture for displaying a line at an angle relative to an existing entity
JPH0212516A (en) Actual dimension display system
US7046241B2 (en) Oriented three-dimensional editing glyphs
JP2749041B2 (en) How to edit the database
JPH0744720A (en) Display/reference system for angle information in graphic editing system
JPS6331822B2 (en)
JP3634426B2 (en) Drawing image save / restore system
JPH0916653A (en) Graphic processor and its method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20090110

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20120110

LAPS Cancellation because of no payment of annual fees