JPH01149091A - Conversion system for graphic marker - Google Patents

Conversion system for graphic marker

Info

Publication number
JPH01149091A
JPH01149091A JP62309249A JP30924987A JPH01149091A JP H01149091 A JPH01149091 A JP H01149091A JP 62309249 A JP62309249 A JP 62309249A JP 30924987 A JP30924987 A JP 30924987A JP H01149091 A JPH01149091 A JP H01149091A
Authority
JP
Japan
Prior art keywords
marker
line segment
processing means
conversion processing
thickness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62309249A
Other languages
Japanese (ja)
Inventor
Shigeru Nakamura
茂 中村
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP62309249A priority Critical patent/JPH01149091A/en
Publication of JPH01149091A publication Critical patent/JPH01149091A/en
Pending legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE: To improve the effect of clear position showing as the original role of a marker by determining the thickness of line segments consisting of the marker to be plotted based of size information showing the size of the marker. CONSTITUTION: This system is provided with a marker conversion processing means 3 for determining how many line segments consisting of a basic marker correspond to the thickness of line segments consisting of the marker to be plotted based on the size information showing the size of the marker and for preparing a line segment plotting instruction group required for plotting the marker at each position when the marker having the thickness of line segments equal with the thickness of the basic marker and the length of line segments designated by the size information is parallelly moved in prescribed direction every time just for the thickness of line segments consisting of the basic marker until the thickness of line segments becomes the determined thickness. Therefore, the thickness of line segments consisting of the marker can be changed in proportion to the size of the marker to be displayed on a graphic display device 4 so that the clear position showing effect of the marker is improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は装置独立な図形描画用制御命令列に含まれ、線
分によりマーカーを描くマーカー描画用制御命令を装置
依存のマーカー描画用制御命令に変換して図形出力装置
へ出力する図形マーカーの変換方式に関し、特に、マー
カーの大きさに応じてマーカーを構成する線分の太さを
変更することができる図形マーカーの変換方式に関する
[Detailed Description of the Invention] [Industrial Application Field] The present invention includes a sequence of device-independent figure drawing control instructions, in which a marker drawing control instruction for drawing a marker using a line segment is combined with a device-dependent marker drawing control instruction. The present invention relates to a conversion method for a graphic marker that is converted into a graphic marker and output to a graphic output device, and particularly relates to a conversion method for a graphic marker that can change the thickness of a line segment forming a marker depending on the size of the marker.

〔従来の技術〕[Conventional technology]

CRT、XYプロッター、日本語プリンタ等の図形出力
装置に出力するマーカーの大きさをマーカーサイズ命令
によって変更することは従来より行なわれているが、従
来はマーカーを構成する線分の長さを変更するだけであ
り、マーカーを構成する線分の太さはマーカーの大きさ
にかかわらず、常に一定であった。
It has been conventional practice to change the size of markers output to graphic output devices such as CRTs, XY plotters, and Japanese printers using marker size commands, but conventionally, the length of the line segments that make up the markers has been changed. The thickness of the line segments constituting the marker was always constant regardless of the size of the marker.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述したように、従来は、マーカーの大きさにかかわら
ず、マーカーを構成する線分の太さが常に一定であるた
め、マーカーが大きくなるとマーカーが目立たなくなる
問題があった。
As described above, conventionally, the thickness of the line segment constituting the marker is always constant regardless of the size of the marker, so there has been a problem that the marker becomes less noticeable as the marker becomes larger.

本発明はこのような事情に鑑みなされたものであり、そ
の目的はマーカー本来の役目である位置明示の効果の向
上を図るため、マーカーを構成する線分の太さをマーカ
ーの大きさに応じて変更できるようにすることにある。
The present invention was made in view of these circumstances, and its purpose is to change the thickness of the line segments that make up the marker according to the size of the marker, in order to improve the effect of indicating the position, which is the original role of the marker. The purpose is to allow changes to be made.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は前述の如き問題点を解決するため、装置独立な
図形描画制御命令列中の線分によってマーカーを描くマ
ーカー描画用制御命令を装置依存の線分によってマーカ
ーを描くマーカー描画用制御命令に変換する方式に於い
て、 変換すべき装置独立な図形描画用制御命令列が格納され
る記憶手段と、 該記憶手段に格納された図形描画用制御命令列を装置依
存の図形描画用制御命令列に変換する変換処理手段と、 前記変換処理手段から呼出され、装置独立なマーカー描
画用制御命令を装置依存のマーカー描画用制御命令に変
換するマーカー変換処理手段と、前記変換処理手段で変
換された装置依存の図形描画用制御命令列を図形として
出力する図形出力装置とを含み、 前記変換処理手段はマーカー描画用制御命令を検出する
ことにより、前記マーカー変換処理手段を呼出し、該マ
ーカー描画用制御命令によって描かれるマーカーの大き
さを示すサイズ情報を前記マーカー変換処理手段に渡し
、 前記マーカー変換処理手段は前記変換手段から呼出され
ることにより、前記サイズ情報に基づいて前記マーカー
描画用制御命令によって描画することが指示されたマー
カーを構成する線分の太さを基本マーカーを構成する線
分の太さの何本骨の太さにするのかを決定すると共に、
線分の太さが前記基本マーカーを構成する線分の太さと
同一で、線分の長さが前記サイズ情報によって指示され
た長さを有するマーカーを描くために必要となる線分描
画命令群及び該線分描画命令群によって描かれるマーカ
ーを前記基本マーカーを構成する線分の太さずつ、線分
の太さが前記決定した太さになるまで所定方向に平行移
動させた際の各位置に於けるマーカーを描くために必要
となる線分描画命令群を作成して前記変換処理手段に装
置依存のマーカー描画用制御命令群として渡す。
In order to solve the above-mentioned problems, the present invention replaces a marker drawing control command that draws a marker with a line segment in a device-independent graphic drawing control command sequence with a marker drawing control command that draws a marker with a device-dependent line segment. The conversion method includes a storage means for storing a device-independent figure drawing control command sequence to be converted, and a figure drawing control command sequence stored in the storage means into a device-dependent figure drawing control command sequence. a marker conversion processing means that is called by the conversion processing means and converts a device-independent marker drawing control command into a device-dependent marker drawing control command; a figure output device that outputs a device-dependent figure drawing control command sequence as a figure, and the conversion processing means calls the marker conversion processing means by detecting the marker drawing control command, and the marker drawing control Size information indicating the size of the marker to be drawn according to the command is passed to the marker conversion processing means, and the marker conversion processing means is called by the conversion means to perform processing according to the marker drawing control command based on the size information. In addition to determining the thickness of the line segment that makes up the marker that is instructed to be drawn, it determines how many bones of the thickness of the line segment that makes up the basic marker.
A group of line segment drawing commands necessary to draw a marker whose line segment thickness is the same as that of the line segment constituting the basic marker and whose line segment length is specified by the size information. and each position when the marker drawn by the group of line segment drawing commands is translated in a predetermined direction by the thickness of the line segment constituting the basic marker until the thickness of the line segment reaches the determined thickness. A group of line segment drawing commands necessary for drawing markers in the process is created and passed to the conversion processing means as a group of device-dependent marker drawing control commands.

〔作 用〕[For production]

マーカー変換手段は、マーカーの大きさを示すサイズ情
報に基づいて描くべきマーカーを構成する線分の太さを
、基本マーカーを構成する線分の太さの何本骨の太さに
するのかを決定する。そして、線分の太さが決定した太
さになるまで、線分の太さが基本マーカーの太さと同一
で、線分の長さがサイズ情報によって指定された長さを
有するマーカーを、基本マーカーを構成する線分の太さ
ずつ、所定方向に交互に、例えば反対方向に交互に平行
移動させた際の各位置に於けるマーカーを描くために必
要となる線分描画命令群を作成する。
The marker conversion means determines the thickness of the line segment forming the marker to be drawn based on the size information indicating the size of the marker, based on the thickness of the line segment forming the basic marker. decide. Then, until the thickness of the line segment reaches the determined thickness, the marker whose line segment thickness is the same as the thickness of the basic marker and whose line segment length is the length specified by the size information is changed to the basic marker. Create a group of line segment drawing commands necessary to draw a marker at each position when the line segments composing the marker are alternately translated in a predetermined direction, for example, alternately in the opposite direction. .

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して詳細に説明
する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明の実施例のブロック図であり、記憶手段
1と、変換処理手段2と、マーカー変換処理手段3と、
図形出力装置4と、レジスタ5とを含んでいる。
FIG. 1 is a block diagram of an embodiment of the present invention, which includes a storage means 1, a conversion processing means 2, a marker conversion processing means 3,
It includes a graphic output device 4 and a register 5.

記憶手段1は例えばコアメモリ上に設定され、装置依存
の図形描画用制御命令列に変換すべき装置独立の図形描
画用制御命令列が格納される。変換処理手段2は記憶手
段lに格納された図形描画用制御命令列から命令を1命
令ずつ取出し、装置依存の図形描画用制御命令列に変換
していく、そして、マーカー描画用制御命令を検出した
時点で、必要情報をレジスタ5を介してマーカー変換処
理手段3へ渡す、この情報を基にしてマーカー変換処理
手段3はマーカー描画用制御命令を装置依存の線分描画
命令の集合に変換し、それを変換処理手段2に返却する
。変換処理手段2は全ての図形描画用制御命令の変換処
理が終了した段階で変換した装置依存の図形描画用制御
命令列を図形出力装置4に送る0図形出力装置4は例え
ばCRT。
The storage means 1 is set, for example, on a core memory, and stores a device-independent graphic drawing control instruction string to be converted into a device-dependent graphic drawing control instruction string. The conversion processing means 2 extracts commands one by one from the figure drawing control command string stored in the storage means 1, converts them into a device-dependent figure drawing control command string, and detects marker drawing control commands. At that point, the necessary information is passed to the marker conversion processing means 3 via the register 5. Based on this information, the marker conversion processing means 3 converts the marker drawing control commands into a set of device-dependent line segment drawing commands. , and returns it to the conversion processing means 2. The conversion processing means 2 sends the converted device-dependent graphic drawing control command sequence to the graphic output device 4 when the conversion processing of all the graphic drawing control commands is completed.The graphic output device 4 is, for example, a CRT.

XYプロッター、日本語プリンタ等を含み、変換処理手
段2から受は取った装置依存の図形描画用制御命令列を
解読して表示する。
It decodes and displays a device-dependent graphic drawing control instruction string received from the conversion processing means 2, including an XY plotter, a Japanese printer, etc.

以上が本実施例の動作の概略であるが、次に変換処理手
段2の処理例を示す第2図の流れ図及びマーカー変換処
理手段3の処理例を示す第3図の流れ図を参照しながら
、より詳細に本実施例の動作を説明する。尚、記憶手段
1には第4図(a)に示すように、マーカーのサイズを
指定するマーカー種別命令、マーカーの種別を指定する
マーカ一種別命令、マーカーを描くための座標値を持つ
マーカー描画命令及び他の図形描画用制御命令が任意の
順序で格納されており、これらの命令の出現順序や出現
回数には制限がないものとする。また、マーカーサイズ
命令は、例えば、同図山)に示すようにマーカーサイズ
命令であることを示すマーカーサイズ命令コードとマー
カーサイズとから構成され、マーカ一種別命令は、例え
ば、同図(C1に示すようにマーカ一種別命令であるこ
とを示すマーカ一種別命令コードとマーカ一種別とから
構成され、マーカー描画命令は、例えば、同図(dlに
示すようにマーカー描画命令であることを示すマーカー
描画命令コードとマーカー描画位置のX座標値とマーカ
ー描画位置のY座標値とから構成されている。
The above is an outline of the operation of this embodiment. Next, while referring to the flowchart in FIG. 2 showing an example of processing by the conversion processing means 2 and the flowchart in FIG. 3 showing an example of processing by the marker conversion processing means 3, The operation of this embodiment will be explained in more detail. As shown in FIG. 4(a), the storage means 1 includes a marker type command for specifying the size of the marker, a marker type command for specifying the type of marker, and a marker drawing having coordinate values for drawing the marker. It is assumed that commands and other graphic drawing control commands are stored in an arbitrary order, and there are no restrictions on the order in which these commands appear or the number of times they appear. Further, the marker size command is composed of a marker size command code indicating that it is a marker size command and the marker size, as shown in the same figure (Mountain), and the marker type command is, for example, shown in the same figure (C1). As shown in FIG. It consists of a drawing command code, an X coordinate value of the marker drawing position, and a Y coordinate value of the marker drawing position.

第1図に於いて、アプリケーションプログラム等により
作成された装置独立の図形描画用制御命令列は記憶手段
1に格納され、その後、変換処理手段2が起動される。
In FIG. 1, a device-independent graphic drawing control command sequence created by an application program or the like is stored in storage means 1, and then conversion processing means 2 is activated.

変換処理手段2は起動されると、第2図の流れ図に示す
処理を開始し、記憶手段1より1命令を入力する(ステ
ップSl)。ステップS2では全ての記憶手段1に格納
されている全ての命令の処理が終了したか否かを判断し
、全ての命令の処理が終了していると判断した場合は(
ステップS2の判断結果がYESの場合)、図形出力装
置4へ変換データを出力しくステップS8)、変換処理
を終了する。また、全ての命令の処理が終了していない
と判断した場合は(ステップS2の判断結果がNOの場
合)、ステップS1で入力した命令の種別を判定する(
ステップS3)。
When the conversion processing means 2 is activated, it starts the process shown in the flowchart of FIG. 2, and inputs one command from the storage means 1 (step Sl). In step S2, it is determined whether processing of all instructions stored in all storage means 1 has been completed, and if it is determined that processing of all instructions has been completed (
If the determination result in step S2 is YES), the converted data is output to the graphic output device 4 (step S8), and the conversion process is ended. Furthermore, if it is determined that the processing of all instructions has not been completed (if the determination result in step S2 is NO), the type of instruction input in step S1 is determined (
Step S3).

ステップS3で命令の種別がマーカーサイズ命令である
と判定した場合は、カレントなマーカーサイズとしてワ
ーク領域に記憶させた後(ステップS4)、次の命令を
読込む処理を行ない(ステップS1)、マーカ一種別命
令であると判定した場合は、カレントなマーカ一種別と
してワーク領域に記憶させた後(ステップS5)、次の
命令を読込む処理を行ない(ステップS1)、マーカー
描画命令であると判定した場合は、マーカー描画命令に
含まれるマーカーの描画位置を示すX、 Y座標値と、
ワーク領域に記憶されているカレントなマーカーサイズ
と、ワーク領域に記憶されているカレントなマーカ一種
別と、装置独立なマーカーの描画位置を示す座標値を装
置依存の座標値に変換するための変換マトリクス値とを
レジスタ5に設定してマーカー変換処理手段3を呼出し
くステップS6)、マーカー変換処理手段3に第3図に
示す処理を行なわせる。そして、マーカー変換処理手段
3の処理が完了し、マーカー変換処理手段3から線分描
画命令群が送られてくると、次の命令を読込む処理を行
なう (ステップS1)、また、ステップS3で命令が
マーカーサイズ命令。
If it is determined in step S3 that the instruction type is a marker size instruction, the current marker size is stored in the work area (step S4), and then the next instruction is read (step S1), and the marker size is If it is determined that it is a type-specific command, it is stored in the work area as the current marker type (step S5), and then the next command is read (step S1), and it is determined that it is a marker drawing command. In this case, the X and Y coordinate values indicating the drawing position of the marker included in the marker drawing command,
Conversion to convert the current marker size stored in the work area, the current marker type stored in the work area, and device-independent coordinate values indicating the drawing position of the marker to device-dependent coordinate values. The matrix value is set in the register 5 and the marker conversion processing means 3 is called (step S6), causing the marker conversion processing means 3 to perform the processing shown in FIG. Then, when the processing of the marker conversion processing means 3 is completed and a group of line segment drawing commands are sent from the marker conversion processing means 3, a process of reading the next command is performed (step S1). The command is a marker size command.

マーカ一種別命令、マーカー描画命令以外の命令である
と判定した場合は、その命令を装置独立な図形描画用制
御命令から装置依存の図形描画用制御命令に変換するが
(ステップS7)、その方式については本発明の対象外
であるので、説明を省略する。ステップS7の処理が終
了すると、変換処理手段2は次の命令を読込む処理を行
なう (ステップS1)。
If it is determined that the command is a command other than a marker type command or a marker drawing command, the command is converted from a device-independent figure drawing control command to a device-dependent figure drawing control command (step S7). Since these are outside the scope of the present invention, their explanation will be omitted. When the process of step S7 is completed, the conversion processing means 2 performs a process of reading the next instruction (step S1).

以上述べた処理により、装置独立な図形描画用制御命令
列は装置依存の図形描画用制御命令列に変換されて図形
出力装置4に出力される。
Through the processing described above, the device-independent graphic drawing control command string is converted into a device-dependent graphic drawing control command string and is output to the graphic output device 4.

次に、マーカー変換処理手段3の処理例を示す第3図の
流れ図を基に、マーカー描画命令を装置依存の図形描画
用制御命令の1つである線分描画命令の集合に変換して
いく過程を詳細に説明する。
Next, based on the flowchart of FIG. 3 showing an example of processing by the marker conversion processing means 3, the marker drawing command is converted into a set of line segment drawing commands, which is one of device-dependent figure drawing control commands. The process will be explained in detail.

マーカー変換処理手段3は変換処理手段2から呼出され
ると、先ず、レジスタ5を介して渡されたマーカーサイ
ズのマーカーを構成する線分の長さが、予め定められた
基本の大きさを有するマーカー(基本マーカー)を構成
する線分の長さの2の何乗倍であるかを求め、その整数
部分をnとする(ステップ311) 、次に、マーカー
変換処理手段3は図形出力装置4に出力するマーカーを
構成する線分の太さを、上記基本マーカーを構成する線
分の太さの何倍にするのかを示す倍率mをm=2n+1
により求める(ステップ512)。
When the marker conversion processing means 3 is called by the conversion processing means 2, first, the length of the line segment constituting the marker of the marker size passed through the register 5 has a predetermined basic size. Find out what power of 2 the length of the line segment that constitutes the marker (basic marker) is, and set the integer part to n (step 311). Next, the marker conversion processing means 3 converts the graphic output device 4 Set the magnification m that indicates how many times the thickness of the line segment forming the marker to be outputted to the line segment forming the basic marker to be made to be m = 2n + 1.
(step 512).

ステップS12の処理が終了すると、マーカー変換処理
手段3はレジスタ5を介して渡されたマーカ一種別と、
マーカーサイズと、装置独立なマーカー描画位置のX、
Y座標値と、変換マトリクス値とに基づいて、線分の太
さが上記基本マーカーを構成する線分の太さと同一で、
線分の長さがマーカーサイズによって指示される長さを
有するマーカーを図形出力装置4に出力するために必要
となる装置依存の線分描画命令群を作成し、ワーク領域
に設定する(ステップ513)。
When the process of step S12 is completed, the marker conversion processing means 3 receives the marker type passed through the register 5,
Marker size and device-independent marker drawing position
Based on the Y coordinate value and the transformation matrix value, the thickness of the line segment is the same as the thickness of the line segment constituting the basic marker,
A device-dependent line segment drawing command group necessary for outputting a marker whose length is specified by the marker size to the graphic output device 4 is created and set in the work area (step 513 ).

次いで、マーカー変換処理手段3はm=lであるか否か
を判断しくステップ314) 、m=1であると判定し
た場合はワーク領域に設定されている装置依存の線分描
画命令群をレジスタ5に設定しくステップ319)、そ
の後、呼出し元である変換処理手段2へ復帰する。また
、ステップS14でm=1でないと判断した場合はmが
偶数であるか否かを判断する(ステップS 15)。
Next, the marker conversion processing means 3 determines whether m=l (step 314), and if m=1, registers the device-dependent line segment drawing command set in the work area. 5 (step 319), and then returns to the calling conversion processing means 2. Further, if it is determined in step S14 that m is not 1, it is determined whether m is an even number (step S15).

ステップ315でmが偶数でないと判断した場合は、マ
ーカー変換処理手段3はワーク領域にステップ316に
よって作成された装置依存の線分描画命令群が存在する
か否かを判断し、存在すると判断した場合はステップ3
16によって作成された装置依存の線分描画命令群の内
、最も最近に作成された線分tili命令群によって描
かれる線分群を+X軸方向及び+YY軸方向基本マーカ
ーを構成する線分の太さ分だけ平行移動させた線分を描
くために必要となる装置依存の線分描画命令群を作成し
てワーク領域に設定し、存在しないと判断した場合はス
テップ313で作成した装置依存の線分描画命令群によ
って描かれる線分群を+X軸方向及び+YY軸方向基本
マーカーを構成する線分の太さ分だけ平行移動させた線
分群を描くために必要となる装置依存の線分描画命令群
を作成し、ワーク領域に設定する(ステップ516)。
If it is determined in step 315 that m is not an even number, the marker conversion processing means 3 determines whether or not the device-dependent line segment drawing command group created in step 316 exists in the work area, and determines that it exists. If so, step 3
Among the device-dependent line segment drawing commands created by 16, the line segments drawn by the most recently created line segment tili command group are set to +X axis direction and +YY axis direction basic marker thickness. Create a set of device-dependent line segment drawing commands necessary to draw a line segment that has been translated in parallel by the amount of time and set it in the work area, and if it is determined that it does not exist, create the device-dependent line segment created in step 313. A device-dependent line segment drawing command group required to draw a line segment group drawn by a drawing command group by the thickness of the line segment forming the basic marker in the +X-axis direction and +YY-axis direction. It is created and set in the work area (step 516).

また、ステップ315でmが偶数であると判断した場合
は、ワーク領域にステップS17によって作成された装
置依存の線分描画命令群が存在するか否かを判断し、存
在すると判断した場合はステップS17によって作成さ
れた装置依存の線分描画命令群の内、最も最近に作成さ
れた線分描画命令群によって描かれる線分群を−X軸方
向及び−Y軸方向に基本マーカーを構成する線分の太さ
分だけ平行移動させた線分群を描くために必要となる装
置依存の線分描画命令群を作成してワーク領域に設定し
、存在しないと判断した場合はステップS13で作成し
た装置依存の線分描画命令群によって描かれる線分群を
−X軸方向及び−YY軸方向基本マーカーを構成する線
分の太さ分だけ平行移動させた線分群を描くために必要
となる装置依存の線分描画命令群を作成し、ワーク領域
に設定する(ステップS L?)。
Further, if it is determined in step 315 that m is an even number, it is determined whether or not the device-dependent line segment drawing command group created in step S17 exists in the work area, and if it is determined that there is, step A group of line segments drawn by the most recently created group of line segment drawing commands among the device-dependent line segment drawing commands created in S17 is a line segment that constitutes a basic marker in the -X-axis direction and the -Y-axis direction. Create a device-dependent line segment drawing command group that is necessary to draw a group of line segments that have been translated in parallel by the thickness of , and set it in the work area. A device-dependent line that is necessary to draw a line segment group drawn by the line segment drawing command group by the thickness of the line segment that constitutes the basic marker in the -X axis direction and -YY axis direction. A group of drawing commands is created and set in the work area (step SL?).

ステップ316或いはステップ317の処理が終了する
と、マーカー変換処理手段3はm=m−1の処理を行な
った後(ステップ318)、ステップS14の処理に移
る。
When the process of step 316 or step 317 is completed, the marker conversion processing means 3 performs the process of m=m-1 (step 318), and then moves to the process of step S14.

次に、第5図+al〜(C1を参照して基本マーカーの
2倍、4倍の大きさを有するマーカーを出力する場合の
マーカー変換処理手段3の動作を説明する。
Next, the operation of the marker conversion processing means 3 when outputting a marker twice or four times the size of the basic marker will be explained with reference to FIG.

尚、同図(alは基本マーカーを示し、同図6)は基本
マーカーを2倍したマーカーを、同図(C1は基本マー
カーを4倍したマーカーを示している。
Note that the same figure (al indicates a basic marker, FIG. 6) shows a marker that is twice the basic marker, and the same figure (C1 shows a marker that is four times the basic marker).

先ず、基本マーカーの2倍の大きさを有するマーカーを
描く場合の動作を説明する。
First, the operation when drawing a marker twice the size of the basic marker will be explained.

マーカー変換処理手段3は変換処理手段2から呼出され
ると、先ずステップSllの処理を行なう。
When the marker conversion processing means 3 is called by the conversion processing means 2, it first performs the process of step Sll.

この場合、搭こうとするマーカーは基本マーカーの2倍
の大きさを有するものであり、2=21であるので、n
=1となる。
In this case, the marker to be mounted is twice the size of the basic marker, and 2=21, so n
=1.

次に、マーカー変換処理手段3はステップS12の処理
を行なう。この場合、9=1であるので、mx ’l 
n+ l −3となる。
Next, the marker conversion processing means 3 performs the process of step S12. In this case, since 9=1, mx 'l
It becomes n+l-3.

次に、マーカー変換処理手段3は、線分の太さが第5図
talに示す基本マーカーM、を構成する線分の太さと
同一で、線分の長さが基本マーカーM。
Next, the marker conversion processing means 3 determines that the thickness of the line segment is the same as the thickness of the line segment constituting the basic marker M shown in FIG. 5 tal, and the length of the line segment is the basic marker M.

を構成する線分の長さの2倍の長さを有する同図(bl
に示すマーカーM+を描くために必要となる装置依存の
線分描画命令群を作成し、ワーク領域に設定する(ステ
ップ313)。
The same figure (bl
A device-dependent line segment drawing command group necessary for drawing marker M+ shown in is created and set in the work area (step 313).

ステップS13の処理が終了すると、マーカー変換処理
手段3は、m=3であるので、ステップ316の処理を
行なう、ステップ316に於いて、マーカー変換処理手
段3は、第5図中)に示したマーカー M lを+X軸
方向及び+Y軸方向に基本マーカー M oを構成する
線分の太さ分だけ平行移動させたマーカーM、を描くた
めに必要となる装置依存の線分描画命令群を作成し、ワ
ーク領域に設定する。
When the processing of step S13 is completed, the marker conversion processing means 3 performs the processing of step 316 since m=3. Create a device-dependent line segment drawing command group required to draw a marker M, which is obtained by moving the marker M l in parallel in the +X-axis direction and +Y-axis direction by the thickness of the line segment that constitutes the basic marker M o. and set it in the work area.

次に、マーカー変換処理手段3はステップ318の処理
を行ない、m=2とする。
Next, the marker conversion processing means 3 performs the process of step 318, and sets m=2.

m=2となることにより、マーカー変換処理手段3はス
テップ317の処理を行なう。ステップS17に於いて
、マーカー変換処理手段3は第5図中)に示したマーカ
ーM、を−X軸方向、−Y軸方向に基本マーカーM0を
構成する線分の太さ分だけ平行移動させたマーカーM、
を描くために必要となる装置依存の線分描画命令群を作
成し、ワーク領域に設定する。
Since m=2, the marker conversion processing means 3 performs the process of step 317. In step S17, the marker conversion processing means 3 moves the marker M shown in FIG. marker M,
Create a set of device-dependent line segment drawing commands needed to draw and set them in the work area.

次に、マーカー変換処理手段3はステップ318の処理
を行ない、m=lとする。
Next, the marker conversion processing means 3 performs the process of step 318, and sets m=l.

m=1となることにより、マーカー変換処理手段3はス
テップS19の処理を行なう。ステップS19に於いて
、マーカー変換処理手段3はワーク領域に設定されてい
るマーカーM、、MIM3 をt!<ために必要となる
線分描画命令群をレジスタ5に設定する。
Since m=1, the marker conversion processing means 3 performs the process of step S19. In step S19, the marker conversion processing means 3 converts the markers M, , MIM3 set in the work area to t! A group of line segment drawing commands required for < is set in the register 5.

従って、レジスタ5に設定された線分描画命令群によっ
て、線分の長さが基本マーカーM0を構成する線分の2
倍で、太さが3倍のマーカーを描くことができる。
Therefore, according to the line segment drawing command group set in register 5, the length of the line segment is set to 2 of the line segment constituting the basic marker M0.
You can draw a marker that is 3 times thicker.

次に、基本マーカーの4倍の大きさを有するマーカーを
描く場合の動作を説明する。
Next, the operation when drawing a marker four times the size of the basic marker will be explained.

この場合、描こうとするマーカーの大きさが基本マーカ
ーの大きさの4倍であるので、ステップSll、  3
12の処理を行なうことにより、n=2゜m=5が求め
られる。
In this case, the size of the marker to be drawn is four times the size of the basic marker, so step Sll, 3
By performing the processing in step 12, n=2°m=5 is obtained.

次に、マーカー変換処理手段3は線分の太さが第5図t
alに示す基本マーカーM0を構成する線分の太さと同
一で、線分の長さが基本マーカーM。
Next, the marker conversion processing means 3 determines the thickness of the line segment as shown in FIG.
The basic marker M has the same thickness as the line segment constituting the basic marker M0 shown in al, and the length of the line segment.

の4倍の長さを有する同図Telに示すマーカーMl。The marker M1 shown in Tel in the same figure has a length four times that of the marker M1.

を描くために必要となる装置依存の線分描画命令群を作
成し、ワーク領域に設定する(ステップ513)。
A device-dependent line segment drawing command group necessary for drawing is created and set in the work area (step 513).

ステップS13の処理が終了すると、マーカー変換処理
手段3は、m=5であるので、ステップS16の処理を
行ない、第5図(C)に示したマーカーMl!を描くた
めに必要となる装置依存の線分描画命令群を作成してワ
ーク領域に設定し、次いで、ステップ318の処理を行
ない、m=4とする0m=4となることにより、マーカ
ー変換処理手段3は、ステップ317の処理を行ない、
同図(C)に示したマ−カーMl!を描くために必要と
なる線分描画命令群を作成してワーク領域に設定する。
When the process of step S13 is completed, since m=5, the marker conversion processing means 3 performs the process of step S16, and the marker Ml shown in FIG. 5(C)! Create a device-dependent line segment drawing command group necessary for drawing and set it in the work area, and then perform the process of step 318 to set m=4. By setting 0m=4, marker conversion processing is performed. Means 3 performs the process of step 317,
Marker Ml shown in the same figure (C)! Create a group of line segment drawing commands needed to draw and set them in the work area.

以下、マーカー変換処理手段3はステップ316.  
SITの処理を交互に行ない、同図(C)に示したマー
カーM14゜MIsを描くために必要となる装置依存の
線分描画命令群を作成し、ワーク領域に設定する。そし
て、マーカーM1Sを描くために必要となる装置依存の
線分描画命令群を作成すると、ステップ318の処理に
よりm−1となるので、マーカー変換処理手段3はワー
ク領域に設定されているマーカーM、、。
Thereafter, the marker conversion processing means 3 performs step 316.
SIT processing is performed alternately to create a device-dependent line segment drawing command group necessary for drawing the marker M14° MIs shown in FIG. Then, when a device-dependent line segment drawing command group necessary for drawing the marker M1S is created, it becomes m-1 by the process of step 318, so the marker conversion processing means 3 converts the marker M set in the work area. ,,.

MIs、 M+s+ tJBa+ MIsを描くために
必要となる装置依存の線分描画命令群をレジスタ5に設
定する。
A device-dependent line segment drawing command group required to draw MIs, M+s+ tJBa+ MIs is set in register 5.

従って、レジスタ5に設定された線分描画命令群によっ
て、線分の長さが基本マーカーを構成する線分の4倍で
、太さが5倍のマーカーを描くことができる。
Therefore, by using the line segment drawing command set in the register 5, it is possible to draw a marker whose length is four times as long as that of the line constituting the basic marker and whose thickness is five times as thick.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、マーカーの大きさを示
すサイズ情報に基づいて描くべきマーカーを構成する線
分の太さを、基本マーカーを構成する線分の何本骨の太
さにするのかを決定すると共に、線分の太さが決定した
太さになるまで、線分の太さが基本マーカーの太さと同
一で、線分の長さがサイズ情報によって指定された長さ
を有するマーカーを、基本マーカーを構成する線分の太
さずつ、所定方向に平行移動させた際の各位置に於ける
マーカーを描くために必要となる線分描画命令群を作成
するマーカー変換処理手段を備えているものであるから
、図形表示装置に表示するマーカーの大きさに比例的に
マーカーを構成する線分の太さを変えることができ、従
って、本発明によれば、マーカーの位置明示効果を高い
ものとすることができる利点がある。
As explained above, the present invention sets the thickness of the line segment constituting the marker to be drawn based on the size information indicating the size of the marker to the thickness of the number of bones of the line constituting the basic marker. and the thickness of the line segment is the same as the thickness of the base marker, and the length of the line segment has the length specified by the size information, until the thickness of the line segment is the determined thickness. Marker conversion processing means for creating a group of line segment drawing commands necessary for drawing a marker at each position when the marker is translated in a predetermined direction by the thickness of the line segment constituting the basic marker. Therefore, according to the present invention, the thickness of the line segment forming the marker can be changed in proportion to the size of the marker displayed on the graphic display device. It has the advantage of being able to increase the

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

第1図は本発明の実施例のブロック図、第2図は変換処
理手段2の処理例を示す流れ図、第3図はマーカー変換
処理手段3の処理例を示す流れ図、 第4図は記憶手段1にマーカーサイズ命令、マーカ一種
別命令、マーカーサイズ命令が格納された状態と各命令
の形式を示す図及び、 第5図はマーカー変換処理手段3の動作説明図である。 図に於いて、1・・・記憶手段、2・・・変換処理手段
、3・・・マーカー変換処理手段、4・・・図形出力装
置、5・・・レジスタ。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a flowchart showing a processing example of the conversion processing means 2, FIG. 3 is a flowchart showing a processing example of the marker conversion processing means 3, and FIG. 4 is a storage means. 1 is a diagram showing a state in which marker size commands, marker type commands, and marker size commands are stored and the format of each command, and FIG. 5 is an explanatory diagram of the operation of the marker conversion processing means 3. In the figure, 1: storage means, 2: conversion processing means, 3: marker conversion processing means, 4: graphic output device, 5: register.

Claims (1)

【特許請求の範囲】 装置独立な図形描画制御命令列中の線分によってマーカ
ーを描くマーカー描画用制御命令を装置依存の線分によ
ってマーカーを描くマーカー描画用制御命令に変換する
方式に於いて、 変換すべき装置独立な図形描画用制御命令列が格納され
る記憶手段と、 該記憶手段に格納された図形描画用制御命令列を装置依
存の図形描画用制御命令列に変換する変換処理手段と、 前記変換処理手段から呼出され、装置独立なマーカー描
画用制御命令を装置依存のマーカー描画用制御命令に変
換するマーカー変換処理手段と、前記変換処理手段で変
換された装置依存の図形描画用制御命令列を図形として
出力する図形出力装置とを含み、 前記変換処理手段はマーカー描画用制御命令を検出する
ことにより、前記マーカー変換処理手段を呼出し、該マ
ーカー描画用制御命令によって描かれるマーカーの大き
さを示すサイズ情報を前記マーカー変換処理手段に渡し
、 前記マーカー変換処理手段は前記変換手段から呼出され
ることにより、前記サイズ情報に基づいて前記マーカー
描画用制御命令によって描画することが指示されたマー
カーを構成する線分の太さを基本マーカーを構成する線
分の太さの何本分の太さにするのかを決定すると共に、
線分の太さが前記基本マーカーを構成する線分の太さと
同一で、線分の長さが前記サイズ情報によって指示され
た長さを有するマーカーを描くために必要となる線分描
画命令群及び該線分描画命令群によって描かれるマーカ
ーを前記基本マーカーを構成する線分の太さずつ、線分
の太さが前記決定した太さになるまで所定方向に平行移
動させた際の各位置に於けるマーカーを描くために必要
となる線分描画命令群を作成して前記変換処理手段に装
置依存のマーカー描画用制御命令群として渡すことを特
徴とする図形マーカーの変換方式。
[Scope of Claims] In a method for converting a marker drawing control command for drawing a marker using a line segment in a device-independent figure drawing control command sequence into a marker drawing control command for drawing a marker using a device-dependent line segment, a storage means for storing a device-independent graphic drawing control command sequence to be converted; a conversion processing means for converting the graphic drawing control command sequence stored in the storage means into a device-dependent graphic drawing control command sequence; , marker conversion processing means that is called by the conversion processing means and converts a device-independent marker drawing control command into a device-dependent marker drawing control command; and a device-dependent figure drawing control converted by the conversion processing means. a graphic output device that outputs a command sequence as a graphic, and the conversion processing means calls the marker conversion processing means by detecting a marker drawing control command, and changes the size of the marker drawn by the marker drawing control command. Size information indicating the size of the marker is passed to the marker conversion processing means, and the marker conversion processing means is called by the conversion means and instructed to draw by the marker drawing control command based on the size information. In addition to determining how many line segments that make up the marker should be as thick as the basic marker,
A group of line segment drawing commands necessary to draw a marker whose line segment thickness is the same as that of the line segment constituting the basic marker and whose line segment length is specified by the size information. and each position when the marker drawn by the group of line segment drawing commands is translated in a predetermined direction by the thickness of the line segment constituting the basic marker until the thickness of the line segment reaches the determined thickness. 1. A graphic marker conversion method, characterized in that a group of line segment drawing commands necessary for drawing a marker in a computer is created and passed to the conversion processing means as a group of device-dependent marker drawing control commands.
JP62309249A 1987-12-07 1987-12-07 Conversion system for graphic marker Pending JPH01149091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62309249A JPH01149091A (en) 1987-12-07 1987-12-07 Conversion system for graphic marker

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62309249A JPH01149091A (en) 1987-12-07 1987-12-07 Conversion system for graphic marker

Publications (1)

Publication Number Publication Date
JPH01149091A true JPH01149091A (en) 1989-06-12

Family

ID=17990726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62309249A Pending JPH01149091A (en) 1987-12-07 1987-12-07 Conversion system for graphic marker

Country Status (1)

Country Link
JP (1) JPH01149091A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010109897A (en) * 2008-10-31 2010-05-13 Brother Ind Ltd Image processing apparatus and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010109897A (en) * 2008-10-31 2010-05-13 Brother Ind Ltd Image processing apparatus and program
JP4666054B2 (en) * 2008-10-31 2011-04-06 ブラザー工業株式会社 Image processing apparatus and image processing program
US8358435B2 (en) 2008-10-31 2013-01-22 Brother Kogyo Kabushiki Kaisha Image processing device and recording medium containing program therefor

Similar Documents

Publication Publication Date Title
JPS6355098B2 (en)
JPH01149091A (en) Conversion system for graphic marker
JPH08212361A (en) Device and method for editing graphic
JPH10187679A (en) Table processor and storage medium
JP2937508B2 (en) Bitmap expansion method
JP2795047B2 (en) Analysis input data creation processing device
JP2561000B2 (en) String output method
JPS6355097B2 (en)
JPH0643836Y2 (en) Character output device
JPH02166497A (en) Conversion system for graphic segment drawn character
JPS58154885A (en) Character pattern generator
JPS6368892A (en) Output display system for information processing system
JPH0689283A (en) Character input correcting machine
JPH03246595A (en) Character pattern generating device
JPS63191191A (en) Crt display device with automatic cyclic graphic updating display function
JPH01156881A (en) Plotting method for stroke character
JPH02239956A (en) Printer control system
JPH02148372A (en) System for converting segment having width
JPH0797371B2 (en) Character data storage
JPH0854996A (en) Outputting method for mixed numerical/character data to crt of process computer
JPH03283975A (en) Copying machine
JPS58221439A (en) Output device of information
JPS6175484A (en) Method and device for graphic form input
JPS62191982A (en) Graph output control system
JPH05265817A (en) Data registering system