Back to index

plt-scheme  4.2.1
Functions
drivers.h File Reference
#include "pdf.h"
#include "plstrm.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void plD_dispatch_init_mac8 (PLDispatchTable *pdt)
void plD_dispatch_init_mac1 (PLDispatchTable *pdt)
void plD_dispatch_init_nx (PLDispatchTable *pdt)
void plD_dispatch_init_os2 (PLDispatchTable *pdt)
void plD_dispatch_init_xw (PLDispatchTable *pdt)
void plD_dispatch_init_gnome (PLDispatchTable *pdt)
void plD_dispatch_init_tk (PLDispatchTable *pdt)
void plD_dispatch_init_vga (PLDispatchTable *pdt)
void plD_dispatch_init_mgr (PLDispatchTable *pdt)
void plD_dispatch_init_win3 (PLDispatchTable *pdt)
void plD_dispatch_init_tiff (PLDispatchTable *pdt)
void plD_dispatch_init_jpg (PLDispatchTable *pdt)
void plD_dispatch_init_jpeg (PLDispatchTable *pdt)
void plD_dispatch_init_bmp (PLDispatchTable *pdt)
void plD_dispatch_init_xterm (PLDispatchTable *pdt)
void plD_dispatch_init_tekt (PLDispatchTable *pdt)
void plD_dispatch_init_tek4107t (PLDispatchTable *pdt)
void plD_dispatch_init_mskermit (PLDispatchTable *pdt)
void plD_dispatch_init_versaterm (PLDispatchTable *pdt)
void plD_dispatch_init_vlt (PLDispatchTable *pdt)
void plD_dispatch_init_conex (PLDispatchTable *pdt)
void plD_dispatch_init_dg (PLDispatchTable *pdt)
void plD_dispatch_init_plm (PLDispatchTable *pdt)
void plD_dispatch_init_tekf (PLDispatchTable *pdt)
void plD_dispatch_init_tek4107f (PLDispatchTable *pdt)
void plD_dispatch_init_psm (PLDispatchTable *pdt)
void plD_dispatch_init_psc (PLDispatchTable *pdt)
void plD_dispatch_init_xfig (PLDispatchTable *pdt)
void plD_dispatch_init_ljiip (PLDispatchTable *pdt)
void plD_dispatch_init_ljii (PLDispatchTable *pdt)
void plD_dispatch_init_hp7470 (PLDispatchTable *pdt)
void plD_dispatch_init_hp7580 (PLDispatchTable *pdt)
void plD_dispatch_init_hpgl (PLDispatchTable *pdt)
void plD_dispatch_init_imp (PLDispatchTable *pdt)
void plD_dispatch_init_pbm (PLDispatchTable *pdt)
void plD_dispatch_init_png (PLDispatchTable *pdt)
void plD_dispatch_init_cgm (PLDispatchTable *pdt)
void plD_dispatch_init_null (PLDispatchTable *pdt)
void plD_dispatch_init_tkwin (PLDispatchTable *pdt)
void plD_dispatch_init_pstex (PLDispatchTable *pdt)
void plD_dispatch_init_ntk (PLDispatchTable *pdt)
void plD_dispatch_init_mem (PLDispatchTable *pdt)
void plbuf_init (PLStream *)
void plbuf_line (PLStream *, short, short, short, short)
void plbuf_polyline (PLStream *, short *, short *, PLINT)
void plbuf_eop (PLStream *)
void plbuf_bop (PLStream *)
void plbuf_tidy (PLStream *)
void plbuf_state (PLStream *, PLINT)
void plbuf_esc (PLStream *, PLINT, void *)
void plRemakePlot (PLStream *)

Function Documentation

Definition at line 128 of file plbuf.c.

{
    dbug_enter("plbuf_bop");

    plbuf_tidy(pls);

    pls->plbufFile = tmpfile();
    if (pls->plbufFile == NULL) 
       plexit("plbuf_init: Error opening plot data storage file.");

    wr_command(pls, (U_CHAR) BOP);
    plbuf_state(pls, PLSTATE_COLOR0);
    plbuf_state(pls, PLSTATE_WIDTH);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 111 of file plbuf.c.

{
    dbug_enter("plbuf_eop");
}

Here is the caller graph for this function:

void plbuf_esc ( PLStream ,
PLINT  ,
void  
)

Definition at line 260 of file plbuf.c.

{
    dbug_enter("plbuf_esc");

    wr_command(pls, (U_CHAR) ESCAPE);
    wr_command(pls, (U_CHAR) op);

    switch (op) {
    case PLESC_FILL:
       plbuf_fill(pls);
       break;
    case PLESC_SWIN:
       plbuf_swin(pls, (PLWindow *) ptr);
       break;
    case PLESC_IMAGE:
       plbuf_image(pls, (IMG_DT *) ptr);
       break;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 53 of file plbuf.c.

{
    dbug_enter("plbuf_init");

    pls->plbuf_read = FALSE;
    if (pls->plbufFile != NULL) 
       pls->plbuf_write = FALSE;
}

Here is the caller graph for this function:

void plbuf_line ( PLStream ,
short  ,
short  ,
short  ,
short   
)

Definition at line 69 of file plbuf.c.

{
    short xpl[2], ypl[2];

    dbug_enter("plbuf_line");

    wr_command(pls, (U_CHAR) LINE);

    xpl[0] = x1a;
    xpl[1] = x2a;
    ypl[0] = y1a;
    ypl[1] = y2a;

    fwrite(xpl, sizeof(short), 2, pls->plbufFile);
    fwrite(ypl, sizeof(short), 2, pls->plbufFile);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void plbuf_polyline ( PLStream ,
short *  ,
short *  ,
PLINT   
)

Definition at line 93 of file plbuf.c.

{
    dbug_enter("plbuf_polyline");

    wr_command(pls, (U_CHAR) POLYLINE);
    fwrite(&npts, sizeof(PLINT), 1, pls->plbufFile);

    fwrite(xa, sizeof(short), npts, pls->plbufFile);
    fwrite(ya, sizeof(short), npts, pls->plbufFile);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void plbuf_state ( PLStream ,
PLINT   
)

Definition at line 168 of file plbuf.c.

{
    dbug_enter("plbuf_state");

    wr_command(pls, (U_CHAR) CHANGE_STATE);
    wr_command(pls, (U_CHAR) op);

    switch (op) {

    case PLSTATE_WIDTH: {
       U_CHAR width = pls->width;

       fwrite(&width, sizeof(U_CHAR), 1, pls->plbufFile);
       break;
    }

    case PLSTATE_COLOR0: {
       U_CHAR icol0 = pls->icol0;
       U_CHAR r = pls->curcolor.r;
       U_CHAR g = pls->curcolor.g;
       U_CHAR b = pls->curcolor.b;

       fwrite(&icol0, sizeof(U_CHAR), 1, pls->plbufFile);
       if (icol0 == PL_RGB_COLOR) {
           fwrite(&r, sizeof(U_CHAR), 1, pls->plbufFile);
           fwrite(&g, sizeof(U_CHAR), 1, pls->plbufFile);
           fwrite(&b, sizeof(U_CHAR), 1, pls->plbufFile);
       }
       break;
    }

    case PLSTATE_COLOR1: {
       U_CHAR icol1 = pls->icol1;

       fwrite(&icol1, sizeof(U_CHAR), 1, pls->plbufFile);
       break;
    }

    case PLSTATE_FILL:{
       signed char patt = pls->patt;

       fwrite(&patt, sizeof(signed char), 1, pls->plbufFile);
       break;
    }
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 150 of file plbuf.c.

{
    dbug_enter("plbuf_tidy");

    if (pls->plbufFile == NULL)
       return;

    fclose(pls->plbufFile);
    pls->plbufFile = NULL;
}

Here is the caller graph for this function:

Definition at line 617 of file plbuf.c.

{
    U_CHAR c;
    int plbuf_status;

    dbug_enter("plRemakePlot");

    if (pls->plbufFile == NULL)
       return;

    rewind(pls->plbufFile);

    plbuf_status = pls->plbuf_write;
    pls->plbuf_write = FALSE;
    pls->plbuf_read = TRUE;
    while (rd_command(pls, &c)) {
       plbuf_control(pls, c);
    }

    pls->plbuf_read = FALSE;
    pls->plbuf_write = plbuf_status;
}

Here is the call graph for this function:

Here is the caller graph for this function: