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

#include "plplotP.h"
#include "mt19937ar.h"

Defines

#define DEBUG
#define NEED_PLDEBUG
#define BUFFER_SIZE   256
#define FUZZ_EPSILON   1.e-4
#define PLLIBDEV   "/usr/local/plplot/lib"
#define color_def(i, r, g, b, a, n)   if (i >= imin && i <= imax) color_set(i, r, g, b, a, n);
#define fuzzy_range_check(value, min, max, fuzz, err_number)
#define MAX_NUM_TRIES   10

Functions

static void color_set (PLINT i, U_CHAR r, U_CHAR g, U_CHAR b, PLFLT a, char *name)
static void strcat_delim (char *dirspec)
static void plcmap0_def (int imin, int imax)
static void plcmap1_def (void)
static PLFLT value (double n1, double n2, double hue)
static void cmap0_palette_read (const char *filename, int *number_colors, int **r, int **g, int **b, double **a)
void c_plcol0 (PLINT icol0)
void c_plcol1 (PLFLT col1)
void c_plscolbg (PLINT r, PLINT g, PLINT b)
void c_plscolbga (PLINT r, PLINT g, PLINT b, PLFLT a)
void c_plgcolbg (PLINT *r, PLINT *g, PLINT *b)
void c_plgcolbga (PLINT *r, PLINT *g, PLINT *b, PLFLT *a)
void c_plscol0 (PLINT icol0, PLINT r, PLINT g, PLINT b)
void c_plscol0a (PLINT icol0, PLINT r, PLINT g, PLINT b, PLFLT a)
void c_plgcol0 (PLINT icol0, PLINT *r, PLINT *g, PLINT *b)
void c_plgcol0a (PLINT icol0, PLINT *r, PLINT *g, PLINT *b, PLFLT *a)
void c_plscmap0 (PLINT *r, PLINT *g, PLINT *b, PLINT ncol0)
void c_plscmap0a (PLINT *r, PLINT *g, PLINT *b, PLFLT *a, PLINT ncol0)
void c_plscmap1 (PLINT *r, PLINT *g, PLINT *b, PLINT ncol1)
void c_plscmap1a (PLINT *r, PLINT *g, PLINT *b, PLFLT *a, PLINT ncol1)
void c_plscmap1l (PLINT itype, PLINT npts, PLFLT *pos, PLFLT *coord1, PLFLT *coord2, PLFLT *coord3, PLINT *rev)
void c_plscmap1la (PLINT itype, PLINT npts, PLFLT *pos, PLFLT *coord1, PLFLT *coord2, PLFLT *coord3, PLFLT *a, PLINT *rev)
void plcmap1_calc (void)
void c_plscmap0n (PLINT ncol0)
void c_plscmap1n (PLINT ncol1)
void c_plscolor (PLINT color)
void c_plrgb (PLFLT r, PLFLT g, PLFLT b)
void c_plrgb1 (PLINT r, PLINT g, PLINT b)
void c_plhls (PLFLT h, PLFLT l, PLFLT s)
void c_plhlsrgb (PLFLT h, PLFLT l, PLFLT s, PLFLT *p_r, PLFLT *p_g, PLFLT *p_b)
void c_plrgbhls (PLFLT r, PLFLT g, PLFLT b, PLFLT *p_h, PLFLT *p_l, PLFLT *p_s)
void c_plspal0 (const char *filename)
void c_plspal1 (const char *filename, PLBOOL interpolate)
void plwarn (const char *errormsg)
void plabort (const char *errormsg)
void plsabort (void(*handler)(const char *))
void plexit (const char *errormsg)
void plsexit (int(*handler)(const char *))
void c_plgra (void)
void c_plxormod (PLINT mode, PLINT *status)
void c_pltext (void)
void pl_cmd (PLINT op, void *ptr)
char * plFindCommand (const char *fn)
FILE * plLibOpen (const char *fn)
PDFstrmplLibOpenPdfstrm (const char *fn)
int plFindName (char *p)
void plGetName (const char *dir, const char *subdir, const char *filename, char **filespec)
void plcol_interp (PLStream *pls, PLColor *newcolor, int i, int ncol)
void plOpenFile (PLStream *pls)
void plP_getmember (PLStream *pls)
void plP_sfnam (PLStream *pls, const char *fnam)
void plFamInit (PLStream *pls)
void plGetFam (PLStream *pls)
void plRotPhy (PLINT orient, PLINT xmin, PLINT ymin, PLINT xmax, PLINT ymax, PLINT *px, PLINT *py)
PLDevplAllocDev (PLStream *pls)
void plGinInit (PLGraphicsIn *gin)
PLINT plGetInt (const char *s)
PLFLT plGetFlt (const char *s)
char PLDLLIMPEXP * plstrdup (const char *src)
void c_plseed (unsigned int s)
PLFLT c_plrandd (void)

Variables

char PLDLLIMPEXP * plplotLibDir = 0
static int(* exit_handler )(const char *errormsg)
static void(* abort_handler )(const char *errormsg)

Define Documentation

#define BUFFER_SIZE   256

#define color_def ( i,
r,
g,
b,
a,
 )     if (i >= imin && i <= imax) color_set(i, r, g, b, a, n);

#define DEBUG

#define FUZZ_EPSILON   1.e-4

#define fuzzy_range_check ( value,
min,
max,
fuzz,
err_number   ) 

Value:

if(value < (min - fuzz) || value > (max + fuzz)) {                    \
    snprintf(msgbuf,1024,"Unrecognized cmap1 format data line.  Error number is %d. Line is %s\n", err_number, color_info);                                   \
    plwarn(msgbuf);                                                     \
    err = 1;                                                            \
    break;                                                              \
  } else if (value < min) {                                             \
    value = min;                                                        \
  } else if (value > max) {                                             \
    value = max;                                                        \
  }

#define MAX_NUM_TRIES   10

#define NEED_PLDEBUG

#define PLLIBDEV   "/usr/local/plplot/lib"


Function Documentation

void c_plcol0 ( PLINT  icol0  ) 

void c_plcol1 ( PLFLT  col1  ) 

void c_plgcol0 ( PLINT  icol0,
PLINT r,
PLINT g,
PLINT b 
)

void c_plgcol0a ( PLINT  icol0,
PLINT r,
PLINT g,
PLINT b,
PLFLT a 
)

void c_plgcolbg ( PLINT r,
PLINT g,
PLINT b 
)

void c_plgcolbga ( PLINT r,
PLINT g,
PLINT b,
PLFLT a 
)

void c_plgra ( void   ) 

void c_plhls ( PLFLT  h,
PLFLT  l,
PLFLT  s 
)

void c_plhlsrgb ( PLFLT  h,
PLFLT  l,
PLFLT  s,
PLFLT p_r,
PLFLT p_g,
PLFLT p_b 
)

PLFLT c_plrandd ( void   ) 

void c_plrgb ( PLFLT  r,
PLFLT  g,
PLFLT  b 
)

void c_plrgb1 ( PLINT  r,
PLINT  g,
PLINT  b 
)

void c_plrgbhls ( PLFLT  r,
PLFLT  g,
PLFLT  b,
PLFLT p_h,
PLFLT p_l,
PLFLT p_s 
)

void c_plscmap0 ( PLINT r,
PLINT g,
PLINT b,
PLINT  ncol0 
)

void c_plscmap0a ( PLINT r,
PLINT g,
PLINT b,
PLFLT a,
PLINT  ncol0 
)

void c_plscmap0n ( PLINT  ncol0  ) 

void c_plscmap1 ( PLINT r,
PLINT g,
PLINT b,
PLINT  ncol1 
)

void c_plscmap1a ( PLINT r,
PLINT g,
PLINT b,
PLFLT a,
PLINT  ncol1 
)

void c_plscmap1l ( PLINT  itype,
PLINT  npts,
PLFLT pos,
PLFLT coord1,
PLFLT coord2,
PLFLT coord3,
PLINT rev 
)

void c_plscmap1la ( PLINT  itype,
PLINT  npts,
PLFLT pos,
PLFLT coord1,
PLFLT coord2,
PLFLT coord3,
PLFLT a,
PLINT rev 
)

void c_plscmap1n ( PLINT  ncol1  ) 

void c_plscol0 ( PLINT  icol0,
PLINT  r,
PLINT  g,
PLINT  b 
)

void c_plscol0a ( PLINT  icol0,
PLINT  r,
PLINT  g,
PLINT  b,
PLFLT  a 
)

void c_plscolbg ( PLINT  r,
PLINT  g,
PLINT  b 
)

void c_plscolbga ( PLINT  r,
PLINT  g,
PLINT  b,
PLFLT  a 
)

void c_plscolor ( PLINT  color  ) 

void c_plseed ( unsigned int  s  ) 

void c_plspal0 ( const char *  filename  ) 

void c_plspal1 ( const char *  filename,
PLBOOL  interpolate 
)

void c_pltext ( void   ) 

void c_plxormod ( PLINT  mode,
PLINT status 
)

void cmap0_palette_read ( const char *  filename,
int *  number_colors,
int **  r,
int **  g,
int **  b,
double **  a 
) [static]

void color_set ( PLINT  i,
U_CHAR  r,
U_CHAR  g,
U_CHAR  b,
PLFLT  a,
char *  name 
) [static]

void pl_cmd ( PLINT  op,
void *  ptr 
)

void plabort ( const char *  errormsg  ) 

PLDev* plAllocDev ( PLStream pls  ) 

void plcmap0_def ( int  imin,
int  imax 
) [static]

void plcmap1_calc ( void   ) 

void plcmap1_def ( void   )  [static]

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

void plexit ( const char *  errormsg  ) 

void plFamInit ( PLStream pls  ) 

char* plFindCommand ( const char *  fn  ) 

int plFindName ( char *  p  ) 

void plGetFam ( PLStream pls  ) 

PLFLT plGetFlt ( const char *  s  ) 

PLINT plGetInt ( const char *  s  ) 

void plGetName ( const char *  dir,
const char *  subdir,
const char *  filename,
char **  filespec 
)

void plGinInit ( PLGraphicsIn gin  ) 

FILE* plLibOpen ( const char *  fn  ) 

PDFstrm* plLibOpenPdfstrm ( const char *  fn  ) 

void plOpenFile ( PLStream pls  ) 

void plP_getmember ( PLStream pls  ) 

void plP_sfnam ( PLStream pls,
const char *  fnam 
)

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

void plsabort ( void(*)(const char *)  handler  ) 

void plsexit ( int(*)(const char *)  handler  ) 

char PLDLLIMPEXP* plstrdup ( const char *  src  ) 

void plwarn ( const char *  errormsg  ) 

void strcat_delim ( char *  dirspec  )  [static]

PLFLT value ( double  n1,
double  n2,
double  hue 
) [static]


Variable Documentation

void(* abort_handler)(const char *errormsg) [static]

int(* exit_handler)(const char *errormsg) [static]

char PLDLLIMPEXP* plplotLibDir = 0


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