ISO/IEC 7942-2:1997
(Main)Information technology — Computer graphics and image processing — Graphical Kernel System (GKS) — Part 2: NDC metafile
Information technology — Computer graphics and image processing — Graphical Kernel System (GKS) — Part 2: NDC metafile
Technologies de l'information — Infographie et traitement d'image — Système graphique Kernel (GKS) — Partie 2: Métafichier NDC
General Information
Relations
Standards Content (Sample)
INTERNATIONAL ISO/IEC
7942-2
STANDARD
First edition
1997-09-01
Information technology - Computer
graphics and image processing -
Graphical Kernel System (GKS) -
Part 2:
NDC metafile
Technologies de /‘information -
lnfographie et traitement d’image -
Systeme graphique Kernel (GKS) -
Parfie 2: M6tafichier NDC
Reference number
ISOAEC 7942-2: 1997(E)
---------------------- Page: 1 ----------------------
ISO/IEC 7942-2: 1997(E)
Contents
V
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Foreword . . . . . . . . . . . . . . . . . . . .
vi
......................................................................................................
Introduction
1
......................................................................................................................
1 Scope
2
.............................................................................................
2 Normative references
3
............................................................................................................
3 Definitions.
4
.................................................................................................................
4 Concepts
................................................... 4
4.1 The structure of a GKS-94 NDC metafile
4
........................................................................................
4.2 Metafile elements
4
.......................................................................................
4.3 Delimiter elements
4
........................................................................
4.4 Metafile descriptor elements
4
...............................................................................
4.4.1 Elements used
.................................................................... 5
4.4.2 Functional capability
5
4.4.3 NDC-SET .
6
.........................................................................................
4.5 Control elements
6
.......................................................................
4.6 Graphical primitive elements
7
.......................................................................................
4.7 Attribute elements
8
....................................................................
4.8 Application structure elements
9
.............................................................................................
4.9 Metafile states
11
................................................................
5 Abstract specification of new elements
..................................................... 11
5.1 Data type definitions and abbreviations
11
.....................................................................................
5.2 Delimiter elements
11
......................................................................
5.3 Metafile descriptor elements
11
.......................................................................................
5.4 Control elements
12
.....................................................................
5.5 Graphical primitive elements
12
.....................................................................................
5.6 Attribute elements
13
.......................................................................................
5.7 Metafile defaults
14
......................................................
6 Mapping from NDC picture to NDC metafile
14
6.1 Introduction .
14
......................................................................................
6.2 Output primitives
14
..................................................................
6.2.1 SET OF POLYLINE
14
...........................................................................
6.2.2 SET OF NURB
........................................................ 14
6.2.3 SET OF CONIC SECTION
15
.........................................................................
6.2.4 POLYMARKER
0 ISO/IEC 1997
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or
utilized in any form or by any means, electronic or mechanical, including photocopying and micro-
film, without permission in writing from the publisher.
l CH- 1211 Geneve 20 l Switzerland
ISO/IEC Copyright Office l Case postale 56
Printed in Switzerland
---------------------- Page: 2 ----------------------
ISO/IEC 7942-2: 1997(E)
0 ISO/IEC
15
..................................................................
6.2.5 SET OF FILL AREA
15
....................................................
6.2.6 SET OF ELLIPTIC SECTOR
15
.................................................
6.2.7 SET OF ELLIPTIC SEGMENT
16
...........................................................
6.2.8 SET OF ELLIPTIC DISC
16
..........................................................
6.2.9 SET OF CLOSED NURB
16
. . .
6.2.10 TEXT
16
6.2.11 CELL ARRAY .
16
6.2.12 DESIGN PRIMITIVE .
............................. 18
6.2.13 GENERALIZED DRAWING PRIMITIVE
18
... .....................................................................................
6.3 Output attributes
18
6.3.1 SCISSOR SET .
................... .19
6.3.2 TEXT UP VECTOR and TEXT SKEW ANGLE.
19
6.3.3 CHARACTER FONT AND PRECISION .
19
6.3.4 COLOUR SPECIFIER .
21
.......................................
7 The Character Encoding of the GKS-94 NDC Metafile
21
..............................................................................
7.1 Notational conventions
21
.....................................................................
7.2 Method of encoding opcodes
21
................................................................................
7.2.1 Introduction
21
...............................................................................
7.2.2 Opcode assignments
22
................................................................
7.3 Method of encoding parameters
22
................................................................
7.4 Representation of new elements
22
................................................................................
7.4.1 Introduction
22
......................................................................
7.4.2 Delimiter elements
22
.......................................................
7.4.3 Metafile descriptor elements
22
.........................................................................
7.4.4 Control elements
23
......................................................
7.4.5 Graphical primitive elements
24
.......................................................................
7.4.6 Attribute elements
24
...................................................
7.4.7 Application structure elements
27
...........................................
8 The Binary Encoding of the GKS-94 NDC Metafile
27
8.1 Overall structure . . .
27
8.2 Primitive data forms .
27
...............................................
8.3 Representation of abstract parameter types
27
.................................................................
8.4 Representation of each element
27
8.4.1 Introduction .
27
......................................................................
8.4.2 Delimiter elements
27
.......................................................
8.4.3 Metafile descriptor elements
28
8.4.4 Control elements .
...................................................... 28
8.4.5 Graphical primitive elements
29
8.4.6 Attribute elements .
30
8.4.7 Structure attribute elements .
..................................... 32
9 The Clear Text Encoding of the GKS-94 NDC Metafile
32
. . . . . . . . . . . . . . . . . . . . .*.
9.1 Notational conventions
32
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.2 Encoding parameter types
32
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.3 Forming names
32
9.3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
9.3.2 Words deleted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
9.3.3 Words used unabbreviated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
9.3.4 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
9.3.5 The derived names of new elements
iii
---------------------- Page: 3 ----------------------
0 ISO/IEC
ISO/IEC 7942-2: 1997(E)
9.4 Encoding the NDC Metafile elements . 33
9.4.1 Introduction . 33
9.4.2 Encoding delimiter elements . 33
....................................... 33
9.4.3 Encoding metafile descriptor elements
......................................................... 33
9.4.4 Encoding control elements
...................................... 33
9.4.5 Encoding graphical primitive elements
34
9.4.6 Encoding attribute elements .
............................... 34
9.4.7 Encoding of application structure elements
37
................................................................................................
A Formal grammar.
37
..............................................................................................
A.1 Introduction
37
..................................................................................................
A.2 Notation.
37
.....................................................................................
A.3 Detailed grammar
37
A.3.1 Metafile structure .
...................................................... 37
A.3.2 Metafile descriptor elements
........................................................ 38
A.3.3 Picture descriptor elements
38
A.3.4 Control elements .
39
A.3.5 Graphical elements .
44
......................................................................
A.3.6 Attribute elements
49
......................................................................
A.3.7 Terminal symbols
54
..................................................................................................
B New element list
54
..............................................................................................
B.l Introduction
54
....................................................................................
B.2 Delimiter elements
54
.....................................................................
B.3 Metafile descriptor elements
54
......................................................................................
B.4 Control elements
54
....................................................................
B.5 Graphical primitive elements
54
.....................................................................................
B.6 Attribute elements
iv
---------------------- Page: 4 ----------------------
@ ISO/IEC
ISO/IEC 7942-2: 1997(E)
Foreword
IS0 (the International Organization for Standardization) and IEC (the International Electrotechnical Commis-
sion) form the specialized system for worldwide standardization.
National bodies that are members of IS0 or
IEC participate in the development of International Standards through technical committees established by the
respective organization to deal with particular fields of technical activity. IS0 and IEC technical committees
collaborate in fields of mutual interest. Other international organizations, governmental and non-
governmental, in liaison with IS0 and IEC, also take part in the work.
In the field of information technology, IS0 and IEC have established a joint technical committee, ISO/IEC
JTCl. Draft International Standards adopted by the joint technical committee are circulated to national bodies
for voting. Publication as an International Standard requires approval by at least 75 % of the national bodies
casting a vote.
International Standard ISO/IEC 7942-2 was prepared by Joint Technical Committee ISO/IEC JTCl, Informa-
tion technology, Subcommittee SC24, Computer graphics and image processing.
ISO/IEC 7942 consists of the following parts, under the general title Information technology - Computer
graphics and image processing - Graphical Kernel System (GKS) :
Part I: Functional description
Part 2: NDC metaBle
Part 3: Audit trail
Part 4: Picture part archive
Annexes A and B form an integral part of this part of ISOLIEC 7942.
---------------------- Page: 5 ----------------------
0 ISO/IEC
ISO/IEC 7942-2: 1997(E)
Introduction
The NDC metafile provides a file format and encodings suitable for the storage and retrieval of picture infor-
mation. The file format consists of a set of elements that can be used to describe pictures in a way that is com-
patible between systems of different architectures and devices of differing capabilities and design, This part of
ISO/IEC 7942 extends the provisions of ISO/IEC 8632: 1992/Amd.2: 1995.
vi
---------------------- Page: 6 ----------------------
ISO/IEC 7942-2: 1997(E)
INTERNATIONAL STANDARD OISOKEC
Information technology - Computer graphics and image processing -
Graphical Kernel System (GKS) - Part 2: NDC metafile
1 Scope
This part of ISO/IEC 7942 provides a file format and encodings for the storage and retrieval of GKS-94 Nor-
malized Device Coordinate (NDC) pictures. It is an extension of the Computer Graphics Metafile, Version 4
defined by ISO/IEC 8632: 1992/Amd.2: 1995 (all parts).
---------------------- Page: 7 ----------------------
ISO/IEC 7942=2:1997(E) OISOIIEC
2 Normative references
The following standards contain provisions which, through reference in this text, constitute provisions of this
part of ISO/IEC 7942. At the time of publication, the editions indicated were valid. All standards are subject to
revision, and parties to agreements based on this part of ISO/IEC 7942 are encouraged to investigate the possi-
bility of applying the most recent editions of the standards indicated below. Members of IEC and IS0 maintain
registers of currently valid International Standards.
Computer graphics and image processing - Graphical Kernel
ISO/IEC 7942- 1: 1994, Information technology -
System (GKS) - Part 1: Functional description.
ISOAEC 8632: 1992lAmd.2: 1995, Information technology - Computer graphics - Metafile for transfer and
storage of picture description information (all parts).
2
---------------------- Page: 8 ----------------------
ISOiIEC ‘7942-2: 1997(E)
0 ISO/IEC
3 Definitions
For the purposes of this part of ISO/IEC 7942, the definitions given in ISO/IEC 7942-l and ISO/IEC 8632-
UAmd.2 apply.
---------------------- Page: 9 ----------------------
OISO/IEC
ISO/IEC 7942-2: 1997(E)
4 Concepts
4.1 The structure of a GKS-94 NDC metafile
The structure of a GKS-94 NIX Metafile follows the Computer Graphics Metafile (CGM) standard (ISO/IEC
8632-l : 1992). It is shown in figure 1. MF is used as an abbreviation for METAFILE.
1 BEGIN NDC MF ( MD 1
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.