| United States-English |
|
|
|
![]() |
HP-UX Starbase Device Drivers Manual - Vol2: HP 9000 Series 700 Computers > Chapter 5 Computer Graphics Metafile Introduction |
|
This section describes the CGM driver, which produces an ANSI/ISO standard Computer Graphics Metafile (CGM). The CGM is a metafile for capturing and storing device independent picture descriptions. It may contain multiple pictures. For further details and examples about the CGM driver, you may refer to the Starbase Graphics Techniques manual. There also exists a CGM interpreter that reads a CGM and outputs to graphics devices. See cgm_to_starbase(3g) in the Starbase Reference. For an overview of CGM, see the CGM chapter of the Starbase Graphics Techniques. The CGM standard defines nineteen primitives (lines, markers, text, circles, etc.) and thirty-five primitive attributes (text color, line pattern, interior style, etc.) for describing the contents of pictures. The CGM standard describes these capabilities in an abstract manner and defines three methods of encoding the elements. The hpcgm device driver supports the following three encoding methods (see also “Parameters for gescape ” CGMESC_ENCODING later in this chapter).
More information on CGM may be found in the ANSI X3.122-1986 and ISO 8632/1-4. The CGM defines elements for varying the precisions, types, and modes of data in a metafile. The hpcgm driver encodes coordinate data as type integer, and allows selection of low or high precision (16 bits or 32 bits per coordinate) See “Parameters for gescape ” CGMESC_VDC_PREC later in this driver). The CGM allows such things as marker size (as well as line width and edge width) to be expressed in one of two modes: scaled or absolute. Absolute mode means that size (width) is measured in coordinate units. Scaled mode means that the given size is a scale factor to be applied to the nominal marker size of the device upon which the CGM is displayed. CGM only allows one mode per picture. The hpcgm driver uses scaled mode. Any absolute sizes received from Starbase are converted to a scale factor. The CGM standard also allows color to be selected either by index into a table (and provides a color table definition element) or by an RGB (Red, Green, Blue) triple. The hpcgm driver maps all Starbase color requests into RGB triples. |
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||