跳到主要内容

附录 A:GKSM 元文件(第 4 部分)

E.8 工作站属性项​

POLYLINE REPRESENTATION

| 'GKSM 51' | L | I | LT | LW | CI |

I(i): polyline index
LT(i): linetype number
LW(r): linewidth scale factor
CI(i): polyline colour index

POLYMARKER REPRESENTATION

| 'GKSM 52' | L | I | MT | MS | CI |

I(i): polymarker index
MT(i): marker type
MS(r): marker size scale factor
CI(i): polymarker colour index

TEXT REPRESENTATION

| 'GKSM 53' | L | I | F | P | CEF | CS | CI |

I(i): text index
F(i): text font
P(i): text precision
(0 = STRING, 1 = CHAR, 2 = STROKE)
CEF(r): character expansion factor
CS(r): character spacing
CI(i): text colour index

FILL AREA REPRESENTATION

| 'GKSM 54' | L | I | S | SI | CI |

I(i): fill area index
S(i): fill area interior style
(0 = HOLLOW, 1 = SOLID, 2 = PATTERN, 3 = HATCH) SI(i): fill
area style index
CI(i): fill area colour index

PATTERN REPRESENTATION

| 'GKSM 55' | L | I | N | M | CT |

I(i): pattern index
N(i): number of columns in array*
M(i): number of rows in array
CT(MNi): table of colour indices stores row by row

{* The ANSI document reads "area" instead of "array".}

{One style for filling areas is with a pattern of color cells.
Such a pattern is defined by a pattern representation.}

COLOUR REPRESENTATION

| 'GKSM 56' | L | CI | RGB |

CI(i): colour index
RGB(3r): red, green, blue intensities

E.9 变换项​

CLIPPING RECTANGLE

| 'GKSM 61' | L | C |

C(4r): limits of clipping rectangle (XMIN, XMAX, YMIN, YMAX)

WORKSTATION WINDOW

| 'GKSM 71' | L | W |

W(4r): limits of workstation window (XMIN, XMAX, YMIN, YMAX)

{GKS includes a workstation transformation that maps a
rectangle of the NDC space (a workstation window) into a
rectangle of the device coordinate space (a workstation
viewport).}

WORKSTATION VIEWPORT

| 'GKSM 72' | L | V |

V(4r): limits of workstation viewport (XMIN, XMAX, YMIN, YMAX)

E.10 段操作项​

CREATE SEGMENT

| 'GKSM 81' | L | S |

S(i): segment name

CLOSE SEGMENT

| 'GKSM 82' | L |

indicates end of segment

RENAME SEGMENT

| 'GKSM 83' | L | SO | SN |

SO(i): old segment name
SN(i): new segment name

DELETE SEGMENT

| 'GKSM 84' | L | S |

S(i): segment name

E.11 段属性项​

SET SEGMENT TRANSFORMATION

| 'GKSM 91' | L | S | M |

S(i): segment name
M(6r): transformation matrix
upper and center rows of a 3x3 matrix representing
a 2D homogeneous transformation [9]
M 11 M 12 M 13 M 21 M 22 M 23

{This differs from the ANSI X3.124 Jan. 5 1984 document, in the
matrix elements indicated. We believe there is an error in such
document.}

SET VISIBILITY

| 'GKSM 92' | L | S | V |

S(i): segment name
V(i): visibility
(0 = VISIBLE, 1 = INVISIBLE)

SET HIGHLIGHTING

| 'GKSM 93' | L | S | H |

S(i): segment name
H(i): highlighting
(0 = NORMAL, 1 = HIGHLIGHTED)

SET SEGMENT PRIORITY

| 'GKSM 94' | L | S | P |

S(i): segment name
P(r): segment priority

SET DETECTABILITY

| 'GKSM 95' | L | S | D |

S(i): segment name
D(i): detectability
(0 = UNDETECTABLE, 1 = DETECTABLE)

E.12 用户项​

USER ITEM

| 'GKSMXXX' | L | D |

XXX > 100
D: user data (L bytes)

{The PIGCF level U items are encoded as GKSM USER ITEM elements
so that a PIGCF file will conform to the GKSM metafile
specification.}