JPH03136173A - Graphic editing device - Google Patents

Graphic editing device

Info

Publication number
JPH03136173A
JPH03136173A JP27662689A JP27662689A JPH03136173A JP H03136173 A JPH03136173 A JP H03136173A JP 27662689 A JP27662689 A JP 27662689A JP 27662689 A JP27662689 A JP 27662689A JP H03136173 A JPH03136173 A JP H03136173A
Authority
JP
Japan
Prior art keywords
graphic
block
moved
movement
graphics
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
JP27662689A
Other languages
Japanese (ja)
Inventor
Toshinori Hirano
平野 俊典
Osamu Yoshizaki
修 吉崎
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP27662689A priority Critical patent/JPH03136173A/en
Publication of JPH03136173A publication Critical patent/JPH03136173A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To efficiently restore past desired positional relations at the time of graphic movement by determining the other graphics to be moved in accordance with the change of a desired graphic position. CONSTITUTION:A pointing device 44 is the information input means to which coordinate data and commands for graphic generation and editing, their parameters, etc., are inputted, and a bit map display device 43 is the information output means on which graphics, command menus, etc., are displayed. A memory 42 is the storage means where graphic data and a control program are stored, and a CPU 41 is the control means which controls the information input means, the output means, and the storage means based on contents of the memory 42. The extent of movement of each graphic accompanied with the position change is held and logical relations among graphics are held; and when a graphic to be moved is indicated, the movement object graphic is automatically determined by these logical relations and is moved, and positional relations are efficiently restored. Thus, graphics are efficiently moved and a graphic group of high quality is always obtained.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は図形編集装置に関し、特に図形の位置変更機能
を有した図形編集装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a graphic editing device, and more particularly to a graphic editing device having a function of changing the position of a graphic.

[従来の技術] デスクトップパブリッシング(DTP)システムやCA
D等で用いられる図形編集装置では矩形、円、多角形等
の図形を作成した後、その位置を変更する機能が用意さ
れている。一般にこの機能は位置移動を行なう図形をポ
インティングデバイスで選択し、次にその移動先をポイ
ンティングデバイスを用いて指示する。図形の移動先の
指示においてはポインティングデバイスの現在の位置に
、移動する図形の表示を連続的に行なう操作エコーが表
示される。さらにこのような図形の位置移動機能を利用
し、特に図面を清書するという観点から図形の整列や間
隔揃えといった図形の適正配置機能を備えている装置も
存在する。例えば図形の間隔揃え機能では第2図(a)
に示すようなフローチャートにおいて矩形の図形を鉛直
(縦)方向に等間隔で再配置することが可能である。ま
た第2図(b)の整列機能は矩形ブロックの中心位置が
鉛直(縦)方向の一直線上に位置するよう再配置するこ
とが可能である。尚、このような間隔揃え、整列は縦方
向だけでなく横(水平)方向についても実現されている
[Conventional technology] Desktop publishing (DTP) system and CA
A graphic editing device used in D, etc. is provided with a function to change the position of a graphic such as a rectangle, circle, polygon, etc. after it is created. Generally, this function uses a pointing device to select a figure to be moved, and then uses the pointing device to indicate its destination. In order to instruct the destination of the figure, an operation echo that continuously displays the figure to be moved is displayed at the current position of the pointing device. Furthermore, there is also an apparatus that utilizes the function of moving the position of figures and is equipped with a function of properly arranging figures, such as aligning figures and adjusting their spacing, especially from the viewpoint of copying drawings. For example, in the figure spacing function, Figure 2 (a)
In the flowchart shown in FIG. 1, it is possible to rearrange the rectangular figures at equal intervals in the vertical (longitudinal) direction. Further, the alignment function shown in FIG. 2(b) allows the rectangular blocks to be rearranged so that their centers are located on a straight line in the vertical (longitudinal) direction. Note that such spacing and alignment are realized not only in the vertical direction but also in the horizontal (horizontal) direction.

[発明が解決しようとしている問題点]このような清書
機能を用いて図面の部分的な図形の適正配置を行なった
場合、その対象となった図形の周辺には、既にそれらの
対象図形と好ましい位置関係にある図形も存在すること
が多い。図形の適正配置機能の例として、第3図に示す
ようなフローチャート図面に対して等間隔配置を行なう
場合を考える。この例では図形A、B、Cの間隔をDU
Rに揃えるものとする。ただし図形への位置は固定する
。この機能の実行の結果、位置が移動した図形B、Cに
施されていた周辺の図形との整列状態は破壊されてしま
う。すなわち図形Bとり、CとE間それぞれに関して成
立していた横方向の整列関係が破壊される。 そこで改
めて横方向の整列機能を用いて図形Bとり、CとE間そ
れぞれの整列関係を作成する必要がある。
[Problem to be Solved by the Invention] When the proper arrangement of partial figures in a drawing is performed using such a cleanup function, the surroundings of the target figure are already surrounded by those target figures and the preferred arrangement. There are often shapes that are in a positional relationship. As an example of the function of properly arranging figures, consider a case where equidistant arrangement is performed on a flowchart drawing as shown in FIG. In this example, the spacing between shapes A, B, and C is DU
It shall be aligned to R. However, the position on the figure is fixed. As a result of executing this function, the alignment of figures B and C with the surrounding figures, whose positions have been moved, is destroyed. In other words, the horizontal alignment relationships established between figures B, C, and E are destroyed. Therefore, it is necessary to use the horizontal alignment function again to take figure B and create alignment relationships between C and E.

本発明の目的は上述の点に鑑み、図形の適正配置機能等
の図形移動を伴う機能を用いた際に、その対象図形と既
に好ましい(適正な)位置関係にあった図形を、過去の
好ましい位置関係に効率良く復帰することが可能な方式
を提供することにある。
In view of the above-mentioned points, an object of the present invention is to move a figure that was already in a favorable (appropriate) positional relationship with the target figure to the previous preferred The object of the present invention is to provide a method that can efficiently restore the positional relationship.

[問題点を解決するための手段] 本発明による図形編集装置は、位置変更を伴う図形の移
動した量を各図形ごとに保持し、更に図形間の論理的関
係を保持することによって、移動するべき図形が作図者
によって差し示された時、その移動の対象図形をこの論
理関係から自動的に決定し、その図形の保持する移動量
を用いて移動を行ない、効率良く位置関係の復帰を行な
うことを特徴とする。
[Means for Solving the Problems] The figure editing device according to the present invention maintains the amount of movement of figures whose positions are changed for each figure, and also maintains the logical relationship between figures. When a figure to be moved is presented by the designer, the figure to be moved is automatically determined based on this logical relationship, and the movement is performed using the amount of movement maintained by that figure, thereby efficiently restoring the positional relationship. It is characterized by

[実施例] 次に、本発明の一実施例を詳細に説明する。[Example] Next, one embodiment of the present invention will be described in detail.

第4図は本発明を適用し得るハードウェアの構成例を示
したものである。第4図において、ポインティングデバ
イス44は図形の作成、編集のための座標データ、コマ
ンド及びそのパラメータ等を人力する情報人力手段、ビ
ットマツプデイスプレィ43は図形やコマンドメニュー
等の表示を行なう情報出力手段、メモリ42は第5図に
示す図形データ、第6図に示す制御プログラムを格納す
る記憶手段、CPU41は以上に述べた情報の入力手段
、出力手段、記憶手段をメモリ42に格納された制御プ
ログラムにもとづいて制御する制御手段である。第5図
は本発明を適用する対象図形データの一格納方式を示す
ものである。この実施例ではフローチャートやCAD図
面等のブロック図を扱い易くするために図面中の図形を
ブロックとそれらを結ぶ接続関係に分けて記述する。
FIG. 4 shows an example of a hardware configuration to which the present invention can be applied. In FIG. 4, a pointing device 44 is an information manual means for inputting coordinate data, commands and their parameters for creating and editing figures, and a bit map display 43 is an information output means for displaying figures, command menus, etc. , the memory 42 is a storage means for storing the graphic data shown in FIG. 5 and the control program shown in FIG. This is a control means that performs control based on the following. FIG. 5 shows a method of storing target graphic data to which the present invention is applied. In this embodiment, in order to make it easier to handle block diagrams such as flowcharts and CAD drawings, figures in the drawings are divided into blocks and connection relationships that connect them.

よって接続線は接続関係を表現するものとして扱う。以
後接続される図形をブロックと呼ぶ。このデータの値は
第1図(b)の状態に対応する。
Therefore, connection lines are treated as representing connection relationships. From now on, the connected figures are called blocks. This data value corresponds to the state shown in FIG. 1(b).

(a)は個々のブロックのデータ記述様式である。各シ
ンボルブロックにはブロックID、すなわちlから始ま
る通し番号をつける。ここでブロック1,2,3,4.
5は、それぞれ第1図(b)のブロックA、B、C,D
、Hに対応する。次にブロックの種類を記述する。ブロ
ックの種類として、矩形、菱形、平行四辺形、円、楕円
等が挙げられる。これらの形状に関するデータはブロッ
ク辞書として保持する。続いてブロックの位置を記述す
る。位置はそのブロックの外接矩形の中心とする。次に
ブロックの外接矩形の大きさを記述する。これらの幾何
学的データの記述形式はここで述へた方式に限られるも
のではなく本発明の実施方法を限定するものではない。
(a) is the data description format of each block. Each symbol block is given a block ID, that is, a serial number starting from l. Here blocks 1, 2, 3, 4.
5 are blocks A, B, C, and D in FIG. 1(b), respectively.
, corresponds to H. Next, describe the block type. Types of blocks include rectangles, rhombuses, parallelograms, circles, ellipses, and the like. Data regarding these shapes is held as a block dictionary. Next, describe the position of the block. The position is the center of the circumscribing rectangle of the block. Next, describe the size of the circumscribed rectangle of the block. The description format of these geometric data is not limited to the method described here, and does not limit the method of implementing the present invention.

さらに各ブロックは清書編集機能によりその位置が変更
された際に、その移動量(x、y)をベクトルデータと
して記憶する。尚、ここで用いられる座標系はビットマ
ツプデイスプレィ上のビクセルを単位とし、画面左上角
を原点とする。すなわち、Xは水平方向の移動量で右向
ぎを正、左向きを負とする。同様にyは鉛直方向の移動
量であり下向きを正、上向きを負とする。次にブロック
間の論理関係の記述様式を説明する。第5図(b)はブ
ロック間の接続関係の記述である。論理関係はその種類
ごとにIDをつけて管理する。例えばブロックAとブロ
ックBの接続関係のIDはIでありその記述データとし
て接続する二つのブロックのID、接続線の始点終点座
標が保持される。各ブロックにおいてもそれが持つ接続
関係の■Dリストを保持する。次に第1図にもとづいて
平行移動動作を説明する。第1図(a)は清書編集対象
例としてのフローチャート図面である。この図面に清書
機能のひとつである縦方向の間隔揃えを行なったとする
。ここで間隔揃えの基準はブロックAとし、ブロックB
、Cが鉛直方向に等しい間隔DURとなるよう再配置を
行なう、ブロック間の新しい間隔は数値で人力するか、
図面中に存在する二つのブロックの間隔を用いるという
指示方法を採用しても良い。この間隔揃え機能を用いた
結果このフローチャート図面は第1図(b)のように変
化する。この際、ブロックBとCは位置が移動し、それ
ぞれの座標データは更新される。また各ブロックの位置
移動量データも更新され、ブロックBは(0,Db)、
ブロックCは(0,DC)となる。この場合移動方向は
いずれも上方向なのでDb、Daは第5図(a)に示す
ようにいずれも負の値である。次に平行移動機能を実行
する。作図者は位置移動を伴う適正配置機能を実行した
際に破壊されたブロック間の適正な関係を復帰するため
にこの機能を用いる。例えばブロックDは先の適正配置
機能実行前にはブロックBと水平方向に整列された位置
関係にあったが現在はその関係が破壊されている。ブロ
ックEとブロックCも同様である。この機能を実行する
とシステムはまず、作図者に位置移動を行なうブロック
の指示を促す。そこて作図者は先にブロックBと水平に
整列された関係にあったブロックDを指示する。すると
システムはブロックDの論理関係を調べ、接続関数がブ
ロックBとあることを検知し、ブロックBの先の最適配
置機能実行による移動;fii(0,Db)をブロック
Dの移動量として用いて、ブロックDの位置を移動する
。これによってブロックDはブロックBに平行移動した
ことになる。同様にブロックEに対しても平行移動を指
示すれば今度はこれと接続関係にあるブロックCの先の
移動量(0、Dc)を用いて移動が行なわれ水平方向の
整列状態が再現される。以上に述べたブロックの平行移
動機能は、ブロックの最適配置を行なう従来からの機能
とあいまって、作図者が選択的に用いることにより高品
位な図面を効率良く編集することを可能とする。以上の
動作は第6図に示される処理手順で一般化される。第6
図は、第4図のメモリ42に格納されたプログラムを表
わすフローチャートである。第6図(a)は、ブロック
の位置移動を発生するブロックの適正配置コマンド実行
時に行なう本発明の実施に関連する処理を示すものであ
る。処理61においては適正配置コマンドに相当する各
対象ブロックの位置し動を行なう。本発明においてはさ
らに処理62において移動した各ブロックの位置移動量
D xyを設定しておく。次に第6図(b)を用いてブ
ロックの平行移動処理手順を説明する。
Furthermore, when the position of each block is changed by the fair copy editing function, the amount of movement (x, y) is stored as vector data. Note that the coordinate system used here uses pixels on the bitmap display as units, and the origin is at the upper left corner of the screen. That is, X is the amount of movement in the horizontal direction, with rightward direction being positive and leftward direction being negative. Similarly, y is the amount of movement in the vertical direction, with downward direction being positive and upward direction being negative. Next, the description style of logical relationships between blocks will be explained. FIG. 5(b) is a description of the connection relationship between blocks. Logical relationships are managed by assigning IDs to each type. For example, the ID of the connection relationship between block A and block B is I, and the ID of the two connected blocks and the coordinates of the start and end points of the connection line are held as the descriptive data. Each block also holds a 1D list of connection relationships it has. Next, the parallel movement operation will be explained based on FIG. FIG. 1(a) is a flowchart as an example of the subject of fair copy editing. Assume that you have performed vertical spacing alignment on this drawing, which is one of the fair copying functions. Here, the standard for spacing alignment is block A, block B
, C is rearranged so that the distance is equal to DUR in the vertical direction.The new distance between the blocks can be determined manually using numerical values, or
An instruction method may be adopted in which the interval between two blocks existing in the drawing is used. As a result of using this spacing adjustment function, this flowchart diagram changes as shown in FIG. 1(b). At this time, the positions of blocks B and C are moved and their respective coordinate data are updated. The position movement amount data of each block is also updated, and block B is (0, Db).
Block C becomes (0, DC). In this case, since the moving directions are both upward, Db and Da are both negative values as shown in FIG. 5(a). Next, execute the parallel movement function. A drafter uses this function to restore proper relationships between blocks that were destroyed when executing a proper placement function that involved positional movement. For example, block D was in a horizontally aligned positional relationship with block B before the proper placement function was executed, but that relationship has now been destroyed. The same applies to block E and block C. When this function is executed, the system first prompts the drafter to specify the block whose position is to be moved. Then, the drafter first indicates block D, which is horizontally aligned with block B. Then, the system examines the logical relationship of block D, detects that the connection function is with block B, and moves block B by executing the optimal placement function; fii (0, Db) is used as the amount of movement of block D. , moves the position of block D. This means that block D has been moved in parallel to block B. Similarly, if block E is instructed to move in parallel, the movement will be performed using the previous movement amount (0, Dc) of block C, which is in a connection relationship with block E, and the horizontal alignment state will be reproduced. . The block parallel movement function described above, in combination with the conventional function of optimally arranging blocks, allows a drafter to selectively use the function to efficiently edit high-quality drawings. The above operation is generalized by the processing procedure shown in FIG. 6th
The figure is a flowchart representing the program stored in the memory 42 of FIG. FIG. 6(a) shows processing related to the implementation of the present invention that is performed when executing a block proper placement command that causes block position movement. In process 61, each target block is positioned and moved corresponding to the appropriate placement command. In the present invention, further in step 62, the positional movement amount D xy of each block moved is set. Next, the block parallel movement processing procedure will be explained using FIG. 6(b).

ブロックの位置移動を発生するコマンド実行後にこの機
能を実行する。まず処理63では平行移動を行なうべき
ブロックBpを作図者はポインティングデバイス等を用
いて指示すると、それを認識する。次に処理64におい
て、先に述べたブロックデータ記述を調ベブロックB、
と接続関係にあるブロックB、を検索する。接続するブ
ロックが複数個存在する場合は、作図者に選ばさせるか
、移動量D xyと共に移動した時刻をもとに、新しく
移動したブロックをBcとする。後者の方法のためには
処理62において移動発生時刻をDxyと共に設定して
おく。次に処理65において対象ブロックBPの平行移
動を行なう移動量はブロックBCの値を用いる。
Execute this function after executing a command that causes block position movement. First, in process 63, the drawing person uses a pointing device or the like to indicate a block Bp to be translated in parallel, and this is recognized. Next, in process 64, the block data description described above is examined for block B,
Search for block B that has a connection relationship with . If there are multiple blocks to be connected, either the designer is allowed to select one, or the newly moved block is designated as Bc based on the amount of movement D xy and the time of movement. For the latter method, the movement occurrence time is set together with Dxy in step 62. Next, in process 65, the value of block BC is used as the amount of movement for parallel movement of target block BP.

[発明の効果] 以上説明したように本発明では、図形を移動した際、移
動された図形と一定の位置関係を保つべき図形を、効率
良く移動でき、常に高品位の図形群を得ることができる
[Effects of the Invention] As explained above, in the present invention, when a figure is moved, it is possible to efficiently move figures that should maintain a constant positional relationship with the moved figure, and it is possible to always obtain a group of high-quality figures. can.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の特徴を最も良く表す、図形の平行移動
を説明する図。 第2図は従来方式における図形の適正配置方法を示す図
。 第3図は従来方式における図形間の位置関係復帰方法を
示す図。 第4図は本発明を適用するハードウェア構成例を示す図
。 第5図は図形データの格納方法を示す図。 第6図は、 制御フローチャート。 41はCPU。 42はメモリ。 (θ) (b) (η) <b>
FIG. 1 is a diagram illustrating the parallel movement of figures, which best represents the features of the present invention. FIG. 2 is a diagram showing a method for properly arranging figures in a conventional method. FIG. 3 is a diagram showing a conventional method for restoring the positional relationship between figures. FIG. 4 is a diagram showing an example of a hardware configuration to which the present invention is applied. FIG. 5 is a diagram showing a method of storing graphic data. Figure 6 is a control flowchart. 41 is the CPU. 42 is memory. (θ) (b) (η) <b>

Claims (1)

【特許請求の範囲】[Claims]  所望の図形の位置情報を変更する変更手段と、図形間
の論理的関係を保持する保持手段と、前記保持手段によ
って保持される図形の論理関係をもとに、前記変更手段
による所望の図形位置の変更に応じて、移動すべき他の
図形を決定する決定手段とを有したことを特徴とする図
形編集装置。
A changing means for changing the position information of a desired figure; a holding means for maintaining a logical relationship between the figures; and a changing means for changing the position of the desired figure based on the logical relationship between the figures held by the holding means. 1. A figure editing device comprising determining means for determining another figure to be moved in response to a change in the figure.
JP27662689A 1989-10-23 1989-10-23 Graphic editing device Pending JPH03136173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27662689A JPH03136173A (en) 1989-10-23 1989-10-23 Graphic editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27662689A JPH03136173A (en) 1989-10-23 1989-10-23 Graphic editing device

Publications (1)

Publication Number Publication Date
JPH03136173A true JPH03136173A (en) 1991-06-10

Family

ID=17572064

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27662689A Pending JPH03136173A (en) 1989-10-23 1989-10-23 Graphic editing device

Country Status (1)

Country Link
JP (1) JPH03136173A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994006090A1 (en) * 1992-09-10 1994-03-17 Fujitsu Limited Graphic editor and processing method
US5926186A (en) * 1992-09-10 1999-07-20 Fujitsu Limited Graphic editing apparatus and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994006090A1 (en) * 1992-09-10 1994-03-17 Fujitsu Limited Graphic editor and processing method
GB2277661A (en) * 1992-09-10 1994-11-02 Fujitsu Ltd Graphic editor and processing method
US5926186A (en) * 1992-09-10 1999-07-20 Fujitsu Limited Graphic editing apparatus and method

Similar Documents

Publication Publication Date Title
JPH01279289A (en) Display device provided with multi-window function
JPH09190551A (en) Drawing method for three-dimensional shape
JPH03136173A (en) Graphic editing device
JPH06215074A (en) Graphic processor
JPS62186371A (en) Document edition device
JP3150316B2 (en) Document editing device
JPS63208119A (en) Window display control system
JPS62123570A (en) Document editing device
JPS6061866A (en) Chamfering system of graphic processing system
JPS62235604A (en) Control data origination method for welding robot
JPS63159977A (en) Table editing method by computer
JPH06149944A (en) Three-dimensional cad device
JPH0676039A (en) Layout device
JPS6283790A (en) Image processor
JPS61168013A (en) Tablet input system of graphic information
JPS6165359A (en) Document editing device
JPH03226796A (en) Image processor
JPH1138961A (en) Edging character generating method, recording medium and device therefor
JPH0620023A (en) Method and device for graphic processing
JPH0194387A (en) Document editing system
JPS62212890A (en) Drawing processing system based on picture element contour line
JPH02281379A (en) Image editing device
JPH0973468A (en) Crt screen designing support method
JPH10240446A (en) Editing graphic selection system
JPH02158879A (en) Method for arranging graphic in graphic processing system