GINO Graphics Suite - GINO v9.0  

gCGMInterpreter

Syntax

[C/C++:]
void gCGMInterpreter(int code, GFILE *fp, int nseg, int mode, int errlev);
[F90:]
subroutine gCGMInterpreter(code,unit,nseg,mode,errlev)
integer, intent(in) :: code,unit,nseg,mode,errlev

Arguments

code
CGM encoding type

= GCGMCHAR, Character encoding
= GCGMBINARY, Binary encoding
fp
GINO-C file pointer

unit
Fortran 90 file unit

nseg
Picture segment number
(reserved for future use)

mode
Interpretation mode

= GABSOLUTE, Metric metafiles drawn the same size that they were generated
= GMAPPED, Abstract and Metric metafiles scaled to fit the current window limits
= GTRANSFORMED, Same as GABSOLUTE but subject to current transformation
errlev
Error checking level

= GNO, No error checking
= GFAST, Fast error checking
= GFULL, Full error checking

Description

The routine gCGMInterpreter() interprets a complete CGM metafile. The metafile may be either character or binary encoded but the interpreter must be informed of which through the code argument.

The metafile should be opened prior to calling this routine using the function gFopen(), with the file pointer or unit number passed as appropriate.

Abstract metafiles are drawn such that one VDC unit = one GINO picture unit (in GABSOLUTE and GTRANSFORMED modes).

The routine gCGMInterpreter() may alter the current state of GINO in that the colour table may be changed within a metafile, but all line and character attributes, window and transformation states are restored at the end of a metafile.

See Also

gCGMInterpreter Usage
gFopen