JP2010086020A - Graphic drawing device - Google Patents

Graphic drawing device Download PDF

Info

Publication number
JP2010086020A
JP2010086020A JP2008251016A JP2008251016A JP2010086020A JP 2010086020 A JP2010086020 A JP 2010086020A JP 2008251016 A JP2008251016 A JP 2008251016A JP 2008251016 A JP2008251016 A JP 2008251016A JP 2010086020 A JP2010086020 A JP 2010086020A
Authority
JP
Japan
Prior art keywords
point
moving
distance
moving point
locus
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.)
Granted
Application number
JP2008251016A
Other languages
Japanese (ja)
Other versions
JP5018718B2 (en
Inventor
Fuminori 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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2008251016A priority Critical patent/JP5018718B2/en
Publication of JP2010086020A publication Critical patent/JP2010086020A/en
Application granted granted Critical
Publication of JP5018718B2 publication Critical patent/JP5018718B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)
  • Electrically Operated Instructional Devices (AREA)
  • Calculators And Similar Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable a user to minutely and surely observe the movement of a trajectory point. <P>SOLUTION: A scientific electronic calculator includes a display unit drawing and displaying a graphic on a display; an input unit setting an arbitrary point on a drawing graphic as a moving point, setting a moving area of the moving point on the basis of a user's operation and setting at least one arbitrary point on the drawing graphic as a trajectory point; and a CPU drawing the trajectory of the trajectory point when the moving point moves by a fixed moving distance at every stage in the moving area. If a trajectory distance of the trajectory point when the moving point moves by the fixed moving distance at one stage becomes a predetermined reference distance or more, the CPU reduces the moving distance by which the moving point moves at the stage. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、図形描画装置に関する。   The present invention relates to a figure drawing apparatus.

中学・高校などにおける幾何の授業では、図形中の点や線が一定の範囲を動くときに、この移動に伴って特定の点がどのような軌跡を描くか求めさせるという問題が出題される。   In geometry classes at junior high and high schools, when a point or line in a figure moves within a certain range, the problem is to ask what kind of locus a particular point draws with this movement.

そのため、近年の図形描画装置では、このような問題の理解を助ける観点から、例えば、描いた図形中の或る基準点を一定の間隔で動かしつつ、この基準点に対応付けられた指定点(以下、軌跡点とする)の軌跡を描画するようになっている(例えば、特許文献1参照)。
特開平8−339453号公報
For this reason, in recent graphic drawing apparatuses, from the viewpoint of helping to understand such a problem, for example, while moving a certain reference point in a drawn figure at a constant interval, a designated point associated with this reference point ( In the following, a locus is drawn (referred to as Patent Document 1).
JP-A-8-339453

しかしながら、上記特許文献1に記載の図形描画装置では、基準点を一定の間隔で動かしているために、描いた図形によっては、対応する軌跡点が大きく動き過ぎてしまい、軌跡点の移動する様子を詳細に観察しにくい場合があった。   However, in the figure drawing apparatus described in Patent Document 1, since the reference point is moved at a constant interval, the corresponding locus point moves too much depending on the drawn figure, and the locus point moves. It may be difficult to observe in detail.

本発明の課題は、軌跡点の移動をユーザに詳細かつ確実に観察させることのできる図形描画装置を提供することである。   An object of the present invention is to provide a graphic drawing device that allows a user to observe the movement of a trajectory point in detail and reliably.

請求項1記載の発明は、図形描画装置において、
表示画面内に図形を描画表示する図形表示手段と、
ユーザ操作に基づいて描画図形上の任意の点を動点として設定する動点設定手段と、
ユーザ操作に基づいて前記動点の移動範囲を設定する動点移動範囲設定手段と、
ユーザ操作に基づいて描画図形上の任意の点を軌跡点として少なくとも1つ設定する軌跡点設定手段と、
前記移動範囲内で1段階毎に一定距離だけ前記動点を移動させて前記図形表示手段に描画させる動点移動描画制御手段と、
前記動点が前記移動範囲を1段階毎に動くときの前記軌跡点の軌跡を前記図形表示手段に描画させる軌跡描画制御手段と、
前記動点が1段階に前記一定距離だけ移動するときの前記軌跡点の軌跡距離が所定の基準距離以上となる場合に、当該段階で前記動点が移動する前記一定距離を減少させる動点距離減少手段と、
を備えることを特徴とする。
The invention according to claim 1 is a graphic drawing apparatus,
Figure display means for drawing and displaying a figure on the display screen;
Moving point setting means for setting an arbitrary point on the drawing figure as a moving point based on a user operation;
A moving point moving range setting means for setting a moving range of the moving point based on a user operation;
Locus point setting means for setting at least one arbitrary point on the drawing figure as a locus point based on a user operation;
Moving point movement drawing control means for moving the moving point by a fixed distance for each step within the movement range and drawing on the graphic display means;
Locus drawing control means for causing the graphic display means to draw a locus of the locus point when the moving point moves in the moving range step by step;
The moving point distance that reduces the fixed distance that the moving point moves at the stage when the moving distance of the moving point is equal to or larger than a predetermined reference distance when the moving point moves by the fixed distance in one stage. Reduction means,
It is characterized by providing.

請求項2記載の発明は、請求項1に記載の図形描画装置において、
前記動点移動描画制御手段は、前記動点が前記一定距離を一定時間で移動するよう当該動点を前記図形表示手段に描画させ、
前記動点距離減少手段は、前記動点が1段階に移動する前記一定距離を減少させる場合に、当該段階での前記一定時間を同じ割合で減少させることを特徴とする。
The invention according to claim 2 is the graphic drawing apparatus according to claim 1,
The moving point movement drawing control means causes the graphic display means to draw the moving point so that the moving point moves the fixed distance in a fixed time,
The moving point distance reducing means is characterized in that when the moving point moves in one step, the fixed distance is decreased at the same rate in the fixed time at the step.

請求項3記載の発明は、請求項1又は2に記載の図形描画装置において、
前記動点距離減少手段は、ユーザが指定した段階で前記動点が移動する前記一定距離を減少させることを特徴とする。
The invention according to claim 3 is the graphic drawing apparatus according to claim 1 or 2,
The moving point distance reducing means reduces the fixed distance that the moving point moves at a stage specified by a user.

請求項4記載の発明は、請求項1〜3の何れか一項に記載の図形描画装置において、
前記軌跡点設定手段は、ユーザ操作に基づいて複数の前記軌跡点を設定し、
前記動点距離減少手段は、前記動点が1段階に前記一定距離だけ移動するときの少なくとも1つの前記軌跡点の軌跡距離が前記基準距離以上となる場合に、当該段階で前記動点が移動する前記一定距離を減少させることを特徴とする。
Invention of Claim 4 is a figure drawing apparatus as described in any one of Claims 1-3,
The locus point setting means sets a plurality of locus points based on a user operation,
The moving point distance reducing means moves the moving point at that stage when the moving distance of the at least one locus point when the moving point moves by the fixed distance in one stage is equal to or greater than the reference distance. The fixed distance is reduced.

本発明によれば、動点が移動範囲を1段階毎に動くときの軌跡点の軌跡が描画され、動点が1段階に一定距離だけ移動するときの軌跡点の軌跡距離が所定の基準距離以上となる場合に、当該段階で動点が移動する一定距離が減少されるので、動点が1段階移動するときの軌跡点の軌跡距離は必ず基準距離未満となる。したがって、如何なる図形においても軌跡点が大きく動き過ぎることがないため、当該軌跡点の移動をユーザに詳細かつ確実に観察させることができる。   According to the present invention, the locus of the locus point when the moving point moves in the moving range for each step is drawn, and the locus distance of the locus point when the moving point moves by a certain distance in one step is a predetermined reference distance. In this case, the fixed distance that the moving point moves at this stage is reduced, so that the locus distance of the locus point when the moving point moves one stage is always less than the reference distance. Therefore, since the locus point does not move too much in any figure, the movement of the locus point can be observed in detail and surely by the user.

以下、本発明に係る図形描画装置について、図を参照しながら説明する。
[1.1 外観構成]
図1は、本発明に係る図形描画装置を適用した関数電卓1の正面図である。
この図に示すように、関数電卓1は、各種キー群2と、ディスプレイ3とを備えている。
Hereinafter, a graphic drawing apparatus according to the present invention will be described with reference to the drawings.
[1.1 External configuration]
FIG. 1 is a front view of a scientific calculator 1 to which a graphic drawing apparatus according to the present invention is applied.
As shown in this figure, the scientific calculator 1 includes various key groups 2 and a display 3.

各種キー群2は、ユーザから数値や演算記号等の入力操作を受けたり、各種処理の指示操作を受けたりするためのキー群であり、それぞれ固有の機能を割り当てられた複数のキーを備えている。本実施の形態においては、各種キー群2は、テンキー20、演算記号キー21、EXEキー22、DELキー23、方向キー24、ファンクションキー25、OPTNキー26等を備えて構成されている。   The various key group 2 is a key group for receiving an input operation such as a numerical value or a calculation symbol from a user or an instruction operation of various processes, and includes a plurality of keys each assigned a unique function. Yes. In the present embodiment, each key group 2 includes a numeric keypad 20, an operation symbol key 21, an EXE key 22, a DEL key 23, a direction key 24, a function key 25, an OPTN key 26, and the like.

このうち、テンキー20は数値の入力操作を受けるキーであり、演算記号キー21は各種演算記号の入力操作を受けるキーである。   Among these, the numeric keypad 20 is a key for receiving a numerical value input operation, and the arithmetic symbol key 21 is a key for receiving various arithmetic symbol input operations.

EXEキー22は、演算処理や図形描画処理など、各種処理の実行を指示するキーとして機能するようになっている。DELキー23は、ディスプレイ3に表示されている数値や演算記号などの削除操作を受けるキーである。   The EXE key 22 functions as a key for instructing execution of various processes such as arithmetic processing and graphic drawing processing. The DEL key 23 is a key for receiving a deletion operation such as a numerical value or a calculation symbol displayed on the display 3.

方向キー24は、ディスプレイ3内で表示されているカーソル(図示せず)を所定の移動方向に移動させる場合等に押下されるキーであり、本実施の形態においては、上下左右の4方向について入力可能に構成されている。   The direction key 24 is a key that is pressed when, for example, moving a cursor (not shown) displayed in the display 3 in a predetermined moving direction. It is configured to allow input.

ファンクションキー25は、予め割り当てられた所定の処理の実行を指示するキーである。より詳細には、本実施の形態におけるファンクションキー25は、後述の図形描画処理(図3参照)において描画済みの図形要素に対する操作の選択ウィンドウを表示させるためのF2キー25a等を有している。ここで、F2キー25aを操作した場合に表示される選択ウィンドウには、選択肢として「3(Deselect All)」(カーソルによる全ての選択を解除)等が表示されるようになっている。また、本実施の形態においては、図形要素は点、直線または曲線から構成されている。   The function key 25 is a key for instructing execution of a predetermined process assigned in advance. More specifically, the function key 25 in the present embodiment includes an F2 key 25a for displaying a selection window for an operation on a graphic element that has been drawn in a graphic drawing process (see FIG. 3) described later. . Here, in the selection window displayed when the F2 key 25a is operated, “3 (Select All)” (cancel all selections by the cursor) or the like is displayed as an option. In the present embodiment, the graphic element is composed of a point, a straight line, or a curve.

また、OPTNキー26は、後述の図形描画処理(図3参照)において軌跡描画についての操作の選択ウィンドウを表示させる場合等に押下されるようになっている。ここで、OPTNキー26を操作した場合に表示される選択ウィンドウには、選択肢として「7(Locus)」(軌跡点の設定)等が表示されるようになっている。   In addition, the OPTN key 26 is pressed when a selection window for operations related to locus drawing is displayed in a later-described graphic drawing process (see FIG. 3). Here, in the selection window displayed when the OPTN key 26 is operated, “7 (Locus)” (trajectory point setting) or the like is displayed as an option.

ディスプレイ3は、各種キー群2の押下に応じた文字や符号、数式、演算結果、図形などの他、関数電卓1を使用するために必要な各種データが表示される部分である。なお、本実施の形態におけるディスプレイ3は、ドットマトリクス液晶で構成されているものとして説明するが、例えば、TFT(Thin Film Transistor)液晶やPDP(Plasma Display Panel)等、他の表示装置でも良いことは勿論である。   The display 3 is a portion where various data necessary for using the scientific calculator 1 are displayed in addition to characters, codes, mathematical expressions, calculation results, figures, and the like in response to pressing of the various key groups 2. The display 3 in the present embodiment is described as being composed of dot matrix liquid crystal, but may be another display device such as TFT (Thin Film Transistor) liquid crystal or PDP (Plasma Display Panel). Of course.

[1.2 機能構成]
続いて、関数電卓1の機能構成について説明する。
図2は、関数電卓1の機能構成を示すブロック図である。この図に示すように、関数電卓1は入力部4、表示部5、ROM(Read Only Memory)6、RAM(Random Access Memory)7及びCPU(Central Processing Unit)8等の機能部を備えており、各機能部はバス10で接続されている。
[1.2 Functional configuration]
Next, the functional configuration of the scientific calculator 1 will be described.
FIG. 2 is a block diagram showing a functional configuration of the scientific calculator 1. As shown in this figure, the scientific calculator 1 includes functional units such as an input unit 4, a display unit 5, a ROM (Read Only Memory) 6, a RAM (Random Access Memory) 7, and a CPU (Central Processing Unit) 8. Each functional unit is connected by a bus 10.

入力部4は、上述の各種キー群2を備えており、押下されたキーの信号をCPU8に出力するようになっている。
表示部5は、上述のディスプレイ3を備えており、CPU8からの信号に基づいて各種情報をディスプレイ3に表示するようになっている。
The input unit 4 includes the various key groups 2 described above, and outputs a signal of a pressed key to the CPU 8.
The display unit 5 includes the above-described display 3 and displays various information on the display 3 based on signals from the CPU 8.

ROM6は、関数電卓1におけるメニュー表示処理や各種設定処理、各種演算処理等の動作に係るプログラムや、関数電卓1の備える種々の機能を実現するためのプログラム等を格納しており、本実施の形態においては、図形描画プログラム60、アニメーション表示プログラム61、動点移動距離・時間記憶領域62及び基準軌跡距離記憶領域63を格納している。   The ROM 6 stores programs related to operations such as menu display processing, various setting processes, and various arithmetic processes in the scientific calculator 1, programs for realizing various functions of the scientific calculator 1, and the like. In the embodiment, a graphic drawing program 60, an animation display program 61, a moving point moving distance / time storage area 62, and a reference locus distance storage area 63 are stored.

このうち、図形描画プログラム60は、後述の図形描画処理(図3参照)において描画される図形(以下、描画図形とする)の表示処理等をCPU8に実行させるためのプログラムである。   Among these, the graphic drawing program 60 is a program for causing the CPU 8 to execute a display process of a graphic (hereinafter referred to as a drawing graphic) drawn in a graphic drawing process (see FIG. 3) described later.

また、アニメーション表示プログラム61は、後述の図形描画処理(図3参照)において、軌跡点として設定される点の移動により描画される軌跡についてのアニメーション表示処理をCPU8に実行させるためのプログラムである。   The animation display program 61 is a program for causing the CPU 8 to execute an animation display process for a locus drawn by movement of a point set as a locus point in a graphic drawing process (see FIG. 3) described later.

また、動点移動距離・時間記憶領域62には、後述の図形描画処理(図3参照)において動点として設定される点の1段階での移動距離及び移動時間が記憶されるようになっており、本実施の形態においては、これら移動距離及び移動時間のデフォルト値か、或いは当該デフォルト値を減少させた値が記憶されるようになっている。ここで、1段階とは、動点及び軌跡点が移動するアニメーション表示の進行単位である。なお、移動距離及び移動時間のデフォルト値は、所定の操作によりユーザが任意に設定し直すことが可能となっている。   The moving point moving distance / time storage area 62 stores the moving distance and moving time at one stage of points set as moving points in the graphic drawing process (see FIG. 3) described later. In this embodiment, the default values of the moving distance and the moving time, or values obtained by reducing the default values are stored. Here, one stage is a progress unit of animation display in which the moving point and the trajectory point move. Note that the default values of the moving distance and the moving time can be arbitrarily set by the user by a predetermined operation.

また、基準軌跡距離記憶領域63には、後述の図形描画処理(図3参照)において、1段階での動点の移動に追従した軌跡点の移動距離(以下、軌跡距離とする)の長さを評価するための基準距離が記憶されている。なお、当該基準距離は、所定の操作によりユーザが任意に設定し直すことが可能となっている。   In the reference trajectory distance storage area 63, the length of the movement distance of the trajectory point (hereinafter referred to as the trajectory distance) following the movement of the moving point in one step in the graphic drawing process (see FIG. 3) described later. A reference distance for evaluating is stored. The reference distance can be arbitrarily set by the user by a predetermined operation.

RAM7は、CPU8が実行する各種プログラムや、これらのプログラムの実行に係るデータ等を一時的に保持する随時書き込み可能なメモリであり、本実施の形態においては、描画図形記憶領域70、軌跡点記憶領域71、動点記憶領域72及び軌跡距離記憶領域73を有している。   The RAM 7 is a memory that can be written as needed to temporarily hold various programs executed by the CPU 8 and data related to the execution of these programs. In the present embodiment, the RAM 7 is a drawing figure storage area 70 and a locus point storage. An area 71, a moving point storage area 72, and a trajectory distance storage area 73 are provided.

このうち、描画図形記憶領域70には、後述の図形描画処理(図3参照)において描画図形の内容が記憶されるようになっている。   Among these, the drawing figure storage area 70 stores the contents of the drawing figure in the figure drawing process (see FIG. 3) described later.

また、軌跡点記憶領域71には、後述の図形描画処理(図3参照)において軌跡点の描画図形内での位置情報が記憶されるようになっている。軌跡点が複数設定された場合には、各軌跡点の位置情報が記憶される。ここで、位置情報とは、表示画面上の座標データでも良いし、動点と各図形要素との関係から算出される軌跡点の位置に関する情報でも良い。   The locus point storage area 71 stores position information of the locus point in the drawing figure in the graphic drawing process (see FIG. 3) described later. When a plurality of locus points are set, position information of each locus point is stored. Here, the position information may be coordinate data on the display screen, or information on the position of the locus point calculated from the relationship between the moving point and each graphic element.

また、動点記憶領域72には、後述の図形描画処理(図3参照)において動点の描画図形内での位置情報が記憶されるようになっている。   The moving point storage area 72 stores position information of the moving point in the drawing graphic in the graphic drawing process (see FIG. 3) described later.

また、軌跡距離記憶領域73には、後述の図形描画処理(図3参照)において軌跡点の1段階での軌跡距離が記憶されるようになっている。   Further, the trajectory distance storage area 73 stores the trajectory distance at one stage of the trajectory point in a graphic drawing process (see FIG. 3) described later.

CPU8は、入力される指示に応じて所定のプログラムに基づいた処理を実行し、各機能部への指示やデータの転送を行うようになっている。具体的には、CPU8は、入力部4から入力される操作信号に応じて、ROM6中のプログラム等を読み出してRAM7に展開し、処理を実行する。そして、CPU8は、処理結果を表示するための表示制御信号を表示部5に適宜出力して、対応した情報を表示させる。   The CPU 8 executes processing based on a predetermined program in accordance with an input instruction, and transfers instructions and data to each functional unit. Specifically, the CPU 8 reads a program or the like in the ROM 6 in accordance with an operation signal input from the input unit 4, expands it in the RAM 7, and executes processing. Then, the CPU 8 appropriately outputs a display control signal for displaying the processing result to the display unit 5 to display the corresponding information.

[1.3 関数電卓の動作]
続いて、関数電卓1の動作について説明する。図3は、CPU8がROM6から図形描画プログラム60及びアニメーション表示プログラム61を読み出して実行する図形描画処理の動作を説明するためのフローチャートである。
[1.3 Operation of scientific calculator]
Next, the operation of the scientific calculator 1 will be described. FIG. 3 is a flowchart for explaining the operation of the graphic drawing process in which the CPU 8 reads the graphic drawing program 60 and the animation display program 61 from the ROM 6 and executes them.

まず、図3に示すように、CPU8は、ユーザにより各種キー群2を介して図形描画モードが選択されるか否かを判定し(ステップS1)、選択されないと判定した場合(ステップS1;No)には、他の処理へ移行する。   First, as shown in FIG. 3, the CPU 8 determines whether or not the figure drawing mode is selected by the user via the various key groups 2 (step S1), and determines that it is not selected (step S1; No). ) Shifts to another process.

また、ステップS1において図形描画モードが選択されたと判定した場合(ステップS1;Yes)には、CPU8は、ROM6から図形描画プログラム60を読み出して実行する。具体的には、CPU8は、各種キー群2を介してユーザに図形の描画操作を行わせ、当該操作に従ってディスプレイ3に図形を描画させるとともに、描画された図形を描画図形記憶領域70に記憶させる(ステップS2)。   If it is determined in step S1 that the graphic drawing mode is selected (step S1; Yes), the CPU 8 reads the graphic drawing program 60 from the ROM 6 and executes it. Specifically, the CPU 8 causes the user to perform a drawing operation via the various key groups 2, causes the display 3 to draw a graphic according to the operation, and stores the drawn graphic in the drawing graphic storage area 70. (Step S2).

次に、CPU8は、描画図形内で移動対象の点と、その移動範囲とが指定されるか否かを判定し(ステップS3)、指定されないと判定した場合(ステップS3;No)には、他の処理へ移行する。   Next, the CPU 8 determines whether or not the movement target point and the movement range in the drawing figure are specified (step S3). If it is determined that the point is not specified (step S3; No), Move to another process.

また、ステップS3において点及び移動範囲が指定されたと判定した場合(ステップS3;Yes)には、CPU8は、指定された点を動点として設定し、描画図形内での当該動点の位置情報を移動範囲とともに動点記憶領域72に記憶させる(ステップS4)。このときの移動範囲の指定は、動点として設定された点を当該動点が移動開始する始点とし、この始点とは別の点を終点として選択することにより行われる。終点とされた点は、その位置情報が動点記憶領域72に記憶される。   If it is determined in step S3 that a point and a movement range have been designated (step S3; Yes), the CPU 8 sets the designated point as a moving point, and position information of the moving point in the drawing figure. Are stored in the moving point storage area 72 together with the moving range (step S4). Designation of the movement range at this time is performed by selecting a point set as a moving point as a starting point at which the moving point starts moving and selecting a point different from the starting point as an ending point. The position information of the end point is stored in the moving point storage area 72.

次に、CPU8は、描画図形内で軌跡の描画対象の点が少なくとも1つ指定されるか否かを判定し(ステップS5)、1つも指定されないと判定した場合(ステップS5;No)には、他の処理へ移行する。   Next, the CPU 8 determines whether or not at least one drawing target point of the locus is specified in the drawing figure (step S5), and when it is determined that none is specified (step S5; No). , Move to other processing.

また、ステップS5において軌跡描画対象の点が少なくとも1つ指定されたと判定した場合(ステップS5;Yes)には、CPU8は、指定された各点を軌跡点として設定し、描画図形内での当該各軌跡点の位置情報を軌跡点記憶領域71に記憶させる(ステップS6)。なお、以下では、当該ステップS6において複数の軌跡点が設定されたものとして説明する。   If it is determined in step S5 that at least one point for locus drawing is designated (step S5; Yes), the CPU 8 sets each designated point as a locus point, and the corresponding point in the drawing figure is set. The position information of each locus point is stored in the locus point storage area 71 (step S6). In the following description, it is assumed that a plurality of trajectory points are set in step S6.

次に、CPU8は、ユーザにより各種キー群2を介して動点の移動開始操作がされるか否かを判定し(ステップS7)、されないと判定した場合(ステップS7;No)には、当該ステップS7を繰り返す。   Next, the CPU 8 determines whether or not a moving point movement start operation is performed by the user via the various key groups 2 (step S7), and if not (step S7; No), Step S7 is repeated.

また、ステップS7において移動開始操作がされたと判定した場合(ステップS7;Yes)には、CPU8は、動点を始点から終点に向かう方向へ1段階移動させるときの各軌跡点の位置情報を算出する(ステップS8)。より詳しくは、CPU8は、動点記憶領域72内の情報に基づいて、動点移動距離・時間記憶領域62に記憶された1段階での移動距離だけ移動させた場合の動点の位置情報を算出するとともに、軌跡点記憶領域71内の情報に基づいて、当該動点の移動に追従させた各軌跡点の軌跡を算出し、更に当該軌跡の端点の位置情報をそれぞれ算出する。   If it is determined in step S7 that the movement start operation has been performed (step S7; Yes), the CPU 8 calculates position information of each trajectory point when moving the moving point in one direction from the starting point toward the ending point. (Step S8). More specifically, based on the information in the moving point storage area 72, the CPU 8 indicates the position information of the moving point when moved by the moving distance in one step stored in the moving point moving distance / time storage area 62. At the same time, based on the information in the trajectory point storage area 71, the trajectory of each trajectory point following the movement of the moving point is calculated, and the position information of the end points of the trajectory is calculated.

このステップS8において、動点の移動距離が終点までの距離を超える場合、つまり動点が終点を超えて移動してしまう場合には、当該終点が移動後の動点とされる。
なお、このステップS8以降の図形描画処理においては、CPU8は、図形描画プログラム60に代えてアニメーション表示プログラム61をROM6から読み出して実行する。
In this step S8, when the moving distance of the moving point exceeds the distance to the end point, that is, when the moving point moves beyond the end point, the end point is set as the moving point after movement.
In the graphic drawing process after step S8, the CPU 8 reads the animation display program 61 from the ROM 6 and executes it instead of the graphic drawing program 60.

次に、CPU8は、ステップS8で動点を1段階移動させるときの、当該段階での各軌跡点の軌跡距離を算出し、軌跡距離記憶領域73に記憶させる(ステップS9)。   Next, the CPU 8 calculates the trajectory distance of each trajectory point at the stage when the moving point is moved by one stage in step S8, and stores it in the trajectory distance storage area 73 (step S9).

次に、CPU8は、ステップS9で算出された各軌跡点の軌跡距離が、基準軌跡距離記憶領域63に記憶された基準距離よりも長いか否かをそれぞれ判定し(ステップS10)、少なくとも1つの軌跡点の軌跡距離が基準距離よりも長いと判定した場合(ステップS10;Yes)には、動点移動距離・時間記憶領域62に記憶された1段階での動点の移動距離及び移動時間を半分に設定し、この段階での移動距離及び移動時間として動点移動距離・時間記憶領域62に記憶させた後(ステップS11)、上述のステップS8に移行する。なお、ステップS11では、動点の移動距離及び移動時間を半分に設定しなくとも、これらを減少させればよく、例えば、各軌跡点の軌跡距離が基準距離と等しくなるように動点の移動距離を減少させ、同じ割合で移動時間を減少させてもよい。   Next, the CPU 8 determines whether or not the trajectory distance of each trajectory point calculated in step S9 is longer than the reference distance stored in the reference trajectory distance storage area 63 (step S10). When it is determined that the trajectory distance of the trajectory point is longer than the reference distance (step S10; Yes), the moving point moving distance and moving time in one step stored in the moving point moving distance / time storage area 62 are calculated. After being set in half and stored in the moving point moving distance / time storage area 62 as the moving distance and moving time at this stage (step S11), the process proceeds to step S8 described above. In step S11, even if the moving distance and the moving time of the moving point are not set to half, it is sufficient to decrease them. For example, the moving point is moved so that the locus distance of each locus point becomes equal to the reference distance. You may decrease the distance and decrease the travel time at the same rate.

また、ステップS10において全ての軌跡点の軌跡距離が基準距離よりも短い(ステップS10;No)と判定した場合には、CPU8は、動点移動距離・時間記憶領域62に記憶された動点の移動時間が経過した後に、動点及び各軌跡点をステップS8で算出された位置まで1段階進めてディスプレイ3に描画させるとともに、進められた当該動点及び各軌跡点の位置情報を動点記憶領域72及び軌跡点記憶領域71にそれぞれ記憶させる(ステップS12)。また、このときCPU8は、この段階での軌跡点の軌跡をディスプレイ3に描画させるとともに、動点移動距離・時間記憶領域62に記憶されている1段階での移動距離及び移動時間をデフォルト値に戻す。   If it is determined in step S10 that the trajectory distances of all trajectory points are shorter than the reference distance (step S10; No), the CPU 8 stores the moving point stored in the moving point moving distance / time storage area 62. After the movement time has elapsed, the moving point and each trajectory point are advanced by one step to the position calculated in step S8 and drawn on the display 3, and the advanced moving point and the position information of each trajectory point are stored in the moving point. It memorize | stores in the area | region 72 and the locus | trajectory point storage area 71, respectively (step S12). At this time, the CPU 8 draws the locus of the locus point at this stage on the display 3, and sets the movement distance and movement time in one stage stored in the moving point movement distance / time storage area 62 to the default values. return.

次に、CPU8は、ステップS12で1段階進められた動点の位置が、ステップS4で動点記憶領域72に記憶された終点の位置であるか否かを判定し(ステップS13)、終点の位置ではないと判定した場合(ステップS13;No)には、上述のステップS8に移行する。   Next, the CPU 8 determines whether or not the position of the moving point advanced by one step in step S12 is the position of the end point stored in the moving point storage area 72 in step S4 (step S13). If it is determined that the position is not reached (step S13; No), the process proceeds to step S8 described above.

また、ステップS13において動点の位置が終点の位置であると判定した場合(ステップS13;Yes)には、CPU8は図形描画処理を終了する。   If it is determined in step S13 that the moving point is the end point (step S13; Yes), the CPU 8 ends the graphic drawing process.

[1.4 動作例]
続いて、図4〜図8を参照しつつ、上記の図形描画処理を具体的に説明する。ここで、後述の図5(a),(d)や図6(c),図7(b)では、説明の便宜上、図示内容をディスプレイ3に表示された状態で図示しているが、これらの内容は未だディスプレイ3には表示されていないものである。
[1.4 Operation example]
Next, the graphic drawing process will be specifically described with reference to FIGS. Here, in FIG. 5 (a), (d), FIG. 6 (c), and FIG. 7 (b), which will be described later, for the sake of convenience of explanation, the illustrated content is shown in a state displayed on the display 3. Is not displayed on the display 3 yet.

まず、例えば図4(a)に示すように、ユーザが各種キー群2を介して図形描画モードを選択した後(ステップS1;Yes)、直線AB、直線ABの垂線P、円C及び三角形GHIを描画すると、ディスプレイ3に描画図形が表示される(ステップS2)。ここで、三角形GHIは円Cに内接している。   First, for example, as shown in FIG. 4A, after the user selects a graphic drawing mode via the various key groups 2 (step S1; Yes), the straight line AB, the perpendicular P of the straight line AB, the circle C, and the triangle GHI. Is drawn, a drawing figure is displayed on the display 3 (step S2). Here, the triangle GHI is inscribed in the circle C.

次に、図4(b)に示すように、ユーザが方向キー24の操作によりカーソル(図示せず)を直線ABと垂線Pとの交点(以下、点Dとする)に移動させてEXEキー22の操作を行うと(ステップS3;Yes)、点Dが動点として設定される(ステップS4)。なお、本動作例では、ここで指定される点は、動点Dの移動開始点(以下、始点D0とする)となる。 Next, as shown in FIG. 4B, the user moves a cursor (not shown) to an intersection (hereinafter referred to as a point D) between the straight line AB and the perpendicular line P by operating the direction key 24 to execute the EXE key. When the operation 22 is performed (step S3; Yes), the point D is set as a moving point (step S4). In this operation example, the point designated here is the movement start point of the moving point D (hereinafter referred to as the starting point D 0 ).

次に、ユーザが方向キー24の操作によりカーソルを線分AB上で移動させた後、EXEキー22の操作を行なうと(ステップS3;Yes)、操作時点でのカーソルの位置が動点Dの移動終了点(以下、終点DEとする)とされ、その結果、動点Dの移動範囲(D0〜DE)が設定される(ステップS4)。なお、本動作例では、動点Dは段階順にD0、D1、D2・・・DEと移動するものとする。 Next, when the user moves the cursor on the line segment AB by operating the direction key 24 and then operates the EXE key 22 (step S3; Yes), the cursor position at the time of the operation is the moving point D. movement end point (hereinafter, an end point D E) is a, as a result, the moving range of the moving point D (D 0 ~D E) is set (step S4). In the present operation example, moving point D is assumed to move with the D 0, D 1, D 2 · · · D E in step order.

次に、ユーザがF2キー25a及びテンキー20の「3」キーを操作してカーソルによる全ての選択を解除した後、方向キー24の操作によりカーソルを垂線Pと円Cとの交点(以下、点Eとする)上に移動させてEXEキー22、OPTNキー26及びテンキー20の「7」キーの順に操作を行い、円C上で再びテンキー20の「7」キーの操作を行うと(ステップS5;Yes)、点Eが円C上に軌跡を描く軌跡点として設定される(ステップS6)。更に、垂線Pと三角形GHIとの交点(以下、点Fとする)に対し、点E及び円Cに対すると同様の操作を行うことで、点Fが三角形GHI上に軌跡を描く軌跡点として設定される(ステップS6)。なお、本動作例では、ここで指定される点が軌跡点E,Fの移動開始点(以下、始点E0,F0とする)とされ、これら軌跡点E,Fは段階順にE0,E1,E2・・・,或いはF0,F1,F2・・・と移動するものとする。 Next, after the user operates the F2 key 25a and the "3" key of the numeric keypad 20 to cancel all selections by the cursor, the cursor is moved to the intersection of the perpendicular P and the circle C (hereinafter referred to as a point) by operating the direction key 24. (E), the key is operated in the order of the EXE key 22, the OPTN key 26, and the "7" key of the numeric keypad 20, and the "7" key of the numeric keypad 20 is operated again on the circle C (step S5). ; Yes), the point E is set as a locus point for drawing a locus on the circle C (step S6). Further, by performing the same operation as the point E and the circle C on the intersection of the perpendicular P and the triangle GHI (hereinafter referred to as the point F), the point F is set as a locus point that draws a locus on the triangle GHI. (Step S6). In this operation example, the points specified here are the movement start points of the trajectory points E and F (hereinafter referred to as the start points E 0 and F 0 ), and these trajectory points E and F are E 0 , Assume that E 1 , E 2 ... Or F 0 , F 1 , F 2 .

次に、ユーザが各種キー群2の操作により動点Dの移動開始操作を行なうと(ステップS7;Yes)、図4(c)に示すように、動点Dを始点D0から終点DEに向かってデフォルト値の移動距離dだけ移動させた点D1の位置情報が算出されるとともに、この点D1を通る垂線P(図中、破線で表示)と円Cとの交点E1の位置情報が算出され、同様に点D1を通る垂線Pと三角形GHIとの交点F1の位置情報が算出される(ステップS8)。 Then, when the user performs a movement operation for starting moving point D by the operation of the various key group 2 (step S7; Yes), as shown in FIG. 4 (c), the end point D E the moving point D from the start point D 0 The position information of the point D 1 moved by the default movement distance d toward is calculated, and the perpendicular E (indicated by a broken line in the figure) passing through the point D 1 and the intersection E 1 of the circle C Similarly, the position information is calculated, and the position information of the intersection F 1 between the perpendicular P passing through the point D 1 and the triangle GHI is calculated (step S8).

次に、軌跡点E,Fの軌跡距離として軌跡E01,F0GF1の長さが算出され(ステップS9)、基準距離よりも長いか否かの判定がされる(ステップS10)。ここでは、軌跡E01,F0GF1の長さは何れも基準距離より短いと判定され(ステップS10;No)、デフォルト値の移動時間tが経過した後、この段階での軌跡点E,Fの軌跡E01,F0GF1が太線でディスプレイ3に描画される。そして、図4(d)に示すように、動点Dが点D1まで進められ、同時に軌跡点E,Fも点E1,F1まで進められて描画される(ステップS12)。 Next, the lengths of the trajectories E 0 E 1 and F 0 GF 1 are calculated as the trajectory distances of the trajectory points E and F (step S9), and it is determined whether or not they are longer than the reference distance (step S10). . Here, it is determined that the lengths of the trajectories E 0 E 1 and F 0 GF 1 are both shorter than the reference distance (step S10; No), and the trajectory points at this stage after the default moving time t has elapsed. The trajectories E 0 E 1 and F 0 GF 1 of E and F are drawn on the display 3 with bold lines. Then, as shown in FIG. 4 (d), advanced moving point D is to point D 1, is drawn advanced to the locus point E, F also points E 1, F 1 at the same time (step S12).

次に、点D1の位置が終点DEの位置とは異なるため(ステップS13;No)、動点Dの移動処理が続けて行われる。つまり、図5(a)に示すように、動点Dを点D1からデフォルト値の移動距離dだけ移動させた点D2の位置情報が算出されるとともに、この点D2を通る垂線P(図中、破線で表示)と円C,三角形GHIとの交点E2,F2の位置情報が算出される(ステップS8)。 Next, since the position of the point D 1 is different from the position of the end point D E (step S13; No), the moving process of the moving point D is continued. That is, as shown in FIG. 5A, the position information of the point D 2 obtained by moving the moving point D from the point D 1 by the default moving distance d is calculated, and the perpendicular P passing through the point D 2 is calculated. The position information of the intersections E 2 and F 2 of the circle C and the triangle GHI (indicated by broken lines in the figure) is calculated (step S8).

次に、軌跡点E,Fの軌跡距離として軌跡E12,F12の長さが算出され(ステップS9)、基準距離よりも長いか否かの判定がされる(ステップS10)。ここでは、軌跡E12の長さは基準距離より短いものの、軌跡F12の長さは基準距離より長いと判定され(ステップS10;Yes)、デフォルト値の移動距離d及び移動時間tを半分にしたd/2及びt/2が、この段階における動点Dの新たな移動距離及び移動時間として設定される(ステップS11)。 Next, the lengths of the trajectories E 1 E 2 and F 1 F 2 are calculated as the trajectory distances of the trajectory points E and F (step S9), and it is determined whether or not they are longer than the reference distance (step S10). . Here, although the length of the trajectory E 1 E 2 is shorter than the reference distance, it is determined that the length of the trajectory F 1 F 2 is longer than the reference distance (step S10; Yes), and the default moving distance d and moving time. d / 2 and t / 2 obtained by halving t are set as the new moving distance and moving time of the moving point D at this stage (step S11).

次に、図5(b)に示すように、動点Dを点D1から移動距離d/2だけ移動させた新たな点D2の位置情報が算出されるとともに、この点D2を通る垂線P(図中、破線で表示)と円C,三角形GHIとの新たな交点E2,F2の位置情報が算出される(ステップS8)。 Next, as shown in FIG. 5B, the position information of a new point D 2 obtained by moving the moving point D from the point D 1 by the moving distance d / 2 is calculated and passes through this point D 2 . Position information of new intersections E 2 and F 2 between the perpendicular line P (indicated by a broken line in the figure), the circle C, and the triangle GHI is calculated (step S8).

次に、軌跡点E,Fの軌跡距離として軌跡E12,F12の長さが算出され(ステップS9)、基準距離よりも長いか否かの判定がされる(ステップS10)。ここでは、軌跡E12,F12の長さは何れも基準距離より短いと判定され(ステップS10;No)、移動時間t/2が経過した後、この段階での軌跡点E,Fの軌跡E12,F12が太線でディスプレイ3に描画される。そして、図5(c)に示すように、動点Dが点D2まで進められ、同時に軌跡点E,Fも点E2,F2まで進められて描画される(ステップS12)。 Next, the lengths of the trajectories E 1 E 2 and F 1 F 2 are calculated as the trajectory distances of the trajectory points E and F (step S9), and it is determined whether or not they are longer than the reference distance (step S10). . Here, it is determined that the lengths of the trajectories E 1 E 2 and F 1 F 2 are both shorter than the reference distance (step S10; No), and the trajectory point E at this stage after the movement time t / 2 has elapsed. , F trajectories E 1 E 2 and F 1 F 2 are drawn on the display 3 with bold lines. Then, as shown in FIG. 5 (c), advanced moving point D is to point D 2, is drawn also progressing to the point E 2, F 2 at the same time trajectory points E, F (step S12).

次に、点D2の位置が終点DEの位置とは異なるため(ステップS13;No)、動点Dの移動処理が続けて行われる。つまり、図5(d)に示すように、動点Dを点D2からデフォルト値の移動距離dだけ移動させた点D3の位置情報が算出されるとともに、この点D3を通る垂線P(図中、破線で表示)と円C,三角形GHIとの交点E3,F3の位置情報が算出される(ステップS8)。 Next, since the position of the point D 2 is different from the position of the end point D E (step S13; No), the moving process of the moving point D is continued. That is, as shown in FIG. 5D, the position information of the point D 3 obtained by moving the moving point D from the point D 2 by the default moving distance d is calculated, and the perpendicular line P passing through the point D 3 is calculated. Position information of intersections E 3 and F 3 (shown by broken lines in the figure), circle C, and triangle GHI is calculated (step S8).

次に、軌跡点E,Fの軌跡距離として軌跡E23,F23の長さが算出され(ステップS9)、基準距離よりも長いか否かの判定がされる(ステップS10)。ここでは、軌跡E23,F23の長さは何れも基準距離より長いと判定され(ステップS10;Yes)、デフォルト値の移動距離d及び移動時間tを半分にしたd/2及びt/2が、この段階における動点Dの新たな移動距離及び移動時間として設定される(ステップS11)。 Next, the lengths of the trajectories E 2 E 3 and F 2 F 3 are calculated as the trajectory distances of the trajectory points E and F (step S9), and it is determined whether or not they are longer than the reference distance (step S10). . Here, it is determined that the lengths of the trajectories E 2 E 3 and F 2 F 3 are both longer than the reference distance (step S10; Yes), and d / 2 is obtained by halving the default moving distance d and moving time t. And t / 2 are set as the new moving distance and moving time of the moving point D at this stage (step S11).

次に、図6(a)に示すように、動点Dを点D2から移動距離d/2だけ移動させた新たな点D3の位置情報が算出されるとともに、この点D3を通る垂線P(図中、破線で表示)と円C,三角形GHIとの新たな交点E3,F3の位置情報が算出される(ステップS8)。 Next, as shown in FIG. 6A, the position information of a new point D 3 obtained by moving the moving point D from the point D 2 by the moving distance d / 2 is calculated and passes through this point D 3 . Position information of new intersections E 3 and F 3 between the perpendicular line P (indicated by a broken line in the figure), the circle C, and the triangle GHI is calculated (step S8).

次に、軌跡点E,Fの軌跡距離として軌跡E23,F23の長さが算出され(ステップS9)、基準距離よりも長いか否かの判定がされる(ステップS10)。ここでは、軌跡E23,F23の長さは何れも基準距離より短いと判定され(ステップS10;No)、移動時間t/2が経過した後、この段階での軌跡点E,Fの軌跡E23,F23が太線でディスプレイ3に描画される。そして、図6(b)に示すように、動点Dが点D3まで進められ、同時に軌跡点E,Fも点E3,F3まで進められて描画される(ステップS12)。 Next, the lengths of the trajectories E 2 E 3 and F 2 F 3 are calculated as the trajectory distances of the trajectory points E and F (step S9), and it is determined whether or not they are longer than the reference distance (step S10). . Here, it is determined that the lengths of the trajectories E 2 E 3 and F 2 F 3 are both shorter than the reference distance (step S10; No), and the trajectory point E at this stage after the movement time t / 2 has elapsed. , F trajectories E 2 E 3 and F 2 F 3 are drawn on the display 3 with bold lines. Then, as shown in FIG. 6B, the moving point D is advanced to the point D 3, and at the same time, the locus points E and F are also advanced to the points E 3 and F 3 and drawn (step S12).

次に、点D3の位置が終点DEの位置とは異なるため(ステップS13;No)、動点Dの移動処理が続けて行われる。つまり、図6(c)に示すように、動点Dを点D3からデフォルト値の移動距離dだけ移動させた点D4の位置情報が算出されるとともに、この点D4を通る垂線P(図中、破線で表示)と円C,三角形GHIとの交点E4,F4の位置情報が算出される(ステップS8)。 Next, since the position of the point D 3 is different from the position of the end point D E (step S13; No), the moving process of the moving point D is continued. That is, as shown in FIG. 6C, the position information of the point D 4 obtained by moving the moving point D from the point D 3 by the default moving distance d is calculated, and the perpendicular P passing through the point D 4 is calculated. The position information of the intersections E 4 and F 4 of the circle C and the triangle GHI (shown by broken lines in the figure) is calculated (step S8).

次に、軌跡点E,Fの軌跡距離として軌跡E34,F34の長さが算出され(ステップS9)、基準距離よりも長いか否かの判定がされる(ステップS10)。ここでは、軌跡E34,F34の長さは何れも基準距離より長いと判定され(ステップS10;Yes)、デフォルト値の移動距離d及び移動時間tを半分にしたd/2及びt/2が、この段階における動点Dの新たな移動距離及び移動時間として設定される(ステップS11)。 Next, the lengths of the trajectories E 3 E 4 and F 3 F 4 are calculated as the trajectory distances of the trajectory points E and F (step S9), and it is determined whether or not they are longer than the reference distance (step S10). . Here, it is determined that the lengths of the trajectories E 3 E 4 and F 3 F 4 are both longer than the reference distance (step S10; Yes), and d / 2 is obtained by halving the default moving distance d and moving time t. And t / 2 are set as the new moving distance and moving time of the moving point D at this stage (step S11).

次に、図6(d)に示すように、動点Dを点D3から移動距離d/2だけ移動させた新たな点D4の位置情報が算出されるとともに、この点D4を通る垂線P(図中、破線で表示)と円C,三角形GHIとの新たな交点E4,F4の位置情報が算出される(ステップS8)。 Next, as shown in FIG. 6 (d), together with the position information of the moving distance d / 2 new point is moved by D 4 of the moving point D from point D 3 is calculated, through this point D 4 Position information of new intersections E 4 and F 4 between the perpendicular P (indicated by a broken line in the figure), the circle C, and the triangle GHI is calculated (step S8).

次に、軌跡点E,Fの軌跡距離として軌跡E34,F34の長さが算出され(ステップS9)、基準距離よりも長いか否かの判定がされる(ステップS10)。ここでは、軌跡E34,F34の長さは何れも基準距離より短いと判定され(ステップS10;No)、移動時間t/2が経過した後、この段階での軌跡点E,Fの軌跡E34,F34が太線でディスプレイ3に描画される。そして、図7(a)に示すように、動点Dが点D4まで進められ、同時に軌跡点E,Fも点E4,F4まで進められて描画される(ステップS12)。 Next, the lengths of the trajectories E 3 E 4 and F 3 F 4 are calculated as the trajectory distances of the trajectory points E and F (step S9), and it is determined whether or not they are longer than the reference distance (step S10). . Here, it is determined that the lengths of the trajectories E 3 E 4 and F 3 F 4 are both shorter than the reference distance (step S10; No), and the trajectory point E at this stage after the movement time t / 2 has elapsed. , F trajectories E 3 E 4 and F 3 F 4 are drawn on the display 3 with bold lines. Then, as shown in FIG. 7A, the moving point D is advanced to the point D 4, and at the same time, the locus points E and F are also advanced to the points E 4 and F 4 and drawn (step S12).

次に、点D4の位置が終点DEの位置とは異なるため(ステップS13;No)、動点Dの移動処理が続けて行われる。つまり、図7(b)に示すように、動点Dを点D4からデフォルト値の移動距離dだけ移動させた点が終点DEに一致することから当該終点DEが動点Dの移動点Dとされ、この点Dを通る垂線P(図中、破線で表示)と円C,三角形GHIとの交点E5,F5の位置情報が算出される(ステップS8)。 Next, since the position of the point D 4 is different from the position of the end point D E (step S13; No), the moving process of the moving point D is continued. That is, as shown in FIG. 7B, a point obtained by moving the moving point D from the point D 4 by the default moving distance d coincides with the end point D E , so that the end point D E is moved by the moving point D. is a point D 5, (in the figure, a broken line display) perpendicular P passing through this point D 5 a circle C, the position information of the intersection E 5, F 5 with the triangle GHI is calculated (step S8).

次に、軌跡点E,Fの軌跡距離として軌跡E45,F45の長さが算出され(ステップS9)、基準距離よりも長いか否かの判定がされる(ステップS10)。ここでは、軌跡E45,F45の長さは何れも基準距離より長いと判定され(ステップS10;Yes)、デフォルト値の移動距離d及び移動時間tを半分にしたd/2及びt/2が、この段階における動点Dの新たな移動距離及び移動時間として設定される(ステップS11)。 Next, the lengths of the trajectories E 4 E 5 and F 4 F 5 are calculated as the trajectory distances of the trajectory points E and F (step S9), and it is determined whether or not they are longer than the reference distance (step S10). . Here, it is determined that the lengths of the trajectories E 4 E 5 and F 4 F 5 are both longer than the reference distance (step S10; Yes), and d / 2 is obtained by halving the default movement distance d and movement time t. And t / 2 are set as the new moving distance and moving time of the moving point D at this stage (step S11).

次に、図7(c)に示すように、動点Dを点D4から移動距離d/2だけ移動させた新たな点D5の位置情報が算出されるとともに、この点D5を通る垂線P(図中、破線で表示)と円C,三角形GHIとの新たな交点E5,F5の位置情報が算出される(ステップS8)。 Next, as shown in FIG. 7 (c), together with the position information of the movement distance d / 2 only new point D 5 moving the moving point D from point D 4 are calculated, through this point D 5 Position information of new intersections E 5 and F 5 between the perpendicular line P (indicated by a broken line in the figure), the circle C, and the triangle GHI is calculated (step S8).

次に、軌跡点E,Fの軌跡距離として軌跡E45,F45の長さが算出され(ステップS9)、基準距離よりも長いか否かの判定がされる(ステップS10)。ここでは、軌跡E45,F45の長さは何れも基準距離より短いと判定され(ステップS10;No)、移動時間t/2が経過した後、この段階での軌跡点E,Fの軌跡E45,F45が太線でディスプレイ3に描画される。そして、図7(d)に示すように、動点Dが点D5まで進められ、同時に軌跡点E,Fも点E5,F5まで進められて描画される(ステップS12)。 Next, the lengths of the trajectories E 4 E 5 and F 4 F 5 are calculated as the trajectory distances of the trajectory points E and F (step S9), and it is determined whether or not they are longer than the reference distance (step S10). . Here, it is determined that the lengths of the trajectories E 4 E 5 and F 4 F 5 are both shorter than the reference distance (step S10; No), and the trajectory point E at this stage after the movement time t / 2 has elapsed. , F trajectories E 4 E 5 and F 4 F 5 are drawn on the display 3 with bold lines. Then, as shown in FIG. 7D, the moving point D is advanced to the point D 5, and at the same time, the locus points E and F are also advanced to the points E 5 and F 5 and drawn (step S12).

次に、点D5の位置が終点DEの位置とは異なるため(ステップS13;No)、動点Dの移動処理が続けて行われる。つまり、図8(a)に示すように、動点Dを点D5からデフォルト値の移動距離dだけ移動させた点が終点DEを超えることから当該終点DEが動点Dの移動点Dとされ、この点Dを通る垂線P(図中、破線で表示)と円C,三角形GHIとの交点E6,F6の位置情報が算出される(ステップS8)。 Next, since the position of the point D 5 is different from the position of the end point D E (step S13; No), the moving point D is moved continuously. That is, as shown in FIG. 8A, since the point where the moving point D is moved from the point D 5 by the default moving distance d exceeds the end point D E , the end point D E is the moving point of the moving point D. is a D 6, (in the figure, a broken line display) perpendicular P passing through this point D 6 and the circle C, the position information of the intersection E 6, F 6 with the triangle GHI is calculated (step S8).

次に、軌跡点E,Fの軌跡距離として軌跡E56,F56の長さが算出され(ステップS9)、基準距離よりも長いか否かの判定がされる(ステップS10)。ここでは、軌跡E56,F56の長さは何れも基準距離より短いと判定され(ステップS10;No)、デフォルト値の移動時間tが経過した後、この段階での軌跡点E,Fの軌跡E56,F56が太線でディスプレイ3に描画される。そして、図8(b)に示すように、動点Dが終点DE(D)まで進められ、同時に軌跡点E,Fも点E6,F6まで進められて描画される(ステップS12)。 Next, the lengths of the trajectories E 5 E 6 and F 5 F 6 are calculated as the trajectory distances of the trajectory points E and F (step S9), and it is determined whether or not they are longer than the reference distance (step S10). . Here, it is determined that the lengths of the trajectories E 5 E 6 and F 5 F 6 are both shorter than the reference distance (Step S10; No), and the trajectory points at this stage after the default moving time t has elapsed. The trajectories E 5 E 6 and F 5 F 6 of E and F are drawn on the display 3 with bold lines. Then, as shown in FIG. 8B, the moving point D is advanced to the end point D E (D 6 ), and at the same time, the trajectory points E and F are also advanced to the points E 6 and F 6 to be drawn (step S12). ).

そして、動点Dが終点DEの位置まで移動したため(ステップS13;Yes)、図形描画処理は終了される。 Then, since the moving point D has moved to the position of the end point D E (step S13; Yes), the graphic drawing process ends.

以上の関数電卓1によれば、図3のステップS8〜S11や,図5(a),(b)等で示したように、動点が移動範囲を1段階毎に動くときの軌跡点の軌跡が描画され、動点が1段階に一定の移動距離だけ移動するときの軌跡点の軌跡距離が所定の基準距離以上となる場合に、当該段階で動点が移動する移動距離が減少されるので、動点が1段階移動するときの軌跡点の軌跡距離は必ず基準距離未満となる。したがって、如何なる図形においても軌跡点が大きく動き過ぎることがないため、当該軌跡点の移動をユーザに詳細かつ確実に観察させることができる。   According to the above scientific calculator 1, as shown in steps S8 to S11 of FIG. 3 and FIGS. 5A, 5B, etc., the locus point when the moving point moves in the moving range step by step. When the trajectory is drawn and the trajectory distance of the trajectory point when the moving point moves by a certain moving distance in one step is greater than or equal to a predetermined reference distance, the moving distance by which the moving point moves at that step is reduced. Therefore, the trajectory distance of the trajectory point when the moving point moves one step is always less than the reference distance. Therefore, since the locus point does not move too much in any figure, the movement of the locus point can be observed in detail and surely by the user.

また、図3のステップS11,S12等で示したように、動点は一定の移動距離を一定の移動時間で移動するようディスプレイ3内に描画され、1段階に移動する動点の移動距離が減少された場合に、当該段階での動点の移動時間が同じ割合で減少されるので、動点の移動速度が一定になる。したがって、動点に追従する軌跡点の移動速度もより一定に近くなり、当該軌跡点の移動をユーザに観察させ易くすることができる。   Further, as shown in steps S11, S12, etc. in FIG. 3, the moving point is drawn in the display 3 so as to move at a constant moving distance with a constant moving time, and the moving distance of the moving point moving in one step is If it is decreased, the moving point moving time at this stage is decreased at the same rate, so that the moving point moving speed becomes constant. Therefore, the moving speed of the trajectory point following the moving point becomes closer to constant, and the user can easily observe the movement of the trajectory point.

なお、本発明は上記実施形態に限定されることなく、本発明の主旨を逸脱しない範囲において種々の改良及び設計の変更をおこなっても良い。   The present invention is not limited to the above-described embodiment, and various improvements and design changes may be made without departing from the spirit of the present invention.

例えば、上記の実施形態においては、CPU8は、軌跡点の軌跡距離が基準距離よりも長いと判定した場合に動点の移動距離及び移動時間を減少させることとして説明したが、ユーザが任意に指定した位置(段階)で動点の移動距離及び移動時間を減少させることとしても良い。   For example, in the above embodiment, the CPU 8 has been described as reducing the moving distance and moving time of the moving point when it is determined that the locus distance of the locus point is longer than the reference distance. It is also possible to reduce the moving distance and moving time of the moving point at the position (stage).

また、CPU8は、動点移動距離・時間記憶領域62内の移動時間が経過した後に動点及び軌跡点を進めることとして説明したが、ユーザが所定のボタンを押下することで動点及び軌跡点を進めることとしてもよい。   The CPU 8 has been described as advancing the moving point and the trajectory point after the moving time in the moving point moving distance / time storage area 62 has elapsed, but the moving point and the trajectory point when the user presses a predetermined button. It is also possible to proceed.

また、1段階での動点の移動距離が終点までの距離を超える場合、つまり当該終点が移動後の動点とされた場合には、動点の移動距離のデフォルト値に対する終点までの距離の比を乗じることで当該段階における移動時間を短くしてもよい。   Also, when the moving distance of the moving point in one stage exceeds the distance to the end point, that is, when the end point is the moving point after moving, the distance to the end point with respect to the default value of the moving point moving distance You may shorten the movement time in the said stage by multiplying by ratio.

また、少なくとも1つの軌跡点の軌跡距離が基準距離以上となる場合に当該段階での動点の移動距離を減少させることとして説明したが、全部の軌跡点の軌跡距離が基準距離以上となる場合に減少させることとしても良いし、複数の軌跡点のうち、ユーザに指定された何れかの軌跡点の軌跡距離が基準距離以上となる場合に減少させることとしても良い。   In addition, it has been described that the moving distance of the moving point at the stage is decreased when the trajectory distance of at least one trajectory point is equal to or greater than the reference distance. It is also possible to reduce the distance when the trajectory distance of any trajectory point designated by the user among the plurality of trajectory points is greater than or equal to the reference distance.

また、上記の実施形態における図形描画処理は、グラフを実際に動かして関数式中の係数値の変化を確認するダイナミックグラフに適用することもできる。   In addition, the graphic drawing process in the above embodiment can be applied to a dynamic graph that actually moves the graph and confirms the change in the coefficient value in the function expression.

本発明に係る図形描画装置を適用した関数電卓を示す外観図である。It is an external view which shows the scientific calculator to which the figure drawing apparatus which concerns on this invention is applied. 本発明に係る図形描画装置を適用した関数電卓を示すブロック図である。It is a block diagram which shows the scientific calculator to which the figure drawing apparatus which concerns on this invention is applied. 図形描画処理を示すフローチャートである。It is a flowchart which shows a figure drawing process. 図形描画処理における表示内容等を示す図である。It is a figure which shows the display content etc. in a figure drawing process. 図形描画処理における表示内容等を示す図である。It is a figure which shows the display content etc. in a figure drawing process. 図形描画処理における表示内容等を示す図である。It is a figure which shows the display content etc. in a figure drawing process. 図形描画処理における表示内容等を示す図である。It is a figure which shows the display content etc. in a figure drawing process. 図形描画処理における表示内容等を示す図である。It is a figure which shows the display content etc. in a figure drawing process.

符号の説明Explanation of symbols

1 関数電卓
4 入力部
5 表示部
8 CPU
1 Scientific calculator 4 Input unit 5 Display unit 8 CPU

Claims (4)

表示画面内に図形を描画表示する図形表示手段と、
ユーザ操作に基づいて描画図形上の任意の点を動点として設定する動点設定手段と、
ユーザ操作に基づいて前記動点の移動範囲を設定する動点移動範囲設定手段と、
ユーザ操作に基づいて描画図形上の任意の点を軌跡点として少なくとも1つ設定する軌跡点設定手段と、
前記移動範囲内で1段階毎に一定距離だけ前記動点を移動させて前記図形表示手段に描画させる動点移動描画制御手段と、
前記動点が前記移動範囲を1段階毎に動くときの前記軌跡点の軌跡を前記図形表示手段に描画させる軌跡描画制御手段と、
前記動点が1段階に前記一定距離だけ移動するときの前記軌跡点の軌跡距離が所定の基準距離以上となる場合に、当該段階で前記動点が移動する前記一定距離を減少させる動点距離減少手段と、
を備えることを特徴とする図形描画装置。
Figure display means for drawing and displaying a figure on the display screen;
Moving point setting means for setting an arbitrary point on the drawing figure as a moving point based on a user operation;
A moving point moving range setting means for setting a moving range of the moving point based on a user operation;
Locus point setting means for setting at least one arbitrary point on the drawing figure as a locus point based on a user operation;
Moving point movement drawing control means for moving the moving point by a fixed distance for each step within the movement range and drawing on the graphic display means;
Locus drawing control means for causing the graphic display means to draw a locus of the locus point when the moving point moves in the moving range step by step;
The moving point distance that reduces the fixed distance that the moving point moves at the stage when the moving distance of the moving point is equal to or larger than a predetermined reference distance when the moving point moves by the fixed distance in one stage. Reduction means,
A graphic drawing apparatus comprising:
前記動点移動描画制御手段は、前記動点が前記一定距離を一定時間で移動するよう当該動点を前記図形表示手段に描画させ、
前記動点距離減少手段は、前記動点が1段階に移動する前記一定距離を減少させる場合に、当該段階での前記一定時間を同じ割合で減少させることを特徴とする請求項1に記載の図形描画装置。
The moving point movement drawing control means causes the graphic display means to draw the moving point so that the moving point moves the fixed distance in a fixed time,
The said moving point distance reduction means reduces the said fixed time in the said step in the same ratio, when reducing the said fixed distance which the said moving point moves to one step. Graphic drawing device.
前記動点距離減少手段は、ユーザが指定した段階で前記動点が移動する前記一定距離を減少させることを特徴とする請求項1又は2に記載の図形描画装置。   The graphic drawing apparatus according to claim 1, wherein the moving point distance reducing unit reduces the fixed distance that the moving point moves at a stage specified by a user. 前記軌跡点設定手段は、ユーザ操作に基づいて複数の前記軌跡点を設定し、
前記動点距離減少手段は、前記動点が1段階に前記一定距離だけ移動するときの少なくとも1つの前記軌跡点の軌跡距離が前記基準距離以上となる場合に、当該段階で前記動点が移動する前記一定距離を減少させることを特徴とする請求項1〜3の何れか一項に記載の図形描画装置。
The locus point setting means sets a plurality of locus points based on a user operation,
The moving point distance reducing means moves the moving point at that stage when the moving distance of the at least one locus point when the moving point moves by the fixed distance in one stage is equal to or greater than the reference distance. The graphic drawing apparatus according to claim 1, wherein the fixed distance is reduced.
JP2008251016A 2008-09-29 2008-09-29 Graphic drawing device Active JP5018718B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008251016A JP5018718B2 (en) 2008-09-29 2008-09-29 Graphic drawing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008251016A JP5018718B2 (en) 2008-09-29 2008-09-29 Graphic drawing device

Publications (2)

Publication Number Publication Date
JP2010086020A true JP2010086020A (en) 2010-04-15
JP5018718B2 JP5018718B2 (en) 2012-09-05

Family

ID=42249968

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008251016A Active JP5018718B2 (en) 2008-09-29 2008-09-29 Graphic drawing device

Country Status (1)

Country Link
JP (1) JP5018718B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003281102A (en) * 2002-03-25 2003-10-03 Casio Comput Co Ltd Graph display controller
JP2005071147A (en) * 2003-08-26 2005-03-17 Casio Comput Co Ltd Graph display controller and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003281102A (en) * 2002-03-25 2003-10-03 Casio Comput Co Ltd Graph display controller
JP2005071147A (en) * 2003-08-26 2005-03-17 Casio Comput Co Ltd Graph display controller and program

Also Published As

Publication number Publication date
JP5018718B2 (en) 2012-09-05

Similar Documents

Publication Publication Date Title
JP5029721B2 (en) Graph display device and graph display control program
KR20120138659A (en) List display apparatus
JP2007264741A (en) Mathematical expression display controller and mathematical expression display control program
EP2613228A1 (en) Display apparatus and method of editing displayed letters in the display apparatus
JP2004118727A (en) Graphic display control device and program
JP4475307B2 (en) Graphic drawing apparatus and graphic drawing program
JP2014203322A (en) Drawing device, drawing method, and drawing program
JP5622270B2 (en) INPUT DISPLAY CONTROL DEVICE, INPUT DISPLAY CONTROL METHOD, AND PROGRAM
JP5018718B2 (en) Graphic drawing device
JP5496613B2 (en) Waveform display device and waveform display method
JP4811177B2 (en) Graph display device and graph display processing program
JP5287588B2 (en) Graphic display device and program
JP6188405B2 (en) Display control apparatus, display control method, and program
JP5392270B2 (en) Electronic calculator
JP6504128B2 (en) Electronic device, data processing method and program
JP5380981B2 (en) Mathematical formula calculation apparatus and mathematical formula calculation program
JP6137279B2 (en) Display device, display method, and display program
JP5692317B2 (en) Calculation apparatus and calculation program
WO2023047846A1 (en) Method, device, and program for editing mathematical formula
JP7095368B2 (en) Display control device, display control program and display control method
JP2007114935A (en) Gui/cui cooperation system, method therefor and program therefor
JP2008250438A (en) Mathematical equation arithmetic unit and mathematical equation arithmetic program
JP2009217558A (en) Display mode-switching method
JP4952388B2 (en) Graphic drawing apparatus and graphic drawing program
JP5392343B2 (en) Electronic device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110606

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20110606

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120501

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120515

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120528

R150 Certificate of patent or registration of utility model

Ref document number: 5018718

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150622

Year of fee payment: 3