JPS6353679A - Automatic arrangement system for character to be drawn - Google Patents
Automatic arrangement system for character to be drawnInfo
- Publication number
- JPS6353679A JPS6353679A JP61197579A JP19757986A JPS6353679A JP S6353679 A JPS6353679 A JP S6353679A JP 61197579 A JP61197579 A JP 61197579A JP 19757986 A JP19757986 A JP 19757986A JP S6353679 A JPS6353679 A JP S6353679A
- Authority
- JP
- Japan
- Prior art keywords
- overlap
- character
- symbols
- polygon
- character string
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 claims description 23
- 238000001514 detection method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、自動作図装置での文字列やシンボルの自動
配置をコンピュータの演算によって行うようにした作図
の文字自動配置方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an automatic character arrangement method for drawing in which the automatic arrangement of character strings and symbols in an automatic drawing device is performed by computer calculations.
第5図は、例えば特願昭60−7212号明細書に記載
された従来の文字自記置方式のための装置構成図であり
、図において、1はCPU2にデータ入力する入力装置
、8はCPU2からデータを出力する出力装置である。FIG. 5 is a block diagram of a device for the conventional character self-recording system described in, for example, Japanese Patent Application No. 60-7212. In the figure, 1 is an input device for inputting data to the CPU 2; It is an output device that outputs data from.
第6図は、従来の文字自動配置方式の全処理フローチャ
ート図である。データ入力(ステップ4)のあと、新規
配置ポリゴンの近傍をサーチ(ステップ5)して、重な
り検出対象になるような既配置ポリゴンを探し出す(ス
テップ6)。FIG. 6 is a flowchart of the entire process of the conventional automatic character arrangement method. After inputting the data (step 4), a search is performed in the vicinity of the newly placed polygon (step 5), and an already placed polygon that is a target for overlapping detection is found (step 6).
重なり検出対象の既配置ポリゴン(ステップ7゜8)に
対し重なり検出処理(ステップ9)を行い、重なりが1
つの既配置ポリゴンに対してでも起これば(ステップ1
0)、予め決められた演算式により、所定の方向に所定
の移動量tごけ位置を移動する(ステップ11)。Overlap detection processing (step 9) is performed on the already placed polygons to be detected (steps 7 and 8), and the overlap is 1.
If it happens even for two already placed polygons (Step 1)
0), the position is moved by a predetermined movement amount t in a predetermined direction according to a predetermined calculation formula (step 11).
移動後の新規ポリゴンについて再度、重なり検出処理を
行い(ステップ10)、重なりなしと判定されるまで以
上の動作を繰り返す。The overlap detection process is performed again on the new polygon after the movement (step 10), and the above operations are repeated until it is determined that there is no overlap.
どの既配置ポリゴンとも重なりがなくなり(ステップ1
2)、配置位置が決定したポリゴンを既配置ポリゴンと
しくステップ18)、次の新規ポリゴンについても同様
の処理を行う。すべてのポリゴンについて位置が決定す
れば、これらの配置位置を元に図面出力の処理を行う(
ステップ14)。There will be no overlap with any existing polygons (Step 1)
2) The polygon whose placement position has been determined is set as an already placed polygon (step 18), and the same process is performed for the next new polygon. Once the positions of all polygons have been determined, the drawing output process is performed based on these placement positions (
Step 14).
溌明が解決しようとする問題点〕
従来の作図の文字自動配置方式は以上のように構成され
ているので、予め決められた演算式でのみポリゴンの移
動位置を決定しているため、人間の手による配置よりも
元の位置との対応づけができにくい元の位置から離れた
位置に配置を決定してしまうおそれがあるという問題点
があった。また、ポリゴンの数が多い図面では、演算式
でのみ移動位置を決定しているため、図面中にポリゴン
が入りきらないおそれがあるという問題点があった。The problem that Shinmei is trying to solve] The conventional automatic character placement method for drawing is structured as described above, and since the position of polygon movement is determined only by a predetermined calculation formula, it is difficult for humans to move. There is a problem in that the arrangement may be determined at a position far from the original position, which makes it more difficult to correlate with the original position than when the arrangement is performed manually. Furthermore, in a drawing with a large number of polygons, the moving position is determined only by an arithmetic expression, which poses a problem in that the drawing may not contain all the polygons.
この発明は、上記のような問題点を解消するためになさ
れたもので、シンボルや文字などの対応づけしやすい位
置に配置位置を決定するとともに、シンボルや文字数の
多い図面に対しても、シンボルや文字が図面枠外にはみ
出すことなく配置位置を決定できる作図の文字自動配置
方式を得ることを目的とする。This invention was made to solve the above-mentioned problems, and it determines the placement position of symbols and characters so that they can be easily associated with each other. To provide an automatic character arrangement method for drawing that can determine the arrangement position of characters without protruding outside the drawing frame.
この発明に係る作図の文字自動配置方式は、入出力装置
とCPUとにより作図システムを構成し、図面上に配置
する文字列やシンボルの重なり具合を、予め決められた
演算式によってCPU内で演算によって求め、その演算
の結果、重なりがある場合には前記文字列やシンボルが
重ならないように所定の方向に所定の距離だけ移動して
配置位置を決定し、さらに、配置位置から初期位置方向
へ微小移動させ、重なりがなくかつ最も初期位置に近い
位置へ配置できるようにしたものである。In the automatic character arrangement method for drawing according to the present invention, a drawing system is configured by an input/output device and a CPU, and the degree of overlapping of character strings and symbols arranged on a drawing is calculated within the CPU using a predetermined calculation formula. As a result of the calculation, if there is an overlap, the placement position is determined by moving a predetermined distance in a predetermined direction so that the character strings and symbols do not overlap, and then moving from the placement position to the initial position direction. It is possible to move it minutely so that it can be placed at the position closest to the initial position without overlapping.
この発明における文字列やシンボルは、長方形ポリゴン
を模して外形寸法を与え、既配置ポリゴンに対する新規
配置ポリゴンの重なりをコンピュータの演算処理によっ
て求めることにより、電なりのない図形位置関係を決定
して該図形位置関係となるように新規配置ポリゴンの位
置を移し、さらに、配置位置から初期位置方向へ微小移
動させ、重なりがなく、かつ、最も初期位置に近い位置
へ配置を決定する。The character strings and symbols in this invention are made by imitating rectangular polygons, giving external dimensions, and calculating the overlap of the newly placed polygons with the already placed polygons through computer processing to determine the positional relationship of the figures without electric current. The position of the newly placed polygon is moved so as to have the above figure positional relationship, and further, it is slightly moved from the placement position in the direction of the initial position, and the placement is determined to a position that does not overlap and is closest to the initial position.
第1図は、この発明の一実施例を示す配電線路図自動作
成システムの全処理フローチャート図であり、この処理
装置としては前記第5図の装置を用いる。FIG. 1 is a flowchart of the entire process of an automatic distribution line diagram creation system showing an embodiment of the present invention, and the device shown in FIG. 5 is used as the processing device.
ここで、配電線路図とは、電柱、電線、関連機器類(こ
れらを総称してシンボルと呼ぶ)、及び上記の説明用文
字列が地図上に配置、記載された図面を意味する(第2
図のシンボル16、文字列17を参照)。Here, the power distribution line diagram means a drawing in which utility poles, electric wires, related equipment (these are collectively referred to as symbols), and the above explanatory character strings are placed and described on the map (Second
(See symbol 16, character string 17 in the figure).
次に、上記実施例の動作を第1図を参照しながら以下に
説明する。「文字列データ、シンボルデータ入力」ステ
ップ98で入力されるデータは、第8図に示したような
長方形ポリゴン15で定義されるデータである。Next, the operation of the above embodiment will be explained below with reference to FIG. The data input in step 98 of "input character string data and symbol data" is data defined by rectangular polygons 15 as shown in FIG.
本実施例では、文字列17は、すべて第2図に示したよ
うに、長方形ポリゴン15として取り扱っている。すな
わち、長方形ポリゴン15とは、1シンボル16、又は
一連の文字列17を覆うことのできる最小の長方形とし
て作図座標に位置付けることを意味している。In this embodiment, all character strings 17 are treated as rectangular polygons 15, as shown in FIG. That is, the rectangular polygon 15 means that it is positioned at the drawing coordinates as the smallest rectangle that can cover one symbol 16 or a series of character strings 17.
ここで長方形ポリゴン15の定義データは、第2図で示
したように中心座標(xc、yc)、四隅座標(端点)
(x1+ yx) I (X21 y2) + (
Xlll ys)e(X413’4)、中心一端点距離
(I■)、長辺の長さく Iw)、短辺の長さく IH
)、角度(θ)、及びその長方形ポリゴン15が既に配
置位置が決まったもの(既配置ポリゴン)であるのか、
これから配置しようとしているもの(新規配置ポリゴン
)であるかを示すフラグで構成されている。ただし、フ
ラグについては(例えば、(第2図のシンボル16))
すべて移動できないので既配置とし、添字される文字列
17は初めはすべて新規配置としておく。Here, the definition data of the rectangular polygon 15 are center coordinates (xc, yc), four corner coordinates (end points), as shown in FIG.
(x1+ yx) I (X21 y2) + (
Xllll ys) e (X413'4), distance from center to end point (I ■), length of long side Iw), length of short side IH
), the angle (θ), and whether the rectangular polygon 15 has already been placed (already placed polygon).
It consists of a flag indicating whether the polygon is about to be placed (newly placed polygon). However, regarding flags (for example, (symbol 16 in Figure 2))
Since it is not possible to move them all, they are assumed to be already placed, and all of the character strings 17 to be subscripted are initially placed as new placements.
まず、これらを「文字列データ、シンボルデータ入力」
しだ後(ステップ18)、「近傍サーチ処理」をCPU
2内で実行する(ステップ19)。First, enter these as "string data, symbol data input"
After (step 18), "neighborhood search processing" is performed by the CPU.
2 (step 19).
この近傍サーチ処理で、新規配置ポリゴンの周囲に重な
る可能性のある長方形ポリゴンが存在する場合には「重
なる可能性あり、」で、チェックし結果をすべてメモリ
に記憶する(ステップ20゜21)。すなわち、ステッ
プ21の動作で「重なる可能性のある既配置ポリゴンは
メモリに記憶する」。In this neighborhood search process, if there is a rectangular polygon that may overlap around the newly placed polygon, it is checked with "Possibility of overlap" and all results are stored in the memory (steps 20 and 21). That is, in the operation of step 21, "already placed polygons that may overlap are stored in memory".
上記「近傍サーチ処理」(ステップ19)は、1つの新
規配置ポリゴンに関して「すべての既配置ポリゴンに対
して処理終了」したか否かのチェックを行う(ステップ
22)。すべての既配置ポリゴンについての近傍サーチ
が終わった後で、「重なり検出処理」を行う(ステップ
28)。まず新、既2つのポリゴン15について第4図
に示されているようにポリゴンの中心を通り辺に平行な
4本の直線24を考える。この中の1本の直線に対して
他方のポリゴンの各頂点までの距離25を調べ(ただし
ポリゴンの中心を通り辺に平行な直線24の方程式をa
x+by+c=oとし、頂点の座標を(x6+ y o
)とする)。In the "neighborhood search process" (step 19), it is checked whether "processing has been completed for all already placed polygons" for one newly placed polygon (step 22). After completing the neighborhood search for all placed polygons, "overlap detection processing" is performed (step 28). First, regarding the new and two existing polygons 15, consider four straight lines 24 passing through the center of the polygon and parallel to the sides, as shown in FIG. Check the distance 25 from one of these straight lines to each vertex of the other polygon (however, the equation of the straight line 24 passing through the center of the polygon and parallel to the sides is a
Let x+by+c=o, and the coordinates of the vertex are (x6+ y o
).
この距離25と直線から辺までの距離26(これは長辺
あるいは短辺の長さの1/2に等しい)とを比較して、
直線から頂点までの距離の中で1つでも直線から辺まで
の距離より小のものがあれば、他の直線から他方ポリゴ
ンの各頂点までの距離を調べる。Comparing this distance 25 with the distance 26 from the straight line to the side (which is equal to 1/2 the length of the long side or short side),
If even one of the distances from the straight line to the vertex is smaller than the distance from the straight line to the side, the distances from other straight lines to each vertex of the other polygon are checked.
ここで、もし、すべての距離25が大であれば、次にそ
の4頂点が直線に対しての同じ側の領域に存在するかど
うかを調べる。Here, if all the distances 25 are large, then it is checked whether the four vertices exist on the same side of the straight line.
ここで4頂点が同一領域にあれば、「重ならない」と判
定し、同一領域でなければ4直線すべてについてこの重
なり検出が終わったかどうかを調べる。終わっていなけ
れば、他の直線について調べ、終了していれば「重なる
」と判定する。If the four vertices are in the same area, it is determined that they do not overlap, and if the four vertices are not in the same area, it is checked whether the overlap detection has been completed for all four straight lines. If it has not finished, other straight lines are checked, and if they have finished, it is determined that they "overlap."
この処理は、重なる可能性のあるメモリに記憶されてい
るポリゴンに対してのみ行なう。ここでもし、「重なる
」既配置ポリゴンが1つであれば(イエス)、新規配置
ポリゴンの位置をずらし、「文字列データの修正」を行
なう(ステップ28)。This process is performed only on polygons stored in memory that may overlap. Here, if there is only one already placed polygon that "overlaps" (YES), the position of the newly placed polygon is shifted and "character string data modification" is performed (step 28).
この位置の移動法則は予め設定しておく。The law of movement of this position is set in advance.
かくして、文字列データの修正を行なったのち新しい位
置の新規配置ポリゴンについて、再度、「重なり検出処
理」を行う(ステップ28)。ここで既配置ポリゴンと
の重なりが全てなくなったか否かを「すべての既配置ポ
リゴンに対して処理終了」でチェックを行い(ステップ
29)、重なりがなければ、その位置を仮配置位置とす
る。仮配置位置から初期位置方向へ一定距離ずつ微小接
近させ(ステップ80)、接近させるごとに「重なり検
出処理」を行う(ステップ81)重なりが生じるまで処
理を繰り返しくステップ82)、重なりがなく初期位置
に最も近い位置に「新規配置ポリゴンの配置位置決定」
を行い(ステップ84)、ポリゴンデータのフラグを「
既配置」とする。After the character string data has been corrected in this manner, the "overlap detection process" is performed again for the newly placed polygon at the new position (step 28). Here, it is checked whether or not all overlaps with already placed polygons have been eliminated by "end of processing for all placed polygons" (step 29), and if there is no overlap, that position is set as a temporary placement position. The temporary placement position is moved slightly closer to the initial position by a certain distance (step 80), and each time the position is approached, the "overlap detection process" is performed (step 81). The process is repeated until an overlap occurs (step 82), and the initial position is "Determine the placement position of the new placement polygon" at the position closest to the position
(step 84), and set the polygon data flag to "
"Already placed".
以上の処理をすべての新規配置ポリゴンに対して行い、
修正後のシンボルデータ・文字列データに従って図面の
出力を行う(ステップ85)。Perform the above process for all newly placed polygons,
The drawing is output according to the corrected symbol data and character string data (step 85).
上記実施例は、第1図に示したように、入力装置にフロ
ッピーディスクを使用した例について示したが、カード
リーダーやMTでもよく、また、出力装置もプロッター
を使用した例について示したがCRTなどでもよい。In the above embodiment, as shown in FIG. 1, a floppy disk was used as the input device, but a card reader or MT may also be used.Although a plotter was used as the output device, CRT etc.
以上のように、この発明によれば、作図の文字自動配置
において、予め決められた演算式によって配置位置、決
まった文字列やシンボルを初期位置方向へ移動させるよ
うに構成したので、初期位置との対応づけができやすく
なると同時に、文字列やシンボルの数の多い図面につい
ても、図面枠外にはみ出すことなく配置でき、正確で見
やすい図面が得られるという効果がある。As described above, according to the present invention, in the automatic character arrangement for drawing, the arrangement position, fixed character strings and symbols are moved in the direction of the initial position using a predetermined arithmetic expression. At the same time, drawings with a large number of character strings and symbols can be arranged without protruding outside the drawing frame, resulting in accurate and easy-to-read drawings.
第1図はこの発明の一実施例による配電線路図自動作成
方式の全処理フロートチャート図、第2図は配電線路図
、第8図は長方形ポリゴンの説明図、第4図は新、既2
つのポリゴンの説明図、第5図は文字自動配置方式を実
施する装置のプロツり図、第6図は従来の文字自動配置
方式の全処理フローチャート図である。
1は入力装置、2はCPU、8は出力装置。
なお、図中、同一符号は同−又は相当部分を示す。Fig. 1 is a flowchart of the entire process of the automatic distribution line diagram creation method according to an embodiment of the present invention, Fig. 2 is a distribution line diagram, Fig. 8 is an explanatory diagram of rectangular polygons, and Fig. 4 is a new and existing two.
FIG. 5 is a schematic diagram of an apparatus implementing the automatic character placement method, and FIG. 6 is a flowchart of the entire process of the conventional automatic character placement method. 1 is an input device, 2 is a CPU, and 8 is an output device. In addition, in the figures, the same reference numerals indicate the same or corresponding parts.
Claims (1)
演算処理しデータを出力する出力装置とからなる作図の
文字自動配置装置において、前記CPU内の作図位置に
配置された既配置の文字列やシンボルに対し、該文字列
・シンボル間の重なりを避けるよう配置位置を移動させ
た新規文字列・シンボルについてのみ、予め決められた
演算式により初期位置方向へ既配置文字列・シンボルと
重ならない限り移動して配置位置を決定するようにした
ことを特徴とする作図の文字自動配置方式。In an automatic character arrangement device for drawing, which consists of an input device that inputs data to a CPU, and an output device that outputs data after arithmetic processing by the CPU, an already arranged character string or Only for new character strings/symbols whose arrangement position has been moved to avoid overlapping between the character strings/symbols, as long as they do not overlap with existing character strings/symbols in the direction of the initial position according to a predetermined calculation formula. An automatic character placement method for drawing, characterized in that the placement position is determined by movement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61197579A JPS6353679A (en) | 1986-08-22 | 1986-08-22 | Automatic arrangement system for character to be drawn |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61197579A JPS6353679A (en) | 1986-08-22 | 1986-08-22 | Automatic arrangement system for character to be drawn |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6353679A true JPS6353679A (en) | 1988-03-07 |
Family
ID=16376841
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61197579A Pending JPS6353679A (en) | 1986-08-22 | 1986-08-22 | Automatic arrangement system for character to be drawn |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6353679A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04310184A (en) * | 1991-04-09 | 1992-11-02 | Nec Corp | Image processing system |
-
1986
- 1986-08-22 JP JP61197579A patent/JPS6353679A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04310184A (en) * | 1991-04-09 | 1992-11-02 | Nec Corp | Image processing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8340433B2 (en) | Image processing apparatus, electronic medium, and image processing method | |
JPS6353679A (en) | Automatic arrangement system for character to be drawn | |
JP2809762B2 (en) | Figure shaping device | |
JPS63271516A (en) | Graphic display data processing system | |
JPH0516072B2 (en) | ||
JPH0479028B2 (en) | ||
JPS63667A (en) | Automatic arranging system for character or the like in case of construction | |
JP2751114B2 (en) | Character processing method | |
JPH01273175A (en) | Automatic character arranging system for construction | |
JPH11305833A (en) | Device for generating land mark information | |
CN117371193B (en) | Point location arrangement optimization method and device for infrared temperature measurement sensor and storage medium | |
JPH01100674A (en) | Automatic arranging system for characters or the like in plotting | |
JP2941322B2 (en) | Drawing processing equipment | |
JPH10269267A (en) | Method for extracting mask layout parameter | |
CN115014202A (en) | Line structured light vision sensor calibration method and device | |
JP2004227030A (en) | Image processing device, image display device and image processing method | |
CN110704896A (en) | Method and product for placing connecting node between keel column model and wall keel model | |
JP3486937B2 (en) | Figure transformation device | |
JP3063415B2 (en) | Computer-aided design equipment for printed wiring boards | |
CN116047995A (en) | Arc plate cutting control method and device | |
JP2852044B2 (en) | Symbol recognition device | |
JP2023526703A (en) | Collision detection method for object, device, electronic device, storage medium and computer program | |
CN116500966A (en) | Motion path planning method, motion path planning device, machining equipment and storage medium | |
JP2938087B2 (en) | A method for detecting corners of a shape represented by a straight short vector sequence | |
JPH07121723A (en) | Method for correcting direction data of stripe patterns, information processor for executing the same, method for correcting pitch data of stripe patterns and information processor for executing the same |