メインコンテンツまでスキップ

IV. レベル U における PIGCF の要素

D. レベル U における PIGCF の要素​

レベル U の項目は、PIGCF ファイルが GKSM メタファイル仕様に適合するように、GKSM のユーザ項目要素として符号化される。したがって PIGCF ファイルは、全体として GKSM メタファイルとなる。書式の規則は GKSM 仕様と同じものを使う。これらの規則に不慣れな読者は、付録の冒頭を読むこと。次の項目は第二の更新グループに属する。オブジェクト定義の 2 項目、オブジェクト再定義の 2 項目、オブジェクト・インスタンス化の 2 項目、正規化変換の 2 項目、SELECT COMPONENT、RECALL LIBRARY である。残りの項目は第一の更新グループに属する。

オブジェクト定義のための項目​

BEGIN DEFINITION

| 'GKSM 120' | L |

Indicates beginning of object definition sequence

END DEFINITION

| 'GKSM 121' | L | I |

Indicates end of object definition sequence. I(Nc): object
identifier ( N preceding c, i, r means an arbitrary number
of characters, integers, or reals.) Objects defined
interactively are made visible on the screen; i.e. they are
automatically instantiated. If only the definition is to be
kept but not the image, a DISAPPEAR item must follow.

BEGIN REDEFINITION

| 'GKSM 122' | L | I |

Indicates beginning of object redefinition sequence
I(Nc): object identifier

END REDEFINITION

| 'GKSM 123' | L |

Indicates end of object redefinition sequence

オブジェクトのインスタンス化のための項目​

BEGIN INSTANTIATION

| 'GKSM 124' | L | I |

Indicates beginning of object instantiation sequence
I(Nc): Object identifier

END INSTANTIATION

| 'GKSM 125' | L |

Indicates end of object instantiation sequence

オブジェクト操作のための項目​

TRANSFORM OBJECT

| 'GKSM 126' | L | C | I | M |

Apply transformation M to object I
C: number of characters in identifier
I(Nc): object id
M(6r): upper and center rows of a 3x3 matrix representing
a 2D homogeneous transformation [12].
M 11 M 12 M 13 M 21 M 22 M 23

DELETE OBJECT

| 'GKSM 127' | L | I |

I(Nc): object identifier

DISPLAY OBJECT

| 'GKSM 128' | L | I |

Turn on visibility of object I
I(Nc): object identifier

DISAPPEAR OBJECT

| 'GKSM 129' | L | I |

Turn off visibility of object I
I(Nc): object identifier

EXPOSE OBJECT

| 'GKSM 130' | L | I |

Redisplay object I on top of any overlapping objects
I(c): object identifier

HIDE OBJECT

| 'GKSM 131' | L | I |

Redisplay object I behind any overlapping objects
I(c): object identifier

SELECT COMPONENT

| 'GKSM 132' | L | I | P |

Select component P of object I
I(c): object identifier
P(i): pick id of component
This is used to select a group of output primitives
identified by P in a segment associated with I.

ERASE COMPONENT

| 'GKSM 133' | L | I | P |

Erase component P of object I
I(c): object identifier
P(i): pick id of component

This erases a group of output primitives identified by P in
a segment associated with I. This element can be used only
within a REDEFINE OBJECT sequence.

正規化変換のための項目​

SET WINDOW

| 'GKSM 134' | L | W |

Define boundaries of world window for normalization
transformation.
W(4r): limits of world window (XMIN, XMAX, YMIN, YMAX )

SET VIEWPORT

| 'GKSM 135' | L | V |

Define boundaries of NDC viewport for normalization
transformation.
V(4r): limits of NDC viewport (XMIN, XMAX, YMIN, YMAX )

その他の操作のための項目​

ABORT

| 'GKSM 136' | L |

Abort ongoing operation transmitted in PIGCF stream. This
provides the means to abort unwanted or erroneous
operations. Only the innermost operation of a nested
sequence is aborted; successive aborts can be used to get
out of several levels of operation nesting.

POINTER TRACKING

| 'GKSM 137' | L | T | P |

Update graphical pointer position to P
T(i): 0 causes only cursor to be moved
1 causes cursor movement to be traced with
a line
P(p): a point sampled from graphical pointer
movement trace

RUBBER BAND

| 'GKSM 138' | L | T | P |

Echo a rubber band of type T with given reference and
feedback points. The first occurrence of this item in a
sequence carries the coordinates of the echo reference
point. Subsequent occurrences carry updates to a pointer
position indicating an echo feedback point.

T(i): echo type
( 0 echo reference point;
> 0 echo feedback:
1 = line,
2 = rectangle,
3 = circle )
P(r): echo reference point (T = 0),
or echo feedback point (T > 0)

The reference and feedback points are:
T = 1 - reference is one end of line, feedback is
other end.
T = 2 - reference is one corner of rectangle, feedback
is opposite corner.
T = 3 - reference is center of circle, feedback is
perimeter point.

RECALL LIBRARY

| 'GKSM 139' | L | F |

Recall graphical library in file F
F(i): name of file containing library

The graphical pictures in F and all their components become
available for use during the communication session. The
pictures are assumed to be recorded with the PIGCF, and
their components have to be displayed with DISPLAY OBJECT
elements or similar actions so that the pictures become
visible.