JPH07320081A - Device and method for graphic editing - Google Patents

Device and method for graphic editing

Info

Publication number
JPH07320081A
JPH07320081A JP6108688A JP10868894A JPH07320081A JP H07320081 A JPH07320081 A JP H07320081A JP 6108688 A JP6108688 A JP 6108688A JP 10868894 A JP10868894 A JP 10868894A JP H07320081 A JPH07320081 A JP H07320081A
Authority
JP
Japan
Prior art keywords
line
connection
graphic
connector
point
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.)
Withdrawn
Application number
JP6108688A
Other languages
Japanese (ja)
Inventor
Kenji Nitta
健二 新田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6108688A priority Critical patent/JPH07320081A/en
Publication of JPH07320081A publication Critical patent/JPH07320081A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To easily edit e figure accurately with a high degree of freedom according to the relation between the figure and a segment. CONSTITUTION:This device consists of a line and figure overlap detection part 10 which detects the overlap of a segment and a figure at the time of editing when the line is arranged on the arranged figure in the state the overlap with the figure is removed, a bypass point selection part 11 which selects a proper bypass point judged for the passing of the line among bypass candidate points, set previously on the basis of the shape of the figure so as to bypass the figure, on the basis of the position relation between the line and figure, and a line arrangement part 12 which arranges the line passing the selected bypass point.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、計算機を用いて画像の
処理を行う図形編集装置及び方法に係り、特に、回路
図、ブロック図、流れ図、又は系統樹等の図形の編集を
行う図形編集装置及び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic editing apparatus and method for processing an image using a computer, and more particularly, to graphic editing for editing a graphic such as a circuit diagram, a block diagram, a flow chart, or a tree. An apparatus and a method.

【0002】[0002]

【従来の技術】従来、回路図を描画する装置として、図
31に示すように、接続線の始点と終点の2点のみを順
次選択し、その2点格納するピンペア情報選択格納手段
92と、図形が配置されている配線禁止領域を記憶する
配線禁止領域格納手段91と、前記配線禁止領域を避け
て、前記2点の位置座標に従って、始点と終点を直角に
折れ曲がる連続直線で結ぶ直角折れ線自動配線手段90
を有するものである。従来例によると、前記ピンペア情
報選択格納手段92により、接続線の始点と終点の2点
のみを順次選択し、当該2点を格納しておく。前記直角
折れ線自動配線手段90は、前記ピンペア間に引かれた
接続線が前記配線禁止領域格納手段91に格納されてい
る配線禁止領域を通過すると判断した場合は、前記2点
の位置座標に従って、始点と終点を直角に折れ曲がる連
続直線で結ぶ。
2. Description of the Related Art Conventionally, as a device for drawing a circuit diagram, as shown in FIG. 31, a pin pair information selection storage means 92 for sequentially selecting only two points of a starting point and an ending point of a connecting line and storing the two points, A wiring prohibition area storage unit 91 for storing a wiring prohibition area in which a figure is arranged, and a right-angled polygonal line connecting a start point and an end point with a continuous straight line that is bent at a right angle according to the position coordinates of the two points, avoiding the wiring prohibition area. Wiring means 90
Is to have. According to the conventional example, the pin pair information selection / storing means 92 sequentially selects only the starting point and the ending point of the connecting line and stores the two points. When the right-angled polygonal line automatic wiring means 90 determines that the connection line drawn between the pin pairs passes through the wiring prohibited area stored in the wiring prohibited area storage means 91, according to the position coordinates of the two points, Connect the start point and end point with a continuous straight line that bends at a right angle.

【0003】[0003]

【発明が解決しようとする課題】さて、従来例にあって
は、直角に折れ曲がる連続直線で結ぶようにしている
が、各図形が長方形や正方形を用いる回路図に限れば、
直角に折れ曲がるように配線を行う場合は、配線が各辺
に沿っているので見やすく、配線を求める計算が容易で
あるという利点がある。しかし、各図形が正方形や長方
形に限られない場合、さらに、木構造や樹系図等を描く
場合、図形間を滑らかな曲線で接続しようとする場合
は、図形間を接続する接続線が直角に折れ曲がる直線だ
けでは適当ではなく、斜め線や、曲線が必要となる。ま
た、回路上の各素子のピン位置とは異なり、図形と接続
線とが交差する交点、又は接続元点、接続先点の位置が
固定されていない場合は、各接続点を柔軟に決定する必
要がある。さらに、線が1又は2以上の図形との重なり
がある場合は、図形の領域内では、領域外と別種の態様
をもつ線で描画したい場合がある。そこで、本発明は、
正方形や長方形に限られない種々の図形を接続線で接続
する場合や、各図形と接続線との接続点が固定されてい
ない場合等に、図形と線との関係に応じて的確で自由度
の高い図形編集を容易に行うことが可能な図形編集装置
及び方法を提供することを目的としてなされたものであ
る。
In the conventional example, the connection is made by a continuous straight line that is bent at a right angle. However, as long as each figure is a circuit diagram using a rectangle or a square,
When wiring is performed so as to be bent at a right angle, there is an advantage that the wiring is easy to see because the wiring is along each side and the calculation for obtaining the wiring is easy. However, if each shape is not limited to a square or rectangle, or if you want to draw a tree structure or tree diagram, or if you want to connect the shapes with smooth curves, the connecting lines that connect the shapes should be at right angles. Bending straight lines are not appropriate, but diagonal lines and curved lines are required. Also, unlike the pin position of each element on the circuit, if the position of the intersection point where the figure and the connection line intersect, or the connection source point and the connection destination point is not fixed, each connection point is flexibly determined. There is a need. Furthermore, when a line overlaps with one or more figures, there is a case where it is desired to draw a line having a different type from the outside of the figure within the area of the figure. Therefore, the present invention is
When connecting various shapes that are not limited to squares and rectangles with connecting lines, or when the connecting points between each figure and the connecting line are not fixed, etc. The object of the present invention is to provide a graphic editing apparatus and method capable of easily performing high-quality graphic editing.

【0004】[0004]

【課題を解決するための手段】以上の技術的課題を解決
するため、第一の発明は、図1に示すように、配置され
た図形に対し、図形との重なりを排除した状態で線を配
置する編集を行う際に、線と図形との重なりを検出する
線・図形重なり検出部10と、線と図形との重なりが検
出された場合は、重なりの生じた図形に対して、当該図
形を迂回するため当該図形の形状に基づいて予め設定さ
れた迂回候補点の中から、線が通るのに適当だと判断さ
れる迂回点を、線と図形との位置関係に基づいて選択す
る迂回点選択部11と、選択された迂回点を通って線を
配置する線配置部12とを有するものである。ここで、
「図形」とは、例えば、多角形、円、楕円等の閉曲線で
囲まれた領域をいう。「線」には、図形間又は1つの図
形のみと接続する接続線を含む。必ずしも直線に限られ
ず、曲線をも含む。また、無向線分、有向線分(ベクト
ル)、又は双方向線分が含まれる。線の態様としては、
実線に限られず、点線、一点鎖線、二点鎖線、二重線、
三重線、太線、細線、種々の色彩が付された線、又は、
その他の装飾線がありうる。「図形を迂回するため当該
図形の形状に基づいて」とは、例えば、図形を囲み、そ
の相似の位置に相似形状の頂点や辺上に並べられた場合
や、その図形の周囲を囲む長方形や正方形の頂点や辺上
に並べられた場合がある。「線と図形との位置関係に基
づいて」とは、例えば、実施例に示すように、当該各迂
回候補点を通る接続線のうち、最も図形から遠い接続線
が得られるような迂回候補点を選択する場合である。
In order to solve the above technical problems, the first invention, as shown in FIG. 1, draws a line on an arranged figure in a state where overlap with the figure is eliminated. When performing layout editing, when the line / graphic overlap detection unit 10 for detecting the overlap between the line and the graphic and the overlap between the line and the graphic are detected, the graphic corresponding to the graphic in which the overlap has occurred is detected. A detour point that is determined based on the positional relationship between the line and the figure from among the detour candidate points that are preset based on the shape of the figure to detour It has a point selection unit 11 and a line arrangement unit 12 that arranges a line through the selected detour point. here,
The “graphic” means, for example, a region surrounded by a closed curve such as a polygon, a circle or an ellipse. The "line" includes a connecting line that connects between figures or only one figure. It is not limited to a straight line, and includes a curved line. Further, it includes an undirected line segment, a directed line segment (vector), or a bidirectional line segment. As the mode of the line,
Not limited to solid lines, dotted lines, one-dot chain lines, two-dot chain lines, double lines,
Triple lines, thick lines, thin lines, lines with various colors, or
Other decorative lines are possible. "Based on the shape of the figure in order to bypass the figure" means, for example, when a figure is surrounded and the similar positions are arranged on the vertices or sides of the similar shape, or the rectangle surrounding the figure is used. They may be arranged on the vertices or sides of a square. “Based on the positional relationship between the line and the figure” means, for example, as shown in the embodiment, among the connecting lines passing through the respective detour candidate points, the detour candidate points such that the connecting line farthest from the figure is obtained. Is when selecting.

【0005】第二の発明は、図2に示すように、配置さ
れた、図形及び接続線に対し、当該図形に接続線が接続
する接続点に最も接近した最近接通過点の検出を行う最
近接通過点検出部13と、検出された前記最近接通過点
に対し、図形の代表点、及び図形の形状に基づいて、最
適な接続点の位置を算出する最適接続点算出部14と、
算出された最適接続点で接続するように接続線の再配置
を行う接続線配置部15とを有するものである。ここ
で、「接続点」とは、接続線が図形の辺又は頂点と接続
する点をいう。「図形の代表点」とは、該当する図形を
代表する点であって、例えば、その図形の中心(重心)
や、前記迂回候補点を含めた相似の中心や、図形内又は
図形外に設けられた任意の点であっても良い。「図形の
代表点、接続線及び図形の形状に基づいて」とは、例え
ば、第二の実施例に示す場合をいう。「通過点」とは、
線が通過すべき点であり、線が直線の場合には、実施例
に示すように「折れ点」がこれにあたる。「折れ点」と
は、例えば、迂回点を通過すること等によって、その直
線の方向が変更されて、変更前の直線と変更後の直線と
の間に有限の角度が生ずる境界の点のみならず、角度が
0°の場合や接続元点又は接続先点を含めても良い。ま
た、線がスプライン曲線等の曲線の場合には、当該スプ
ライン曲線等が通過すべき点である。
The second aspect of the present invention is, as shown in FIG. 2, for a figure and a connecting line which are arranged, a closest passing point closest to the connecting point where the connecting line connects to the figure is detected. A closest passing point detecting unit 13; an optimum connecting point calculating unit 14 that calculates the position of an optimum connecting point based on the representative point of the figure and the shape of the figure with respect to the detected closest passing point;
The connection line arranging unit 15 rearranges the connection lines so that the connection lines are connected at the calculated optimum connection point. Here, the "connection point" refers to a point at which the connection line connects to a side or a vertex of the figure. The "representative point of a figure" is a point representing the corresponding figure, for example, the center (center of gravity) of the figure.
Alternatively, a similar center including the detour candidate points, or an arbitrary point provided inside or outside the figure may be used. "Based on the representative point of the figure, the connecting line, and the shape of the figure" means, for example, the case shown in the second embodiment. What is a "passing point"?
When the line is a straight line and the line is a straight line, this corresponds to a "break point" as shown in the embodiment. A "break point" is, for example, only a boundary point in which the direction of the straight line is changed by passing through a detour point and the like, and a finite angle is generated between the straight line before the change and the straight line after the change. Alternatively, when the angle is 0 °, the connection source point or the connection destination point may be included. Further, when the line is a curve such as a spline curve, this is the point through which the spline curve or the like should pass.

【0006】第三の発明は、図3に示すように、配置さ
れた図形に対し、指定した線との重なりを検出する線・
図形重なり検出部16と、前記線と図形との重なりが検
出された場合は、重なりが検出された図形の辺と線との
交点を算出し、線を当該交点、元点又は先点を境にして
区切られる領域に分割する線領域分割部17と、図形内
の領域と図形外の領域等の隣り合う線領域が別種の態様
となるような線を配置する線配置部18とを有するもの
である。「元点、先点」とは、線を有向線分とした場合
の始点と終点を意味し、元点が図形に接している場合は
接続元点、先点が図形に接している場合は接続先点に相
当する。
A third aspect of the present invention is, as shown in FIG. 3, a line / line for detecting an overlap between a placed line and a designated line.
When the figure overlap detection unit 16 and the overlap between the line and the figure are detected, the intersection of the side of the figure in which the overlap is detected and the line is calculated, and the line is defined as the intersection, the original point, or the destination point. Having a line area dividing section 17 for dividing into areas that are divided into areas, and a line arranging section 18 for arranging lines such that adjacent line areas such as an area inside a figure and an area outside the figure have different types Is. "Original point and destination point" means the start point and the end point when the line is a directed line segment. If the source point is in contact with the figure, the connection source point and the destination point are in contact with the figure. Corresponds to the connection point.

【0007】第四の発明は、図4に示すように、接続線
を配置する接続線配置部19と、配置された接続線の長
さ又は接続線の形状の複雑さに基づいて、コネクタの要
不要を判断し、コネクタが必要と判断された場合は、コ
ネクタ図形を少なくとも2つ生成し、各々接続元の図形
及び接続先の図形と一定間隔を開けて配置するととも
に、当該コネクタ図形と接続元の図形との間及びコネク
タ図形と接続先の図形との間に各々接続線を配置するコ
ネクタ配置部20と、前記コネクタ図形に用いるコネク
タ記号を自動的に生成するコネクタ記号生成部21と、
生成されたコネクタ記号が既に使用されているか否かを
判断し、当該コネクタ記号が未使用の場合は当該コネク
タ記号を前記コネクタ図形に割り当て、当該コネクタ記
号が使用されている場合は、使用されていないコネクタ
記号に変更するコネクタ記号検索部22とを有するもの
である。ここで、「コネクタ(結合子)」とはコネクタ
記号を囲む丸等のコネクタ図形、及び、当該コネクタ図
形を接続する接続線からなる。「接続線の複雑さ」は、
例えば、実施例に示すように接続線の折れ点の数や、最
短の長さをもつ最も単純な接続線からのずれによって表
され、折れ点の数が増加したり、最短の接続線からのず
れが大きくなる場合は接続線は複雑になる。
As shown in FIG. 4, the fourth aspect of the present invention is based on the connection line arranging portion 19 for arranging the connection lines and the length of the arranged connection line or the complexity of the shape of the connection line. When it is determined that the connector is necessary and unnecessary, at least two connector figures are generated, and each figure is arranged with a fixed gap between the figure of the connection source and the figure of the connection destination, and the connector figure is connected. A connector arranging section 20 for arranging connection lines between the original figure and between the connector figure and the connected figure, and a connector symbol generating section 21 for automatically generating a connector symbol used for the connector figure.
It is determined whether the generated connector symbol is already used, if the connector symbol is not used, the connector symbol is assigned to the connector graphic, and if the connector symbol is used, it is used. And a connector symbol search unit 22 for changing to a non-existent connector symbol. Here, the "connector (connector)" is composed of a connector figure such as a circle surrounding the connector symbol and a connecting line connecting the connector figure. The "complexity of connecting lines" is
For example, as shown in the example, it is represented by the number of break points of the connecting line or the deviation from the simplest connecting line having the shortest length, and the number of breaking points increases or If the deviation becomes large, the connecting line becomes complicated.

【0008】第五の発明は、図5に示すように、図形の
指定を順次行う図形指定部23と、指定された図形につ
いて並列接続又は直列接続のどちらか一方の接続形式の
選択を行う接続形式選択部26と、前記並列接続の選択
がなされた場合は、最初に指定された図形を接続元図形
とし、第2番目以降に指定された図形を接続先図形とし
て、前記接続元図形と並列に接続する接続線を算出し、
前記直列接続の選択がなされた場合は、指定された順に
接続元図形及び接続先図形として図形間を直列に接続
し、次の図形の指定がある限り、接続線が配置された接
続先図形を接続元図形に変更し、指定された次の図形を
接続先図形として接続線を順次算出する接続線算出部2
4と、算出された接続線を図形間に配置する接続線配置
部25とを有するものである。
A fifth aspect of the invention is, as shown in FIG. 5, a graphic designating section 23 for sequentially designating a graphic, and a connection for selecting either one of parallel connection and serial connection for the specified graphic. When the format selection unit 26 and the parallel connection are selected, the first specified graphic is used as the connection source graphic, and the second and subsequent specified graphics are used as the connection target graphics, which are parallel to the connection source graphic. Calculate the connection line to connect to
If the series connection is selected, the figures are connected in series as the connection source figure and the connection destination figure in the specified order, and as long as the next figure is specified, the connection destination figure in which the connection line is arranged is connected. A connection line calculation unit 2 that changes to a connection source graphic and sequentially calculates connection lines using the next specified graphic as a connection destination graphic
4 and a connection line arranging section 25 for arranging the calculated connection line between figures.

【0009】第六の発明は、図6に示すように、図形の
指定を行う図形指定部27と、接続線を自動的に配置す
る自動配置の設定を行う自動配置設定部28と、自動配
置の設定が行われた場合に、予め指定された図形を接続
元図形とし、新たに配置された図形又は複写された図形
を接続先図形として接続線を算出する接続線算出部29
と、算出された接続線を配置する接続線配置部33とを
有するものである。
A sixth aspect of the invention is, as shown in FIG. 6, a graphic designating section 27 for designating a graphic, an automatic layout setting section 28 for automatically setting a connecting line, and an automatic layout. When a setting is made, a connection line calculation unit 29 which calculates a connection line by using a previously specified graphic as a connection source graphic and a newly arranged graphic or a copied graphic as a connection destination graphic.
And a connection line arranging section 33 for arranging the calculated connection line.

【0010】第七の発明は、図7に示すように、図形の
指定を行う図形指定部34と、指定された図形がコネク
タ図形である場合には、そのコネクタに使用されている
記号とコネクタ図形の接続情報を抽出し、抽出したコネ
クタ記号と同じ記号をもつ他のコネクタ図形を列挙し、
指定されたコネクタ図形の接続情報が接続元図形である
場合には、列挙した図形の中から接続情報が接続先図形
であるものを、接続先図形である場合には接続元図形で
あるものを、接続情報がなにもない場合には列挙した図
形のすべてを検索結果の候補として抽出するコネクタ図
形抽出部38と、候補として抽出されたコネクタ図形の
表示を指示するコネクタ図形表示指示部39とを有する
ものである。
As shown in FIG. 7, a seventh aspect of the present invention is a graphic designating section 34 for designating a graphic, and if the designated graphic is a connector graphic, the symbol and connector used for the connector. Extract the connection information of the figure, enumerate other connector figures with the same symbol as the extracted connector symbol,
If the connection information of the specified connector figure is the connection source figure, the one in the enumerated figures whose connection information is the connection destination figure, and if it is the connection destination figure, the one that is the connection source figure If there is no connection information, a connector figure extraction unit 38 that extracts all the listed figures as candidates for the search result, and a connector figure display instruction unit 39 that instructs the display of the connector figures extracted as candidates. Is to have.

【0011】第八の発明は、図8に示すように、配置さ
れた複数の図形に対し、図形との重なりを排除した状態
で線を配置する編集を行う際に、線と図形との重なりを
検出すると(S1)、重なりの生じた図形に対して、当
該図形を迂回するため当該図形の形状に基づいて予め設
定された迂回候補点の中から、前記線が通るのに適当だ
と判断される迂回点を、線と図形との位置関係に基づい
て選択し(S2)、選択された迂回点を通って線を配置
する(S3)ようにしたことである。
The eighth aspect of the present invention, as shown in FIG. 8, overlaps a line and a figure when performing editing for arranging a line on a plurality of arranged figures while eliminating the overlap with the figure. Is detected (S1), it is determined that it is appropriate for the line to pass from the detour candidate points preset based on the shape of the figure in order to detour the figure in which overlap has occurred. That is, the detour point to be selected is selected based on the positional relationship between the line and the figure (S2), and the line is arranged through the selected detour point (S3).

【0012】第九の発明は、図9に示すように、配置さ
れた図形に対し、指定した元点と先点との間に線を配置
し(S10)、当該線と図形との重なりを検出し(S1
1)、当該線との重なりが検出された場合は、重なりが
検出された図形の辺と当該線との交点を算出し、当該線
を当該交点、元点又は先点を境にして区切られる領域に
分割し(S12)、図形内の領域と図形外の領域等の隣
合う線領域が別種の態様となるような線を配置し(S1
3)、重なりの検出された当該図形について、以上の処
理を繰り返すようにしたことである。
In the ninth invention, as shown in FIG. 9, a line is placed between the designated original point and the designated destination point for the placed figure (S10), and the line and the figure are overlapped. Detected (S1
1) When overlap with the line is detected, the intersection of the side of the figure in which the overlap is detected and the line is calculated, and the line is divided at the intersection, the original point, or the destination point. The line is divided into regions (S12), and lines are arranged such that adjacent line regions such as a region inside the figure and a region outside the figure are in different types (S1).
3) The above processing is repeated for the figure in which the overlap is detected.

【0013】[0013]

【作用】第一及び第八の発明についてその動作を説明す
る。ステップS1で、前記線・図形重なり検出部10に
より、配置された複数の図形に対し、線と図形との重な
りを検出する。線と図形との重なりが検出された場合
は、ステップS2で、前記図形迂回点選択部11は、予
め設定された迂回候補点の中から、線が通るのが適当だ
と判断される迂回点を選択する。例えば、線が図形から
最も遠くに位置するような迂回候補点を迂回点として選
択する。ステップS3で、前記線配置部12は、選択さ
れた迂回点を通って、前記図形を迂回する線を配置す
る。
The operation of the first and eighth inventions will be described. In step S1, the line / graphic overlap detecting unit 10 detects the overlap between the line and the graphic for the plurality of arranged graphics. When the overlap between the line and the figure is detected, in step S2, the figure detour point selection unit 11 determines from the preset detour candidate points that the line is appropriate to pass through. Select. For example, a detour candidate point whose line is located farthest from the figure is selected as a detour point. In step S3, the line arranging unit 12 arranges a line that bypasses the graphic through the selected detour point.

【0014】第二の発明の動作について説明する。前記
最近接折れ点検出部13によって、配置された図形及び
接続線に対し、最近接折れ点が検出されると、前記最適
接続点算出部14により、前記最近接折れ点に対し、最
適な接続点の位置を算出する。すると、前記接続線配置
部15は、算出された最適接続点で接続するように接続
線の再配置を行う。
The operation of the second invention will be described. When the closest breakpoint is detected by the closest breakpoint detecting unit 13 with respect to the arranged figure and the connecting line, the optimum connection point calculating unit 14 makes an optimum connection with the closest breakpoint. Calculate the position of a point. Then, the connection line arranging unit 15 rearranges the connection lines so as to connect at the calculated optimum connection point.

【0015】第三の発明及び第九の発明の動作について
説明する。ステップS10で、既に配置された図形に対
して、線を新たに配置する。又は、既に配置された線に
図形を配置される場合をも含む。ステップS11で、前
記線・図形重なり検出部16によって、指定された線と
図形との重なりが検出されると、ステップS12で、前
記線領域分割部17は、重なりが検出された図形の辺と
線との交点を算出し、当該線を当該交点、元点又は先点
を境にして区切られる領域に分割する。ステップS13
で、前記線配置部18は、重なりの検出された当該図形
について、線の元点から先点方向に処理を順次行う場合
は、前記先点に最も近い方の交点を次の元点とし、線の
先点から元点方向に処理を順次行う場合は、前記元点に
最も近い方の交点を次の先点として以上の処理を繰り返
す。
The operation of the third invention and the ninth invention will be described. In step S10, a line is newly placed on the already placed figure. Alternatively, it also includes the case where a graphic is placed on a line that has already been placed. In step S11, when the line / graphic overlap detecting unit 16 detects the overlap between the designated line and the graphic, the line area dividing unit 17 determines in step S12 the side of the graphic in which the overlap is detected. The intersection with the line is calculated, and the line is divided into regions divided by the intersection, the original point, or the destination point. Step S13
In the case where the line placement unit 18 sequentially performs the process in the direction from the origin of the line to the destination of the figure in which the overlap is detected, the intersection closest to the destination is set as the next origin, When the processing is sequentially performed from the front point of the line toward the original point, the above processing is repeated with the intersection point closest to the original point as the next front point.

【0016】第四の発明に係る動作について説明する。
前記コネクタ図形設定部19によって、相互に関連付け
ようとする間隔が開いたコネクタ図形を指定、生成又は
配置する。次に、前記判定部20は、当該コネクタ図形
間を、接続元の図形から接続先の図形までの間を接続線
で仮に接続し、当該接続線の長さ又は接続線の折れ点の
個数に基づいて、コネクタ記号の要又は不要の判定を行
う。ここで、コネクタ記号の「要」の場合とは、例え
ば、前記接続線の長さが一定値以上の場合、又は、当該
接続線と重なる図形を迂回するための折れ点が所定個数
以上でも前記図形との重なりを回避することができない
場合がこれにあたる。前記判定部20によりコネクタ記
号が必要である旨の判定があった場合には、前記コネク
タ記号生成部21は、コネクタ記号を生成する。前記コ
ネクタ記号検索部22は、当該生成部21によって生成
されたコネクタ記号が既に使用されているか否かを判断
し、使用されている場合には、未使用のコネクタ記号に
変更する。
The operation according to the fourth invention will be described.
The connector figure setting unit 19 specifies, generates or arranges connector figures which are to be associated with each other and which are spaced apart from each other. Next, the determination unit 20 tentatively connects the connector figures from the connection source figure to the connection destination figure with a connection line, and determines the length of the connection line or the number of break points of the connection line. Based on this, it is determined whether or not the connector symbol is required. Here, the case of "necessary" of the connector symbol means, for example, when the length of the connection line is a certain value or more, or even when the number of break points for bypassing the figure overlapping the connection line is a predetermined number or more, This is the case where overlapping with a figure cannot be avoided. When the determination unit 20 determines that the connector symbol is necessary, the connector symbol generation unit 21 generates the connector symbol. The connector symbol searching unit 22 determines whether or not the connector symbol generated by the generating unit 21 is already used, and if it is used, changes it to an unused connector symbol.

【0017】第五の発明に係る動作について説明する。
予め前記接続形式選択部26によって、並列接続又は直
列接続のどちらか一方の接続形式を選択しておく。例え
ば、並列接続の選択を行った場合には、前記図形指定部
23によって、指定された図形について、前記接続線算
出部24は、最初に指定された図形を接続元図形とし、
第2番目以降に指定された図形を接続先図形として、並
列に接続する接続線を算出する。もし、直列接続の選択
を行った場合には、前記図形指定部23によって、指定
された図形について、前記接続線算出部24は、指定さ
れた順に接続元図形及び接続先図形として図形間を直列
に接続し、次の図形の指定がある限り、接続線が配置さ
れた接続先図形を接続元図形に変更し、指定された次の
図形を接続先図形として接続線を順次算出する。する
と、前記接続線配置部25は、算出された接続線を配置
する。第六の発明に係る動作について説明する。予め前
記自動配置設定部28によって、接続線を自動的に配置
することを設定しておく。前記図形指定部27によって
指定した図形を接続元図形とする。尚、複写お行う場合
には、当該接続元図形は複写元図形を兼ねる。さらに、
前記図形指定部27によって、新たに配置された図形又
は複写された図形が接続先図形とされる。すると、前記
接続線算出部29は、当該図形間に配置すべき接続線を
算出し、算出された接続線が前記接続線配置部33によ
って配置される。本発明によって、図形の配置及び複写
の処理に伴い、予め指定された図形と配置される図形又
は複写先となる図形との間に自動的に接続線を配置する
ことによって、図形と接続線の配置という作業をひとつ
の操作で行うことができる。第七の発明に係る動作につ
いて説明する。前記図形指定部34によって、コネクタ
図形が指定された場合には、前記コネクタ図形抽出部3
8はそのコネクタに使用されているコネクタ記号とコネ
クタ図形の接続情報を抽出し、抽出したコネクタ記号と
同じ記号をもつ他のコネクタ図形を列挙し、指定された
コネクタ図形の接続情報が接続元図形である場合には、
列挙した図形のすべてを検索結果の候補として抽出す
る。前記コネクタ図形表示指示部39は候補として抽出
されたコネクタ図形の表示を指示する。本発明によれ
ば、コネクタ図形のみを対象にコネクタ記号とコネクタ
図形の接続情報を用いた検索を行うことによって、指定
されたコネクタ図形に対応するものを表示することがで
きるため、容易に図面を目で追うことができる。以上の
説明では、第一の発明から第七の発明が各々別個に存在
した場合を説明したが、第一の発明から第七の発明の機
能を全て組み合わせたものでも良い。また、各発明の機
能を適当に組み合わせた場合であっても良い。
The operation of the fifth invention will be described.
Either the parallel connection or the serial connection is selected in advance by the connection format selection unit 26. For example, when the parallel connection is selected, the connection line calculation unit 24 sets the first specified graphic as the connection source graphic for the graphic specified by the graphic specifying unit 23.
The connecting lines connected in parallel are calculated by using the second and subsequent designated figures as the connection destination figures. If serial connection is selected, the connection line calculation unit 24 serially connects the figures as the connection source figure and the connection destination figure with respect to the figures specified by the figure specifying section 23. As long as the next figure is specified, the connection figure in which the connection line is arranged is changed to the connection source figure, and the connection line is sequentially calculated using the next specified figure as the connection figure. Then, the connection line arrangement unit 25 arranges the calculated connection line. The operation of the sixth invention will be described. The automatic placement setting unit 28 is set in advance to automatically place the connecting lines. The graphic designated by the graphic designating unit 27 is defined as a connection source graphic. When copying is performed, the connection source graphic also serves as the copy source graphic. further,
The graphic designating unit 27 sets the newly arranged graphic or the copied graphic as the connection destination graphic. Then, the connection line calculation unit 29 calculates the connection line to be arranged between the figures, and the calculated connection line is arranged by the connection line arrangement unit 33. According to the present invention, by automatically arranging a connecting line between a graphic designated in advance and a graphic to be arranged or a graphic to be a copy destination in accordance with the processing of arranging and copying the graphic, The operation of placement can be performed by one operation. The operation of the seventh invention will be described. When the connector graphic is designated by the graphic designating unit 34, the connector graphic extracting unit 3
Reference numeral 8 extracts the connection information of the connector symbol and connector figure used for the connector, enumerates other connector figures having the same symbol as the extracted connector symbol, and the connection information of the specified connector figure is the connection source figure. If
Extract all of the enumerated shapes as search result candidates. The connector graphic display instructing section 39 gives an instruction to display the connector graphic extracted as a candidate. According to the present invention, by performing a search using a connector symbol and connection information of a connector graphic only for a connector graphic, it is possible to display the one corresponding to the specified connector graphic, so that the drawings can be easily displayed. You can follow it with your eyes. In the above description, the case where the first invention to the seventh invention exist separately has been described, but all the functions of the first invention to the seventh invention may be combined. Further, the functions of the respective inventions may be combined appropriately.

【0018】[0018]

【実施例】続いて、本発明の実施例に係る図形編集装置
及び方法について説明する。図10に本実施例に係る機
器構成ブロック図を示す。同図に示すように、本実施例
にあっては、種々の処理を行うCPU30と、画像の表
示を行う表示装置31と、ユーザによるデータの入力、
及び各種の指示の操作が行われる操作部32と、プロク
ラムやデータを格納するメモリ35と、画像データ等を
格納するファイル36と、データを出力するプリンタ3
7とを有する。前記操作部32は、キーボード32a
と、マウス32bと、タッチパネル32cとを有する。
EXAMPLE Next, a graphic editing apparatus and method according to an example of the present invention will be described. FIG. 10 shows a block diagram of a device configuration according to this embodiment. As shown in the figure, in the present embodiment, a CPU 30 that performs various processes, a display device 31 that displays an image, a user inputs data,
And an operation unit 32 for operating various instructions, a memory 35 for storing programs and data, a file 36 for storing image data and the like, and a printer 3 for outputting data.
7 and. The operation unit 32 includes a keyboard 32a
And a mouse 32b and a touch panel 32c.

【0019】第一の実施例を図面に基づいて説明する。
第一の実施例は線の再配置に関するものである。本実施
例に係る図形編集装置及び方法を実現するブロック図を
図11に示す。本実施例にあっては、前記操作部32、
表示装置31、前記メモリ35又はファイル36に相当
する画像データ保持部70、及び、前記CPU30及び
プログラム等を格納するメモリ35に相当し画像データ
を編集する画像データ編集部71とを有する。画像デー
タ編集部71は、配置された複数の図形に対し、図形と
の重なりを排除した状態で各図形間に接続線を描く編集
を行う際に、接続線と図形との重なりを検出する線・図
形重なり検出部40と、接続線と図形との重なりが検出
された場合は、重なりの生じた図形に対して、当該図形
を迂回するため当該図形の形状に基づいて予め設定され
た迂回候補点の中から、接続線が通るのに適当だと判断
される迂回点を、接続線と図形との位置関係に基づいて
選択する迂回点選択部41と、選択された迂回点を通っ
て接続線を配置する接続線配置部42と、前記図形の座
標、大きさ等の図形情報又は接続線の接続点、折れ点等
の接続線情報を格納する図形・接続線格納部80とを有
する。前記迂回点選択部41は、図11に示すように、
図形の迂回候補点と接続元点又は接続先点を含む接続点
を結ぶ接続線の角度を算出する接続点角度算出部41a
と、各図形毎に複数の迂回候補点を前記図形・接続線格
納部80から抽出する迂回候補点抽出部41bとを有す
る。
A first embodiment will be described with reference to the drawings.
The first embodiment relates to the rearrangement of lines. FIG. 11 shows a block diagram for realizing the graphic editing apparatus and method according to the present embodiment. In the present embodiment, the operation section 32,
It has a display device 31, an image data holding unit 70 corresponding to the memory 35 or the file 36, and an image data editing unit 71 corresponding to the memory 35 storing the CPU 30 and programs and editing image data. The image data editing unit 71 is a line that detects an overlap between a connecting line and a figure when performing editing to draw a connecting line between the plurality of arranged figures while eliminating the overlapping with the figure. When the figure overlap detection unit 40 and the overlap between the connecting line and the figure are detected, a detour candidate preset based on the shape of the figure is detoured to detour the figure in which the overlap occurs. A detour point, which is determined to be appropriate for the connecting line to pass through, is selected based on the positional relationship between the connecting line and the figure, and the detour point is connected through the selected detour point. It has a connecting line arranging section 42 for arranging lines, and a figure / connecting line storing section 80 for storing figure information such as coordinates and size of the figure or connecting line information such as connecting points and break points of connecting lines. The detour point selection unit 41, as shown in FIG.
A connection point angle calculation unit 41a that calculates an angle of a connection line connecting a detour candidate point of a figure and a connection point including a connection source point or a connection destination point.
And a detour candidate point extraction unit 41b for extracting a plurality of detour candidate points for each figure from the figure / connection line storage unit 80.

【0020】続いて、第一の実施例の動作について図1
2及び図13に基づいて説明する。図12(a)に示す
ように、ステップS20で、前記線・図形重なり検出部
40を起動させ、接続線と図形との重なりを調べる。こ
の重なりは、前記図形・接続線情報格納部80から読み
出された接続線情報である接続線の接続点、及び折れ点
の座標と、図形情報である図形の座標・大きさ等から前
記線・図形重なり検出部40により、解析的に容易に求
めることができる。重なる図形が複数ある場合には、接
続元点又はそれに近い側の折れ点に一番近い図形から順
次求める。ここでは、図13(a)に示すように、配置
された2個の図形(図13では正方形)に対し、接続元
点を点a、接続先点を点bとした有向線分(ベクトルa
b)の接続線を描いた場合について説明する。ステップ
S21で、接続線との重なりの生じた図形Cが検出され
ると、ステップS22に進み、前記迂回点選択部41
の、迂回候補点抽出部41bにより、前記図形・接続線
情報格納部80から抽出された図形Cに設定された(あ
らゆる図形に設定される)複数の迂回候補点c1,…,
cnの中から、迂回点が選択される。図12(b)は、
前述したステップS22の迂回点選択部41による選択
の処理を示すものである。図形の迂回点の選択を行うに
は、ステップS30で、図13(c)に示すように、前
記接続点角度算出部41aによって、図形に予め設定さ
れた各迂回候補点と、接続先点aとを結んだ線の角度を
各々算出する。その際、点aと点bとを結ぶ直線を基準
として、時計と逆回りを正とする。ステップS31で、
前記接続点角度算出部41aは、求められた角度を比較
することにより、迂回点として最適な点を算出する。即
ち、ここで求められた角度の内、角度の最大なものと、
最小のものが図形Cを迂回することができる点であり、
この2つのうち、絶対値の小さいものを最適な迂回点と
して選択する。図12(a)で、ステップS23で、こ
のようにして前記迂回点選択部41により得られた折れ
点を点cとし(図13(c) )、選択された迂回点cを接
続線に加えて、前記接続線配置部42により接続線を配
置する。ステップS24で、再び、前記線・図形重なり
検出部30を起動させ、前記迂回点cと、接続先点b間
で図形との重なりを調べる。ステップS25で、前記迂
回点と接続先点との間で、図13(c)に示すように、
接続線と図形との重なりが検出された場合は、再び、ス
テップS22に戻り、前記迂回点選択部31により迂回
点を選択する。以上の処理は、図形との間の重なりが検
出されなくなるまで行われる。
Next, the operation of the first embodiment will be described with reference to FIG.
2 and FIG. 13. As shown in FIG. 12A, in step S20, the line / graphic overlap detecting unit 40 is activated to check the overlap between the connecting line and the graphic. This overlap is based on the coordinates of the connection points and break points of the connection lines, which is the connection line information read from the graphic / connection line information storage unit 80, and the coordinates / size of the figures, which is the graphic information. -The figure overlap detection unit 40 can easily obtain the value analytically. When there are a plurality of overlapping figures, the figure closest to the connection origin point or the bending point on the side close to the connection origin point is sequentially obtained. Here, as shown in FIG. 13A, with respect to the two arranged figures (squares in FIG. 13), a directed line segment (vector a) where the connection source point is the point a and the connection destination point is the point b a
The case where the connection line of b) is drawn will be described. When the graphic C overlapping with the connecting line is detected in step S21, the process proceeds to step S22, and the detour point selecting unit 41 is operated.
, The plurality of detour candidate points c1, ..., Set in the figure C extracted from the figure / connection line information storage unit 80 (set in all figures) by the detour candidate point extraction unit 41b.
A detour point is selected from cn. FIG. 12B shows
This shows the selection processing by the detour point selection unit 41 in step S22 described above. In order to select the detour points of the figure, in step S30, as shown in FIG. 13C, the detour candidate points preset in the figure and the connection destination points a are set by the connection point angle calculation unit 41a. The angles of the lines connecting and are calculated respectively. At that time, the counterclockwise direction is positive with respect to the straight line connecting the points a and b. In step S31,
The connection point angle calculation unit 41a calculates an optimum point as a detour point by comparing the obtained angles. That is, among the angles obtained here, the maximum angle,
The smallest one is that it can bypass the figure C,
Of these two, the one with the smaller absolute value is selected as the optimum detour point. In FIG. 12 (a), in step S23, the break point thus obtained by the detour point selection unit 41 is set as a point c (FIG. 13 (c)), and the selected detour point c is added to the connecting line. Then, the connection lines are arranged by the connection line arrangement section 42. In step S24, the line / graphic overlap detection unit 30 is activated again, and the overlap between the detour point c and the connection point b is checked. In step S25, as shown in FIG. 13C, between the detour point and the connection destination point,
When the overlap between the connecting line and the figure is detected, the process returns to step S22 again, and the detour point selecting unit 31 selects the detour point. The above processing is performed until the overlap with the figure is no longer detected.

【0021】続いて、第二の実施例を図14、図15、
及び図16に基づいて説明する。本実施例は、図形の接
続点の再配置に関し、図形や線に対する何らかの編集操
作によって、線の配置や移動が行われた場合、それらの
線と接続している図形に対して、接続点の最適な位置を
求めるものである。図14に示すように、本例は、画像
データ編集部72と、操作部32と、画像データ保持部
70と、表示装置31とを有するものである。前記画像
データ編集部72は、配置された、図形及び接続線に対
し、当該図形に接続線が接続する接続点に最も接近した
最近接折れ点の検出を行う最近接折れ点検出部43と、
検出された前記最近接折れ点に対し、図形の代表点、及
び図形の形状に基づいて、最適な接続点の位置を算出す
る最適接続点算出部44と、算出された最適接続点で接
続するように、接続線の再配置を行う接続線配置部45
と、図形情報及び接続線情報を格納する図形・接続線情
報格納部80とを有する。また、前記最適接続点算出部
44は、同図に示すように、前記図形・接続線情報格納
部80から、接続元点にて接続線と繋がる図形、各図形
に対しての形状を表す頂点及び代表点に関する図形情報
及び接続線情報を抽出する図形情報等抽出部44eと、
抽出された頂点の座標から当該図形を形成する辺を算出
し、前記代表点と接続元点又は接続先点とを結ぶ接続線
と交差する辺を、抽出した頂点の座標、代表点及び接続
元点接続先点の座標に基づいて求め、当該辺を特定する
頂点を前記接続線に対応させる交差辺検出部44cと、
各交差辺毎に当該交差辺と交差する接続線を、対応する
前記頂点に基づいて検出し列挙する交差辺毎接続線検出
部44dと、各々の接続元点又は先点と結ばれる折れ点
と、当該接続線に対応する頂点番号から特定される辺の
中点とを結ぶ直線と、当該辺とのなす角度を算出する角
度算出部44aと、前記交差辺を(接続線の数+1)等
分する内分点算出部44bとを有する。
Subsequently, the second embodiment will be described with reference to FIGS.
And it demonstrates based on FIG. This embodiment relates to relocation of connection points of figures. When lines are arranged or moved by some editing operation on figures or lines, the connection points of the figures connected to those lines are changed. It seeks the optimum position. As shown in FIG. 14, this example includes an image data editing unit 72, an operation unit 32, an image data holding unit 70, and a display device 31. The image data editing unit 72, with respect to the arranged figure and connecting line, the closest bending point detecting unit 43 for detecting the closest bending point closest to the connection point where the connection line connects to the graphic,
The detected closest junction point is connected to the optimum connection point calculation unit 44 that calculates the position of the optimum connection point based on the representative point of the figure and the shape of the figure, and the calculated optimum connection point. Connection line arranging unit 45 for rearranging the connection lines
And a graphic / connection line information storage unit 80 for storing graphic information and connection line information. Further, the optimum connection point calculation unit 44, as shown in the figure, is a figure that is connected from the figure / connection line information storage unit 80 to a connection line at a connection source point, and a vertex that represents the shape for each figure. And a graphic information etc. extraction unit 44e for extracting graphic information and connection line information regarding the representative point,
The side forming the figure is calculated from the coordinates of the extracted vertices, and the side intersecting the connecting line connecting the representative point and the connection source point or the connection destination point is defined by the coordinates of the extracted vertices, the representative point, and the connection source. An intersecting side detection unit 44c that is obtained based on the coordinates of the point connection destination point and that makes the vertex that identifies the side correspond to the connecting line;
A connecting line detection unit 44d for each intersecting side that detects and enumerates the connecting line that intersects the intersecting side for each intersecting side based on the corresponding apex, and a break point that is connected to each connecting origin or destination point. , A straight line connecting the midpoint of the side identified by the vertex number corresponding to the connection line, and an angle calculation unit 44a for calculating the angle formed by the side, and the intersection side (the number of connection lines + 1), etc. It has an internally dividing point calculating unit 44b for dividing.

【0022】続いて、第二の実施例に係る動作を図15
及び図16に基づいて説明する。本例では、図16
(a)に示すように、接続先点と結ばれる折れ点を点b
とし、接続先図形を正方形の図形C、その頂点をc1,
c2,c3,c4とし、代表点として、正方形の中心点
dを採用する。また、すべての接続線にも、接続元点、
接続先点、複数の折れ点の座標と接続元図形及び接続先
図形の接続の識別番号、接続する辺を特定する頂点番号
をもっているものとする。これらの情報は、前記図形情
報等抽出部44eによって、各々図形情報及び接続線情
報として、前記図形・接続線情報格納部80から抽出さ
れる。図15(a)に示すように、ステップS40で、
前記最近接折れ点検出部43は、前記図形情報及び接続
線情報に基づいて、接続先点(接続元点)と結ばれる最
近接折れ点bと、当該接続線に繋がる接続先図形Cを検
出する。もし、折れ点が1つもない場合は、接続元点
(接続先点)が最近接折れ点bとなる。ステップS41
で、前記最適接続点算出部44により最適接続点を算出
する。最適接続点の算出は、図15(b)に示すよう
に、ステップS50で、前記図形情報等抽出部44eに
よって抽出された前記図形Cの頂点c1,c2,c3,
c4に基づいて、前記交差辺検出部44cは図形Cの辺
を求める。ステップS51で、当該交差辺検出部44c
は前記中心点dと前記最近接折れ点bとを結ぶ直線を求
める。ステップS52で、当該直線と交差する辺が求ま
る。このように算出した辺の頂点を、接続先につながる
辺を特定する頂点番号に記録する。図16の例では、同
図(b)に示すようにc2とc3である。ステップS5
3で、前記交差辺毎接続線検出部44dは辺に接続する
すべての接続線を求める。即ち、ステップS52で求め
られた頂点番号と同じ番号をもつ接続線を列挙する。こ
れらは、すべて同じ図形の同じ辺につながる接続線であ
る。ステップS54で、前記角度算出部44aは接続線
と辺との角度を列挙する。ステップS53で列挙された
接続線から、各々の前記最近接折れ点と、頂点番号から
特定される辺の中点とを結ぶ直線と、この辺の角度とを
求める。この場合、図16(c)に示すように、前記辺
を基準とし、時計回りを正とする。ステップS55で、
前記内分点算出部44bは角度の大きい順にこの辺の内
分点を割り振る。これによって、内分点は、辺を接続線
の数+1等分する(内分点の数は接続点の数と同数)。
各内分点が各々の接続線の接続先点(又は接続元点)と
なり、図16(d)に示すような接続点が得られ各接続
点に接続線が配置される。ステップS56で、前記内分
点算出部44bは接続線同士が交差するか否かを判断す
る。接続線同士が交差する場合はステップS57で接続
線への内分点の割り振りを、角度の小さい順に割り振
る。以上のような手順で、接続点を再配置する。同様な
手順で、ステップS42及びステップS43で、接続先
と結ばれる最近接折れ点と、接続元で接続線とつながる
図形から接続元点を算出する。
Next, the operation according to the second embodiment will be described with reference to FIG.
And it demonstrates based on FIG. In this example, FIG.
As shown in (a), the break point connected to the connection point is a point b.
, The connected figure is a square figure C, and its vertex is c1,
C2, c3, and c4, and the central point d of the square is adopted as the representative point. Also, for all connection lines,
It is assumed that it has the connection destination point, the coordinates of a plurality of break points, the connection identification number of the connection source graphic and the connection destination graphic, and the vertex number that identifies the side to be connected. These pieces of information are extracted from the figure / connecting line information storage section 80 as the figure information and the connecting line information by the figure information extracting section 44e. As shown in FIG. 15A, in step S40,
The closest break point detecting unit 43 detects the closest break point b connected to the connection destination point (connection source point) and the connection destination graphic C connected to the connection line based on the graphic information and the connection line information. To do. If there is no break point, the connection source point (connection destination point) becomes the closest break point b. Step S41
Then, the optimum connection point calculation unit 44 calculates the optimum connection point. The calculation of the optimum connection point is, as shown in FIG. 15B, in step S50, the vertices c1, c2, c3 of the graphic C extracted by the graphic information extraction unit 44e.
Based on c4, the intersecting side detection unit 44c finds the side of the figure C. In step S51, the intersection side detection unit 44c
Finds a straight line connecting the center point d and the closest bending point b. In step S52, the side intersecting the straight line is obtained. The vertices of the sides calculated in this way are recorded in the vertex numbers that identify the sides connected to the connection destination. In the example of FIG. 16, they are c2 and c3 as shown in FIG. Step S5
At 3, the connection line detecting unit 44d for each intersecting side obtains all the connecting lines connected to the side. That is, the connecting lines having the same numbers as the vertex numbers obtained in step S52 are listed. These are all connecting lines that connect to the same side of the same figure. In step S54, the angle calculator 44a enumerates the angles between the connecting line and the side. From the connection line listed in step S53, a straight line connecting each of the closest bending points and the midpoint of the side specified by the vertex number and the angle of this side are obtained. In this case, as shown in FIG. 16C, the side is used as a reference and the clockwise direction is positive. In step S55,
The interior division point calculation unit 44b allocates interior division points of this side in descending order of angle. As a result, the internally dividing point divides the side into the number of connecting lines plus one (the number of internally dividing points is the same as the number of connecting points).
Each internal division point becomes a connection destination point (or connection source point) of each connection line, a connection point as shown in FIG. 16D is obtained, and the connection line is arranged at each connection point. In step S56, the interior dividing point calculation unit 44b determines whether or not the connecting lines intersect with each other. If the connecting lines intersect with each other, the internal dividing points are allocated to the connecting lines in ascending order of angle in step S57. The connection points are rearranged by the above procedure. In a similar procedure, in steps S42 and S43, the connection origin point is calculated from the closest bend point connected to the connection destination and the figure connected to the connection line at the connection source.

【0023】次に、第三の実施例について図17、図1
8及び図19に基づいて説明する。本実施例は、線と図
形の重ね合わせに関するものである。本実施例は、第一
の実施例で一定数以上の折れ点を求めても線と図形とが
重なる場合にも行われる。本実施例は、図17に示すよ
うに、画像データ編集部73と、操作部32と、画像デ
ータ保持部70と、表示装置31とを有する。前記画像
データ編集部73は、同図に示すように、配置された図
形に対し、指定した元点から先点との間を接続する接続
線と図形との重なりを検出する線・図形重なり検出部4
6と、線と図形との重なりが検出された場合は、重なり
が検出された図形の辺と接続線との交点を算出し、接続
線を当該交点、元点または先点を境にして区切られる領
域に分割する接続線領域分割部47と、図形内の領域と
図形外の領域等の隣合う接続線領域が別種の態様となる
ような接続線を配置する接続線配置部48とを有するも
のである。さらに、前記交点算出部47は、図形情報等
を図形・接続線情報格納部80から抽出する図形情報等
抽出部47bと、当該図形情報に基づいて各図形の辺を
算出し、その交点を算出する交点算出部47aとを有す
る。
Next, FIG. 17 and FIG. 1 for the third embodiment.
8 and FIG. 19. This embodiment relates to the superposition of lines and figures. This embodiment is also performed when the line and the figure overlap even if the number of break points equal to or more than a certain number is obtained in the first embodiment. As shown in FIG. 17, this embodiment has an image data editing unit 73, an operation unit 32, an image data holding unit 70, and a display device 31. As shown in the figure, the image data editing unit 73 detects line / figure overlap detection for detecting the overlap between the figure and the connecting line connecting the specified original point and the specified point. Part 4
6 and the overlap between the line and the figure is detected, the intersection of the side of the figure in which the overlap is detected and the connection line is calculated, and the connection line is separated at the intersection, the original point or the destination point. A connecting line area dividing unit 47 that divides the connecting line area into a predetermined area, and a connecting line arranging unit 48 that arranges the connecting lines such that adjacent connecting line areas such as an area inside the figure and an area outside the figure have different types. It is a thing. Further, the intersection point calculation unit 47 calculates a side of each figure based on the figure information etc. extraction section 47b for extracting the figure information etc. from the figure / connection line information storage section 80, and calculates the intersection point. And an intersection calculation unit 47a.

【0024】本実施例に係る図形編集装置及び方法の動
作について、図18及び図19に基づいて説明する。例
えば、図19(a)に示すように、接続元図形から接続
先図形に接続線が描画され、接続元点を点a、接続先点
を点bとする。図18に示すように、ステップS60
で、前記線・図形重なり検出部46によって、前記接続
線と重なる図形(正方形)を検出する。ステップS61
で、接続線と重なる図形が検出された場合は、ステップ
S62に進み、前記交点算出部47aが検出された重な
る図形を形作るすべての辺を、前記図形・接続線情報格
納部80から前記図形情報等抽出部47cによって抽出
した図形の持つ頂点から求め、これらの辺と抽出された
接続線に関する情報から、交点を求める。ステップS6
3で、前記接続線領域分割部47は前記接続線との交
点、元点又は先点を境にして接続線を区切り複数の領域
に分割する。交点がn個ある場合、交点を元点から先点
に沿って、c1,c2,…cn とすると、a〜c1、c
2〜c3、…が図形と重ならない領域、c1〜c2、c
3〜c4…が図形と重なる領域になる。図17(a)で
はa〜c1が重ならない領域、c1〜c2が重なる領域
である。尚、同図(d)のように、接続元点aが図形の
中に含まれている場合は、重なる部分と重ならない部分
とが逆になる。このようにして接続線が分割されると、
接続線配置部48によって、隣合う接続線領域を別種の
態様の接続線を配置する。例えば、図19(b)では、
交点c1と交点c2との間にある図形内にある接続線の
領域を点線や一点鎖線や、色彩等を変更して表示する。
ステップS64で、当該図形のうち接続先点に一番近い
交点c2を次の元点として、再びステップS60に進
み、次の図形の処理が行われる。図19(c)に示すよ
うに、c2を新たに元点aとして、次のa〜bの間の処
理を行う。このようにして、重なる図形がなくなるまで
以上の処理を行うと、最終的には、図19(e)に示す
ようになる。
The operation of the graphic editing apparatus and method according to this embodiment will be described with reference to FIGS. 18 and 19. For example, as shown in FIG. 19A, a connection line is drawn from the connection source graphic to the connection destination graphic, and the connection source point is the point a and the connection destination point is the point b. As shown in FIG. 18, step S60
Then, the line / graphic overlap detecting unit 46 detects a graphic (square) overlapping the connection line. Step S61
If a figure that overlaps the connecting line is detected, the process proceeds to step S62, where the intersection calculating unit 47a sets all the sides forming the detected overlapping figure to the figure information from the figure / connecting line information storage unit 80. It is obtained from the vertices of the figure extracted by the equal extraction unit 47c, and the intersection point is obtained from the information about these sides and the extracted connecting lines. Step S6
In 3, the connection line area dividing unit 47 divides the connection line into a plurality of areas by dividing the connection line at the intersection, the original point, or the destination point with the connection line. When there are n intersections, if the intersections are c1, c2, ... C n from the original point to the destination point, a to c1, c
Areas where 2 to c3, ... Do not overlap with the figure, c1 to c2, c
3 to c4 ... Are areas that overlap the figure. In FIG. 17A, a to c1 are non-overlapping areas and c1 to c2 are overlapping areas. When the connection source point a is included in the figure as shown in FIG. 7D, the overlapping portion and the non-overlapping portion are reversed. When the connection line is divided in this way,
The connection line arranging section 48 arranges connection lines of different types in adjacent connection line regions. For example, in FIG. 19 (b),
The area of the connecting line in the figure between the intersection c1 and the intersection c2 is displayed by changing the dotted line, the alternate long and short dash line, the color and the like.
In step S64, the intersection c2 closest to the connection point of the figure is set as the next original point, and the process proceeds to step S60 again to process the next figure. As shown in FIG. 19C, the process between the following a and b is performed by newly setting c2 as the original point a. In this way, when the above processing is performed until there are no overlapping figures, the final result is as shown in FIG.

【0025】続いて、第四の実施例について、図20及
び図21に基づいて説明する。本実施例は、コネクタの
自動生成に関するものである。本実施例は、第一の実施
例によって、一定数以上の折れ点を求めても、線と図形
が重なる場合、又は接続元点と接続線点との距離が予め
定められた限界値を越える場合に起動される。図20に
示すように、本実施例は、画像データ編集部74と、操
作部32と、画像データ保持部70と、表示装置31と
を有する。同図に示すように、前記画像データ編集部7
4は、接続元点から接続先点へ接続線を配置する接続線
配置部49と、配置された接続線の長さ又は接続線の折
れ点の個数に基づいて、コネクタの要不要を判断し、コ
ネクタが必要と判断された場合は、コネクタ図形を少な
くとも2つ生成し、各々接続元の図形及び接続先の図形
と一定間隔を開けて配置するとともに、当該コネクタ図
形と接続元の図形との間及びコネクタ図形と接続先の図
形との間に各々接続線を配置するコネクタ配置部50
と、前記コネクタ図形に用いるコネクタ記号を自動的に
生成するコネクタ記号生成部51と、生成されたコネク
タ記号が既に使用されているか否かを判断し、当該コネ
クタ記号が未使用の場合は当該コネクタ記号を2つのコ
ネクタ図形に割り当て、当該コネクタ記号が使用されて
いる場合は、使用されていないコネクタ記号に変更する
コネクタ記号検索部52とを有する。また、前記コネク
タ配置部50は、同図に示すように、接続線の折れ点の
個数が一定数以下では接続線が図形を迂回することがで
きないか否かを判定する複雑性判定部50aと、配置さ
れた接続線の長さが一定値以上か否かの判定を行う長さ
判定部50bと、接続線が一定数以下の折れ点では図形
を迂回することができないとの判定があった場合又は接
続線の長さが一定値以上との判断があった場合に、コネ
クタ図形の位置及びコネクタ図形と対応する図形とを接
続する接続線を算出する算出部50cと、図形情報等抽
出部50dとを有する。
Next, a fourth embodiment will be described with reference to FIGS. This embodiment relates to automatic generation of a connector. In the present embodiment, even if a certain number or more of break points are obtained in the first embodiment, when the line and the figure overlap, or the distance between the connection source point and the connection line point exceeds a predetermined limit value. If it is launched. As shown in FIG. 20, this embodiment includes an image data editing unit 74, an operation unit 32, an image data holding unit 70, and a display device 31. As shown in the figure, the image data editing unit 7
4 is a connection line arranging section 49 for arranging the connection line from the connection source point to the connection destination point, and determines the necessity of the connector based on the length of the arranged connection line or the number of break points of the connection line. When it is determined that a connector is necessary, at least two connector figures are generated, and each connector figure and the connection destination figure are arranged with a certain space, and the connector figure and the connection source figure are separated from each other. Connector arrangement section 50 for arranging connection lines between spaces and between a connector graphic and a connection destination graphic
And a connector symbol generation unit 51 for automatically generating a connector symbol used for the connector figure, and whether or not the generated connector symbol has already been used. It has a connector symbol search unit 52 that assigns a symbol to two connector figures and, when the connector symbol is used, changes it to an unused connector symbol. Further, the connector placement unit 50, as shown in the figure, includes a complexity determination unit 50a that determines whether or not the connecting line cannot bypass the figure when the number of break points of the connecting line is equal to or less than a certain number. The length determination unit 50b that determines whether or not the length of the arranged connecting line is greater than or equal to a certain value, and the determination that the figure cannot be detoured at the number of break points where the number of connecting lines is less than or equal to a certain number In this case, or when it is determined that the length of the connecting line is equal to or greater than a certain value, the calculating unit 50c that calculates the position of the connector figure and the connecting line connecting the connector figure and the corresponding figure, and the figure information extracting section. 50d.

【0026】続いて、本実施例に係る動作を図21に基
づいて説明する。操作者からの指示によって、既に配置
された図形間について、前記接続線配置部49は、接続
元点から接続先点へ接続線を配置する指示を行う。図2
1(b)は、このような接続線で2つの図形間を接続し
たものを示す。図21(a)に示すように、ステップS
70で、前記コネクタ配置部50の前記複雑性判定部5
0a又は長さ判定部50bは、配置された接続線の長さ
又は接続線の折れ点の個数に基づいて、コネクタの要不
要を判断する。前記複雑性判定部50aによって、配置
された接続線が一定数以下の折れ点では図形を迂回する
ことができないとの判定があった場合、又は、前記長さ
判定部50bによって、配置された接続線の長さが一定
値以上との判定があった場合は、コネクタが必要だと判
断され、前記算出部50cは2つのコネクタ図形の位置
を算出し、各々、接続元の図形及び接続先の図形と一定
間隔を開けてコネクタ図形を配置する。尚、コネクタが
不要だと判断された場合は、既に配置された接続線の配
置が維持される。ステップS71で、前記算出部50c
は、コネクタ図形と対応する図形とを接続する接続線を
各々算出し、各図形間に配置する。ステップS72で、
前記コネクタ記号生成部51は、適当なコネクタ記号を
自動的に生成する。ステップS73で、前記コネクタ記
号検索部52は、前記図形情報等抽出部50dで抽出さ
れた図形情報等に基づき、生成されたコネクタ記号を検
索し、ステップS74で、生成されたコネクタ記号が既
に使用されているか否かを判断する。当該コネクタ記号
が既に使用されている場合は、使用されていないコネク
タ記号に変更させ、当該コネクタ記号が未使用の場合は
当該コネクタ記号を2つのコネクタ図形に割り当てる。
図21(c)は、“a”というコネクタ記号が2つのコ
ネクタ図形に割り当てられた場合を示す。以上の手順に
よって、接続線が一定の条件を満たす場合は、機械的に
コネクタが自動生成されるので、一々人間の判断を必要
とせず、手間をかけることなく、容易に図形編集を行う
ことができる。
Next, the operation according to this embodiment will be described with reference to FIG. According to an instruction from the operator, the connection line placement unit 49 gives an instruction to place a connection line from the connection source point to the connection destination point between the already arranged figures. Figure 2
1 (b) shows that two figures are connected by such a connecting line. As shown in FIG. 21A, step S
At 70, the complexity determination unit 5 of the connector placement unit 50.
0a or the length determination unit 50b determines whether the connector is necessary or not based on the length of the connecting line or the number of break points of the connecting line. When it is determined by the complexity determination unit 50a that the arranged connecting line cannot detour the figure at a certain number or less of break points, or by the length determination unit 50b. If it is determined that the length of the line is equal to or greater than a certain value, it is determined that a connector is required, and the calculation unit 50c calculates the positions of the two connector figures, and calculates the connection source figure and the connection destination, respectively. Arrange the connector graphic with a certain distance from the graphic. If it is determined that the connector is not needed, the arrangement of the connection lines already arranged is maintained. In step S71, the calculation unit 50c
Calculates each connection line connecting the connector figure and the corresponding figure, and arranges them between the figures. In step S72,
The connector symbol generator 51 automatically generates an appropriate connector symbol. In step S73, the connector symbol search unit 52 searches for the generated connector symbol based on the graphic information extracted by the graphic information extraction unit 50d, and in step S74, the generated connector symbol is already used. It is determined whether or not it has been done. If the connector symbol is already used, the connector symbol is changed to an unused connector symbol, and if the connector symbol is not used, the connector symbol is assigned to two connector figures.
FIG. 21C shows a case where the connector symbol "a" is assigned to two connector figures. By the above procedure, when the connection line meets a certain condition, the connector is automatically generated mechanically, so it is not necessary to make a human judgment one by one, and it is possible to easily edit the figure without trouble. it can.

【0027】次に、第五の実施例について、図22、図
23及び図24に基づいて説明する。本実施例は、図形
の並列処理に関するものである。図22に示すように、
本実施例にあっては、画像データ編集部75と、操作部
32と、画像データ保持部70と、表示装置31と、を
有するものである。同図に示すように、前記画像データ
編集部75は、図形の指定を順次行う図形指定部53
と、順次指定された図形について、並列接続又は直列接
続のどちらか一方の接続形式の選択を行う接続形式選択
部56と、前記並列接続の選択がなされた場合は、最初
に指定された図形を接続元図形とし、第2番目以降に指
定された図形を接続先図形として、前記接続元図形と並
列に接続する接続線を算出し、前記直列接続の選択がな
された場合は、指定された順に接続元図形及び接続先図
形として図形間を直列に接続し、次の図形の指定がある
限り、接続線が配置された接続先図形を接続元図形に変
更し、指定された次の図形を接続先図形として接続線を
順次算出する接続線算出部54と、算出された接続線を
図形間に配置する接続線配置部55と、図形・接続線情
報格納部80とを有する。前記接続線算出部54は、並
列接続が選択された場合に並列接続線を算出する並列接
続算出部54aと、直列接続が選択された場合に直列接
続線を算出する直列接続線算出部54bと、図形情報等
を抽出する図形情報等抽出部54cとを有する。
Next, a fifth embodiment will be described with reference to FIGS. 22, 23 and 24. This embodiment relates to parallel processing of graphics. As shown in FIG. 22,
In this embodiment, the image data editing unit 75, the operation unit 32, the image data holding unit 70, and the display device 31 are provided. As shown in the figure, the image data editing section 75 includes a figure designating section 53 for sequentially designating figures.
With respect to the sequentially designated figures, a connection type selection unit 56 for selecting either one of parallel connection and series connection, and when the parallel connection is selected, the first designated figure is selected. A connection line that is connected in parallel with the connection source graphic is calculated by using the connection source graphic and the second and subsequent graphics as the connection destination graphic, and when the series connection is selected, in the specified order. Connect the figures in series as the connection source figure and the connection destination figure, change the connection destination figure where the connection line is placed to the connection source figure, and connect the specified next figure as long as the next figure is specified. It has a connection line calculation unit 54 that sequentially calculates connection lines as a destination figure, a connection line arrangement unit 55 that arranges the calculated connection lines between figures, and a figure / connection line information storage unit 80. The connection line calculation unit 54 includes a parallel connection calculation unit 54a that calculates a parallel connection line when parallel connection is selected, and a serial connection line calculation unit 54b that calculates a serial connection line when serial connection is selected. , And a graphic information etc. extracting portion 54c for extracting graphic information and the like.

【0028】次に、本実施例に係る動作を図23及び図
24に基づいて説明する。最初に、並列接続を行う場合
について図23に基づいて説明する。予め、操作部32
からの並列接続の指示があると、前記接続形式選択部5
6が並列接続形式を選択する。同図(a)に示すよう
に、ステップS80で前記操作部32からのコマンドの
入力があり、ステップS81で、そのコマンドが処理の
終了を示すものでなく、ステップS82で図形指定の指
示であると判断された場合は、ステップS83で、前記
図形指定部53は、当該図形を接続元図形として指定す
る。例えば、同図(b)に示すように、図形Aが接続元
として指定される。ステップS84で、前記操作部32
からのコマンドの入力があり、ステップS85で、その
コマンドが処理の終了を示すものでなく、ステップS8
6で図形指定の指示であると判断された場合は、ステッ
プS87に進み、前記図形指定部53は、当該図形を接
続先図形として指定し、図形Bが接続先図形に指定され
たものとする。すると、前記接続線算出部54の並列接
続線算出部54aは、前記接続元図形と接続先図形との
間を結ぶ接続線を算出し、前記接続線配置部55は接続
線を配置する。例えば、同図(c)に示すように、接続
線が配置される。並列接続をしようとする接続先図形が
まだある場合、例えば、同図(b)等に示すように、図
形Cがある場合は、ステップS84に戻り、再び該当す
る接続先図形を指定する。ステップS87で、前記並列
指示部59及び接続線配置部70によって、前記接続元
図形Aと接続先図形Cとが接続線で接続される。以上の
指示は、ステップS85で“終了”が指示されるまで前
記接続元図形と接続先図形との間の接続が順次繰り返さ
れる。本例によって、従来は、“接続元指定→接続先指
定”を接続線の本数分繰り返していた作業が、“接続元
指定→接続先指定→接続先指定→…”と行えば済み、接
続元図形の指定回数を一回で済ますことができて、操作
が簡単である。
Next, the operation according to this embodiment will be described with reference to FIGS. 23 and 24. First, the case of performing parallel connection will be described with reference to FIG. Operation unit 32 in advance
When there is a parallel connection instruction from the connection type selection unit 5
6 selects the parallel connection format. As shown in FIG. 7A, a command is input from the operation section 32 in step S80, the command does not indicate the end of the process in step S81, but an instruction for designating a graphic in step S82. If it is determined that the figure is a connection source figure, the figure designating section 53 designates the figure in step S83. For example, as shown in FIG. 7B, the graphic A is designated as the connection source. In step S84, the operation unit 32
Command is input from step S85, the command does not indicate the end of processing in step S85, and
If it is determined in step 6 that the instruction is a graphic designation instruction, the process proceeds to step S87, where the graphic designating unit 53 designates the graphic as a connection destination graphic, and the graphic B is designated as a connection destination graphic. . Then, the parallel connection line calculation unit 54a of the connection line calculation unit 54 calculates a connection line connecting the connection source graphic and the connection destination graphic, and the connection line arrangement unit 55 arranges the connection line. For example, connecting lines are arranged as shown in FIG. If there is a connection destination graphic to be connected in parallel, for example, if there is a graphic C as shown in FIG. 7B, the process returns to step S84 and the corresponding connection destination graphic is designated again. In step S87, the parallel instruction unit 59 and the connection line arrangement unit 70 connect the connection source graphic A and the connection destination graphic C with a connection line. In the above instruction, the connection between the connection source graphic and the connection destination graphic is sequentially repeated until "end" is instructed in step S85. According to this example, in the past, the work of specifying "connection source → connection destination" was repeated for the number of connection lines, but now "connection source specification → connection destination specification → connection destination specification → ..." The figure can be specified once and the operation is easy.

【0029】次に、直列接続を行う場合の動作につい
て、図24に基づいて説明する。予め、操作部32から
直列接続の指示があると、前記接続形式選択部56が直
列接続形式を選択する。図24(a)に示すように、ス
テップS90で、前記操作部32からのコマンドの入力
があり、ステップS91で、そのコマンドが処理の終了
を示すものでなく、ステップS92で図形指定の指示で
あると判断された場合には、ステップS93で、前記図
形指定部53は、当該図形を接続元図形として指定す
る。例えば、同図(b)に示すように、図形Aが接続元
図形として指定される。ステップS94で、前記操作部
32からのコマンドの入力があり、ステップS95で、
そのコマンドが処理の終了を示すものでなく、ステップ
S96で図形指定の指示であると判断された場合には、
ステップS97に進み、前記図形指定部53は、当該図
形を接続先図形として指定し、同図(c)に示すように
図形Bが接続先図形に指定されたものとする。すると、
前記接続線算出部54の直列接続線算出部54bは、前
記接続元図形と接続先図形との間を結ぶ接続線を算出
し、前記接続線配置部55は接続線を配置する。例え
ば、同図(c)に示すように接続元図形Aと接続先図形
Bとの間に接続線が配置される。ステップS98で、接
続先図形を新たな接続元図形に設定する。この場合、例
えば、同図(c)で示すように、接続先図形Bを新たな
接続元図形Bとして設定し、ステップS94に戻る。直
列接続をしようとする接続先図形がまだある場合、例え
ば、同図(b)等に示すように、図形Cがある場合に
は、ステップS94にて再び該当する接続先図形を指定
する。ステップS97で、前記接続元図形と、接続先図
形とを結ぶ接続線を配置する指示を行い、前記接続線配
置部70によって、例えば、同図(d)に示すように、
新たに接続元図形となったBと接続先図形Cとの間に接
続線を配置する。再びS98にて接続先図形Cを接続元
図形Cとして設定し、S94に戻る。以上の指示は、ス
テップS95で、“終了”が指示されるまで前記接続元
図形と接続先図形との間の接続が、同図(c)及び同図
(d)に示すように、接続先図形を接続元図形に変えな
がら順次繰り返される。本例によって、複数の図形を直
列に接続していく場合に、従来は“接続元指定→接続先
指定”を接続線の本数分繰り返してきた作業が、“接続
元指定→接続先指定→接続先指定→接続先指定→…”と
行え、接続元図形の指定回数を一回で済ますことができ
て、操作が簡単である。
Next, the operation when the series connection is performed will be described with reference to FIG. When a serial connection is instructed from the operation unit 32 in advance, the connection format selection unit 56 selects the serial connection format. As shown in FIG. 24A, a command is input from the operation unit 32 in step S90, the command does not indicate the end of the process in step S91, and a graphic designation instruction is issued in step S92. If it is determined that the figure is present, the figure designating section 53 designates the figure as a connection source figure in step S93. For example, as shown in FIG. 7B, the graphic A is designated as the connection source graphic. In step S94, a command is input from the operation unit 32, and in step S95,
If the command does not indicate the end of the process and it is determined in step S96 that the command is a graphic designation instruction,
In step S97, the graphic designating section 53 designates the graphic as a connection graphic, and the graphic B is designated as the connection graphic as shown in FIG. Then,
The serial connection line calculation unit 54b of the connection line calculation unit 54 calculates a connection line connecting the connection source graphic and the connection destination graphic, and the connection line arrangement unit 55 arranges the connection line. For example, a connecting line is arranged between the connection source graphic A and the connection destination graphic B as shown in FIG. In step S98, the connection destination graphic is set as a new connection source graphic. In this case, for example, as shown in FIG. 7C, the connection destination graphic B is set as a new connection source graphic B, and the process returns to step S94. When there is still a connection destination graphic to be connected in series, for example, when there is a graphic C as shown in FIG. 7B, the corresponding connection destination graphic is designated again in step S94. In step S97, an instruction for arranging a connection line connecting the connection source graphic and the connection destination graphic is given, and the connection line arranging unit 70 causes, for example, as shown in FIG.
A connecting line is arranged between the newly connected figure B and the connected figure C. The connection destination graphic C is set again as the connection source graphic C in S98, and the process returns to S94. The above-mentioned instruction indicates that the connection between the connection source graphic and the connection destination graphic is as shown in (c) and (d) of FIG. It is repeated sequentially while changing the figure to the connection source figure. According to this example, when multiple figures are connected in series, the conventional work of repeating "specify connection source → connection destination" for the number of connection lines is "connection source specification → connection destination specification → connection". It is possible to specify the connection destination figure → the connection destination → → ”, the connection source figure can be specified once, and the operation is easy.

【0030】さらに、第六の実施例を図25及び図26
に基づいて説明する。当該実施例は、図形配置時の接続
線の自動生成を行うものである。図25に示すように、
本実施例は、画像データ編集部76と、操作部32と、
画像データ保持部70と、表示装置31とを有する。同
図に示すように、前記画像データ編集部76は、既に配
置された図形の中から指定した図形と、新たに配置され
た図形との間に自動的に接続線を設置する自動配置の設
定を行う自動配置設定部57と、既に配置された図形の
中から図形を指定する図形指定部58と、指定された図
形と接続線によって接続すべき図形を配置する図形配置
部59と、指定された図形を接続元図形又は接続先図形
とし、配置された図形を接続先図形又は接続元図形とし
て接続線を算出する接続線算出部60と、算出された接
続線を配置する接続線配置部61と、図形・接続線情報
を格納する図形・接続線情報格納部80とを有する。ま
た、前記接続線算出部60は、指定された図形及び配置
された図形に関する図形情報を抽出する図形情報等抽出
部60bと、自動配置設定の指示に基づいて、指定図形
と配置図形が各々接続元図形又は接続先図形のどちらに
対応するか否かの判断を行う接続元・接続先図形判断部
60aとを有する。
Further, a sixth embodiment is shown in FIGS. 25 and 26.
It will be described based on. In this embodiment, a connection line is automatically generated when a graphic is arranged. As shown in FIG.
In this embodiment, the image data editing unit 76, the operation unit 32,
The image data holding unit 70 and the display device 31 are included. As shown in the figure, the image data editing unit 76 automatically sets a connecting line between a figure designated from already placed figures and a newly placed figure. An automatic placement setting unit 57 for performing the above, a graphic designating unit 58 for designating a graphic from already-placed graphics, and a graphic layout unit 59 for laying out a graphic to be connected to the designated graphic by a connecting line are designated. A connection line calculation unit 60 that calculates a connection line with the connected graphic as a connection source graphic or a connection destination graphic and the arranged graphic as a connection destination graphic or a connection source graphic, and a connection line arrangement unit 61 that arranges the calculated connection line. And a graphic / connecting line information storage unit 80 for storing the graphic / connecting line information. Further, the connection line calculation unit 60 connects the specified figure and the arranged figure to each other based on the figure information etc. extracting section 60b for extracting the figure information about the specified figure and the arranged figure, and the automatic arrangement setting instruction. A connection source / connection destination graphic determination unit 60a for determining whether the original graphic or the connection destination graphic corresponds.

【0031】続いて、本実施例の動作について図26に
基づいて説明する。操作者は予め図形間に接続線を自動
的に配置する指示を行い、前記自動配置設定部57は、
自動配置の設定をしておく。同図(b)に示すように、
操作部32からの指示によって前記図形指定部58は既
に存在している図形の中から1つの図形Aを指定し、や
はり操作部32からの指示によって、図形配置部59
は、同図(c)に示すように、指定された図形Aと接続
線で結ぼうとする新たな図形Bを配置する。ステップS
100で、前記接続元・接続先図形判断部60aは、指
定されている図形が存在するか否かを判断し、ステップ
S101で、指定されている図形が図形Aだけであると
判断すると、ステップS102で、指定された図形Aを
接続元図形と判断し、配置された図形Bを接続先図形と
して、有向接続線を算出し、前記接続線配置部61は図
26(d)に示すように、接続線を配置する。ステップ
S100で、指定されている図形がない場合や、ステッ
プS101で2つ以上の図形が指定されていると判断さ
れた場合は接続線は配置されない。本実施例によって、
図形の配置と同時に接続線を自動的に配置する。
Next, the operation of this embodiment will be described with reference to FIG. The operator previously gives an instruction to automatically arrange the connecting lines between the figures, and the automatic arrangement setting unit 57
Set the automatic placement. As shown in FIG.
The graphic designating unit 58 designates one graphic A from already existing graphics according to an instruction from the operation unit 32, and also the graphic arrangement unit 59 according to an instruction from the operation unit 32.
As shown in FIG. 7C, a new graphic B to be connected to the designated graphic A by a connecting line is arranged. Step S
In 100, the connection source / connection destination graphic determination unit 60a determines whether or not the designated graphic exists, and if it is determined in step S101 that the designated graphic is only the graphic A, step S101 In step S102, the designated figure A is determined to be the connection source figure, the arranged figure B is used as the connection destination figure, and the directional connection line is calculated. Place the connection line in. If there is no specified figure in step S100, or if it is determined in step S101 that two or more figures are specified, no connecting line is arranged. According to this embodiment,
The connecting line is automatically placed at the same time when the figure is placed.

【0032】次に、第七の実施例について図27及び図
28に基づいて説明する。当該実施例は、図形複写時の
接続線自動配置方式に関するものである。図27に示す
ように、本実施例は、画像データ編集部77と、操作部
32と、画像データ保持部70と、表示装置31とを有
する。同図に示すように、前記画像データ編集部77
は、指示によって図形複写時の接続線自動配置の設定を
行う自動配置設定部62と、指示によって図形の複写を
行う図形複写部63と、接続線算出部64と、複写元図
形と複写先図形との間に算出された接続線を配置する接
続線配置部65と、図形・接続線情報格納部80とを有
する。さらに、前記接続線算出部64は、前記自動配置
設定部62からの指示があった場合には、複写元図形と
複写先図形に対して、各々接続元図形又は接続先図形と
して判断する接続元・接続先図形判断部64aと、前記
複写元図形又は複写先図形に関する図形情報等を抽出す
る図形情報等抽出部64bとを有する。
Next, a seventh embodiment will be described with reference to FIGS. 27 and 28. This embodiment relates to a connection line automatic arrangement system at the time of copying a figure. As shown in FIG. 27, this embodiment includes an image data editing unit 77, an operation unit 32, an image data holding unit 70, and a display device 31. As shown in the figure, the image data editing unit 77
Is an automatic placement setting unit 62 that sets automatic connection line placement at the time of copying a figure according to an instruction, a figure copying unit 63 that copies a figure according to an instruction, a connection line calculation unit 64, a copy source figure and a copy destination figure. It has a connection line arrangement unit 65 for arranging the connection lines calculated between and, and a figure / connection line information storage unit 80. Further, the connection line calculation unit 64, when instructed by the automatic arrangement setting unit 62, determines a connection source graphic or a connection destination graphic for the copy source graphic and the copy destination graphic, respectively. A connection destination graphic determination unit 64a and a graphic information etc. extraction unit 64b for extracting graphic information and the like relating to the copy source graphic or the copy destination graphic.

【0033】続いて、第七の実施例の動作について図2
8に基づいて説明する。操作者は、予め操作部32から
の操作により自動配置設定部62を介して自動配置の設
定をしておく。次に、操作者は同図(b)に示すよう
に、複写をしようとする複写元図形Aを図形複写部63
によって複写先図形A’に複写する。ステップS110
で、前記接続元・接続先図形判断部64aは自動配置が
設定されたか否かを判断し、自動配置が設定された場合
は、ステップS111で、複写元図形と複写先図形を指
示に従って各々接続元図形又は接続先図形として判断
し、当該図形間に配置すべき接続線を算出し、前記接続
線配置部61によって、同図(b)の下段に示すよう
に、複写元図形Aと複写先図形A’との間に対応する接
続線を配置する。本実施例によって、図形の複写と同時
に接続線を自動的に生成することができる。
Next, the operation of the seventh embodiment will be described with reference to FIG.
8 will be described. The operator sets the automatic placement through the automatic placement setting unit 62 in advance by operating the operation unit 32. Next, as shown in FIG. 7B, the operator selects the copy source graphic A to be copied from the graphic copy section 63.
Is copied to the copy destination figure A '. Step S110
Then, the connection source / connection destination graphic determination unit 64a determines whether or not the automatic layout is set. If the automatic layout is set, in step S111, the copy source graphic and the copy destination graphic are respectively connected according to the instruction. The connection line arranging unit 61 determines the connection line to be arranged between the figures as the original figure or the connection destination figure, and the connection line arranging unit 61 displays the copy source figure A and the copy destination as shown in the lower part of FIG. A corresponding connecting line is arranged between the figure A '. According to this embodiment, the connecting line can be automatically generated at the same time when the figure is copied.

【0034】続いて、第八の実施例を図29及び図30
に基づいて説明する。本実施例は、コネクタ記号の検索
に関するものである。図29に示すように、本実施例
は、画像データ編集部78と、操作部32と、画像デー
タ保持部70と、表示装置31とを有する。同図に示す
ように、当該画像データ編集部78は、指示によって検
索しようとするコネクタ記号を指定するコネクタ記号指
定部66と、指示に従ってコネクタ記号の検索を行うコ
ネクタ記号検索部67と、検索されたコネクタ記号をも
つコネクタ図形について前記表示装置31の画面上に表
示の指示を行うコネクタ図形表示指示部68とを有す
る。さらに、前記コネクタ記号検索部67は、コネクタ
図形に関する図形情報等を抽出する図形情報等抽出部6
7cと、指定されたコネクタ記号をもつコネクタ図形を
すべて列挙するコネクタ図形列挙部67bと、列挙され
たコネクタ図形の中から、指定されたコネクタ記号をも
つコネクタ図形が接続元図形である場合は、接続先図形
であるコネクタ図形を候補として選択し、指定されたコ
ネクタ記号をもつコネクタ図形が接続先図形である場合
は、接続元図形であるコネクタ図形を候補として選択
し、指定されたコネクタ記号に接続線が繋がっていない
場合は列挙されたコネクタ図形のすべてを候補として選
択するコネクタ図形選択部67aとを有する。前記コネ
クタ図形表示部68は、候補の中の一番最初のコネクタ
図形を画面に表示し、候補が複数ある場合は、次検索を
繰り返すことによって順番に画面に表示する。
Subsequently, the eighth embodiment will be described with reference to FIGS. 29 and 30.
It will be described based on. This embodiment relates to retrieval of connector symbols. As shown in FIG. 29, this embodiment includes an image data editing unit 78, an operation unit 32, an image data holding unit 70, and a display device 31. As shown in the figure, the image data editing unit 78 includes a connector symbol designating unit 66 for designating a connector symbol to be retrieved by an instruction, a connector symbol retrieving unit 67 for retrieving a connector symbol according to the instruction. And a connector figure display instructing section 68 for instructing the display of the connector figure having the connector symbol on the screen of the display device 31. Further, the connector symbol retrieval unit 67 extracts the graphic information etc. regarding the connector graphic from the graphic information extraction unit 6
7c, a connector figure enumeration section 67b that enumerates all connector figures having the specified connector symbol, and if the connector figure having the specified connector symbol is the connection source figure from the enumerated connector figures, If you select a connector figure that is a connection destination figure as a candidate and the connector figure that has the specified connector symbol is a connection destination figure, select the connector figure that is the connection source figure as a candidate and add it to the specified connector symbol. In the case where the connecting lines are not connected, it has a connector figure selecting unit 67a for selecting all the listed connector figures as candidates. The connector graphic display unit 68 displays the first connector graphic among the candidates on the screen, and when there are a plurality of candidates, displays them in order by repeating the next search.

【0035】続いて、本実施例の動作について説明す
る。操作者から、同図(b)に示すように、既に配置さ
れたコネクタ図形aの指定の指示があると、ステップS
120で、前記コネクタ記号指定部66は検索しようと
するコネクタ記号αを保持する。ステップS121で、
前記コネクタ図形列挙部67bは、指定されたコネクタ
記号αをもつコネクタ図形を候補として全て列挙する。
ステップS122で、前記コネクタ図形選択部67a
は、指定されたコネクタ図形aが接続元図形であるか接
続先図形であるかを判断する。同図(b)に示すよう
に、図形Aが接続元図形である場合、即ち、コネクタ記
号αを持つコネクタ図形aが接続先図形である場合は、
ステップS124に進み、同図(c)及び同図(d)に
示すように、当該コネクタ図形選択部67aは接続元コ
ネクタ図形を選択する。選択されたコネクタ図形が複数
ある場合には、前記コネクタ図形表示指示部68は、接
続元コネクタ図形を順次表示させる。一方、ステップS
122で、指定されたコネクタ図形が接続元図形の場合
には、ステップS123に進み、前記コネクタ図形選択
部67aは、接続先コネクタ図形を選択する。本例によ
って、使用者は、コネクタによる接続状況を瞬時に確認
することができる。以上の説明では、図形及び接続線に
関する情報を予め前記図形・接続線情報格納部80に格
納し、当該図形情報等を読み出して画像データの処理を
行うようにしたが、当該場合に限られることなく、前記
画像データ保持部70に保持された画像データから前記
図形情報又は接続線情報を演算して処理を行うようにし
ても良い。以上の例では、接続線は直線(折れ線を含
む)の場合について説明したが、当該場合に限られるこ
となく、例えば、曲線を用いても良い。また、以上の説
明では、各実施例が各々別個に存在する場合について説
明したが、全実施例の機能を備えた場合であっても良
い。また、各実施例の中から任意に選んで組み合わせた
場合であっても良い。
Next, the operation of this embodiment will be described. When the operator gives an instruction to specify the already-arranged connector figure a as shown in FIG.
At 120, the connector symbol designation unit 66 holds the connector symbol α to be searched. In step S121,
The connector figure enumeration unit 67b enumerates all connector figures having the specified connector symbol α as candidates.
In step S122, the connector figure selection unit 67a
Determines whether the designated connector graphic a is a connection source graphic or a connection destination graphic. As shown in FIG. 7B, when the figure A is the connection source figure, that is, when the connector figure a having the connector symbol α is the connection destination figure,
In step S124, the connector figure selecting unit 67a selects a connection source connector figure, as shown in FIGS. When there are a plurality of selected connector figures, the connector figure display instructing section 68 sequentially displays the connection source connector figures. On the other hand, step S
If the specified connector graphic is the connection source graphic in 122, the process proceeds to step S123, and the connector graphic selecting unit 67a selects the connection destination connector graphic. According to this example, the user can instantly confirm the connection status of the connector. In the above description, the information about the graphic and the connecting line is stored in the graphic / connecting line information storage unit 80 in advance, and the graphic information is read to process the image data. However, the present invention is not limited to this case. Instead, the graphic information or the connection line information may be calculated from the image data held in the image data holding unit 70 to perform the processing. In the above example, the case where the connection line is a straight line (including a broken line) has been described, but the connection line is not limited to this case, and a curved line may be used, for example. Further, in the above description, the case where each of the embodiments exists separately has been described, but the function of all the embodiments may be provided. Further, it may be possible to arbitrarily select and combine the embodiments.

【0036】[0036]

【発明の効果】以上説明したように、本発明にあって
は、各図形と線との配置を行う際に、各図形は正方形や
長方形に限られず種々の図形を用いることができる。本
発明では、線として、垂直線や水平線に限られず、種々
の傾きをもった直線のみならず、曲線をも用いることが
できる。本発明では、各図形を迂回する場合は、予め設
定された各図形に応じた迂回候補点の中から適当な迂回
点を選択するようにしている。したがって、本発明で
は、図形と線との関係に応じて的確で自由度の高い図形
編集を容易に行うことができる。本発明では、各図形と
接続線との接続点や交点等の位置も、回路のピン等のよ
うに予め定められた位置に固定されることなく、図形の
形状等に応じて適切に決定される。したがって、的確で
自由度の高い図形編集を容易に行うことができる。ま
た、本発明では、線と各図形が重なる場合は、線の態様
を重なりに応じて変えるようにしている。コネクタの採
用にも、接続線が一定の条件を満たす場合は、一々人間
の判断を必要とせず、必要なコネクタを重複することな
く生成することができる。したがって、本発明によれ
ば、使用者の手間をかけることなく、図形と接続線との
関係に応じて、的確で自由度の高い図形編集を容易に行
うことができる。これによって、種々の目的に柔軟に対
応することのできる、汎用的な図形編集装置及び方法を
提供することができる。また、図形間を接続する際は、
予め接続形式を選択することによって、簡単な操作で並
列接続又は直列接続を的確に行うことができる。さら
に、本発明では、図形の配置及び複写の処理に伴い、自
動的に接続線を配置することによって、図形と接続線の
配置という作業をひとつの操作で迅速かつ簡単に行うこ
とができる。また、本発明では、検索によって、指定さ
れたコネクタ図形に対応するものを表示することができ
るため、容易に図面を目で追うことができる。
As described above, in the present invention, when arranging each figure and line, each figure is not limited to a square or a rectangle, and various figures can be used. In the present invention, the line is not limited to a vertical line or a horizontal line, and not only a straight line having various inclinations but also a curved line can be used. In the present invention, when each figure is detoured, an appropriate detour point is selected from detour candidate points corresponding to each figure set in advance. Therefore, according to the present invention, it is possible to easily perform accurate and highly flexible graphic editing according to the relationship between the graphic and the line. In the present invention, the positions of the connection points and intersections between each figure and the connection line are not fixed to predetermined positions such as the pins of the circuit, but are appropriately determined according to the shape of the figure. It Therefore, accurate and highly flexible graphic editing can be easily performed. Further, in the present invention, when the line and each figure overlap, the mode of the line is changed according to the overlap. Also in the case of adopting the connector, if the connection line satisfies a certain condition, it is possible to generate the necessary connectors without duplication without requiring human judgment one by one. Therefore, according to the present invention, it is possible to easily perform accurate and highly flexible graphic editing according to the relationship between the graphic and the connecting line without the user's trouble. Accordingly, it is possible to provide a general-purpose graphic editing apparatus and method which can flexibly cope with various purposes. Also, when connecting between figures,
By selecting the connection type in advance, parallel connection or series connection can be accurately performed by a simple operation. Further, according to the present invention, by automatically arranging the connecting lines with the process of arranging and copying the figure, the work of arranging the figure and the connecting line can be performed quickly and easily by one operation. Further, according to the present invention, since the one corresponding to the designated connector figure can be displayed by the search, the drawing can be easily followed.

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

【図1】第一の発明に係る原理ブロック図FIG. 1 is a block diagram of the principle of the first invention.

【図2】第二の発明に係る原理ブロック図FIG. 2 is a principle block diagram according to the second invention.

【図3】第三の発明に係る原理ブロック図FIG. 3 is a principle block diagram according to a third invention.

【図4】第四の発明に係る原理ブロック図FIG. 4 is a principle block diagram according to a fourth invention.

【図5】第五の発明に係る原理ブロック図FIG. 5 is a principle block diagram according to a fifth invention.

【図6】第六の発明に係る原理ブロック図FIG. 6 is a principle block diagram according to a sixth invention.

【図7】第七の発明に係る原理ブロック図FIG. 7 is a principle block diagram according to a seventh invention.

【図8】第八の発明に係る原理流れ図FIG. 8 is a principle flow chart according to an eighth invention.

【図9】第九の発明に係る原理流れ図FIG. 9 is a principle flow chart according to a ninth invention.

【図10】実施例に係る機器構成ブロック図FIG. 10 is a block diagram of a device configuration according to an embodiment.

【図11】第一の実施例に係るブロック図FIG. 11 is a block diagram according to the first embodiment.

【図12】第一の実施例に係る流れ図FIG. 12 is a flowchart according to the first embodiment.

【図13】第一の実施例に係る説明図FIG. 13 is an explanatory diagram according to the first embodiment.

【図14】第一の実施例に係るブロック図FIG. 14 is a block diagram according to the first embodiment.

【図15】第二の実施例に係る流れ図FIG. 15 is a flow chart according to a second embodiment.

【図16】第二の実施例に係る説明図FIG. 16 is an explanatory diagram according to the second embodiment.

【図17】第三の実施例に係るブロック図FIG. 17 is a block diagram according to a third embodiment.

【図18】第三の実施例に係る流れ図FIG. 18 is a flowchart according to the third embodiment.

【図19】第三の実施例に係る説明図FIG. 19 is an explanatory diagram according to the third embodiment.

【図20】第四の実施例に係るブロック図FIG. 20 is a block diagram according to a fourth embodiment.

【図21】第四の実施例に係る流れ図FIG. 21 is a flow chart according to a fourth embodiment.

【図22】第五の実施例に係るブロック図FIG. 22 is a block diagram according to a fifth embodiment.

【図23】第五の実施例に係る流れ図FIG. 23 is a flowchart according to the fifth embodiment.

【図24】第五の実施例に係る流れ図及び説明図FIG. 24 is a flowchart and an explanatory view according to the fifth embodiment.

【図25】第六の実施例に係るブロック図FIG. 25 is a block diagram according to a sixth embodiment.

【図26】第六の実施例に係る流れ図及び説明図FIG. 26 is a flowchart and an explanatory diagram according to the sixth embodiment.

【図27】第七の実施例に係るブロック図FIG. 27 is a block diagram according to a seventh embodiment.

【図28】第七の実施例に係る流れ図及び説明図FIG. 28 is a flowchart and an explanatory diagram according to the seventh embodiment.

【図29】第八の実施例に係るブロック図FIG. 29 is a block diagram according to an eighth embodiment.

【図30】第八の実施例に係る流れ図及び説明図FIG. 30 is a flowchart and an explanatory diagram according to the eighth embodiment.

【図31】従来例に係るブロック図FIG. 31 is a block diagram according to a conventional example.

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

10,16,40,46…線・図形重なり検出部 11,41…迂回点選択部 12,15,18,19,25,33,42,45,4
8,49,55,61,65 …(接続)線配置部 13(43)…最近接通過点検出部(最近接折れ点検出
部) 14,44…最適接続点算出部 17(47)…線領域分割部(接続線領域分割部) 20,50…コネクタ配置部 21,51…コネクタ記号生成部 22,52…コネクタ記号検索部 23,27,34,53…図形指定部 24,29,54,60,64…接続線算出部 26,56…接続形式選択部 28,57,62…自動配置設定部 38…コネクタ図形抽出部 39…コネクタ図形表示指示部 57,62…自動生成設定部 58…図形指定部 59…図形配置部 63…図形複写部
10, 16, 40, 46 ... Line / figure overlap detection unit 11, 41 ... Detour point selection unit 12, 15, 18, 19, 25, 33, 42, 45, 4
8, 49, 55, 61, 65 (connecting) line arranging section 13 (43) ... closest passing point detecting section (closest breaking point detecting section) 14, 44 ... optimum connecting point calculating section 17 (47) ... line Area division section (connection line area division section) 20, 50 ... Connector arrangement section 21, 51 ... Connector symbol generation section 22, 52 ... Connector symbol retrieval section 23, 27, 34, 53 ... Graphic designation section 24, 29, 54, 60, 64 ... Connection line calculation unit 26, 56 ... Connection format selection unit 28, 57, 62 ... Automatic arrangement setting unit 38 ... Connector figure extraction unit 39 ... Connector figure display instruction unit 57, 62 ... Automatic generation setting unit 58 ... Graphic Designating part 59 ... Graphic placement part 63 ... Graphic copying part

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 配置された図形に対し、図形との重なり
を排除した状態で線を配置する編集を行う際に、線と図
形との重なりを検出する線・図形重なり検出部(10)
と、 線と図形との重なりが検出された場合は、重なりの生じ
た図形に対して、当該図形を迂回するため当該図形の形
状に基づいて予め設定された迂回候補点の中から、線が
通るのに適当だと判断される迂回点を、線と図形との位
置関係に基づいて選択する迂回点選択部(11)と、 選択された迂回点を通って線を配置する線配置部(1
2)とを有する図形編集装置。
1. A line / figure overlap detection unit (10) for detecting an overlap between a line and a figure when performing editing for arranging a line on a placed figure in a state where the overlap with the figure is eliminated.
When an overlap between a line and a figure is detected, the line is selected from the detour candidate points preset based on the shape of the figure to detour the figure with the overlap. A detour point selecting unit (11) that selects a detour point that is determined to be appropriate to pass based on the positional relationship between the line and the figure, and a line arranging unit that arranges a line through the selected detour point ( 1
2) A graphic editing device having and.
【請求項2】 配置された、図形及び接続線に対し、当
該図形に接続線が接続する接続点に最も接近した最近接
通過点の検出を行う最近接通過点検出部(13)と、 検出された前記最近接通過点に対し、図形の代表点、及
び図形の形状に基づいて、最適な接続点の位置を算出す
る最適接続点算出部(14)と、 算出された最適接続点で接続するように接続線の再配置
を行う接続線配置部(15)とを有する図形編集装置。
2. A closest passing point detection unit (13) for detecting the closest passing point closest to the connecting point where the connecting line connects to the figure and the connecting line arranged, An optimum connection point calculation unit (14) that calculates the position of the optimum connection point based on the representative point of the graphic and the shape of the graphic with respect to the closest passing point that has been connected, and the calculated optimum connection point And a connection line arranging section (15) for rearranging the connection lines as described above.
【請求項3】 配置された図形に対し、指定した線との
重なりを検出する線・図形重なり検出部(16)と、 前記線と図形との重なりが検出された場合は、重なりが
検出された図形の辺と線との交点を算出し、線を当該交
点、元点又は先点を境にして区切られる領域に分割する
線領域分割部(17)と、 図形内の領域と図形外の領域等の隣り合う線領域が別種
の態様となるような線を配置する線配置部(18)とを
有する図形編集装置。
3. A line / figure overlap detection unit (16) for detecting an overlap between a placed graphic and a designated line, and when an overlap between the line and the graphic is detected, an overlap is detected. The line area dividing unit (17) that calculates the intersection of the side of the figure and the line and divides the line into areas that are divided by the intersection, the original point, or the destination point, and the area inside the figure and the area outside the figure. A line editing unit (18) for arranging lines such that adjacent line regions such as regions have different types.
【請求項4】 接続線を配置する接続線配置部(19)
と、 配置された接続線の長さ又は接続線の形状の複雑さに基
づいて、コネクタの要不要を判断し、コネクタが必要と
判断された場合は、コネクタ図形を少なくとも2つ生成
し、各々接続元の図形及び接続先の図形と一定間隔を開
けて配置するとともに、当該コネクタ図形と接続元の図
形との間及びコネクタ図形と接続先の図形との間に各々
接続線を配置するコネクタ配置部(20)と、 前記コネクタ図形に用いるコネクタ記号を自動的に生成
するコネクタ記号生成部(21)と、 生成されたコネクタ記号が既に使用されているか否かを
判断し、当該コネクタ記号が未使用の場合は当該コネク
タ記号を前記コネクタ図形に割り当て、当該コネクタ記
号が使用されている場合は、使用されていないコネクタ
記号に変更するコネクタ記号検索部(22)とを有する
図形編集装置。
4. A connection line arranging portion (19) for arranging a connection line.
Based on the length of the arranged connecting line or the complexity of the shape of the connecting line, it is determined whether the connector is necessary or not. If it is determined that the connector is necessary, at least two connector figures are generated and A connector arrangement in which the connection source graphic and the connection destination graphic are arranged with a certain space, and connection lines are arranged between the connector graphic and the connection source graphic and between the connector graphic and the connection destination graphic, respectively. A part (20), a connector symbol generation part (21) for automatically generating a connector symbol used for the connector figure, and a judgment as to whether or not the generated connector symbol is already used, When used, the connector symbol is assigned to the connector figure, and when the connector symbol is used, it is changed to an unused connector symbol. 2) and a graphics editing device having a.
【請求項5】 図形の指定を順次行う図形指定部(2
3)と、 指定された図形について並列接続又は直列接続のどちら
か一方の接続形式の選択を行う接続形式選択部(26)
と、 前記並列接続の選択がなされた場合は、最初に指定され
た図形を接続元図形とし、第2番目以降に指定された図
形を接続先図形として、前記接続元図形と並列に接続す
る接続線を算出し、前記直列接続の選択がなされた場合
は、指定された順に接続元図形及び接続先図形として図
形間を直列に接続し、次の図形の指定がある限り、接続
線が配置された接続先図形を接続元図形に変更し、指定
された次の図形を接続先図形として接続線を順次算出す
る接続線算出部(24)と、 算出された接続線を図形間に配置する接続線配置部(2
5)とを有する図形編集装置。
5. A graphic designation unit (2) for sequentially designating graphics
3) and a connection type selection unit (26) for selecting one of the connection types of parallel connection and series connection for the designated figure.
And when the parallel connection is selected, the first specified graphic is used as a connection source graphic, and the second and subsequent graphics are used as connection destination graphics, which are connected in parallel with the connection source graphic. When the line is calculated and the series connection is selected, the figures are connected in series as the connection source figure and the connection destination figure in the specified order, and the connection line is arranged as long as the next figure is specified. A connection line calculation unit (24) that sequentially changes the connection destination graphic to the connection source graphic and uses the specified next graphic as the connection destination graphic, and a connection that arranges the calculated connection line between the graphics. Line placement part (2
5) A graphic editing device having:
【請求項6】 図形の指定を行う図形指定部(27)
と、 接続線を自動的に配置する自動配置の設定を行う自動配
置設定部(28)と、 自動配置の設定が行われた場合に、予め指定された図形
を接続元図形とし、新たに配置された図形又は複写され
た図形を接続先図形として接続線を算出する接続線算出
部(29)、 算出された接続線を配置する接続線配置部(33)とを
有する図形編集装置。
6. A graphic designation unit (27) for designating a graphic
And an automatic placement setting unit (28) for automatically setting the placement of connecting lines, and when the automatic placement is set, a previously designated figure is set as a connection source figure and newly placed A graphic editing apparatus having a connection line calculation unit (29) for calculating a connection line using the created graphic or a copied graphic as a connection destination graphic, and a connection line arrangement unit (33) for arranging the calculated connection line.
【請求項7】 図形の指定を行う図形指定部(34)
と、 指定された図形がコネクタ図形である場合には、そのコ
ネクタに使用されている記号とコネクタ図形の接続情報
を抽出し、抽出したコネクタ記号と同じ記号をもつ他の
コネクタ図形を列挙し、指定されたコネクタ図形の接続
情報が接続元図形である場合には、列挙した図形の中か
ら接続情報が接続先図形であるものを、接続先図形であ
る場合には接続元図形であるものを、接続情報がなにも
ない場合には列挙した図形のすべてを検索結果の候補と
して抽出するコネクタ図形抽出部(38)と、 候補として抽出されたコネクタ図形の表示を指示するコ
ネクタ図形表示指示部(39)とを有する図形編集装
置。
7. A graphic designation unit (34) for designating a graphic
If the specified shape is a connector shape, the symbol used for that connector and the connection information of the connector shape are extracted, and other connector shapes having the same symbol as the extracted connector symbol are listed. If the connection information of the specified connector figure is the connection source figure, the one in the enumerated figures whose connection information is the connection destination figure, and if it is the connection destination figure, the one that is the connection source figure If there is no connection information, a connector figure extraction unit (38) that extracts all the listed figures as candidates for the search result, and a connector figure display instruction unit that instructs the display of the connector figures extracted as candidates. (39) A graphic editing device having:
【請求項8】 配置された複数の図形に対し、図形との
重なりを排除した状態で線を配置する編集を行う際に、
線と図形との重なりを検出すると(S1)、 重なりの生じた図形に対して、当該図形を迂回するため
当該図形の形状に基づいて予め設定された迂回候補点の
中から、前記線が通るのに適当だと判断される迂回点
を、線と図形との位置関係に基づいて選択し(S2)、 選択された迂回点を通って線を配置する(S3)ように
した図形編集方法。
8. When performing editing for arranging a line on a plurality of arranged figures while eliminating overlapping with the figure,
When the overlap between the line and the figure is detected (S1), the line passes from among the detour candidate points set in advance based on the shape of the figure to detour the figure in which the overlap occurs. A detour point that is determined to be suitable for the above is selected based on the positional relationship between the line and the figure (S2), and the line is arranged through the selected detour point (S3).
【請求項9】 配置された図形に対し、指定した元点と
先点との間に線を配置し(S10)、 当該線と図形との重なりを検出し(S11)、 当該線との重なりが検出された場合は、重なりが検出さ
れた図形の辺と当該線との交点を算出し、当該線を当該
交点、元点又は先点を境にして区切られる領域に分割し
(S12)、 図形内の領域と図形外の領域等の隣合う線領域が別種の
態様となるような線を配置し(S13)、重なりの検出
された当該図形について、以上の処理を繰り返すように
した図形編集方法。
9. A line is placed between the specified original point and destination point on the placed figure (S10), the overlap between the line and the figure is detected (S11), and the line is overlapped. If is detected, the intersection of the side of the figure in which the overlap is detected and the line is calculated, and the line is divided into areas separated by the intersection, the original point or the destination point (S12), A line is arranged so that adjacent line regions such as a region inside the figure and a region outside the figure are in a different type (S13), and the above-described processing is repeated for the figure in which overlap is detected. Method.
JP6108688A 1994-05-23 1994-05-23 Device and method for graphic editing Withdrawn JPH07320081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6108688A JPH07320081A (en) 1994-05-23 1994-05-23 Device and method for graphic editing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6108688A JPH07320081A (en) 1994-05-23 1994-05-23 Device and method for graphic editing

Publications (1)

Publication Number Publication Date
JPH07320081A true JPH07320081A (en) 1995-12-08

Family

ID=14491142

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6108688A Withdrawn JPH07320081A (en) 1994-05-23 1994-05-23 Device and method for graphic editing

Country Status (1)

Country Link
JP (1) JPH07320081A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006504169A (en) * 2002-10-21 2006-02-02 ルノー・エス・アー・エス Electrical architecture synthesis method and synthesis apparatus
JPWO2021024791A1 (en) * 2019-08-05 2021-02-11

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006504169A (en) * 2002-10-21 2006-02-02 ルノー・エス・アー・エス Electrical architecture synthesis method and synthesis apparatus
JPWO2021024791A1 (en) * 2019-08-05 2021-02-11
WO2021024791A1 (en) * 2019-08-05 2021-02-11 日立オートモティブシステムズ株式会社 Design assistance system and design assistance method

Similar Documents

Publication Publication Date Title
JP3437223B2 (en) Shape display device and shape display method
JPH07320081A (en) Device and method for graphic editing
US6289493B1 (en) Layout editor and its text generating method
US5651105A (en) Graphic input and display of network based computations
JP3454906B2 (en) Navigation display method and apparatus
JP3307790B2 (en) Flow diagram creation device
JPH09245188A (en) Graphic displaying method and its device
JP3389388B2 (en) Drawing editing device
JPS61267179A (en) Cursor window displaying system
JPH06295322A (en) Device and method for displaying segment
JPH1125149A (en) Recording medium and method and device for preparing drawing
JP3788818B2 (en) Display graphic editing system
JPH05266133A (en) Simultaneous display method for partial image
JP3591892B2 (en) Character string display method and character string display device
JPH11161688A (en) Cad device
JP3142191B2 (en) Graphic processing unit
JP2575636B2 (en) Graphic display device
JP3703814B2 (en) How to create a circle
JP4618746B2 (en) Graphic object allocation device
JP2002297420A (en) Data directory structure display device and computer program
JPH06230919A (en) Multiwindow display method
JP3177359B2 (en) Graphic drawing device
JPH07110869A (en) Graphic editing device
JPH06202304A (en) Layout processor
JPH0855244A (en) Stereographic data input method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010731