#include "plplotP.h"
#include "metadefs.h"
#include <stddef.h>
Go to the source code of this file.
|
enum | _plm_status {
PLM_READ_ERROR = -7,
PLM_UNKNOWN_DATATYPE = -6,
PLM_INVALID_STATE = -5,
PLM_INVALID_CMD = -4,
PLM_FORMAT_ERROR = -3,
PLM_UNKNOWN_VERSION = -2,
PLM_NOT_PLMETA_FILE = -1,
PLM_SUCCESS = 0
} |
|
enum | _pdf_types {
PDF_NULL = 0,
PDF_UBYTE,
PDF_USHORT,
PDF_ULONG,
PDF_IEEEF
} |
|
enum | _plp_types {
PLP_NULL = 0,
PLP_UBYTE,
PLP_UCHAR,
PLP_USHORT,
PLP_SHORT,
PLP_PLINT,
PLP_PLFLT,
PLP_ULONG
} |
|
|
static enum _plm_status | set_ubyte_plp_value (uint8_t x, void *dest, enum _plp_types type) |
|
static enum _plm_status | set_ushort_plp_value (U_SHORT x, void *dest, enum _plp_types type) |
|
static enum _plm_status | set_ulong_plp_value (unsigned long x, void *dest, enum _plp_types type) |
|
static enum _plm_status | set_ieeef_plp_value (float x, void *dest, enum _plp_types type) |
|
static enum _plm_status | read_entry (PDFstrm *plm, enum _pdf_types from_type, enum _plp_types to_type, void *dest) |
|
static enum _plm_status | read_string (PDFstrm *plm, size_t bytes, char *dest) |
|
static enum _plm_status | read_metafile_header (PDFstrm *plm, PLmDev *dev) |
|
static void | check_buffer_size (PLmDev *dev, size_t need_size) |
|
static enum _plm_status | read_header (PDFstrm *plm, const struct _plm_format *header, uint8_t *dest) |
|
static enum _plm_status | read_line (PDFstrm *plm, PLmDev *dev, PLStream *pls) |
|
static enum _plm_status | read_lineto (PDFstrm *plm, PLmDev *dev, PLStream *pls) |
|
static enum _plm_status | read_polyline (PDFstrm *plm, PLmDev *dev, PLStream *pls) |
|
static enum _plm_status | read_escape (PDFstrm *plm, PLmDev *dev, PLStream *pls) |
|
static enum _plm_status | read_state (PDFstrm *plm, PLmDev *dev, PLStream *pls) |
|
static enum _plm_status | read_plot_commands (PDFstrm *plm, PLmDev *dev, PLStream *pls) |
|
static void | setup_page (PLmDev *mf_dev, PLStream *pls) |
|
void | plreadmetafile (char *infile) |
|
◆ MAX_BUFFER
◆ NEED_PLDEBUG
◆ PLFLT2COORD
#define PLFLT2COORD |
( |
|
a | ) |
( (short) ceil( a ) ) |
◆ _pdf_types
Enumerator |
---|
PDF_NULL | |
PDF_UBYTE | |
PDF_USHORT | |
PDF_ULONG | |
PDF_IEEEF | |
Definition at line 61 of file plmetafile.c.
◆ _plm_status
Enumerator |
---|
PLM_READ_ERROR | |
PLM_UNKNOWN_DATATYPE | |
PLM_INVALID_STATE | |
PLM_INVALID_CMD | |
PLM_FORMAT_ERROR | |
PLM_UNKNOWN_VERSION | |
PLM_NOT_PLMETA_FILE | |
PLM_SUCCESS | |
Definition at line 48 of file plmetafile.c.
◆ _plp_types
Enumerator |
---|
PLP_NULL | |
PLP_UBYTE | |
PLP_UCHAR | |
PLP_USHORT | |
PLP_SHORT | |
PLP_PLINT | |
PLP_PLFLT | |
PLP_ULONG | |
Definition at line 71 of file plmetafile.c.
◆ check_buffer_size()
static void check_buffer_size |
( |
PLmDev * |
dev, |
|
|
size_t |
need_size |
|
) |
| |
|
static |
◆ plreadmetafile()
void plreadmetafile |
( |
char * |
infile | ) |
|
Reads a PLplot metafile and uses the current plot stream to display the contents. If the plot stream has not been initialized, this routine will attempt to intialize the plot stream via a plinit() call. For an initialized plot stream, the metafile will start at the current page/subpage.
- Parameters
-
infile | Input PLplot metafile name. |
Pass NULL for infile to use the filename passed from the command line option -mfi.
Returns void
Definition at line 1122 of file plmetafile.c.
◆ read_entry()
◆ read_escape()
◆ read_header()
◆ read_line()
◆ read_lineto()
◆ read_metafile_header()
◆ read_plot_commands()
◆ read_polyline()
◆ read_state()
◆ read_string()
◆ set_ieeef_plp_value()
◆ set_ubyte_plp_value()
◆ set_ulong_plp_value()
◆ set_ushort_plp_value()
◆ setup_page()
◆ dev_2005_header
◆ index_2005_header
◆ metafile_format
◆ page_2005_header
◆ plot_2005_header