JPH06187415A - Graphic preparing device - Google Patents

Graphic preparing device

Info

Publication number
JPH06187415A
JPH06187415A JP35486292A JP35486292A JPH06187415A JP H06187415 A JPH06187415 A JP H06187415A JP 35486292 A JP35486292 A JP 35486292A JP 35486292 A JP35486292 A JP 35486292A JP H06187415 A JPH06187415 A JP H06187415A
Authority
JP
Japan
Prior art keywords
memory
graphic data
graphic
free line
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP35486292A
Other languages
Japanese (ja)
Inventor
Jun Kouda
潤 古宇田
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 JP35486292A priority Critical patent/JPH06187415A/en
Publication of JPH06187415A publication Critical patent/JPH06187415A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To equally allocate already plotted graphic forms with an easy operation. CONSTITUTION:A CPU 10 stores the coordinate data of a plotted free line in a free line plotting coordinate memory 24 and retrieves graphic data of graphics being in contact with the free line from a graphic data memory 16 and saves these graphic data Z1 to ZC in a graphic data work memory 26 and stores the number C of them in a variable memory 30. Next, the CPU 10 stores the overall length L and the start point S of the free line in the variable memory 30 based on coordinate data of the free line stored in the free line plotting coordinate memory 24 and deletes graphic data corresponding to graphic data in the graphic data work memory 26 from the graphic data memory 16. A graphic change control part 28 generates graphic data equally arranged on the free line based on graphic data in the graphic data work memory 26 and various variables in the variable memory 30 and writes these generated graphic data in the graphic data memory 16.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、パーソナルコンピュー
タなどの情報処理機器において図形を作成する図形作成
装置に係り、特に、複数の図形の均等割り付けに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic creating apparatus for creating a graphic in an information processing device such as a personal computer, and more particularly to the uniform allocation of a plurality of graphics.

【0002】[0002]

【従来の技術】従来より、パーソナルコンピュータにて
図形を描くためのソフトウェアが知られている。また、
ワードプロセッサの機能の一つとして、そのような図形
作成装置が提供されることも知られている。
2. Description of the Related Art Software for drawing a graphic on a personal computer has been known. Also,
It is also known that such a graphic creation device is provided as one of the functions of a word processor.

【0003】この種の図形作成装置は、円形や四角形、
直線や曲線を組み合わせて、自由に図形を描くことがで
きる。
This kind of figure forming device is used for a circle, a quadrangle,
You can freely draw shapes by combining straight lines and curves.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、この種
の図形作成装置においては、円形や四角形といった既に
描かれた複数の図形を均等に配置したいと考えた場合、
各図形を移動したり、複写,削除したりといった、細か
くて複雑な操作を繰り返し行う必要があった。
However, in this type of figure creating apparatus, when it is desired to evenly arrange a plurality of already drawn figures such as circles and squares,
It was necessary to repeat detailed and complicated operations such as moving, copying, and deleting each figure.

【0005】本発明の課題は、簡単な操作で既に描画さ
れた図形を均等割り付けできるようにすることである。
An object of the present invention is to make it possible to evenly allocate already drawn figures by a simple operation.

【0006】[0006]

【課題を解決するための手段】本発明の手段は次の通り
である。指定手段は、図形を配置すべき配置領域を線の
描画などにより指定する。配置位置決定手段は、複数の
図形の配置位置を、前記指定手段で指定された配置領域
上の座標を基準にして、各図形毎に個別に決定する。配
置手段は、前記配置位置決定手段によって決定された各
配置位置に各図形を配置する。
The means of the present invention are as follows. The designating means designates an arrangement area in which the graphic is to be arranged by drawing a line or the like. The placement position determining means determines the placement positions of the plurality of figures individually for each figure based on the coordinates on the placement area designated by the designating means. The arranging means arranges each figure at each arranging position determined by the arranging position determining means.

【0007】[0007]

【作用】本発明の手段の作用は次の通りである。指定手
段によって図形を配置すべき配置領域が指定されると、
配置位置決定手段は、この指定された配置領域上の座標
を基準にして、複数の図形の配置位置を各図形毎に個別
に決定し、配置手段は、この配置位置決定手段によって
決定された各配置位置に各図形を配置する。
The operation of the means of the present invention is as follows. When the placement area where the figure should be placed is designated by the designating means,
The placement position determining means individually determines the placement positions of the plurality of figures on the basis of the coordinates on the designated placement area, and the placement means determines the placement positions determined by the placement position determining means. Place each figure at the placement position.

【0008】[0008]

【実施例】以下、本発明の実施例を、図1乃至図4を参
照して説明する。
Embodiments of the present invention will be described below with reference to FIGS.

【0009】図1は本発明の一実施例の構成を示すブロ
ック図で、図中の参照番号10は全体の制御を行うCP
Uである。12は実行,カーソル移動,他の機能キーを
備えたキーボードなどのキー入力部であり、14はマウ
スである。16はユーザが作成した図形データが保存さ
れる図形メモリであり、図形データはベクトルとして保
存される。即ち、単純な図形情報、例えば「座標
(x11,y11)と(x12,y12)を結ぶ直線」,「中心
座標(x31,y31)、半径rの円」などが複数集まった
ものとして保存する。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, in which reference numeral 10 is a CP for controlling the whole.
U. Reference numeral 12 is a key input unit such as a keyboard provided with execution, cursor movement, and other function keys, and 14 is a mouse. Reference numeral 16 is a graphic memory in which graphic data created by the user is saved, and the graphic data is saved as a vector. That is, a plurality of simple graphic information such as “a straight line connecting coordinates (x 11 , y 11 ) and (x 12 , y 12 )”, “center coordinates (x 31 , y 31 ), a circle of radius r”, etc. are collected. Save as

【0010】18は図形メモリ16に保存された図形デ
ータを図形イメージに変換する図形描画制御部であり、
20は表示部22に表示するための上記図形描画制御部
18で作成された図形イメージをドットパターンで記憶
する表示メモリである。
Reference numeral 18 is a graphic drawing control unit for converting the graphic data stored in the graphic memory 16 into a graphic image.
Reference numeral 20 is a display memory for storing the graphic image created by the graphic drawing control unit 18 for display on the display unit 22 in a dot pattern.

【0011】24は、上記キー入力部12及びマウス1
4操作によって描画された、その上に複数の図形を均等
配置すべき自由線の座標データを記憶する自由線描画座
標メモリであり、26は均等配置すべき複数の座標それ
ぞれの図形データが一時的に記憶される図形データワー
クメモリである。
Reference numeral 24 is the key input section 12 and the mouse 1.
A free line drawing coordinate memory that stores coordinate data of free lines drawn by four operations and on which a plurality of figures should be evenly arranged, and 26 is temporary drawing data for each of the plurality of coordinates to be evenly arranged. It is a graphic data work memory stored in.

【0012】そして、28は詳細は後述するようにして
複数の図形を均等配置する図形変更処理を行う図形変更
制御部であり、30はこの図形変更制御部28での図形
変更処理を行うために利用される各種変数を記憶する変
数メモリである。
Reference numeral 28 denotes a figure change control unit for performing a figure change process for evenly arranging a plurality of figures as will be described later in detail. Reference numeral 30 denotes a figure change process in the figure change control unit 28. It is a variable memory that stores various variables used.

【0013】次に、上記構成における動作を図2のフロ
ーチャートを参照して説明する。
Next, the operation of the above configuration will be described with reference to the flowchart of FIG.

【0014】例えば今、表示部22の表示画面には、図
形メモリ16に記憶されている図形データに従って、図
3の(A)に示すように複数の図形(図の簡略化のた
め、それぞれ「○」で示す)40が表示されているもの
とする。
For example, now, on the display screen of the display unit 22, a plurality of figures (for simplification of the figure, respectively, as shown in FIG. 3A) are displayed according to the figure data stored in the figure memory 16. 40) is displayed.

【0015】このような状態で、先ず、キー入力部12
又はマウス14によって、自由線、例えば図3の(B)
に示すような曲線42A又は同図の(C)に示すような
連続直線42Bが描画されると、CPU10は、その描
画された自由線の座標データを自由線描画座標メモリ2
4に記憶する(ステップS1)。そして、描画された自
由線に接触する図形の図形データを図形データメモリ1
6から検索し(ステップS2)、検索された図形の図形
データZ1 〜ZC を図形データワークメモリ26にセー
ブすると共に(ステップS3)、その検索された図形の
個数Cを図形変更制御部28を介して変数メモリ30に
記憶する(ステップS4)。
In such a state, first, the key input unit 12
Alternatively, with the mouse 14, a free line, for example, FIG.
When a curved line 42A as shown in FIG. 4 or a continuous straight line 42B as shown in FIG. 7C is drawn, the CPU 10 stores the drawn free line coordinate data in the free line drawing coordinate memory 2
4 (step S1). The graphic data of the graphic that touches the drawn free line is stored in the graphic data memory 1
Retrieved from 6 (step S2), and the graphic data Z 1 to Z C of the retrieved figures with saving the graphic data work memory 26 (step S3), and the graphic change control unit 28 the number C of the retrieved figures It is stored in the variable memory 30 via (step S4).

【0016】次に、上記自由線描画座標メモリ24に記
憶した自由線の座標データに基づいて、描画された自由
線の全長L及び始点Sを図形変更制御部28を介して変
数メモリ30に記憶し(ステップS5)、図形データワ
ークメモリ24に記憶された図形データに対応する図形
データを図形データメモリ16より削除する(ステップ
S6)。
Next, based on the coordinate data of the free line stored in the free line drawing coordinate memory 24, the total length L and the starting point S of the drawn free line are stored in the variable memory 30 via the figure change control unit 28. Then, the graphic data corresponding to the graphic data stored in the graphic data work memory 24 is deleted from the graphic data memory 16 (step S5) (step S6).

【0017】そして、図形変更制御部28は、詳細は後
述するようにして、図3の(D)又は(E)に示すよう
に、描画された自由線(曲線42A又は連続直線42
B)上に均等に配置された図形データを作成し、それら
の図形データを図形データメモリ16に書き込む(ステ
ップS7)。
The graphic change control unit 28, as will be described in detail later, draws a drawn free line (curve 42A or continuous straight line 42) as shown in FIG. 3D or 3E.
B) The graphic data evenly arranged on the graphic data is created, and the graphic data is written in the graphic data memory 16 (step S7).

【0018】図形描画制御部18は、図形データメモリ
16の図形データを全て読出して(ステップS8)、表
示メモリ20上に再描画することにより、表示部22の
表示画面には図形が均等に配置して描かれる(ステップ
S9)。
The figure drawing controller 18 reads out all the figure data in the figure data memory 16 (step S8) and redraws the figure data on the display memory 20, thereby arranging the figures evenly on the display screen of the display section 22. And drawn (step S9).

【0019】次に、上記ステップS7における図形変更
処理を、図4のフローチャートを参照してさらに詳細に
説明する。
Next, the graphic modification process in step S7 will be described in more detail with reference to the flowchart of FIG.

【0020】まず、変数メモリ30に記憶されている自
由線の全長Lの値を、同じく変数メモリ30に記憶され
ている検索された図形の個数Cから「1」引いた値で割
り、その解を変数メモリ30に間隔Wとして記憶する
(ステップS71)。さらに、変数メモリ30に記憶さ
れている自由線の始点Sの値を変数メモリ30の描画座
標Vにセットし、また「1」を変数メモリ30の処理個
数nにセットする(ステップS72)。
First, the value of the total length L of the free line stored in the variable memory 30 is divided by the value obtained by subtracting "1" from the number C of retrieved figures also stored in the variable memory 30, and the solution is obtained. Is stored as an interval W in the variable memory 30 (step S71). Further, the value of the starting point S of the free line stored in the variable memory 30 is set to the drawing coordinate V of the variable memory 30, and "1" is set to the processing number n of the variable memory 30 (step S72).

【0021】そして、図形データワークメモリ26に記
憶されている図形データZ1 〜ZCの内の、上記変数メ
モリ30の処理個数nの値で示されるn番目の図形デー
タZn の中心点を、上記変数メモリ30の描画座標Vで
示される座標に変更した図形データを作成し(ステップ
S73)、その作成した図形データを図形データメモリ
16へ格納する(ステップS74)。
Then, of the graphic data Z 1 to Z C stored in the graphic data work memory 26, the center point of the n-th graphic data Z n indicated by the value of the processing number n of the variable memory 30 is set. The graphic data changed to the coordinates indicated by the drawing coordinate V in the variable memory 30 is created (step S73), and the created graphic data is stored in the graphic data memory 16 (step S74).

【0022】次に、上記変数メモリ30の処理個数nの
値を「1」インクリメントし(ステップS75)、その
結果が上記変数メモリ30に記憶されている図形の個数
Cの値を越えたか否かを判断する(ステップS76)。
越えていれば処理を上位のフローチャートのステップS
8へ進むが、まだ越えていなければ、描画された自由線
上で、上記変数メモリ30の描画座標Vで示される座標
より変数メモリ30に間隔Wだけ離れた点をサーチし
て、その座標を新しい描画座標Vとして上記変数メモリ
30に記憶した後(ステップS77)、上記ステップS
73に戻って上記処理を繰り返す。
Next, the value of the processing number n of the variable memory 30 is incremented by "1" (step S75), and whether the result exceeds the value of the number C of figures stored in the variable memory 30 or not. Is determined (step S76).
If it exceeds, the process is performed in step S of the upper flowchart.
8, but if it has not exceeded, search for a point on the drawn free line that is separated from the coordinate indicated by the drawing coordinate V of the variable memory 30 by the distance W, and set the new coordinate. After the drawing coordinates V are stored in the variable memory 30 (step S77), the above step S
Returning to 73, the above process is repeated.

【0023】なお、上記実施例では、描画された自由線
上を均等配置すべき領域とし、その自由線に接触する図
形を均等配置すべき図形として選択するようにしたが、
本発明はこれに限定されるものではなく、例えば矩形の
領域を指定して、その矩形領域内にある図形を描画され
た自由線上に均等配置するようにしても良い。その場合
は、図2のステップS1乃至S4をステップS11乃至
S14のように変更すれば良い。
In the above embodiment, the drawn free line is set as the region to be uniformly arranged, and the graphic contacting the free line is selected as the graphic to be uniformly arranged.
The present invention is not limited to this, and for example, a rectangular area may be designated and the figures in the rectangular area may be evenly arranged on the drawn free line. In that case, steps S1 to S4 in FIG. 2 may be changed to steps S11 to S14.

【0024】即ち、先ず最初に、均等配置すべき対象図
形の領域が例えば矩形領域として指定されると(ステッ
プS11)、その指定領域に含まれる図形の図形データ
1〜ZC を図形データワークメモリ26にセーブする
と共に(ステップS12)、その個数Cを図形変更制御
部28を介して変数メモリ30に記憶する(ステップS
13)。そして、自由線の描画に応じて、その描画され
た自由線の座標データを自由線描画座標メモリ24に記
憶した後(ステップS14)、上記ステップS5へ進ん
で前述したような処理を行う。
[0024] That is, first of all, the region of the subject graphic to be justified is specified, for example, as a rectangular area (step S11), and graphic data work graphic data Z 1 to Z C of figures included in the specified area The value C is saved in the memory 26 (step S12), and the number C is stored in the variable memory 30 via the graphic change control unit 28 (step S12).
13). Then, according to the drawing of the free line, after the coordinate data of the drawn free line is stored in the free line drawing coordinate memory 24 (step S14), the process proceeds to step S5 and the above-described processing is performed.

【0025】以上のように、簡単な操作で、図形を任意
の領域に均等に割り付けられるようになる。
As described above, it becomes possible to evenly allocate a figure to an arbitrary area by a simple operation.

【0026】[0026]

【発明の効果】本発明によれば、簡単な操作で既に描画
された図形を均等割り付けできるので、図形作成装置の
操作性が向上し、美しい出力が簡単に得られるようにな
る。
According to the present invention, the already drawn figures can be evenly allocated by a simple operation, so that the operability of the figure creating apparatus is improved and a beautiful output can be easily obtained.

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

【図1】実施例のブロック構成図である。FIG. 1 is a block diagram of an embodiment.

【図2】実施例の動作を説明するためのフローチャート
である。
FIG. 2 is a flow chart for explaining the operation of the embodiment.

【図3】実施例の動作を説明するための図形の配置関係
の例を示す図で、(A)は元の図形配置、(B)及び
(C)はそれぞれ均等配置すべき領域としての自由線が
描画された図形配置、(D)及び(E)はそれぞれ均等
配置結果を示す図形配置図である。
FIG. 3 is a diagram showing an example of a graphic layout relationship for explaining the operation of the embodiment, where (A) is the original graphic layout, and (B) and (C) are free areas to be uniformly arranged. Graphical arrangements in which lines are drawn, (D) and (E) are graphic arrangement diagrams showing the result of uniform arrangement.

【図4】図2注の図形変更処理の詳細なフローチャート
である。
FIG. 4 is a detailed flowchart of the figure changing process of FIG.

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

10…CPU、12…キー入力部、14…マウス、16
…図形メモリ、18…図形描画制御部、20…表示メモ
リ、22…表示部、24…自由線描画座標メモリ、26
…図形データワークメモリ、28…図形変更制御部、3
0…変数メモリ。
10 ... CPU, 12 ... Key input section, 14 ... Mouse, 16
... graphic memory, 18 ... graphic drawing control unit, 20 ... display memory, 22 ... display unit, 24 ... free line drawing coordinate memory, 26
… Graphic data work memory, 28… Graphic change control unit, 3
0 ... Variable memory.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 図形を配置すべき配置領域を指定するた
めの指定手段と、 複数の図形の配置位置を、前記指定手段で指定された配
置領域上の座標を基準にして、各図形毎に個別に決定す
る配置位置決定手段と、 前記配置位置決定手段によって決定された各配置位置に
各図形を配置する配置手段と、 を具備することを特徴とする図形作成装置。
1. Designating means for designating a layout area in which a graphic is to be arranged, and layout positions of a plurality of graphics for each graphic with reference to coordinates on the layout area designated by the designating means. A graphic creating apparatus comprising: a layout position determining unit that individually determines, and a layout unit that positions each graphic at each layout position determined by the layout position determining unit.
JP35486292A 1992-12-18 1992-12-18 Graphic preparing device Pending JPH06187415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35486292A JPH06187415A (en) 1992-12-18 1992-12-18 Graphic preparing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35486292A JPH06187415A (en) 1992-12-18 1992-12-18 Graphic preparing device

Publications (1)

Publication Number Publication Date
JPH06187415A true JPH06187415A (en) 1994-07-08

Family

ID=18440412

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35486292A Pending JPH06187415A (en) 1992-12-18 1992-12-18 Graphic preparing device

Country Status (1)

Country Link
JP (1) JPH06187415A (en)

Similar Documents

Publication Publication Date Title
JPS60230692A (en) Window display control
JPS60207968A (en) Graphic alteration apparatus
JPH06131436A (en) Method and device for plotting processing
JPS63307528A (en) System for transforming icon menu into pallet
JPH06187415A (en) Graphic preparing device
JPH05250129A (en) Display controller
JPH08255221A (en) Character graphic input editing device
JPH02113318A (en) Help processing system for information processor
JP2887603B2 (en) Figure registration control method
JP3118379B2 (en) Layout processing device
JPH0554114A (en) Image display device
JPH0827690B2 (en) Display control method
JP2966531B2 (en) Window moving method
JPS61139869A (en) Deletion system for schedule input
JP2616426B2 (en) String display device
JPH04358284A (en) Plotting method by computer aided design device
JPH08171646A (en) Graphic preparation device
JPS6385978A (en) Graphic editing device
JPS6243779A (en) Template picture drawing device for graphic processing
JPH02118771A (en) Data processor
JPH04347765A (en) Ruled line selection device
JPH0793484A (en) Input display device, function indication input method therefor and information processor
JPH08249126A (en) Input controller
JPH03129559A (en) Ruled line formation system for table
JPS62128371A (en) Multi-window controller