CGM仕様の実装状況

CGMの読み込み機能は、ISO/IEC 8632のCGM, W3CのWebCGM 2.0の仕様に基づいて作成されています。

要素実装・属性実装欄の凡例は以下のとおりです。

ISO/IEC 8632欄とWebCGM欄の数字はCGMのバージョンを表します。その他ISO/IEC 8632欄とWebCGM欄の凡例は以下のとおりです。

Delimiter

No. 要素 要素実装 属性 属性実装 備考 ISO/IEC 8632 WebCGM
Ver Ver
1 BEGIN METAFILE ○ metafile name ○ 1ファイルに複数のMETAFILEが存在する場合があるが、最初のMETAFILEのみを変換し、2つ目以降は無視する。metafile name はライブラリ参照で使用するが、本体のレンダリングでは使用しない。 1 ◎ 1 ◎
2 END METAFILE ○ 1 ◎ 1 ◎
3 BEGIN PICTURE ○ picture name ○ 1 ○ 1 ◎
4 BEGIN PICTURE BODY ○ 1 ○ 1 ◎
5 END PICTURE ○ 1 ○ 1 ◎
6 BEGIN SEGMENT × segment identifier × 2 ○ 1 ×
7 END SEGMENT × 2 ○ 1 ×
8 BEGIN FIGURE △ 図形要素の組み合わせにより、描画や塗りが正しく行われない場合がある。 2 ○ 1 ○
9 END FIGURE ○ 2 ○ 1 ○
10 BEGIN PROTECTION REGION △ region index ○ 図形要素の組み合わせにより領域の形状が正しくないことがある。 3 ○ 2 ○
11 END PROTECTION REGION ○ 3 ○ 2 ○
12 BEGIN COMPOUND LINE × 3 ○ 1 ○
13 END COMPOUND LINE × 3 ○ 1 ○
14 BEGIN COMPOUND TEXT PATH × 3 ○ 1 ○
15 END COMPOUND TEXT PATH × 3 ○ 1 ○
16 BEGIN TILE ARRAY △ position ○ TILEは矩形で出力される。平行四辺形が指定された場合でも矩形となる。 3 ○ 1 ○
cell path direction △
line progrssion direction △
number of tiles in path direction ○
number of tiles in line direction ○
number of cells/tile in path direction ○
number of cells/tile in line direction ○
cell size in path direction ○
cell size in line direction ○
image offset in path direction ○
image offset in line direction ○
image number of cells in path sirection ○
image number of cells in line direction ○
17 END TILE ARRAY ○ 3 ○ 1 ○
18 BEGIN APPLICATION STRUCTURE × application structure identifier × 4 ○ 1 ○
application structure type ×
inhetitance flag ×
19 BEGIN APPLICATION STRUCTURE BODY × 4 ○ 1 ○
20 END APPLICATION STRUCTURE × 4 ○ 1 ○
21 NOP ○ 1 ○ 1 ○

Metafile Descriptor

No. 要素 要素実装 属性 属性実装 備考 ISO/IEC 8632 WebCGM
Ver Ver
22 METAFILE VERSION ○ metafile version number ○ バージョン番号のチェックはするが、命令をバージョンによって管理することはしない。 1 ◎ 1 ◎
23 METAFILE DESCRIPTION ○ metafile description string × 1 ◎ 1 ◎
24 VDC TYPE ○ VDC TYPE ○ 1 ○ 1 ○
25 INTEGER PRECISION ○ integer precision ○ 1 ○ 1 ○
26 REAL PRECISION ○ form of representation for real value ○ 1 ○ 1 ○
field width for exponent or whole part ○
field width for fraction or frantion part ○
27 INDEX PRECISION ○ index precision ○ 1 ◎ 1 ◎
28 COLOUR PRECISION ○ colour precision ○ 1 ○ 1 ○
29 COLOUR INDEX PRECISION ○ index precision ○ 1 ○ 1 ○
30 MAXMUM COLOUR INDEX ○ maximum colour index that may be encountered in the model ○ 1 ○ 1 ○
31 COLOUR VALUE EXTENT △ minumum colour value ○ RGB 以外のカラーモードに対応していない。 1 ○ 1 ○
maximum colour value ○
scale and offset pair for first component ○
sacle and offset for second compornent ○
scale nad offset for third component ○
32 METAFILE ELEMENT LIST ○ number of elements specified ○ 1 ◎ 2 ◎
list of metafile elements in metafile ○
33 METAFILE DEFAULTS REPLACEMENT ○ parameter that itself contains metafile elements ○ 1 ○ 1 ○
34 FONT LIST △ font names ○ フォント名が8ビットコード以外の場合、正しく解釈されないことがある。 1 ○ 1 ○
35 CHARACTER SET LIST × CHARACTER SET TYPE × 1 ○ 1 ○
designation sequence tail ×
36 CHARACTER CODING ANNOUNCER ○ character coding announcer ○ 1 ○ 1 ◎
37 NAME PRECISION ○ name precision ○ 2 ○ 1 ×
38 MAXMUM VDC EXTENT ○ first coner ○ 2 ○ 1 ○
second coner ○
39 SEGMENT PRIORITY EXTENT × minimum segment priority value × 2 ○ 1 ×
maximum segment priority value ×
40 COLOUR MODEL △ colour model △ RGB 以外のカラーモードに対応していない。 3 ○ 1 ○
41 COLOUR CALIBRATION × calibration selection × 3 ○ 1 ×
reference white value X component ×
reference white value Y component ×
reference white value Z component ×
3x3 RGB calibration matrix ×
3x3 ABC transformation matrix ×
number of lookup table entries(=n) ×
2n red lookup table entries: R, R' ×
2n green lookup table entries: G, G' ×
2n blue lookup table entries: B, B' ×
number of grid locations (=m) ×
m CMYK grid locations ×
m XYZ grid locations, each being ×
42 FONT PROPERTIES × property indicator × 3 ○ 1 ○
priority ×
property value record ×
43 GLYPH MAPPING × character set index × 3 ○ 1 ×
basis set character set type ×
basis set designation sequence tail ×
octets per code (=m) ×
glyph source ×
glyph-code associations ×
44 SYMBOL LIBRARY LIST × n symbol library names × 3 × 1 ×
45 PICTURE DIRECTORY × location data type selector × 4 ○ 1 ×
list of 3-tuples ×

Picture Descriptor

No. 要素 要素実装 属性 属性実装 備考 ISO/IEC 8632 WebCGM
Ver Ver
46 SCALING MODE ○ scaling mode ○ 1 ○ 1 ○
metric scaling factor ○
47 COLOUR SELECTION MODE ○ colour selection mode ○ 1 ○ 1 ○
48 LINE WIDTH SPECIFICATION MODE ○ line width specification mode ○ 1 ○ 1 ○
49 MARKER SIZE SPECIFICATION MODE ○ marker size specification mode ○ 1 ○ 1 ○
50 EDGE WIDTH SPECIFICATION MODE ○ edge width specification mode ○ 1 ○ 1 ○
51 VDC EXTENT ○ first corner ○ 1 ○ 1 ○
second corner ○
52 BACKGROUND COLOUR ○ background colour ○ 1 ○ 1 ○
53 DEVICE VIEWPORT × first corner × 2 × 1 ×
second corner ×
54 DEVICE VIEWPORT SPECIFICATION MODE × VC specifier × 2 × 1 ×
metric scale factor ×
55 DEVICE VIEWPORT MAPPING × isotropy flag × 2 × 1 ×
horizontal alignment flag ×
vertical alignment flag ×
56 LINE REPRESENTATION ○ line bundle index ○ 範囲外またはアプリケーション定義のline typeはsolidで出力する。 2 ○ 1 ×
line type ○
line width ○
line colour ○
57 MARKER REPRESENTATION ○ marker bundle index ○ 範囲外またはアプリケーション定義のmarker typeのはasteriskで出力する。 2 ○ 1 ×
marker type ○
marker size ○
marker colour ○
58 TEXT REPRESENTATION △ text bundle index ○ RGB 以外のカラーモードに対応していない。italic と oblique に対応していない。 2 ○ 1 ×
text font index △
text precision ○
character spacing ○
character expansion factor ○
text colour △
59 FILL REPRESENTATION △ fill area bundle index ○ FIGURE 要素の組み合わせによっては塗りが正しく行われないことがある。RGB以外の色モードには対応していない。範囲外のinterior styleはsolidで出力する。範囲外のhatch indexはhorizontalで出力する。パターンの塗りでパターンサイズが正しくない場合がある。 2 ○ 1 ×
interior style ○
fill colour △
hatch index ○
pattern index △
60 EDGE REPRESENTATION △ edge bundle index ○ RGB 以外のカラーモードに対応していない。 2 ○ 1 ×
edge type ○
edge width ○
edge colour △
61 INTERIOR STYLE SPECIFICATION MODE × style specification mode × 3 ○ 1 ○
62 LINE AND EDGE TYPE DEFINITION △ line type △ 3 ○ 1 ○
dash cycle repeat length △
list of n dash elements △
63 HATCH STYLE DEFINITION △ hatch index △ 3 ○ 1 ○
style indicator △
hatch direction vectors specifier (x,y,x,y) △
duty cycle length △
number of hatch lines (=n) △
list of n gap widths △
list of n line types △
64 GEOMETRIC PATTERN DEFINITION × geometric pattern index × 3 ○ 1 ×
segment identifier ×
first corner point ×
second corner point ×
65 APPLICATION STRUCTURE DIRECTORY × location data type selector × 4 ○ 1 ×
list of pairs consisting ×

Control

No. 要素 要素実装 属性 属性実装 備考 ISO/IEC 8632 WebCGM
Ver Ver
66 VDC INTEGER PRECISION ○ VDC integer precision ○ 1 ○ 1 ○
67 VDC REAL PRECISION ○ form of representation for real values ○ 1 ○ 1 ○
field width for exponent or whole part ○
field width for fraction or fractional part ○
68 AUXILIARY COLOUR △ auxiliary colour △ RGB 以外のカラーモードに対応していない。 1 ○ 1 ○
69 TRANSPARENCY △ on-off indicator ○ CELL ARRAYで有効にならない。 1 ○ 1 ○
70 CLIP RECTANGLE ○ first corner ○ 1 ○ 1 ○
second corner ○
71 CLIP INDICATOR ○ clip indicator ○ 1 ○ 1 ○
72 LINE CLIPPING MODE △ clipping mode △ locus then shape モードが正しく処理されないことがある。 2 ○ 1 ×
73 MARKER CLIPPING MODE △ clipping mode △ locus then shape モードが正しく処理されないことがある。 2 ○ 1 ×
74 EDGE CLIPPING MODE △ clipping mode △ locus then shape モードが正しく処理されないことがある。 2 ○ 1 ×
75 NEW REGION ○ 2 ○ 1 ○
76 SAVE PRIMITIVE CONTEXT ○ context name ○ 2 ○ 1 ×
77 RESTORE PRIMITIVE CONTEXT ○ context name ○ 2 ○ 1 ×
78 PROTECTION REGION INDICATOR ○ region index ○ 3 ○ 1 ○
region indicator ○
79 GENERALIZED TEXT PATH MODE × text path mode × 3 ○ 1 ○
80 MITRE LIMIT ○ mitre limit ○ 3 ○ 1 ○
81 TRANSPARENT CELL COLOUR △ transparency indicator ○ RGB 以外のカラーモードに対応していない。 3 ○ 1 ○
transparent cell colour specifier △

Graphical Primitive

No. 要素 要素実装 属性 属性実装 備考 ISO/IEC 8632 WebCGM
Ver Ver
82 POLYLINE ○ n (X,Y) polyline vertices ○ 1 ○ 1 ○
83 DISJOINT POLYLINE ○ n (X,Y) line segment endpoints ○ 1 ○ 1 ○
84 POLYMARKER ○ n (X,Y) marker positions ○ 1 ○ 1 ○
85 TEXT ○ text position ○ 1 ○ 1 ○
final/not-final flag ○
text string ○
86 RESTRICTED TEXT ○ delta width ○ 1 ○ 1 ○
delta height ○
text position ○
final/not-final flag ○
text string ○
87 APPEND TEXT ○ final/not-final flag ○ 1 ○ 1 ○
text string ○
88 POLYGON ○ n (X,Y) polygon vertices ○ 1 ○ 1 ○
89 POLYGON SET ○ (X,Y) polygon vertex ○ 1 ○ 1 ○
edge out flag ○
90 CELL ARRAY △ corner point P △ CELL 形状が矩形のときのみに対応。CELL が平行四辺形として指定されたときも矩形で出力される。RGB 以外のカラーモードに対応していない。ランレングス形式で記述されたCELL ARRAY要素を正しく読み込みができない場合がある。 1 ○ 1 ○
corner point Q △
corner point R △
nx ○
ny ○
local colour precision ○
cell representation mode ○
array of cell colour values △
91 GENERALIZED DRAWING PRIMITIVE × GDP identifier × 1 × 1 ×
n, number of points in 'list of points ×
list of points ×
GDP data record ×
92 RECTANGLE ○ first corner ○ 1 ○ 1 ○
second corner ○
93 CIRCLE ○ centre of circle ○ 1 ○ 1 ○
radius of circle ○
94 CIRCULAR ARC 3 POINT ○ starting point ○ 1 ○ 1 ○
intermediate point ○
ending point ○
95 CIRCULAR ARC 3 POINT CLOSE ○ starting point ○ 1 ○ 1 ○
intermediate point ○
ending point ○
type of arc closure ○
96 CIRCULAR ARC CENTRE ○ centre of circle ○ 1 ○ 1 ○
delta X for start vector ○
delta Y for start vector ○
delta X for end vector ○
delta Y for end vector ○
radius of circle ○
97 CIRCULAR ARC CENTRE CLOSE ○ centre of circle ○ 1 ○ 1 ○
delta X for start vector ○
delta Y for start vector ○
delta X for end vector ○
delta Y for end vector ○
radius of circle ○
type of arc closure ○
98 ELLIPSE ○ centre of ellipse ○ 1 ○ 1 ○
endpoint of first conjugate diameter ○
endpoint of second conjugate diameter ○
99 ELLIPTICAL ARC ○ centre of ellipse ○ 1 ○ 1 ○
endpoint of first conjugate diameter ○
endpoint of second conjugate diameter ○
delta X for start vector ○
delta Y for start vector ○
delta X for end vector ○
delta Y for end vector ○
100 ELLIPTICAL ARC CLOSE ○ centre of ellipse ○ 1 ○ 1 ○
endpoint of first conjugate diameter ○
endpoint of second conjugate diameter ○
delta X for start vector ○
delta Y for start vector ○
delta X for end vector ○
delta Y for end vector ○
type of arc closure ○
101 CIRCULAR ARC CENTRE REVERSED ○ centre of circle ○ 2 ○ 1 ○
delta X for start vector ○
delta Y for start vector ○
delta X for end vector ○
delta Y for end vector ○
radius of circle ○
102 CONNECTING EDGE ○ 2 ○ 1 ○
103 HYPERBOLIC ARC × centre point × 3 ○ 1 ×
transverse radius end point ×
conjugate radius end point ×
start vector x component ×
start vector y component ×
end vector x component ×
end vector y component ×
104 PARABOLIC ARC × tangent intersection point × 3 ○ 1 ×
start point ×
end point ×
105 NON-UNIFORM B-SPLINE × spline order (=m) × 3 ○ 1 ○
number of control points (=n) ×
array of control points ×
list of knots, of length n+m ×
parameter start value ×
parameter end value ×
106 NON-UNIFORM RATIONAL B-SPLINE × spline order (=m) × 3 ○ 1 ○
number of control points (=n) ×
array of control points ×
list of knots, of length n+m ×
parameter start value ×
parameter end value ×
list of weights, of length n ×
107 POLYBEZIER ○ continuity indicator ○ 3 ○ 1 ○
list of point sequences ○
108 POLYSYMBOL × symbol index × 3 × 1 ×
n symbol position points ×
109 BITONAL TILE △ compression type △
Compression TypeSupported
0: null background ○
1: null foreground ○
2: T6 ○
3: T4 1-dimensional ×
4: T4 2-dimensional ×
5: bitmap (compressed) ○
6: run length △
7: baseline JPEG ○
8: LZW ×
9: PNG compression method 0 ×
3 ○ 1 ○
row padding indicator ○
cell background colour ○
cell foreground colour ○
method-specific parameters ○
compressed cell colour specifiers ○
110 TILE △ compression type △ BITONAL TILE と同じ。 3 ○ 1 ○
row padding indicator ○
cell colour precision ○
method-specific parameters ○
compressed cell colour specifiers ○

Attribute

No. 要素 要素実装 属性 属性実装 備考 ISO/IEC 8632 WebCGM
Ver Ver
111 LINE BUNDLE INDEX ○ line bundle index ○ 1 ○ 1 ×
112 LINE TYPE ○ line type ○ 1 ○ 1 ×
113 LINE WIDTH ○ line width ○ 1 ○ 1 ○
114 LINE COLOUR △ line colour △ RGB 以外のカラーモードに対応していない。 1 ○ 1 ○
115 MARKER BUNDLE INDEX ○ marker bundle index ○ 1 ○ 1 ×
116 MARKER TYPE ○ marker type ○ 1 ○ 1 ○
117 MARKER SIZE ○ marker size ○ 1 ○ 1 ○
118 MARKER COLOUR △ marker colour △ RGB 以外のカラーモードに対応していない。 1 ○ 1 ○
119 TEXT BUNDLE INDEX △ text bundle index ○ 文字幅が正しく処理されないことがある。 1 ○ 1 ×
120 TEXT FONT INDEX ○ text font index ○ 1 ○ 1 ○
121 TEXT PRECISION ○ text precision ○ 1 ○ 1 ○
122 CHARACTER EXPANSION FACTOR ○ character expansion factor ○ 1 ○ 1 ○
123 CHARACTER SPACING ○ additional inter-character space ○ 1 ○ 1 ○
124 TEXT COLOUR ○ text colour ○ 1 ○ 1 ○
125 CHARACTER HEIGHT ○ character height ○ 1 ○ 1 ○
126 CHARACTER ORIENTATION △ X character up component △ 文字を描画する領域が平行四辺形になる場合に未対応。 1 ○ 1 ○
Y character up component △
X character base component △
Y character base component △
127 TEXT PATH ○ text path ○ 1 ○ 1 ○
128 TEXT ALIGNMENT ○ horizontal alignment ○ 1 ○ 1 ○
vertical alignment ○
continuous horizontal alignment ○
continuous vertical alignment ○
129 CHARACTER SET INDEX × character set index × 1 ○ 1 ○
130 ALTERNATE CHARACTER SET INDEX × alternate character set index × 1 ○ 1 ○
131 FILL BUNDLE INDEX ○ fill bundle index ○ 1 ○ 1 ×
132 INTERIOR STYLE △ interior style △ interior style が geometric pattern、interpolated の場合に未対応。 1 ○ 1 ○
133 FILL COLOUR △ fill colour △ RGB 以外のカラーモードに対応していない。 1 ○ 1 ○
134 HATCH INDEX ○ hatch index ○ 1 ○ 1 ○
135 PATTERN INDEX ○ pattern index ○ 1 ○ 1 ○
136 EDGE BUNDLE INDEX ○ edge bundle index ○ 1 ○ 1 ×
137 EDGE TYPE ○ edge type ○ 1 ○ 1 ○
138 EDGE WIDTH ○ edge width ○ 1 ○ 1 ○
139 EDGE COLOUR △ edge colour △ RGB 以外のカラーモードに対応していない。 1 ○ 1 ○
140 EDGE VISIBILITY ○ edge visibility ○ 1 ○ 1 ○
141 FILL REFERENCE POINT ○ fill reference point ○ 1 ○ 1 ○
142 PATTERN TABLE ○ pattern table index ○ 1 ○ 1 ○
nx ○
ny ○
local colour precision ○
pattern definition ○
143 PATTERN SIZE △ pattern height vector, x component △ パターン形状が平行四辺形として指定されたときに対応していない。 1 ○ 1 ○
pattern height vector, y component △
pattern width vector, x component △
pattern width vector, y component △
144 COLOUR TABLE △ starting colour table index △ RGB 以外のカラーモードに対応していない。 1 ○ 1 ○
list of direct colour values ○
145 ASPECT SOURCE FLAGS ○ 18 parameter-pairs, corresponding to each attribute that may be bundled ○ 1 ○ 1 ×
146 PICK IDENTIFIR × pick identifier × 2 ○ 1 ×
147 LINE CAP △ line cap indicator △ LINE CAP 種別 projecting square、triangle に対応していない。 3 ○ 1 ○
dash cap indicator ×
148 LINE JOIN ○ line join indicator ○ 3 ○ 1 ○
149 LINE TYPE COTINUATION × continuation mode × 3 ○ 1 ○
150 LINE TYPE INITIAL OFFSET × line pattern offset × 3 ○ 1 ○
151 TEXT SCORE TYPE × list of score type × 3 ○ 1 ○
152 RESTRICTED TEXT TYPE ○ restriction type ○ 3 ○ 1 ○
153 INTERPOLATED INTERIOR × style × 3 ○ 1 ○
reference geometry ×
number of stages (=m) ×
array of m stage designators ×
array of k colour specifiers: k=3 for triangular, m+1 otherwise ×
154 EDGE CAP △ edge cap indicator △ EDGE CAP 種別 projecting square、triangle に対応していない。 3 ○ 1 ○
dash cap indicator ×
155 EDGE JOIN ○ edge join indicator ○ 3 ○ 1 ○
156 EDGE TYPE CONTINUATION × continuation mode × 3 ○ 1 ○
157 EDGE TYPE INITIAL OFFSET × edge pattern × 3 ○ 1 ○
158 SYMBOL LIBRARY INDEX × symbol library index × 3 × 1 ×
159 SYMBOL COLOUR × symbol colour × 3 × 1 ×
160 SYMBOL SIZE × scale indicator × 3 × 1 ×
symbol height ×
symbol width ×
161 SYMBOL ORIENTATION × up vector x component × 3 × 1 ×
up vector y component ×
base vector x component ×
base vector y component ×

Escape

No. 要素 要素実装 属性 属性実装 備考 ISO/IEC 8632 WebCGM
Ver Ver
162 ESCAPE × escape identifier × 1 ○ 1 ○
escape data record ×

External

No. 要素 要素実装 属性 属性実装 備考 ISO/IEC 8632 WebCGM
Ver Ver
163 MESSAGE × action-required flag × 1 ○ 1 ×
message string ×
164 APPLICATION DATA × identifier × 1 ○ 1 ×
application data record ×

Segment Control and Segment Attribute

No. 要素 要素実装 属性 属性実装 備考 ISO/IEC 8632 WebCGM
Ver Ver
165 COPY SEGMENT × segment identifier × 2 ○ 1 ×
transformation matrix ×
segment transformation application ×
166 INHERITANCE FILTER × list of attribute or group designators × 2 ○ 1 ×
setting ×
167 CLIP INHENTANCE × clip inheritance × 2 ○ 1 ×
168 SEGMENT TRANSFORMATION × segment identifier × 2 ○ 1 ×
transformation matrix ×
169 SEGMENT HIGHLIGHTING × segment identifier × 2 ○ 1 ×
highlighting ×
170 SEGMENT DISPLAY PRIORITY × segment identifier × 2 ○ 1 ×
segment display priority ×
171 SEGMENT PICK PRIORITY × segment identifier × 2 ○ 1 ×
segment pick priority ×

Application Structure Descriptor

No. 要素 要素実装 属性 属性実装 備考 ISO/IEC 8632 WebCGM
Ver Ver
172 APPLICATION STRUCTURE ATTRIBUTE × application structure attribute type × 4 ○ 1 ○
data record ×