• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

metadefs.h

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

Generated on Wed Oct 12 2011 20:42:21 for PLplot by  doxygen 1.7.1