PLplot  5.10.0
metadefs.h
Go to the documentation of this file.
00001 //      Geoffrey Furnish
00002 //      5 May 1991
00003 //
00004 //      This file contains definitions of constants and structures which
00005 //      are needed by the PLplot metafile writer and renderer.
00006 //
00007 
00008 //
00009 // PLMETA_HEADER holds the magic string at head of metafile.
00010 // PLMETA_VERSION holds the version number (year & letter).
00011 //
00012 // Note: All strings written into the file header are limited to a maximum
00013 // of 80 characters.
00014 //
00015 
00016 #define PLMETA_HEADER     "PLPLOT"
00017 #define PLMETA_VERSION    "2005a"
00018 
00019 // These are used by the TK driver client/server code
00020 
00021 #define PLSERV_HEADER     "PLPLOT"
00022 #define PLSERV_VERSION    "2005b"
00023 
00024 // Symbolic constants for old metafile versions (prior to 1992a).
00025 // Now these are stored in the metafile header.
00026 
00027 #define PLMETA_X_OLD    10000
00028 #define PLMETA_Y_OLD    10000
00029 
00030 // Virtual dots/mm for our virtual display space.
00031 
00032 #define PIXEL_RES_X_OLD    42
00033 #define PIXEL_RES_Y_OLD    56
00034 
00035 // Macros to make it easier to abort on nonzero return code
00036 // Can't call plexit on a write failure since that would be circular
00037 
00038 #define plm_wr( code ) \
00039     if ( code ) { fprintf( stderr, "Unable to write to MetaFile\n" ); exit( 1 ); }
00040 
00041 #define plm_rd( code ) \
00042     if ( code ) plexit( "Unable to read from MetaFile" )
00043 
00044 //
00045 // Metafile commands.
00046 //
00047 //** NOTICE !!! ***
00048 // If you change ANY of the following, you will wreck backward
00049 // backward compatibility with old metafiles.  You may add, but do
00050 // NOT delete !!!
00051 //
00052 
00053 #define INITIALIZE         1
00054 #define CLOSE              2
00055 #define SWITCH_TO_TEXT     3    // Obsolete, replaced by ESCAPE
00056 #define SWITCH_TO_GRAPH    4    // Obsolete, replaced by ESCAPE
00057 #define EOP                5
00058 #define BOP                6
00059 #define NEW_COLOR          7    // Obsolete, replaced by CHANGE_STATE
00060 #define NEW_WIDTH          8    // Obsolete, replaced by CHANGE_STATE
00061 #define LINE               9
00062 #define LINETO             10
00063 #define ESCAPE             11
00064 #define ADVANCE            12   // Obsolete, BOP/EOP used instead
00065 #define POLYLINE           13
00066 #define NEW_COLOR0         NEW_COLOR
00067 #define NEW_COLOR1         14
00068 #define CHANGE_STATE       15
00069 #define BOP0               16   // First BOP in a file
00070 #define END_OF_FIELD       255
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines