QSAS_2_4/QSAS_dist/src/Utilities/qplplot/plcore.c File Reference

#include "plcore.h"

Defines

#define DEBUG
#define NEED_PLDEBUG
#define dirent   direct
#define NAMLEN(dirent)   (dirent)->d_namlen
#define BUFFER_SIZE   80
#define BUFFER2_SIZE   300
#define DRVSPEC_SIZE   400
#define N_TextLookupTable   10

Enumerations

enum  { AT_BOP, DRAWING, AT_EOP }

Functions

void plP_init (void)
void plP_eop (void)
void plP_bop (void)
void plP_tidy (void)
void plP_state (PLINT op)
void plP_esc (PLINT op, void *ptr)
void plP_swin (PLWindow *plwin)
void plP_line (short *x, short *y)
void plP_polyline (short *x, short *y, PLINT npts)
void plP_fill (short *x, short *y, PLINT npts)
int text2num (const char *text, char end, PLUNICODE *num)
int text2fci (const char *text, unsigned char *hexdigit, unsigned char *hexpower)
void plP_text (PLINT base, PLFLT just, PLFLT *xform, PLINT x, PLINT y, PLINT refx, PLINT refy, const char *string)
static char * utf8_to_ucs4 (const char *ptr, PLUNICODE *unichar)
int ucs4_to_utf8 (PLUNICODE unichar, char *ptr)
static void grline (short *x, short *y, PLINT npts)
static void grpolyline (short *x, short *y, PLINT npts)
static void grfill (short *x, short *y, PLINT npts)
void difilt (PLINT *xscl, PLINT *yscl, PLINT npts, PLINT *clpxmi, PLINT *clpxma, PLINT *clpymi, PLINT *clpyma)
void sdifilt (short *xscl, short *yscl, PLINT npts, PLINT *clpxmi, PLINT *clpxma, PLINT *clpymi, PLINT *clpyma)
void difilt_clip (PLINT *x_coords, PLINT *y_coords)
static void setdef_diplt ()
static void setdef_didev ()
static void setdef_diori ()
static void pldi_ini (void)
void pldid2pc (PLFLT *xmin, PLFLT *ymin, PLFLT *xmax, PLFLT *ymax)
void pldip2dc (PLFLT *xmin, PLFLT *ymin, PLFLT *xmax, PLFLT *ymax)
void c_plsdiplt (PLFLT xmin, PLFLT ymin, PLFLT xmax, PLFLT ymax)
void c_plsdiplz (PLFLT xmin, PLFLT ymin, PLFLT xmax, PLFLT ymax)
static void calc_diplt (void)
void c_plgdiplt (PLFLT *p_xmin, PLFLT *p_ymin, PLFLT *p_xmax, PLFLT *p_ymax)
void c_plsdidev (PLFLT mar, PLFLT aspect, PLFLT jx, PLFLT jy)
static void calc_didev (void)
void c_plgdidev (PLFLT *p_mar, PLFLT *p_aspect, PLFLT *p_jx, PLFLT *p_jy)
void c_plsdiori (PLFLT rot)
static void calc_diori (void)
void c_plgdiori (PLFLT *p_rot)
void c_plsdimap (PLINT dimxmin, PLINT dimxmax, PLINT dimymin, PLINT dimymax, PLFLT dimxpmm, PLFLT dimypmm)
static void calc_dimap ()
void c_plflush (void)
void pllib_init ()
void c_plstar (PLINT nx, PLINT ny)
void c_plstart (const char *devname, PLINT nx, PLINT ny)
void c_plinit (void)
void c_plend (void)
void c_plend1 (void)
void c_plsstrm (PLINT strm)
void c_plgstrm (PLINT *p_strm)
void c_plmkstrm (PLINT *p_strm)
void plstrm_init (void)
void pl_cpcolor (PLColor *to, PLColor *from)
void c_plcpstrm (PLINT iplsr, PLINT flags)
void pllib_devinit ()
PLDLLIMPEXP int plInBuildTree ()
static int plDispatchSequencer (const void *p1, const void *p2)
static void plInitDispatchTable ()
static void plSelectDev ()
static void plLoadDriver (void)
void c_plfontld (PLINT ifont)
void c_plreplot (void)
void plgFileDevs (const char ***p_menustr, const char ***p_devname, int *p_ndev)
void plgDevs (const char ***p_menustr, const char ***p_devname, int *p_ndev)
static void plgdevlst (const char **p_menustr, const char **p_devname, int *p_ndev, int type)
void c_plgpage (PLFLT *p_xp, PLFLT *p_yp, PLINT *p_xleng, PLINT *p_yleng, PLINT *p_xoff, PLINT *p_yoff)
void c_plspage (PLFLT xp, PLFLT yp, PLINT xleng, PLINT yleng, PLINT xoff, PLINT yoff)
void c_plssub (PLINT nx, PLINT ny)
void c_plsdev (const char *devname)
void c_plgdev (char *p_dev)
void c_plsmem (PLINT maxx, PLINT maxy, void *plotmem)
void plgpls (PLStream **p_pls)
void c_plglevel (PLINT *p_level)
void plsKeyEH (void(*KeyEH)(PLGraphicsIn *, void *, int *), void *KeyEH_data)
void plsButtonEH (void(*ButtonEH)(PLGraphicsIn *, void *, int *), void *ButtonEH_data)
void plsbopH (void(*handler)(void *, int *), void *handler_data)
void plseopH (void(*handler)(void *, int *), void *handler_data)
void plsError (PLINT *errcode, char *errmsg)
void c_plsori (PLINT ori)
void c_plwid (PLINT width)
void plgfile (FILE **p_file)
void plsfile (FILE *file)
void c_plgfnam (char *fnam)
void c_plsfnam (const char *fnam)
void c_plspause (PLINT pause)
void c_plprec (PLINT setp, PLINT prec)
void plP_gprec (PLINT *p_setp, PLINT *p_prec)
const char * plP_gtimefmt ()
void c_plsesc (char esc)
void plgesc (char *p_esc)
void c_plsfci (PLUNICODE fci)
void c_plgfci (PLUNICODE *pfci)
void plP_hex2fci (unsigned char hexdigit, unsigned char hexpower, PLUNICODE *pfci)
void plP_fci2hex (PLUNICODE fci, unsigned char *phexdigit, unsigned char hexpower)
void c_plgver (char *p_ver)
void plsxwin (PLINT window_id)
void c_plgfam (PLINT *p_fam, PLINT *p_num, PLINT *p_bmax)
void c_plsfam (PLINT fam, PLINT num, PLINT bmax)
void c_plfamadv (void)
void c_plgxax (PLINT *p_digmax, PLINT *p_digits)
void c_plsxax (PLINT digmax, PLINT digits)
void c_plgyax (PLINT *p_digmax, PLINT *p_digits)
void c_plsyax (PLINT digmax, PLINT digits)
void c_plgzax (PLINT *p_digmax, PLINT *p_digits)
void c_plszax (PLINT digmax, PLINT digits)
void c_plgchr (PLFLT *p_def, PLFLT *p_ht)
void c_plgvpd (PLFLT *p_xmin, PLFLT *p_xmax, PLFLT *p_ymin, PLFLT *p_ymax)
void c_plgvpw (PLFLT *p_xmin, PLFLT *p_xmax, PLFLT *p_ymin, PLFLT *p_ymax)
void plP_xgvpw (PLFLT *p_xmin, PLFLT *p_xmax, PLFLT *p_ymin, PLFLT *p_ymax)
void plP_gdom (PLFLT *p_xmin, PLFLT *p_xmax, PLFLT *p_ymin, PLFLT *p_ymax)
void plP_grange (PLFLT *p_zscl, PLFLT *p_zmin, PLFLT *p_zmax)
void plP_gw3wc (PLFLT *p_dxx, PLFLT *p_dxy, PLFLT *p_dyx, PLFLT *p_dyy, PLFLT *p_dyz)
void plP_gclp (PLINT *p_ixmin, PLINT *p_ixmax, PLINT *p_iymin, PLINT *p_iymax)
void plP_sclp (PLINT ixmin, PLINT ixmax, PLINT iymin, PLINT iymax)
void plP_gphy (PLINT *p_ixmin, PLINT *p_ixmax, PLINT *p_iymin, PLINT *p_iymax)
void plP_gsub (PLINT *p_nx, PLINT *p_ny, PLINT *p_cs)
void plP_ssub (PLINT nx, PLINT ny, PLINT cs)
void plP_gpixmm (PLFLT *p_x, PLFLT *p_y)
void plP_setpxl (PLFLT xpmm, PLFLT ypmm)
void plP_setphy (PLINT xmin, PLINT xmax, PLINT ymin, PLINT ymax)
void c_plscompression (PLINT compression)
void c_plgcompression (PLINT *compression)
void plP_getinitdriverlist (char *names)
PLINT plP_checkdriverinit (char *names)
void plP_image (PLFLT *z, PLINT nx, PLINT ny, PLFLT xmin, PLFLT ymin, PLFLT dx, PLFLT dy, void(*pltr)(PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer), PLPointer pltr_data)

Variables

const char plP_greek_mnemonic [] = "ABGDEZYHIKLMNCOPRSTUFXQWabgdezyhiklmncoprstufxqw"
static int foo
static PLUNICODE unicode_buffer [1024]

Define Documentation

#define BUFFER2_SIZE   300

#define BUFFER_SIZE   80

#define DEBUG

#define dirent   direct

#define DRVSPEC_SIZE   400

#define N_TextLookupTable   10

#define NAMLEN ( dirent   )     (dirent)->d_namlen

#define NEED_PLDEBUG


Enumeration Type Documentation

anonymous enum

Enumerator:
AT_BOP 
DRAWING 
AT_EOP 


Function Documentation

void c_plcpstrm ( PLINT  iplsr,
PLINT  flags 
)

void c_plend ( void   ) 

void c_plend1 ( void   ) 

void c_plfamadv ( void   ) 

void c_plflush ( void   ) 

void c_plfontld ( PLINT  ifont  ) 

void c_plgchr ( PLFLT p_def,
PLFLT p_ht 
)

void c_plgcompression ( PLINT compression  ) 

void c_plgdev ( char *  p_dev  ) 

void c_plgdidev ( PLFLT p_mar,
PLFLT p_aspect,
PLFLT p_jx,
PLFLT p_jy 
)

void c_plgdiori ( PLFLT p_rot  ) 

void c_plgdiplt ( PLFLT p_xmin,
PLFLT p_ymin,
PLFLT p_xmax,
PLFLT p_ymax 
)

void c_plgfam ( PLINT p_fam,
PLINT p_num,
PLINT p_bmax 
)

void c_plgfci ( PLUNICODE pfci  ) 

void c_plgfnam ( char *  fnam  ) 

void c_plglevel ( PLINT p_level  ) 

void c_plgpage ( PLFLT p_xp,
PLFLT p_yp,
PLINT p_xleng,
PLINT p_yleng,
PLINT p_xoff,
PLINT p_yoff 
)

void c_plgstrm ( PLINT p_strm  ) 

void c_plgver ( char *  p_ver  ) 

void c_plgvpd ( PLFLT p_xmin,
PLFLT p_xmax,
PLFLT p_ymin,
PLFLT p_ymax 
)

void c_plgvpw ( PLFLT p_xmin,
PLFLT p_xmax,
PLFLT p_ymin,
PLFLT p_ymax 
)

void c_plgxax ( PLINT p_digmax,
PLINT p_digits 
)

void c_plgyax ( PLINT p_digmax,
PLINT p_digits 
)

void c_plgzax ( PLINT p_digmax,
PLINT p_digits 
)

void c_plinit ( void   ) 

void c_plmkstrm ( PLINT p_strm  ) 

void c_plprec ( PLINT  setp,
PLINT  prec 
)

void c_plreplot ( void   ) 

void c_plscompression ( PLINT  compression  ) 

void c_plsdev ( const char *  devname  ) 

void c_plsdidev ( PLFLT  mar,
PLFLT  aspect,
PLFLT  jx,
PLFLT  jy 
)

void c_plsdimap ( PLINT  dimxmin,
PLINT  dimxmax,
PLINT  dimymin,
PLINT  dimymax,
PLFLT  dimxpmm,
PLFLT  dimypmm 
)

void c_plsdiori ( PLFLT  rot  ) 

void c_plsdiplt ( PLFLT  xmin,
PLFLT  ymin,
PLFLT  xmax,
PLFLT  ymax 
)

void c_plsdiplz ( PLFLT  xmin,
PLFLT  ymin,
PLFLT  xmax,
PLFLT  ymax 
)

void c_plsesc ( char  esc  ) 

void c_plsfam ( PLINT  fam,
PLINT  num,
PLINT  bmax 
)

void c_plsfci ( PLUNICODE  fci  ) 

void c_plsfnam ( const char *  fnam  ) 

void c_plsmem ( PLINT  maxx,
PLINT  maxy,
void *  plotmem 
)

void c_plsori ( PLINT  ori  ) 

void c_plspage ( PLFLT  xp,
PLFLT  yp,
PLINT  xleng,
PLINT  yleng,
PLINT  xoff,
PLINT  yoff 
)

void c_plspause ( PLINT  pause  ) 

void c_plsstrm ( PLINT  strm  ) 

void c_plssub ( PLINT  nx,
PLINT  ny 
)

void c_plstar ( PLINT  nx,
PLINT  ny 
)

void c_plstart ( const char *  devname,
PLINT  nx,
PLINT  ny 
)

void c_plsxax ( PLINT  digmax,
PLINT  digits 
)

void c_plsyax ( PLINT  digmax,
PLINT  digits 
)

void c_plszax ( PLINT  digmax,
PLINT  digits 
)

void c_plwid ( PLINT  width  ) 

static void calc_didev ( void   )  [static]

static void calc_dimap ( void   )  [static]

static void calc_diori ( void   )  [static]

static void calc_diplt ( void   )  [static]

void difilt ( PLINT xscl,
PLINT yscl,
PLINT  npts,
PLINT clpxmi,
PLINT clpxma,
PLINT clpymi,
PLINT clpyma 
)

void difilt_clip ( PLINT x_coords,
PLINT y_coords 
)

static void grfill ( short *  x,
short *  y,
PLINT  npts 
) [static]

static void grline ( short *  x,
short *  y,
PLINT  npts 
) [static]

static void grpolyline ( short *  x,
short *  y,
PLINT  npts 
) [static]

void pl_cpcolor ( PLColor to,
PLColor from 
)

static void pldi_ini ( void   )  [static]

void pldid2pc ( PLFLT xmin,
PLFLT ymin,
PLFLT xmax,
PLFLT ymax 
)

void pldip2dc ( PLFLT xmin,
PLFLT ymin,
PLFLT xmax,
PLFLT ymax 
)

static int plDispatchSequencer ( const void *  p1,
const void *  p2 
) [static]

static void plgdevlst ( const char **  p_menustr,
const char **  p_devname,
int *  p_ndev,
int  type 
) [static]

void plgDevs ( const char ***  p_menustr,
const char ***  p_devname,
int *  p_ndev 
)

void plgesc ( char *  p_esc  ) 

void plgfile ( FILE **  p_file  ) 

void plgFileDevs ( const char ***  p_menustr,
const char ***  p_devname,
int *  p_ndev 
)

void plgpls ( PLStream **  p_pls  ) 

PLDLLIMPEXP int plInBuildTree (  ) 

static void plInitDispatchTable ( void   )  [static]

void pllib_devinit ( void   ) 

void pllib_init ( void   ) 

static void plLoadDriver ( void   )  [static]

void plP_bop ( void   ) 

PLINT plP_checkdriverinit ( char *  names  ) 

void plP_eop ( void   ) 

void plP_esc ( PLINT  op,
void *  ptr 
)

void plP_fci2hex ( PLUNICODE  fci,
unsigned char *  phexdigit,
unsigned char  hexpower 
)

void plP_fill ( short *  x,
short *  y,
PLINT  npts 
)

void plP_gclp ( PLINT p_ixmin,
PLINT p_ixmax,
PLINT p_iymin,
PLINT p_iymax 
)

void plP_gdom ( PLFLT p_xmin,
PLFLT p_xmax,
PLFLT p_ymin,
PLFLT p_ymax 
)

void plP_getinitdriverlist ( char *  names  ) 

void plP_gphy ( PLINT p_ixmin,
PLINT p_ixmax,
PLINT p_iymin,
PLINT p_iymax 
)

void plP_gpixmm ( PLFLT p_x,
PLFLT p_y 
)

void plP_gprec ( PLINT p_setp,
PLINT p_prec 
)

void plP_grange ( PLFLT p_zscl,
PLFLT p_zmin,
PLFLT p_zmax 
)

void plP_gsub ( PLINT p_nx,
PLINT p_ny,
PLINT p_cs 
)

const char* plP_gtimefmt (  ) 

void plP_gw3wc ( PLFLT p_dxx,
PLFLT p_dxy,
PLFLT p_dyx,
PLFLT p_dyy,
PLFLT p_dyz 
)

void plP_hex2fci ( unsigned char  hexdigit,
unsigned char  hexpower,
PLUNICODE pfci 
)

void plP_image ( PLFLT z,
PLINT  nx,
PLINT  ny,
PLFLT  xmin,
PLFLT  ymin,
PLFLT  dx,
PLFLT  dy,
void(*)(PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer pltr,
PLPointer  pltr_data 
)

void plP_init ( void   ) 

void plP_line ( short *  x,
short *  y 
)

void plP_polyline ( short *  x,
short *  y,
PLINT  npts 
)

void plP_sclp ( PLINT  ixmin,
PLINT  ixmax,
PLINT  iymin,
PLINT  iymax 
)

void plP_setphy ( PLINT  xmin,
PLINT  xmax,
PLINT  ymin,
PLINT  ymax 
)

void plP_setpxl ( PLFLT  xpmm,
PLFLT  ypmm 
)

void plP_ssub ( PLINT  nx,
PLINT  ny,
PLINT  cs 
)

void plP_state ( PLINT  op  ) 

void plP_swin ( PLWindow plwin  ) 

void plP_text ( PLINT  base,
PLFLT  just,
PLFLT xform,
PLINT  x,
PLINT  y,
PLINT  refx,
PLINT  refy,
const char *  string 
)

void plP_tidy ( void   ) 

void plP_xgvpw ( PLFLT p_xmin,
PLFLT p_xmax,
PLFLT p_ymin,
PLFLT p_ymax 
)

void plsbopH ( void(*)(void *, int *)  handler,
void *  handler_data 
)

void plsButtonEH ( void(*)(PLGraphicsIn *, void *, int *)  ButtonEH,
void *  ButtonEH_data 
)

static void plSelectDev ( void   )  [static]

void plseopH ( void(*)(void *, int *)  handler,
void *  handler_data 
)

void plsError ( PLINT errcode,
char *  errmsg 
)

void plsfile ( FILE *  file  ) 

void plsKeyEH ( void(*)(PLGraphicsIn *, void *, int *)  KeyEH,
void *  KeyEH_data 
)

void plstrm_init ( void   ) 

void plsxwin ( PLINT  window_id  ) 

void sdifilt ( short *  xscl,
short *  yscl,
PLINT  npts,
PLINT clpxmi,
PLINT clpxma,
PLINT clpymi,
PLINT clpyma 
)

static void setdef_didev (  )  [static]

static void setdef_diori (  )  [static]

static void setdef_diplt (  )  [static]

int text2fci ( const char *  text,
unsigned char *  hexdigit,
unsigned char *  hexpower 
)

int text2num ( const char *  text,
char  end,
PLUNICODE num 
)

int ucs4_to_utf8 ( PLUNICODE  unichar,
char *  ptr 
)

static char* utf8_to_ucs4 ( const char *  ptr,
PLUNICODE unichar 
) [static]


Variable Documentation

int foo [static]

const char plP_greek_mnemonic[] = "ABGDEZYHIKLMNCOPRSTUFXQWabgdezyhiklmncoprstufxqw"

PLUNICODE unicode_buffer[1024] [static]


Generated on Fri Jan 8 12:51:26 2010 for QSAS by  doxygen 1.5.7