README-cgm 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. By default, libplot's CGM driver emits version 3 CGM format, conforming to
  2. the WebCGM profile. The output may include the following CGM primitives.
  3. For their semantics, see "The CGM Handbook" (cited below). Many of the
  4. names should be self-explanatory.
  5. By setting the libplot parameter or environment variable CGM_MAX_VERSION to
  6. "2" or "1", you can produce a CGM file whose version is less than 3. This
  7. is often desirable, because many CGM viewers can handle only version 1 CGM
  8. files. If the CGM version is 2 or 1, the primitives below that are not
  9. allowed to appear in version 2 or 1 CGM files will be emulated using
  10. allowed primitives, or simply dropped (if appropriate). The table
  11. indicates which primitives may appear only in version 2 and higher,
  12. and 3 and higher.
  13. CGM Delimiter Elements:
  14. BEGMF
  15. BEGPIC
  16. BEGPICBODY
  17. ENDPIC
  18. ENDMF
  19. CGM Metafile Descriptor Elements:
  20. MFVERSION
  21. MFELEMLIST
  22. MFDESC
  23. VDCTYPE
  24. INTEGERPREC
  25. REALPREC
  26. COLRPREC
  27. COLRVALUEEXT
  28. FONTLIST
  29. CHARSETLIST
  30. CHARCODING
  31. FONTPROP (version 3 or higher)
  32. CGM Picture Descriptor Elements:
  33. SCALEMODE
  34. COLRMODE
  35. LINEWIDTHMODE
  36. EDGEWIDTHMODE
  37. MARKERSIZEMODE
  38. VDCEXT
  39. BACKCOLR
  40. LINEEDGETYPEDEF (version 3 or higher)
  41. CGM Control Elements:
  42. VDCINTEGERPREC
  43. MITRELIMIT (version 3 or higher)
  44. CGM Graphical Primitive Elements:
  45. LINE
  46. MARKER
  47. RESTRTEXT
  48. POLYGON
  49. RECT
  50. CIRCLE
  51. ARCCTR
  52. ELLIPSE
  53. ELLIPARC
  54. ARCCTRREV (version 2 or higher)
  55. POLYBEZIER (version 3 or higher)
  56. CGM Attribute Elements:
  57. LINETYPE
  58. LINEWIDTH
  59. LINECOLR
  60. MARKERTYPE
  61. MARKERSIZE
  62. MARKERCOLR
  63. TEXTFONTINDEX
  64. TEXTPREC
  65. TEXTCOLR
  66. CHARHEIGHT
  67. CHARORI
  68. TEXTALIGN
  69. CHARSETINDEX
  70. ALTCHARSETINDEX
  71. INTSTYLE
  72. FILLCOLR
  73. EDGETYPE
  74. EDGEWIDTH
  75. EDGECOLR
  76. EDGEVIS
  77. LINECAP (version 3 or higher)
  78. LINEJOIN (version 3 or higher)
  79. LINETYPEINITOFFSET (version 3 or higher)
  80. EDGECAP (version 3 or higher)
  81. EDGEJOIN (version 3 or higher)
  82. EDGETYPEINITOFFSET (version 3 or higher)
  83. RESTRTEXTTYPE (version 3 or higher)
  84. ----------------------------------------------------------------------
  85. References used when writing the CGM driver include:
  86. The WebCGM profile, available at http://www.w3.org/TR/REC-WebCGM as an
  87. official recommendation of the World Wide Web Consortium.
  88. "The CGM Handbook", L. R. Henderson and A. Mumford (Academic, 1992).
  89. "CGM and CGI", D. B. Arnold and P. R. Bono (Springer-Verlag, 1988).
  90. Sourcecode for cd-1.3, also called CD, cgmdraw 1.3, and CGM Draw 1.3, a
  91. freely available C function library for generating version-1 CGM files.
  92. cd-1.3 was developed at NIST (the U.S. National Institute for Standards
  93. and Technology) by G. Edward Johnson (formerly, lorax@nist.gov).
  94. However, it no longer seems to be available through NIST Web pages.
  95. Sourcecode for RALCGM, a free viewer for version-1 CGM files developed
  96. at Rutherford Appleton Laboratory in the U.K. Available at
  97. ftp://ftp.cc.rl.ac.uk/pub/graphics/ralcgm/unix/ .
  98. http://www.posc.org/Epicentre.2_2/GraphicsMetafile/SeismicExtensions/ .
  99. Contains a GIF image of the section from the CGM specification dealing
  100. with the format of SDR's (structured data records, used in specifying
  101. font properties in version-3 CGM files).
  102. http://www.nist.gov/itl/div897/ctg/cgm_form.htm .
  103. Sample CGM files, forming test suites, distributed by the US NIST
  104. (National Institute of Standards and Technology).