PLplot  5.15.0
plstrm.h File Reference
#include "pdf.h"
#include "disptab.h"
#include "pldll.h"
#include "qsastime.h"

Go to the source code of this file.

Classes

struct  PLDev
 
struct  PLStream
 

Macros

#define PL_MAX_CMAP1CP   256
 

Functions

void PLDLLIMPEXP plgpls (PLStream **p_pls)
 
PLDLLIMPEXP void plcol_interp (PLStream *pls, PLColor *newcolor, int i, int ncol)
 
PLDLLIMPEXP void plOpenFile (PLStream *pls)
 
PLDLLIMPEXP void plCloseFile (PLStream *pls)
 
void plP_getmember (PLStream *pls)
 
void plP_sfnam (PLStream *pls, const char *fnam)
 
PLDLLIMPEXP void plFamInit (PLStream *pls)
 
PLDLLIMPEXP void plGetFam (PLStream *pls)
 
PLDLLIMPEXP void plRotPhy (PLINT orient, PLINT xmin, PLINT ymin, PLINT xmax, PLINT ymax, PLINT *px, PLINT *py)
 
PLDLLIMPEXP PLDevplAllocDev (PLStream *pls)
 
PLDLLIMPEXP void plGinInit (PLGraphicsIn *gin)
 

Macro Definition Documentation

◆ PL_MAX_CMAP1CP

#define PL_MAX_CMAP1CP   256

Definition at line 521 of file plstrm.h.

Function Documentation

◆ plAllocDev()

PLDLLIMPEXP PLDev* plAllocDev ( PLStream pls)

Allocates a standard PLDev structure for device-specific data, stores the address in pls->dev, and returns the address as well.

Parameters
plsA plot stream structure.
Returns
A PLDev *

Definition at line 2866 of file plctrl.c.

◆ plCloseFile()

PLDLLIMPEXP void plCloseFile ( PLStream pls)

Closes output file unless it is associated with stdout.

Parameters
plsA plot stream structure.

Definition at line 2635 of file plctrl.c.

◆ plcol_interp()

PLDLLIMPEXP void plcol_interp ( PLStream pls,
PLColor newcolor,
int  i,
int  ncol 
)

Initializes device cmap 1 entry by interpolation from pls->cmap1 entries. Returned PLColor is supposed to represent the i_th color out of a total of ncol colors in the current color scheme.

Parameters
plsA plot stream structure.
newcolorA color structure to store the color in.
iIndex of the desired color.
ncolTotal number of colors (supported by the device?).

Definition at line 2530 of file plctrl.c.

◆ plFamInit()

PLDLLIMPEXP void plFamInit ( PLStream pls)

Initializes family file parameters.

Parameters
plsA plot stream structure.

Definition at line 2751 of file plctrl.c.

◆ plGetFam()

PLDLLIMPEXP void plGetFam ( PLStream pls)

Starts new member file of family file set if necessary.

Note each member file is a complete graphics file (can be printed individually), although 'plrender' will treat a family as a single logical file if given the family name instead of the member name.

Parameters
plsA plot stream structure.

Definition at line 2780 of file plctrl.c.

◆ plGinInit()

PLDLLIMPEXP void plGinInit ( PLGraphicsIn gin)

Just fills in the PLGraphicsIn with appropriate initial values.

Parameters
ginA plot graphics input (i.e. keypress or mouseclick) structure.

Definition at line 2887 of file plctrl.c.

◆ plgpls()

void PLDLLIMPEXP plgpls ( PLStream **  p_pls)

Definition at line 3693 of file plcore.c.

◆ plOpenFile()

PLDLLIMPEXP void plOpenFile ( PLStream pls)

Definition at line 2571 of file plctrl.c.

◆ plP_getmember()

void plP_getmember ( PLStream pls)

Sets up next file member name (in pls->FileName), but does not open it.

Parameters
plsA plot stream structure.

Definition at line 2657 of file plctrl.c.

◆ plP_sfnam()

void plP_sfnam ( PLStream pls,
PLCHAR_VECTOR  fnam 
)

Sets up file name (with "%n" removed if present) & family stem name. Reserve some extra space (10 chars) to hold an optional member number.

Parameters
plsA plot stream.
fnamThe base file name of the plot files.

Definition at line 2700 of file plctrl.c.

◆ plRotPhy()

PLDLLIMPEXP void plRotPhy ( PLINT  orient,
PLINT  xmin,
PLINT  ymin,
PLINT  xmax,
PLINT  ymax,
PLINT px,
PLINT py 
)

Rotates physical coordinates if necessary for given orientation. Each time orient is incremented, the plot is rotated 90 deg clockwise. Note: this is now used only to rotate by 90 degrees for devices that expect portrait mode.

Parameters
orientNew plot orientation (0-3)
xminCurrent plot x minimum?
yminCurrent plot y minimum?
xmaxCurrent plot x maximum?
ymaxCurrent plot y maximum?
pxOld x coordinate mapped to new x coordinate.
pyOld y coordinate mapped to new y coordinate.

Definition at line 2824 of file plctrl.c.