JP7236015B1 - ELECTRONIC DEVICE, ELECTRONIC DEVICE CONTROL METHOD, AND PROGRAM - Google Patents

ELECTRONIC DEVICE, ELECTRONIC DEVICE CONTROL METHOD, AND PROGRAM Download PDF

Info

Publication number
JP7236015B1
JP7236015B1 JP2022072218A JP2022072218A JP7236015B1 JP 7236015 B1 JP7236015 B1 JP 7236015B1 JP 2022072218 A JP2022072218 A JP 2022072218A JP 2022072218 A JP2022072218 A JP 2022072218A JP 7236015 B1 JP7236015 B1 JP 7236015B1
Authority
JP
Japan
Prior art keywords
circle
specified
designation
receiving
radius
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.)
Active
Application number
JP2022072218A
Other languages
Japanese (ja)
Other versions
JP2023161712A (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.)
A&A Co., Ltd.
Canon Marketing Japan Inc
Original Assignee
A&A Co., Ltd.
Canon Marketing Japan Inc
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 A&A Co., Ltd., Canon Marketing Japan Inc filed Critical A&A Co., Ltd.
Priority to JP2022072218A priority Critical patent/JP7236015B1/en
Priority to JP2022172092A priority patent/JP2023162098A/en
Application granted granted Critical
Publication of JP7236015B1 publication Critical patent/JP7236015B1/en
Publication of JP2023161712A publication Critical patent/JP2023161712A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)
  • Image Generation (AREA)

Abstract

【課題】より操作性よく円の作図を行える技術を提供する。【解決手段】 既存の円の指定を受け付ける第1の受付手段と、画面上の位置の指定を受け付ける第2の受付手段と、前記第2の受付手段で受け付けた指定位置が、前記第1の受付手段で指定を受け付けた円である指定円の内側である場合には前記指定円に内接する円を表示し、前記指定位置が、前記指定円の外側である場合には前記指定円に外接する円を表示するように制御する制御手段とを有することを特徴とする【選択図】図6A technique for drawing a circle with better operability is provided. SOLUTION: First acceptance means for accepting designation of an existing circle; Second acceptance means for accepting designation of a position on a screen; If the specified position is inside the specified circle which is the circle whose specification is accepted by the accepting means, a circle inscribed in the specified circle is displayed, and if the specified position is outside the specified circle, the specified position is circumscribed to the specified circle. and a control means for controlling to display a circle which

Description

図形を描画することが可能な電子機器、その制御方法、及びプログラムに関する。 The present invention relates to an electronic device capable of drawing figures, a control method thereof, and a program.

電子機器において、円や矩形の作図といった図形の描画が行われており、より操作性の描画方法が求められている。 2. Description of the Related Art In electronic devices, figures such as circles and rectangles are drawn, and there is a demand for drawing methods that are more operable.

特許文献1には、次の描画方法が提案されている。すなわち、立体図形の描画領域Ad(Xmin-max/Ymin-max/Zmin-max)を設定し、円柱FCの描画用データ(半径R/高さZ/中心座標X,Y)を入力する。領域Ad及び円柱FCの描画用データに基づき、円柱FCの両端の円FCa,FCbは、円の中心Oと円の円周を複数分割した円周上の隣合う分割点A,Bとを頂点O,A,Bとする複数の三角形tnにより描画する。三角形tnの頂点O,A,Bのうち、O,A又はO,Bが領域Ad外になる場合とO,A,B全て領域Ad外になる場合は三角形tnを描画せず、A,Bの何れか又は両方が領域Ad外の場合とOだけ領域Ad外の場合は、領域外の頂点を領域Adを画定する境界上に置換して三角形tnを描画する。 Patent Document 1 proposes the following drawing method. That is, a solid figure drawing area Ad (Xmin-max/Ymin-max/Zmin-max) is set, and drawing data (radius R/height Z/center coordinates X, Y) of the cylinder FC is input. Based on the drawing data of the area Ad and the cylinder FC, the circles FCa and FCb at both ends of the cylinder FC are formed with the center O of the circle and the adjacent division points A and B on the circumference obtained by dividing the circumference of the circle into a plurality of divisions. A plurality of triangles tn with O, A, and B are drawn. Of the vertices O, A, B of the triangle tn, if O, A or O, B are outside the area Ad, or if all O, A, B are outside the area Ad, the triangle tn is not drawn, and A, B When either or both of are outside the area Ad and only O is outside the area Ad, the vertices outside the area are replaced on the boundary defining the area Ad to draw the triangle tn.

特開2018-116434号公報JP 2018-116434 A

特許文献1では、円の作図の際の操作性に改善の余地があった。 In Patent Document 1, there is room for improvement in operability when drawing a circle.

そこで本発明は、上記課題に鑑み、より操作性よく円の作図を行える技術を提供することを目的とする。 SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide a technique for drawing a circle with better operability.

本発明の電子機器は、
既存の円の指定を受け付ける第1の受付手段と、
画面上の位置の指定を受け付ける第2の受付手段と、
画面上の位置の指定を受け付ける操作とは異なる操作によるユーザーからの半径の指定を受け付ける第3の受付手段と、
前記第2の受付手段で受け付けた指定位置が、前記第1の受付手段で指定を受け付けた円である指定円の内側である場合には前記指定円に内接する円であって、前記第3の受付手段で受け付けた指定された半径である指定半径の円を表示し、
前記指定位置が、前記指定円の外側である場合には前記指定円に外接する前記指定半径の円を表示するように制御する制御手段と
を有することを特徴とする。
The electronic device of the present invention is
a first receiving means for receiving designation of an existing circle;
a second receiving means for receiving designation of a position on the screen;
a third receiving means for receiving a designation of a radius from a user by an operation different from an operation for receiving designation of a position on the screen;
When the designated position received by the second reception means is inside the designated circle which is the circle whose designation is received by the first reception means, a circle inscribed in the designated circle, and the third Display a circle with a specified radius that is the specified radius received by the receiving means of
and control means for controlling to display a circle of the specified radius circumscribing the specified circle when the specified position is outside the specified circle.

本発明によれば、より操作性よく円の作図を行える。 According to the present invention, a circle can be drawn with better operability.

電子機器の構成の一例を示す図である。It is a figure which shows an example of a structure of an electronic device. 編集ソフトによる作図処理のフローチャートである。4 is a flow chart of drawing processing by editing software. ツール1処理のフローチャートである。10 is a flowchart of tool 1 processing; ツール2処理のフローチャートである。10 is a flowchart of tool 2 processing; ツール3処理のフローチャートである。It is a flowchart of tool 3 processing. ツール1~3処理を説明する表示例である。It is a display example for explaining the processing of tools 1 to 3.

図1に、本発明を適用可能な装置の一例としての電子機器100の構成の一例を示す。電子機器100は、パーソナルコンピュータ(以下、PC)などを用いて構成可能なものである。 FIG. 1 shows an example configuration of an electronic device 100 as an example of a device to which the present invention can be applied. The electronic device 100 can be configured using a personal computer (hereinafter referred to as PC) or the like.

図1において、内部バス150に対してCPU101、メモリ102、不揮発性メモリ103、画像処理部104、ディスプレイ105、操作部106、記録媒体I/F107、外部I/F109、通信I/F110、カメラ部112が接続されている。内部バス150に接続される各部は、内部バス150を介して互いにデータのやりとりを行うことができるようにされている。 1, a CPU 101, a memory 102, a nonvolatile memory 103, an image processing unit 104, a display 105, an operation unit 106, a recording medium I/F 107, an external I/F 109, a communication I/F 110, and a camera unit are connected to an internal bus 150. 112 are connected. Each unit connected to the internal bus 150 is capable of exchanging data with each other via the internal bus 150 .

メモリ102は、例えばRAM(半導体素子を利用した揮発性のメモリなど)からなる。CPU101は、例えば不揮発性メモリ103に格納されるプログラムに従い、メモリ102をワークメモリとして用いて、電子機器100の各部を制御する。不揮発性メモリ103には、画像データや音声データ、その他のデータ、CPU101が動作するための各種プログラムなどが格納される。不揮発性メモリ103は、例えばハードディスク(HD)やROMなどで構成される。 The memory 102 is, for example, a RAM (a volatile memory using a semiconductor element, etc.). The CPU 101 controls each part of the electronic device 100 using the memory 102 as a work memory, for example, according to a program stored in the nonvolatile memory 103 . The nonvolatile memory 103 stores image data, audio data, other data, various programs for the CPU 101 to operate, and the like. The nonvolatile memory 103 is composed of, for example, a hard disk (HD) or ROM.

画像処理部104は、CPU101の制御に基づいて、不揮発性メモリ103や記録媒体108に格納された画像データや、外部I/F109を介して取得した映像信号、通信I/F110を介して取得した画像、撮像された画像などに対して各種画像処理を施す。画像処理部104が行う画像処理には、A/D変換処理、D/A変換処理、画像データの符号化処理、圧縮処理、デコード処理、拡大/縮小処理(リサイズ)、ノイズ低減処理、色変換処理などが含まれる。画像処理部104は、特定の画像処理を施すための専用の回路ブロックで構成しても良い。また、画像処理の種別によっては、画像処理部104を用いずに、CPU101がプログラムに従って画像処理を施すことも可能である。 Under the control of the CPU 101, the image processing unit 104 processes image data stored in the nonvolatile memory 103 or the recording medium 108, video signals obtained via the external I/F 109, and image signals obtained via the communication I/F 110. Various types of image processing are applied to images, captured images, and the like. The image processing performed by the image processing unit 104 includes A/D conversion processing, D/A conversion processing, image data encoding processing, compression processing, decoding processing, enlargement/reduction processing (resize), noise reduction processing, color conversion, and so on. processing, etc. The image processing unit 104 may be configured with a dedicated circuit block for performing specific image processing. Further, depending on the type of image processing, the CPU 101 can perform image processing according to a program without using the image processing unit 104 .

ディスプレイ105は、CPU101の制御に基づいて、画像やGUI(Graphical User Interface)を構成するGUI画面などを表示する。CPU101は、プログラムに従い表示制御信号を生成し、ディスプレイ105に表示するための映像信号を生成してディスプレイ105に出力するように、電子機器100の各部を制御する。ディスプレイ105は、出力された映像信号に基づいて映像を表示する。なお、電子機器100自体が備える構成としては、ディスプレイ105に表示させるための映像信号を出力するためのインターフェースまでとし、ディスプレイ105は、外付けのモニタ(テレビなど)で構成してもよい。 The display 105 displays an image, a GUI screen that constitutes a GUI (Graphical User Interface), and the like, under the control of the CPU 101 . CPU 101 controls each unit of electronic device 100 to generate a display control signal according to a program, generate a video signal to be displayed on display 105 , and output the video signal to display 105 . The display 105 displays an image based on the output image signal. Electronic device 100 itself includes an interface for outputting a video signal to be displayed on display 105, and display 105 may be configured by an external monitor (such as a television).

操作部106は、キーボードなどの文字情報入力デバイスや、マウスやタッチパネルといったポインティングデバイス、ボタン、ダイヤル、ジョイスティック、タッチセンサ、タッチパッドなどを含む、ユーザー操作を受け付けるための入力デバイスである。なお、タッチパネルは、ディスプレイ105に重ね合わせて平面的に構成され、接触された位置に応じた座標情報が出力されるようにした入力デバイスである。CPU101は、操作部106に含まれる位置入力部材に対するユーザー操作に応じて入力される画面上の位置(入力位置)を取得する。例えばマウス操作によって移動するマウスカーソルの位置を入力位置として取得する(位置受付)。あるいは、タッチパネルに対してタッチされた位置を入力位置として取得する。 The operation unit 106 is an input device for receiving user operations, including a character information input device such as a keyboard, a pointing device such as a mouse and a touch panel, buttons, dials, joysticks, touch sensors, and touch pads. It should be noted that the touch panel is an input device that is superimposed on the display 105 and configured in a two-dimensional manner so as to output coordinate information corresponding to the touched position. The CPU 101 acquires a position (input position) on the screen that is input according to the user's operation on the position input member included in the operation unit 106 . For example, the position of a mouse cursor moved by mouse operation is acquired as an input position (position reception). Alternatively, the touched position on the touch panel is acquired as the input position.

記録媒体I/F107は、メモリーカードやCD、DVDといった記録媒体108が装着可能とされ、CPU101の制御に基づき、装着された記録媒体108からのデータの読み出しや、当該記録媒体108に対するデータの書き込みを行う。外部I/F109は、外部機器と有線ケーブルや無線によって接続し、映像信号や音声信号の入出力を行うためのインターフェースである。通信I/F110は、外部機器やインターネット111などと通信して、ファイルやコマンドなどの各種データの送受信を行うためのインターフェースである。 A recording medium I/F 107 can be loaded with a recording medium 108 such as a memory card, a CD, and a DVD. I do. The external I/F 109 is an interface for connecting with an external device via a wired cable or wirelessly and inputting/outputting a video signal and an audio signal. The communication I/F 110 is an interface for communicating with an external device, the Internet 111, etc., and transmitting/receiving various data such as files and commands.

カメラ部112は、光学像を電気信号に変換するCCDやCMOS素子等で構成される撮像素子(撮像センサ)等で構成されるカメラユニットである。カメラ部112には、ズームレンズやフォーカスレンズを含むレンズ群(撮影レンズ)、絞り機能を備えるシャッタ、撮像素子、撮像素子から出力されるアナログ信号をデジタル信号に変換するA/D変換器、撮像系を覆って汚れや破損を防止するバリアを含む。画像処理部104は、カメラ部112で撮像して取得したデータに対し、所定の画素補間、縮小といったリサイズ処理や色変換処理を行う。画像処理部104により得られた演算結果に基づいて、CPU101が露光制御、測距制御、AWB(オートホワイトバランス)処理を行う。カメラ部112で撮像され、画像処理部104で画像処理された表示用の画像データは、ディスプレイ105により表示される。カメラ部112で撮像され、A/D変換器によって一度A/D変換され、メモリ102に蓄積されたデジタル信号をD/A変換器でアナログ変換し、ディスプレイ105に逐次転送して表示することで、ライブビュー表示(LV表示)を行える。カメラ部112は、静止画及び動画の撮影が可能である。 The camera unit 112 is a camera unit including an imaging device (imaging sensor) including a CCD or CMOS device that converts an optical image into an electrical signal. The camera unit 112 includes a lens group (photographing lens) including a zoom lens and a focus lens, a shutter having an aperture function, an image sensor, an A/D converter that converts an analog signal output from the image sensor into a digital signal, and an image sensor. Contains a barrier that covers the system to prevent contamination and damage. The image processing unit 104 performs resizing processing such as predetermined pixel interpolation and reduction, and color conversion processing on data acquired by imaging with the camera unit 112 . Based on the calculation results obtained by the image processing unit 104, the CPU 101 performs exposure control, distance measurement control, and AWB (auto white balance) processing. Display image data captured by the camera unit 112 and image-processed by the image processing unit 104 is displayed on the display 105 . The digital signal captured by the camera unit 112, A/D converted once by the A/D converter, and stored in the memory 102 is converted to analog by the D/A converter, and sequentially transferred to the display 105 for display. , live view display (LV display) can be performed. The camera unit 112 is capable of capturing still images and moving images.

図2は、電子機器100における編集ソフトウェア(CADアプリケーションソフトウェア、以下、単にCADソフトと称する)を起動した場合に実行される図形の作図処理のフローチャートである。このフローチャートおける各処理は、CPU101が不揮発性メモリ103に格納されたプログラムをメモリ102に展開して実行することにより実現される。図2の処理を実行可能なCADのソフトの起動指示があると図2の処理が開始される。図2は、CADソフトの処理である。 FIG. 2 is a flow chart of a figure drawing process executed when editing software (CAD application software, hereinafter simply referred to as CAD software) in electronic device 100 is activated. Each process in this flow chart is implemented by the CPU 101 developing a program stored in the nonvolatile memory 103 in the memory 102 and executing the program. When there is an instruction to activate CAD software capable of executing the processing of FIG. 2, the processing of FIG. 2 is started. FIG. 2 shows processing of CAD software.

S201では、CPU101は、ディスプレイ105に対して、初期表示を行うように制御する。例えば、図6(a)に示すようなCADソフトの表示のためのウインドウを表示する。ウインドウには、戻るボタン601、終了ボタン602、図面表示領域600、ツールパレット610などが表示される。なお、後述する処理でなんらかの表示を行う処理の表示先は全てディスプレイ105であるものとする。ツールパレット610は、複数用意されたツールパレットのうち、「接円・周長円ツール」のツールパレットであり、ツールアイコン611~616が表示される。後述するツール1~3は、ツールアイコン614~616に対応する。また、ユーザーによってファイルを開く指示が行われた場合には、開くことを指示されたファイルを開いて表示する。ファイルは、例えば、図6(a)の図面表示領域600に表示される対象となる図面のファイルである。図面のファイルに記録された図面は、例えば、CADソフトで作成されたCAD図面である。ファイルを開く指示が行われた場合には、CPU101は、指示された図面のファイルを不揮発性メモリ103から読み込み、読み込んだファイルの図面をディスプレイ105に表示するように制御する。図6(a)の例では、図面表示領域600に、図面の要素(構成部品)として、円620(円オブジェクト)、線分630を含む図面が表示される。なお、点線631は後述する処理を説明するために補助線として図示したものであり、実際には表示されないものとする(図面の一部ではないものとする)。 In S201, the CPU 101 controls the display 105 to perform initial display. For example, a window for displaying CAD software as shown in FIG. 6(a) is displayed. The window displays a return button 601, an end button 602, a drawing display area 600, a tool palette 610, and the like. It is assumed that the display destination of the processing for displaying some kind of display in the processing described later is the display 105 . A tool palette 610 is a tool palette for a “tangent circle/circumferential circle tool” among a plurality of prepared tool palettes, and displays tool icons 611 to 616 . Tools 1-3, which will be described later, correspond to tool icons 614-616. Also, when the user instructs to open a file, the file instructed to be opened is opened and displayed. The file is, for example, a file of a drawing to be displayed in the drawing display area 600 of FIG. 6(a). The drawing recorded in the drawing file is, for example, a CAD drawing created by CAD software. When an instruction to open a file is given, the CPU 101 reads the instructed drawing file from the nonvolatile memory 103 and controls the display 105 to display the drawing of the read file. In the example of FIG. 6A, a drawing including a circle 620 (circle object) and a line segment 630 is displayed in the drawing display area 600 as elements (components) of the drawing. Note that the dotted line 631 is shown as an auxiliary line for explaining the processing to be described later, and is not actually displayed (it is not part of the drawing).

S202では、CPU101は、ユーザーの操作部106からの図面の編集操作の受付を行い、受け付けた操作に応じて各種図形、オブジェクトを描画する。ツール1~3を用いた図形描画は後述するためここでの処理には含まれないものとする。 In S202, the CPU 101 receives a drawing editing operation from the user's operation unit 106, and draws various figures and objects according to the received operation. Figure drawing using tools 1 to 3 is not included in the processing here because it will be described later.

S203では、CPU101は、ツール1が選択された(ツールアイコン614がクリックされた)か否かを判定する。ツール1が選択された場合にはS204に進む。S204では、CPU101は、ツール1処理を実行する。ツール1処理については図3を用いて後述する。 In S203, the CPU 101 determines whether or not the tool 1 has been selected (the tool icon 614 has been clicked). If Tool 1 is selected, the process proceeds to S204. In S204, the CPU 101 executes tool 1 processing. Tool 1 processing will be described later with reference to FIG.

S205では、CPU101は、ツール2が選択された(ツールアイコン615がクリックされた)か否かを判定する。ツール2が選択された場合にはS206に進む。S206では、CPU101は、ツール2処理を実行する。ツール2処理については図4を用いて後述する。 In S205, the CPU 101 determines whether or not the tool 2 has been selected (the tool icon 615 has been clicked). If Tool 2 is selected, the process proceeds to S206. In S206, the CPU 101 executes tool 2 processing. Tool 2 processing will be described later with reference to FIG.

S207では、CPU101は、ツール3が選択された(ツールアイコン616がクリックされた)か否かを判定する。ツール3が選択された場合にはS208に進む。S208では、CPU101は、ツール3処理を実行する。ツール3処理については図5を用いて後述する。 In S207, the CPU 101 determines whether or not the tool 3 has been selected (the tool icon 616 has been clicked). If Tool 3 is selected, the process proceeds to S208. In S208, the CPU 101 executes tool 3 processing. Tool 3 processing will be described later with reference to FIG.

S209では、CPU101は、ファイルを保存する操作があったか否かを判定する。ファイルを保存する操作があった場合には、S210に進み、不揮発性メモリ103にCADファイルを保存する。これによって、ツール1~3処理で作図されたオブジェクト(図形)を含む図面が保存される。 In S209, the CPU 101 determines whether or not there has been an operation to save the file. If there is an operation to save the file, the process proceeds to S<b>210 to save the CAD file in the nonvolatile memory 103 . As a result, the drawing including the objects (figures) drawn by the tools 1 to 3 processing is saved.

S211では、CPU101は、CADファイルを閉じる(終了させる)操作があったか否かを判定する。CADファイルを閉じる(終了させる)操作が無い場合にはS202に戻って処理を繰り返し、CADファイルを閉じる(終了させる)操作があった場合には、CADソフトを閉じ、図2の処理を終了する。 In S211, the CPU 101 determines whether or not there has been an operation to close (terminate) the CAD file. If there is no operation to close (terminate) the CAD file, return to S202 and repeat the process. .

図3に、ツール1処理のフローチャートを示す。このフローチャートは、前述した図2のS204の処理の詳細である。 FIG. 3 shows a flowchart of tool 1 processing. This flowchart shows the details of the process of S204 in FIG. 2 described above.

S301では、CPU101は、図面に含まれる既に描画済み(配置済み)の円(例えば円620)が選択されたか否かを判定する。ツール1が選択された(ツールアイコン614がクリックされた)後に、既存の円が選択されたか、既存の円が選択された状態でツール1が選択された場合にはS305に進み、そうでない場合、すなわち既存の円が選択されていない場合にはS302に進む。 In S301, the CPU 101 determines whether or not an already drawn (arranged) circle (for example, circle 620) included in the drawing has been selected. After tool 1 is selected (tool icon 614 is clicked), if an existing circle is selected or tool 1 is selected with an existing circle selected, proceed to S305; That is, if no existing circle is selected, the process proceeds to S302.

S302では、CPU101は、円以外の既存オブジェクトが選択されたか否かを判定する。ツール1が選択された(ツールアイコン614がクリックされた)後に、円以外の既存オブジェクトが選択されたか、円以外の既存オブジェクトが選択された状態でツール1が選択された場合にはS303に進み、そうでない場合にはS304に進む。 In S302, the CPU 101 determines whether or not an existing object other than a circle has been selected. If an existing object other than a circle is selected after Tool 1 is selected (the tool icon 614 is clicked), or if Tool 1 is selected while an existing object other than a circle is selected, the process proceeds to S303. , otherwise, the process proceeds to S304.

S303では、CPU101は、警告ダイアログを表示し、「円を選択してください」と、円を選択することを促すメッセージを表示(通知)する。 In S303, the CPU 101 displays a warning dialog and displays (notifies) a message "Please select a circle" prompting the user to select a circle.

S304では、CPU101は、ツール1以外の他のツールが選択されたか否かを判定する。他のツールが選択された場合にはツール1処理を終了し、そうでない場合にはS301に戻って処理を繰り返す。 In S304, the CPU 101 determines whether or not a tool other than Tool 1 has been selected. If another tool is selected, the tool 1 process is terminated; otherwise, the process returns to S301 and repeats the process.

S305では、CPU101は、半径入力ダイアログボックス(以下、ダイアログボックスを単にダイアログと称する)を図面に重畳して表示する。半径入力ダイアログには、半径の長さを数値で入力するためのテキストボックスと、OKボタン、キャンセルボタンが表示される。 In S305, the CPU 101 displays a radius input dialog box (hereinafter, the dialog box is simply referred to as dialog) superimposed on the drawing. The radius input dialog displays a text box for numerically inputting the length of the radius, an OK button, and a cancel button.

S306では、CPU101は、半径入力ダイアログへの半径の数値入力操作の受付を行う。ユーザーは、キーボードなどを用いて、半径入力ダイアログのテキストボックスへ所望の半径を入力する。すなわち、CPU101は、半径の設定受付を行う。 In S306, the CPU 101 accepts a numerical value input operation for the radius to the radius input dialog. The user inputs a desired radius into the text box of the radius input dialog using a keyboard or the like. That is, the CPU 101 accepts setting of the radius.

S307では、CPU101は、半径入力ダイアログのテキストボックスに数値が入力された状態でOKボタンがクリック(押下)されたか否かを判定する。数値入力済みでOKボタンが押下された場合はS308へ進み、そうでない場合にはS306へ戻る。。 In S307, the CPU 101 determines whether or not the OK button has been clicked (depressed) while a numerical value has been entered in the text box of the radius input dialog. If the numeric value has already been entered and the OK button has been pressed, the process proceeds to S308; otherwise, the process returns to S306. .

S308では、CPU101は、プレビュー表示を行う。プレビュー表示では、現在のマウスカーソル位置(座標)に基づいて、そこでクリックされた場合にS311またはS312で描画される円を仮表示する。これはマウス位置に応じて動的に変化する。 In S308, the CPU 101 performs preview display. In the preview display, based on the current mouse cursor position (coordinates), a circle to be drawn in S311 or S312 when clicked there is provisionally displayed. This changes dynamically depending on the mouse position.

より詳しくは、現在のマウスカーソルでの入力座標が、S301で指定されたと判定された指定円(本実施形態では円620が指定された場合を説明する)の内側であれば、次のように円をマウスカーソル位置に応じて動的に描画する。すなわち、現在のマウスカーソルの位置と指定円の中心座標とを通る直線上であって、指定円の中心座標よりもカーソル位置側の指定円の円周面から、指定円の内側方向にS306で入力された半径の距離に中心座標を持つ、S306で入力された半径の円を描画する(仮描画)。この仮描画された円は、指定円に内接する。 More specifically, if the coordinates currently input by the mouse cursor are inside the specified circle determined to be specified in S301 (in this embodiment, the case where the circle 620 is specified), the following processing is performed. Draw a circle dynamically depending on the mouse cursor position. That is, from the circumferential surface of the specified circle on the straight line passing through the current mouse cursor position and the center coordinates of the specified circle, and on the side of the cursor position relative to the center coordinates of the specified circle, move inward of the specified circle in step S306. A circle with the radius input in S306 is drawn (temporary drawing), with the center coordinate at the distance of the input radius. This temporarily drawn circle is inscribed in the designated circle.

また、現在のマウスカーソルでの入力座標が、S301で指定されたと判定された指定円の外側であれば、次のように円をマウスカーソル位置に応じて動的に描画する。すなわち、現在のマウスカーソルの位置と指定円の中心座標とを通る直線上であって、指定円の中心座標よりもカーソル位置側の指定円の円周面から、指定円の弧の外側方向にS306で入力された半径の距離に中心座標を持つ、S306で入力された半径の円を描画する(仮描画)。この仮描画された円は、指定円に外接する。 Also, if the coordinates currently input with the mouse cursor are outside the specified circle determined to have been specified in S301, the circle is dynamically drawn according to the position of the mouse cursor as follows. In other words, on a straight line passing through the current mouse cursor position and the center coordinates of the specified circle, from the circumferential surface of the specified circle on the cursor position side of the center coordinates of the specified circle, to the outer direction of the arc of the specified circle A circle having the radius input in S306 and having center coordinates at the distance of the radius input in S306 is drawn (temporary drawing). This temporarily drawn circle circumscribes the designated circle.

ユーザーは、S308のプレビュー表示を見ることで、今クリックすることで所望の円が作図できるのかを予め確認することができる。 By viewing the preview display in S308, the user can confirm in advance whether the desired circle can be drawn by clicking now.

S309では、CPU101は、図面上(図面表示領域600内)にマウスカーソルがある状態でクリックされたか否かを判定する。図面上でクリックされた場合にはS310に進み、そうでない場合にはS313に進む。 In S309, the CPU 101 determines whether or not the mouse cursor is clicked on the drawing (within the drawing display area 600). If the drawing has been clicked, the process proceeds to S310; otherwise, the process proceeds to S313.

S310では、CPU101は、クリックされた際のマウスカーソルの位置(入力位置、入力座標)が、指定済みの円(指定円、例えば円620)の内部領域(円の内側)であるか否かを判定する。内部領域である場合にはS311に進み、そうでない場合にはS312に進む。 In S310, the CPU 101 determines whether the position (input position, input coordinates) of the mouse cursor when clicked is within the inner area (inside the circle) of a specified circle (specified circle, for example, circle 620). judge. If it is an internal area, the process proceeds to S311; otherwise, the process proceeds to S312.

S311では、CPU101は、S306で入力された半径(指定半径)の円(内接円オブジェクト)を、指定済みの円(指定円、例えば円620)に内接して配置する(表示する)。より詳しくは、クリックされた際の入力座標と指定円の中心座標とを通る直線上であって、指定円の中心座標よりも入力座標側の指定円の円周面から、指定円の弧の内側方向にS306で入力された半径の距離に中心座標を持つ、S306で入力された半径の円を描画する(本描画)。ここで描画される円は図面の構成要素としてのオブジェクトである。 In S311, the CPU 101 arranges (displays) the circle (inscribed circle object) having the radius (designated radius) input in S306 so as to be inscribed in the designated circle (designated circle, for example, circle 620). More specifically, from the circumference of the specified circle on the straight line that passes through the input coordinates when clicked and the center coordinates of the specified circle, and on the input coordinate side of the center coordinates of the specified circle, the arc of the specified circle A circle with the radius input in S306 is drawn in the inward direction with the center coordinate at the distance of the radius input in S306 (main drawing). The circle drawn here is an object as a component of the drawing.

図6(b)に、S311で描画される内接円の例を示す。指定円が円620であり、描画される内接円が円621である。クリックされた際の入力座標(ユーザーによる入力座量)が点U1であった場合、点U1は、円620の内側に位置している。そのため、クリックされた際の入力座標であるU1と指定円の中心座標Cとを通る直線L1上であって、指定円の中心座標Cよりも点UI側の円620の円周面から、指定円の弧の内側方向にS306で入力された半径の距離に中心座標P1を持つ、S306で入力された半径の円621を描画する。なお、図6(b)において、点線や点を示す黒丸など(すなわち、円620と円621以外の要素)は説明のために図示したものであって、表示されるものではない。 FIG. 6B shows an example of an inscribed circle drawn in S311. The specified circle is the circle 620 and the drawn inscribed circle is the circle 621 . If the input coordinates (input coordinate by the user) at the time of clicking are the point U1, the point U1 is located inside the circle 620. FIG. Therefore, the specified A circle 621 with the radius input in S306 is drawn with the center coordinate P1 at the distance of the radius input in S306 toward the inside of the arc of the circle. In FIG. 6B, dotted lines and black circles indicating points (that is, elements other than the circles 620 and 621) are shown for explanation and are not displayed.

S312では、CPU101は、S306で入力された半径(指定半径)の円(外接円オブジェクト)を、指定済みの円(指定円、例えば円620)に外接して配置する(表示する)。より詳しくは、クリックされた際の入力座標と指定円の中心座標とを通る直線上であって、指定円の円周面から指定円の弧の外側方向にS306で入力された半径の距離に中心座標を持つ、S306で入力された半径の円を描画する(本描画)。ここで描画される円は図面の構成要素としてのオブジェクトである。 In S312, the CPU 101 arranges (displays) a circle (circumscribed circle object) having the radius (specified radius) input in S306 so as to circumscribe the specified circle (specified circle, for example, circle 620). More specifically, it is the distance of the radius input in S306 from the circumferential surface of the specified circle to the outer direction of the arc of the specified circle on the straight line passing through the input coordinates when clicked and the center coordinates of the specified circle. A circle having the center coordinates and the radius input in S306 is drawn (main drawing). The circle drawn here is an object as a component of the drawing.

図6(c)に、S312で描画される外接円の例を示す。指定円が円620であり、描画される外接円が円622である。クリックされた際の入力座標(ユーザーによる入力座量)が点U2であった場合、点U2は、円620の外側に位置している。そのため、クリックされた際の入力座標であるU2と指定円の中心座標Cとを通る直線L2上であって、円620の円周面から指定円の外側にS306で入力された半径の距離に中心座標P2を持つ、S306で入力された半径の円622を描画する。なお、図6(c)において、点線や点を示す黒丸など(すなわち、円620と円622以外の要素)は説明のために図示したものであって、表示されるものではない。 FIG. 6C shows an example of the circumscribed circle drawn in S312. A designated circle is a circle 620 and a drawn circumscribed circle is a circle 622 . If the input coordinates (input coordinate by the user) at the time of clicking are the point U2, the point U2 is located outside the circle 620. FIG. Therefore, the distance of the radius input in S306 from the circumferential surface of the circle 620 to the outside of the designated circle on the straight line L2 that passes through the coordinates U2, which are the input coordinates at the time of clicking, and the center coordinates C of the designated circle. Draw a circle 622 of the radius entered at S306 with center coordinate P2. Note that in FIG. 6C, dotted lines and black circles indicating points (that is, elements other than the circles 620 and 622) are shown for explanation and are not displayed.

S313では、CPU101は、ツール1以外の他のツールが選択されたか否かを判定する。他のツールが選択された場合にはツール1処理を終了し、そうでない場合にはS308に戻って処理を繰り返す。S308に進んだ後、さらにクリックをすれば、クリックを行った分だけ、S306で指定した半径の円を配置できる。すなわち、円を配置したい位置をプレビューで確認しながらクリックを繰り返すだけで、同じ円に接する円を複数連続して描画(配置)することができる。すなわち、CPU101は、第1のクリック操作に応じて指定円に内接する第1の円または外接する第2の円を配置した後、他の操作をすることなく行われた第2のクリック操作があったことに応じて、前記第2のクリック操作によって指定された位置を指定位置として、同じ指定円に内接する第3の円または外接する第4の円を配置する。 In S313, the CPU 101 determines whether or not a tool other than Tool 1 has been selected. If another tool is selected, the tool 1 process is terminated; otherwise, the process returns to S308 and repeats the process. After proceeding to S308, if a further click is performed, circles having the radius specified in S306 can be arranged by the number of clicks. That is, it is possible to continuously draw (arrange) a plurality of circles tangent to the same circle simply by repeatedly clicking while confirming the position where the circle is to be arranged in the preview. That is, after the CPU 101 arranges the first circle that inscribes or the second circle that circumscribes the designated circle according to the first click operation, the second click operation performed without performing other operations is performed. Depending on what happened, the position specified by the second click operation is used as the specified position, and a third circle inscribed or a fourth circle circumscribed in the same specified circle is arranged.

上述したツール1の処理によれば、指定した円に外接または内接する指定半径の円を簡単に作図することが可能となる。例えば、円に対して、半径の決まった円(例えば半径の決まった建築座量。丸太や柱など)敷き詰めたい場合などに用いて好適である。例えば、丸い花壇に、半径の決まった円形のブロックや円形の杭を敷き詰める設計を行う際に非常に簡単な操作感での設計操作を提供することが可能となる。花壇を配置可能な全体の敷地が円形に定義されているのであれば、その敷地に内接するように円(ブロックや杭)を敷き詰める。花壇の内部の土部分に使用する敷地が先に定義されているのであれば、その敷地に外接するように円(ブロックや杭)を敷き詰める。もちろんこれは一例であり、様々な用途に用いて好適である。 According to the processing of the tool 1 described above, it is possible to easily draw a circle with a designated radius that circumscribes or inscribes a designated circle. For example, it is suitable for use when it is desired to cover a circle with a fixed radius (for example, a building seat with a fixed radius, such as a log or a pillar). For example, when designing a round flower bed with circular blocks or circular stakes with a fixed radius, it is possible to provide a design operation with a very simple operational feeling. If the entire site where the flowerbed can be arranged is defined as a circle, spread circles (blocks or stakes) so as to inscribe the site. If the site to be used for the soil inside the flower bed is defined in advance, lay out circles (blocks or stakes) so as to circumscribe the site. Of course, this is only an example, and it is suitable for various uses.

図4に、ツール2処理のフローチャートを示す。このフローチャートは、前述した図2のS206の処理の詳細である。 FIG. 4 shows a flowchart of tool 2 processing. This flowchart shows the details of the process of S206 in FIG. 2 described above.

S401では、CPU101は、周長入力ダイアログを図面に重畳して表示する。周長入力ダイアログには、周長、すなわち円周の長さを数値で入力するためのテキストボックスと、OKボタン、キャンセルボタンが表示される。 In S401, the CPU 101 displays a circumference input dialog superimposed on the drawing. The perimeter input dialog displays a text box for inputting the perimeter, that is, the length of the circumference as a numerical value, an OK button, and a Cancel button.

S402では、CPU101は、周長入力ダイアログへの周長の数値入力操作の受付を行う。ユーザーは、キーボードなどを用いて、周長入力ダイアログのテキストボックスへ所望の周長を入力する。すなわち、CPU101は、周長(円周)の設定受付を行う(周長受付)。 In S402, the CPU 101 accepts an operation for inputting a numerical value for the circumference to the circumference input dialog. The user inputs the desired circumference into the text box of the circumference input dialog using a keyboard or the like. That is, the CPU 101 accepts setting of the circumference (circumference) (acceptance of circumference).

S403では、CPU101は、周長入力ダイアログのテキストボックスに数値が入力された状態でOKボタンがクリック(押下)されたか否かを判定する。数値入力済みでOKボタンが押下された場合はS404へ進み、そうでない場合にはS402へ戻る。。 In S403, the CPU 101 determines whether or not the OK button has been clicked (depressed) while a numerical value has been entered in the text box of the circumference input dialog. If the numeric value has already been entered and the OK button has been pressed, the process proceeds to S404; otherwise, the process returns to S402. .

S404では、CPU101は、プレビュー表示を行う。プレビュー表示では、現在のマウスカーソル位置(座標)に基づいて、そこでクリックされた場合にS406で描画される円を仮表示する。これはマウス位置に応じて動的に変化する。より詳しくは、現在のマウスカーソル位置を中心として、S402で入力された周長を持つ円を描画する。ユーザーは、S404のプレビュー表示を見ることで、今クリックすることで所望の円が作図できるのかを予め確認することができる。 In S404, the CPU 101 performs preview display. In the preview display, based on the current mouse cursor position (coordinates), the circle to be drawn in S406 when clicked there is provisionally displayed. This changes dynamically depending on the mouse position. More specifically, a circle having the perimeter input in S402 is drawn with the current mouse cursor position as the center. By viewing the preview display in S404, the user can confirm in advance whether the desired circle can be drawn by clicking now.

S405では、CPU101は、図面上(図面表示領域600内)にマウスカーソルがある状態でクリックされたか否かを判定する。図面上でクリックされた場合にはS406に進み、そうでない場合にはS407に進む。 In S405, the CPU 101 determines whether or not the mouse cursor is clicked on the drawing (within the drawing display area 600). If the drawing is clicked, the process proceeds to S406; otherwise, the process proceeds to S407.

S406では、CPU101は、クリックされた際のマウスカーソルの位置(入力位置、入力座標)を中心として、S402で入力された周長を持つ円を描画(配置して表示)する(本描画)。ここで描画される円は図面の構成要素としてのオブジェクトである。 In S406, the CPU 101 draws (arranges and displays) a circle having the perimeter input in S402 centering on the mouse cursor position (input position, input coordinates) when clicked (main drawing). The circle drawn here is an object as a component of the drawing.

図6(d)に、S406で描画される円の例を示す。S406で描画される円が円623である。クリックされた際の入力座標(ユーザーによる入力座量)が点U3であった場合、点U3を中心とし、S402で入力された周長を持つ(円周である)円623が描画される(本描画)。なお、図6(d)において、点を示す黒丸など(すなわち、円623以外の要素)は説明のために図示したものであって、表示されるものではない。 FIG. 6D shows an example of a circle drawn in S406. A circle 623 is drawn in S406. If the input coordinates (the amount input by the user) at the time of clicking are the point U3, a circle 623 (circumference) centered at the point U3 and having the perimeter input in S402 is drawn ( book drawing). In FIG. 6D, black circles indicating points (that is, elements other than the circle 623) are shown for explanation and are not displayed.

S407では、CPU101は、ツール2以外の他のツールが選択されたか否かを判定する。他のツールが選択された場合にはツール2処理を終了し、そうでない場合にはS404に戻って処理を繰り返す。S404に進んだ後、さらにクリックをすれば、クリックを行った分だけ、S402で指定した周長の円を配置できる。すなわち、円を配置したい位置をプレビューで確認しながらクリックを繰り返すだけで、同じ周長の円を複数連続して描画(配置)することができる。すなわち、CPU101は、第1のクリック操作によって指定された位置を中心とした円であって、S401で指定された指定周長の第1の円を配置した後、他の操作をすることなく行われた第2のクリック操作があったことに応じて、前記第2のクリック操作によって指定された位置を中心とした円であって、同じ指定周長の第2の円を配置するように制御する。 In S407, the CPU 101 determines whether or not a tool other than Tool 2 has been selected. If another tool is selected, the tool 2 process is terminated; otherwise, the process returns to S404 and repeats the process. After proceeding to S404, if a further click is performed, circles having the perimeter specified in S402 can be arranged by the number of clicks. That is, a plurality of circles having the same circumferential length can be continuously drawn (arranged) simply by repeatedly clicking while confirming the position where the circle is to be arranged in the preview. That is, after arranging the first circle centered at the position specified by the first click operation and having the specified perimeter specified in S401, the CPU 101 performs no other operation. In response to the fact that a second click operation has been performed, a second circle centered at the position specified by the second click operation and having the same specified perimeter is controlled to be arranged. do.

上述したツール2の処理によれば、指定した周長の円を簡単に作図することが可能となる。例えば、円周周りに敷き詰める、あるいは貼り付ける材料が決まっている場合に、簡単に材料に合わせた円を作図することができる。例えば、円柱に貼り付けることになっているポスターや壁紙などの長さが決まっている場合に、どのようなサイズの円柱を配置すればよいかを簡単に設計することができる。もちろんこれは一例であり、様々な用途に用いて好適である。 According to the processing of the tool 2 described above, it is possible to easily draw a circle having a specified perimeter. For example, when the material to be spread or pasted around the circumference is decided, a circle can be drawn easily according to the material. For example, when the length of a poster or wallpaper to be pasted on a cylinder is fixed, it is possible to easily design what size cylinder should be arranged. Of course, this is only an example, and it is suitable for various uses.

図5に、ツール3処理のフローチャートを示す。このフローチャートは、前述した図2のS208の処理の詳細である。 FIG. 5 shows a flowchart of tool 3 processing. This flowchart shows the details of the process of S208 in FIG. 2 described above.

S501では、CPU101は、図面に含まれる既に描画済みの線分または直線のオブジェクト(例えば線分630)が選択されたか否かを判定する。すなわち、既存の線分指定または直線指定を受け付ける(既存線受付)。ツール3が選択された(ツールアイコン616がクリックされた)後に、既存の線分または直線が選択された、または、既存の線分または直線が選択された状態でツール3が選択された(ツールアイコン616がクリックされた)場合にはS502に進む。そうでない場合、すなわち既存の線分または直線が選択されていない場合にはS506に進む。なお、線分または直線以外のオブジェクトが選択された場合に警告を表示し、線分または直線を選択することを促す旨のメッセージを表示(通知)しても良い。 In S501, the CPU 101 determines whether or not an already drawn line segment or straight line object (for example, the line segment 630) included in the drawing has been selected. That is, an existing line segment designation or straight line designation is received (existing line reception). An existing line segment or straight line was selected after tool 3 was selected (tool icon 616 was clicked), or tool 3 was selected with an existing line segment or straight line selected (tool If the icon 616 is clicked), the process proceeds to S502. Otherwise, ie, if no existing line segment or straight line has been selected, proceed to S506. Note that a warning may be displayed when an object other than a line segment or straight line is selected, and a message prompting the user to select the line segment or straight line may be displayed (notified).

S502では、CPU101は、ツール3以外の他のツールが選択されたか否かを判定する。他のツールが選択された場合にはツール3処理を終了し、そうでない場合にはS501に戻る。 In S502, the CPU 101 determines whether or not a tool other than Tool 3 has been selected. If another tool is selected, the tool 3 process is terminated; otherwise, the process returns to S501.

S503では、CPU101は、プレビュー表示を行う。プレビュー表示では、現在のマウスカーソル位置(座標)に基づいて、そこでクリックされた場合にS506で描画される円を仮表示する。これはマウス位置に応じて動的に変化する。より詳しくは、S501で指定されたと判定された既存の線分または直線(以下、指定線分と称する)の直線上に接し、現在のマウスカーソル位置を中心とした円を描画する。円の半径は自動算出する(マウスカーソル位置と指定線分の直線上との最短距離となる)。ユーザーは、S503のプレビュー表示を見ることで、今クリックすることで所望の円が作図できるのかを予め確認することができる。 In S503, the CPU 101 performs preview display. In the preview display, based on the current mouse cursor position (coordinates), the circle to be drawn in S506 when clicked there is provisionally displayed. This changes dynamically depending on the mouse position. More specifically, a circle is drawn centered on the current mouse cursor position by contacting the existing line segment or straight line determined to be specified in S501 (hereinafter referred to as the specified line segment). The radius of the circle is automatically calculated (the shortest distance between the mouse cursor position and the designated line segment). By viewing the preview display in S503, the user can confirm in advance whether the desired circle can be drawn by clicking now.

S504では、CPU101は、図面上(図面表示領域600内)にマウスカーソルがある状態でクリックされたか否かを判定する。図面上でクリックされた場合にはS505に進み、そうでない場合にはS507に進む。 In S504, the CPU 101 determines whether or not the mouse cursor is clicked on the drawing (within the drawing display area 600). If the drawing is clicked, the process proceeds to S505; otherwise, the process proceeds to S507.

S505では、CPU101は、クリックされた際のマウスカーソルの位置(入力位置、入力座標)に基づき、配置すべき円の半径を算出する。より詳しくは、クリックされた際のマウスカーソルの位置(入力位置、入力座標)と指定線分の直線上との距離(最短距離)を半径として算出する。これはクリックされた際のマウスカーソルの位置(入力位置、入力座標)の点と指定線分の直線との距離である。すなわち、指定線分と重なる第1の直線と垂直に交わる第2の直線であって、クリックされた際の入力座標を通る第2直線のうち、当該入力座量から第1の直線と第2の直線との交点との距離を算出する。 In S505, the CPU 101 calculates the radius of the circle to be arranged based on the mouse cursor position (input position, input coordinates) when clicked. More specifically, the distance (shortest distance) between the mouse cursor position (input position, input coordinates) when clicked and the straight line of the specified line segment is calculated as the radius. This is the distance between the position (input position, input coordinates) of the mouse cursor when clicked and the straight line of the specified line segment. That is, of the second straight lines perpendicularly intersecting the first straight line that overlaps with the specified line segment and passing through the input coordinates at the time of clicking, the first straight line and the second straight line Calculate the distance from the point of intersection with the straight line.

S506は、CPU101は、指定線分の直線上に接し、クリックされた際のマウスカーソルの位置(入力位置、入力座標)を中心とした円を描画する(本描画)。すなわち、配置して表示する。円の半径はS505で算出されたものである。ここで描画される円は図面の構成要素としてのオブジェクトである。 In S506, the CPU 101 draws a circle centered on the position (input position, input coordinates) of the mouse cursor when it is clicked, touching the straight line of the specified line segment (main drawing). That is, they are arranged and displayed. The radius of the circle is the one calculated in S505. The circle drawn here is an object as a component of the drawing.

図6(e)に、S506で描画される円の例を示す。S506で描画される円が円633である。指定線分が線分630であり、クリックされた際の入力座標(ユーザーによる入力座量)が点U4であった場合、指定線分630と重なる直線上(同一直線上)にある点線631(線分630及びその延長線)に接し、S505で算出された半径を持つ円633が描画される。S505で前述した第1の直線が点線631であり、第2の直線が直線632である。なお、図6(e)において、点線や点を示す黒丸、直角記号などは説明のために図示したものであって、表示されるものではない。 FIG. 6E shows an example of a circle drawn in S506. The circle drawn in S506 is the circle 633 . If the specified line segment is the line segment 630 and the input coordinates (the amount of input by the user) at the time of clicking is the point U4, the dotted line 631 (on the same straight line) that overlaps the specified line segment 630 A circle 633 is drawn that is in contact with the line segment 630 and its extension line and has the radius calculated in S505. The first straight line described in S505 is the dotted line 631, and the second straight line is the straight line 632. As shown in FIG. In FIG. 6(e), dotted lines, black circles indicating dots, right-angled symbols, etc. are shown for explanation purposes and are not displayed.

S507では、CPU101は、ツール3以外の他のツールが選択されたか否かを判定する。他のツールが選択された場合にはツール3処理を終了し、そうでない場合にはS503に進む。S503に進んだ後、さらにクリックをすれば、クリックを行った分だけ、S501で指定した線分の直線上に接する円を配置できる。すなわち、円を配置したい位置をプレビューで確認しながらクリックを繰り返すだけで、同じ直線上に接する円を複数連続して描画(配置)することができる。すなわち、第1のクリック操作によって指定された位置を中心とした円であって、基準直線(線分630、点線631を含む直線)に接する第1の円を配置した後、他の操作をすることなく行われた第2のクリック操作があったことに応じて、前記第2のクリック操作によって指定された位置を中心とした円であって、前記基準直線に接する第2の円を配置するように制御する。 In S507, the CPU 101 determines whether or not a tool other than Tool 3 has been selected. If another tool is selected, the tool 3 process is terminated; otherwise, the process proceeds to S503. After proceeding to S503, by further clicking, a circle can be placed in contact with the straight line of the line segment specified in S501 by the number of clicks. That is, by repeatedly clicking while confirming the position where the circle is to be placed in the preview, it is possible to continuously draw (arrange) a plurality of circles that are in contact with each other on the same straight line. That is, after placing the first circle centered at the position designated by the first click operation and in contact with the reference straight line (the straight line including the line segment 630 and the dotted line 631), another operation is performed. A second circle centered at the position specified by the second click operation and in contact with the reference straight line is arranged in response to the second click operation performed without the second click operation. to control.

上述したツール3の処理によれば、指定した線分の直線上に接する円を簡単に作図することが可能となる。例えば、平行な2つの外壁の間に設けられた開口部(図6(a)の点線のような箇所)の外側に、円形の床材などを配置したい場合などの設計作業をより簡単に行うことができる。もちろんこれは一例であり、様々な用途に用いて好適である。 According to the processing of the tool 3 described above, it is possible to easily draw a circle tangent to the straight line of the specified line segment. For example, design work such as when you want to place a circular floor material outside the opening (dotted line in Fig. 6(a)) provided between two parallel outer walls can be made easier. be able to. Of course, this is only an example, and it is suitable for various uses.

以上説明した本実施形態によれば、より操作性よく円の作図を行うことが可能となる。 According to the present embodiment described above, it is possible to draw a circle with better operability.

なお、上述の実施形態では、PCにおけるクリック操作での説明をしたが、本発明は、タッチ操作可能なPC、タブレット端末、スマートフォンなどの電子機器にも適用可能である。タッチ操作に応じて上述の各種処理を行う場合は、上述したクリックを、画面をタッチする操作(表示領域上を指示、位置指定、位置入力する操作)に置き換えることで適用可能である。 In the above-described embodiment, the click operation on the PC has been described, but the present invention can also be applied to electronic devices such as a touch-operable PC, tablet terminal, and smart phone. When the above-described various processes are performed according to the touch operation, the above-described click can be applied by replacing the above-described click with an operation of touching the screen (an operation of pointing, specifying a position, or inputting a position on the display area).

なお、CPU101が行うものとして説明した上述の各種制御は1つのハードウェアが行ってもよいし、複数のハードウェア(例えば、複数のプロセッサや回路)が処理を分担することで、装置全体の制御を行ってもよい。 Note that the various controls described above that are performed by the CPU 101 may be performed by one piece of hardware. may be performed.

なお、上述の実施形態においては、オブジェクトとして図面の要素(構成部品)である図形の例を説明したが、オブジェクトはこれに限るものではない。円を描画するものであればどのような場面にも本実施形態を適用可能である。 In the above-described embodiment, an example of a figure that is an element (component) of a drawing has been described as an object, but the object is not limited to this. This embodiment can be applied to any scene as long as it draws a circle.

また、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。さらに、上述した各実施形態は本発明の一実施形態を示すものにすぎず、各実施形態を適宜組み合わせることも可能である。 Moreover, although the present invention has been described in detail based on its preferred embodiments, the present invention is not limited to these specific embodiments, and various forms within the scope of the present invention can be applied to the present invention. included. Furthermore, each embodiment described above merely shows one embodiment of the present invention, and it is also possible to combine each embodiment as appropriate.

また、上述した実施形態においては、本発明をPCにおけるCADアプリに適用した場合を例にして説明したが、これはこの例に限定されず、何らかの目的で円が描画可能な装置、ソフトウェアであれば適用可能である。例えば、CAD以外の各種作図ソフト、レイアウト編集ソフト、プレゼンテーションソフト、画像編集ソフト、グラフィックデザインソフト、文書作成ソフト、表計算ソフトなどに適用可能である。また、上述した実施形態においては、本発明を図1の電子機器100に適用した場合を例にして説明したが、これはこの例に限定されず、何らかの図形の描画が行える電子機器であれば適用可能である。すなわち、本発明は、パーソナルコンピュータやPDA、携帯電話端末や携帯型の画像ビューワ、ディスプレイを備えるプリンタ装置、デジタルフォトフレーム、音楽プレーヤー、ゲーム機、電子ブックリーダーなどに適用可能である。 Further, in the above-described embodiment, the case where the present invention is applied to a CAD application on a PC has been described as an example, but this is not limited to this example, and any device or software capable of drawing a circle for some purpose can be used. applicable if For example, it can be applied to various drawing software other than CAD, layout editing software, presentation software, image editing software, graphic design software, document creation software, spreadsheet software, and the like. Further, in the above-described embodiment, the case where the present invention is applied to the electronic device 100 of FIG. Applicable. That is, the present invention can be applied to personal computers, PDAs, mobile phone terminals, portable image viewers, printers equipped with displays, digital photo frames, music players, game machines, electronic book readers, and the like.

(他の実施形態)
本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)をネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(又はCPUやMPU等)がプログラムコードを読み出して実行する処理である。この場合、そのプログラム、及び該プログラムを記憶した記憶媒体は本発明を構成することになる。
(Other embodiments)
The present invention is also realized by executing the following processing. That is, the software (program) that realizes the functions of the above-described embodiments is supplied to a system or device via a network or various storage media, and the computer (or CPU, MPU, etc.) of the system or device reads the program code. This is the process to be executed. In this case, the program and the storage medium storing the program constitute the present invention.

100 電子機器、101 CPU、102 メモリ、103 不揮発性メモリ、104 画像処理部、105 ディスプレイ、106 操作部、107 記録媒体I/F、108 記録媒体、109 外部I/F、110 通信I/F、111 インターネット、112 カメラ部、150 内部バス 100 electronic device, 101 CPU, 102 memory, 103 nonvolatile memory, 104 image processing unit, 105 display, 106 operation unit, 107 recording medium I/F, 108 recording medium, 109 external I/F, 110 communication I/F, 111 Internet, 112 camera section, 150 internal bus

Claims (15)

既存の円の指定を受け付ける第1の受付手段と、
画面上の位置の指定を受け付ける第2の受付手段と、
画面上の位置の指定を受け付ける操作とは異なる操作によるユーザーからの半径の指定を受け付ける第3の受付手段と、
前記第2の受付手段で受け付けた指定位置が、前記第1の受付手段で指定を受け付けた円である指定円の内側である場合には前記指定円に内接する円であって、前記第3の受付手段で受け付けた指定された半径である指定半径の円を表示し、
前記指定位置が、前記指定円の外側である場合には前記指定円に外接する前記指定半径の円を表示するように制御する制御手段と
を有することを特徴とする電子機器。
a first receiving means for receiving designation of an existing circle;
a second receiving means for receiving designation of a position on the screen;
a third receiving means for receiving a designation of a radius from a user by an operation different from an operation for receiving designation of a position on the screen;
When the designated position received by the second reception means is inside the designated circle which is the circle whose designation is received by the first reception means, a circle inscribed in the designated circle, and the third Display a circle with a specified radius that is the specified radius received by the receiving means of
and control means for controlling to display a circle of the specified radius circumscribing the specified circle when the specified position is outside the specified circle.
前記第3の受付手段は、半径の指定として数値入力操作を受け付けることを特徴とする請求項1に記載の電子機器。2. The electronic device according to claim 1, wherein said third accepting means accepts a numerical input operation as designation of a radius. 前記制御手段はさらに、前記指定半径を入力するための入力領域を表示するように制御し、The control means further controls to display an input area for inputting the specified radius,
前記第3の受付手段は、半径の指定として前記入力領域への前記数値入力操作を受け付けることを特徴とする請求項2に記載の電子機器。3. The electronic device according to claim 2, wherein said third accepting means accepts said numerical input operation to said input area as designation of a radius.
前記制御手段は、前記第1の受付手段で既存の円の指定を受け付けたことに応じて前記入力領域を表示するように制御することを特徴とする請求項3に記載の電子機器。4. The electronic device according to claim 3, wherein said control means controls to display said input area in response to acceptance of designation of an existing circle by said first acceptance means. 前記第2の受付手段は、前記3の受付手段で半径の指定を受け付けた後に画面上の位置の指定を受け付けることを特徴とする請求項1に記載の電子機器。2. The electronic device according to claim 1, wherein said second reception means receives designation of a position on the screen after said third reception means receives designation of a radius. 前記第1の受付手段で既存の円の指定を受け付け、前記第3の受付手段で半径の指定を受け付けると、前記制御手段は、マウスカーソルの位置を前記指定位置として、前記カーソルの位置の移動に応じて動的な位置前記指定半径の前記内接する円または前記指定半径で前記外接する円を表示するように制御することを特徴とする請求項に記載の電子機器。 When the first reception means receives the designation of an existing circle and the third reception means receives the designation of the radius, the control means moves the position of the mouse cursor with the position of the mouse cursor as the designated position. 2. The electronic device according to claim 1 , wherein control is performed so as to display the inscribed circle with the specified radius or the circumscribed circle with the specified radius at a dynamic position according to . 前記第1の受付手段で既存の円の指定を受け付け、前記第3の受付手段で半径の指定を受け付けた後に、クリック操作があったことに応じて、前記制御手段は、前記クリック操作があった際のカーソルの位置を前記指定位置として、前記内接する円または前記外接する円を、図面の構成要素として配置するように制御することを特徴とする請求項1に記載の電子機器。 After receiving the designation of the existing circle by the first reception means and the designation of the radius by the third reception means, in response to the click operation, the control means receives the click operation. 2. The electronic device according to claim 1, wherein control is performed so that the inscribed circle or the circumscribed circle is arranged as a constituent element of the drawing, with the position of the cursor when the cursor is pressed as the designated position. 前記制御手段は、第1のクリック操作に応じて前記指定円に内接する第1の円または外接する第2の円を配置した後、他の操作をすることなく行われた第2のクリック操作があったことに応じて、前記第2のクリック操作によって指定された位置を指定位置として、
前記指定円に内接する第3の円または外接する第4の円を配置するように制御することを特徴とする請求項に記載の電子機器。
After arranging a first circle inscribed or a second circle circumscribing the designated circle according to the first click operation, the control means performs a second click operation without performing other operations. , the position specified by the second click operation is used as the specified position,
8. The electronic device according to claim 7 , wherein control is performed so as to dispose a third circle or a fourth circle circumscribing the designated circle.
前記図面はCAD図面であることを特徴とする請求項に記載の電子機器。 8. The electronic device according to claim 7 , wherein the drawing is a CAD drawing. 前記制御手段は、前記内接する円または前記外接する円として、前記指定位置と前記指定円の中心とを通る直線上に中心点を持つ円であって、前記指定半径の円を表示するように制御することを特徴とする請求項に記載の電子機器。 The control means displays, as the inscribed circle or the circumscribed circle, a circle having a center point on a straight line passing through the specified position and the center of the specified circle and having the specified radius. 2. The electronic device according to claim 1 , wherein the electronic device controls. 前記制御手段は、既存の円以外の図形の指定を受け付けた場合に、円を選択することを促す通知をするように制御することを特徴とする請求項1に記載の電子機器。 2. The electronic device according to claim 1, wherein said control means performs control so as to issue a notification prompting selection of a circle when designation of a figure other than an existing circle is accepted. 既存の円の指定を受け付ける第1の受付手段と、
画面上の位置の指定を受け付ける第2の受付手段と、
画面上の位置の指定を受け付ける操作とは異なる操作によるユーザーからの半径の指定を受け付ける第3の受付手段と、
前記第2の受付手段で受け付けた指定位置と、前記第1の受付手段で指定を受け付けた円である指定円の中心とを通る直線上に中心点を持つ円であって、前記第3の受付手段で受け付けた指定された半径である指定半径の円であり、かつ、前記指定円に接する円を表示するように制御する制御手段と
を有することを特徴とする電子機器。
a first receiving means for receiving designation of an existing circle;
a second receiving means for receiving designation of a position on the screen;
a third receiving means for receiving a designation of a radius from a user by an operation different from an operation for receiving designation of a position on the screen;
A circle having a center point on a straight line passing through the specified position accepted by the second acceptance means and the center of the specified circle, which is the circle whose specification is accepted by the first acceptance means, wherein the third and control means for controlling to display a circle having a designated radius which is a radius designated by a receiving means and which is tangent to the designated circle.
コンピュータを、請求項1乃至12のいずれか1項に記載された電子機器の各手段として機能させるためのプログラム。 A program for causing a computer to function as each means of the electronic device according to any one of claims 1 to 12 . 既存の円の指定を受け付ける第1の受付ステップと、
画面上の位置の指定を受け付ける第2の受付ステップと、
画面上の位置の指定を受け付ける操作とは異なる操作によるユーザーからの半径の指定を受け付ける第3の受付ステップと、
前記第2の受付ステップで受け付けた指定位置が、前記第1の受付ステップで指定を受け付けた円である指定円の内側である場合には前記指定円に内接する円であって、前記第3の受付ステップで受け付けた指定された半径である指定半径の円を表示し、
前記指定位置が、前記指定円の外側である場合には前記指定円に外接する前記指定半径の円を表示するように制御する制御ステップと
を有することを特徴とする電子機器の制御方法。
a first receiving step for receiving designation of an existing circle;
a second reception step for receiving designation of a position on the screen;
a third receiving step of receiving a radius designation from the user by an operation different from the operation of receiving the position designation on the screen;
When the specified position accepted in the second accepting step is inside the specified circle, which is the circle specified in the first accepting step, the circle inscribed in the specified circle , the third Display a circle with a specified radius, which is the specified radius received in the acceptance step of
and a control step of controlling to display a circle of the specified radius circumscribing the specified circle when the specified position is outside the specified circle.
既存の円の指定を受け付ける第1の受付ステップと、
画面上の位置の指定を受け付ける第2の受付ステップと、
画面上の位置の指定を受け付ける操作とは異なる操作によるユーザーからの半径の指定を受け付ける第3の受付ステップと、
前記第2の受付ステップで受け付けた指定位置と、前記第1の受付ステップで指定を受け付けた円である指定円の中心とを通る直線上に中心点を持つ円であって、前記第3の受付手段で受け付けた指定された半径である指定半径の円であり、かつ、前記指定円に接する円を表示するように制御する制御ステップと
を有することを特徴とする電子機器の制御方法。
a first receiving step for receiving designation of an existing circle;
a second reception step for receiving designation of a position on the screen;
a third receiving step of receiving a radius designation from the user by an operation different from the operation of receiving the position designation on the screen;
A circle having a center point on a straight line passing through the designated position received in the second receiving step and the center of the designated circle, which is the circle whose designation is received in the first receiving step, wherein the third A control method for an electronic device, comprising: a control step of controlling to display a circle having a designated radius which is a designated radius received by a receiving means and which is tangent to the designated circle.
JP2022072218A 2022-04-26 2022-04-26 ELECTRONIC DEVICE, ELECTRONIC DEVICE CONTROL METHOD, AND PROGRAM Active JP7236015B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2022072218A JP7236015B1 (en) 2022-04-26 2022-04-26 ELECTRONIC DEVICE, ELECTRONIC DEVICE CONTROL METHOD, AND PROGRAM
JP2022172092A JP2023162098A (en) 2022-04-26 2022-10-27 Electronic device, control method of electronic device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022072218A JP7236015B1 (en) 2022-04-26 2022-04-26 ELECTRONIC DEVICE, ELECTRONIC DEVICE CONTROL METHOD, AND PROGRAM

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2022172092A Division JP2023162098A (en) 2022-04-26 2022-10-27 Electronic device, control method of electronic device and program

Publications (2)

Publication Number Publication Date
JP7236015B1 true JP7236015B1 (en) 2023-03-09
JP2023161712A JP2023161712A (en) 2023-11-08

Family

ID=85476831

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2022072218A Active JP7236015B1 (en) 2022-04-26 2022-04-26 ELECTRONIC DEVICE, ELECTRONIC DEVICE CONTROL METHOD, AND PROGRAM
JP2022172092A Pending JP2023162098A (en) 2022-04-26 2022-10-27 Electronic device, control method of electronic device and program

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2022172092A Pending JP2023162098A (en) 2022-04-26 2022-10-27 Electronic device, control method of electronic device and program

Country Status (1)

Country Link
JP (2) JP7236015B1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1995001608A1 (en) 1993-06-29 1995-01-12 Fujitsu Limited Method and apparatus for drawing tangent circle
JP2002056402A (en) 2000-08-10 2002-02-22 Canon Inc Shape calculation device, shape calculation method and computer-readable storage medium
CN101839693A (en) 2010-04-12 2010-09-22 东莞市嘉腾仪器仪表有限公司 Automatic image measuring system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61203248A (en) * 1985-02-28 1986-09-09 Atsuo Matsuda Automatic compiling method for nc machine tool processing program
JP3124973B2 (en) * 1991-08-12 2001-01-15 三菱電機株式会社 Graphic data input method
JP2829693B2 (en) * 1993-03-11 1998-11-25 株式会社ユニックス Commandless CAD device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1995001608A1 (en) 1993-06-29 1995-01-12 Fujitsu Limited Method and apparatus for drawing tangent circle
JP2002056402A (en) 2000-08-10 2002-02-22 Canon Inc Shape calculation device, shape calculation method and computer-readable storage medium
CN101839693A (en) 2010-04-12 2010-09-22 东莞市嘉腾仪器仪表有限公司 Automatic image measuring system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汎用2次元CADシステムCS-21 図形処理編,日本,株式会社東芝,1994年12月20日,第A3版,第22-34頁

Also Published As

Publication number Publication date
JP2023161712A (en) 2023-11-08
JP2023162098A (en) 2023-11-08

Similar Documents

Publication Publication Date Title
JP6289100B2 (en) Information processing apparatus, information processing method, and program
EP2811731B1 (en) Electronic device for editing dual image and method thereof
JP2015114836A (en) Image processing device, tactile control method, and program
JP6354653B2 (en) Augmented reality operation system and augmented reality operation program
JP6647103B2 (en) Display control device and control method thereof
KR102121905B1 (en) Method and apparatus for setting background of ui control, and terminal
EP2897370A1 (en) Method and apparatus for operating television application
US9116757B2 (en) Data processing apparatus including plurality of applications and method
JP7236015B1 (en) ELECTRONIC DEVICE, ELECTRONIC DEVICE CONTROL METHOD, AND PROGRAM
JP2013161247A (en) Operation device, display device, remote operation system, method of controlling operation device, control program, and recording medium
JP6010303B2 (en) Image playback device
KR101825598B1 (en) Apparatus and method for providing contents, and computer program recorded on computer readable recording medium for executing the method
KR20140127131A (en) Method for displaying image and an electronic device thereof
JP2008118317A (en) Projection device
JP6779778B2 (en) Display control device and its control method
KR100976470B1 (en) Method for editing picture in mobile terminal
JP6572107B2 (en) Image processing apparatus and image processing method
JP7193769B1 (en) ELECTRONIC DEVICE, ELECTRONIC DEVICE CONTROL METHOD, AND PROGRAM
JP7208578B1 (en) ELECTRONIC DEVICE, ELECTRONIC DEVICE CONTROL METHOD, AND PROGRAM
US9990338B2 (en) Display device for controlling enlargement of displayed image data, and data processing device and non-transitory computer readable medium
JP2007159038A (en) Imaging apparatus and control method thereof
JP7204514B2 (en) Image output device, its control method, and program
JP2019082948A (en) Information processing apparatus, information processing system and information processing method
JP2017204718A (en) Imaging apparatus and zoom control method thereof
JP6656062B2 (en) Display control device and control method thereof

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220531

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220531

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20220531

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220830

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221027

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: 20230124

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230206

R151 Written notification of patent or utility model registration

Ref document number: 7236015

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117