Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sp_proto.h
Go to the documentation of this file.
1 
2 /* specplot.c */
3 int to_helper(char *buf);
4 int to_dataserv(char *buf);
5 int do_quit(void);
6 int printKeySymHelp(void);
7 int do_help(char *buf);
8 int doSpecWinRepaint(void);
9 int doSpecWinReSize(void);
10 int putChanTemp(int c, double t);
11 int checkKeyPress(XEvent *event);
12 int doSpecPlotWinEvent(XEvent *event, unsigned int mask);
13 char *vxstrtok(char *string, char *last_token, char *delim);
14 int readMail(char *buf, int len);
15 int parseMail(char *buf);
16 int myIOErrorHandler(Display *display, XErrorEvent *myerr);
17 int myErrorHandler(Display *display, XErrorEvent *myerr);
18 void signalHandler(void);
19 int exitProc(int status);
20 int processEvent(struct XGR_ *s);
21 int determine_min_max(float *ydata, int dl, double scan);
22 int putHeader(struct DS_IMAGE_INFO *image);
23 int display_image(double xb, double xe, double yb, double ye, struct DS_IMAGE_INFO *im);
24 int doSpecPlot(struct DS_IMAGE_INFO *im);
25 struct WINDOW *createWindow(struct XGR_ *s, char *title, int cw, int ch, int xpos, int ypos, int bg, int usPixmap, int which);
26 int createWindows(struct XGR_ *s, char *title, int cw, int ch, int xpos, int ypos, int bg, int usPixmap);
27 int main_loop(void);
28 int set_sock_callback(int (*call)(void));
29 int main(int argc, char *argv[]);
30 /* xgr.c */
31 int xgr_graphInit(struct XGR_ *s);
32 int xgr_setNumColors(int n);
33 int xgr_setColorChoice(int c);
34 int loadGrayScale(struct XGR_ *s);
35 int flame(double a, double b, double x);
36 int loadFlameScale(struct XGR_ *s, int cindx);
37 int loadPseudoScale(struct XGR_ *s);
38 int xgr_freeWindows(struct XGR_ *s);
39 int xgr_setWindowSize(char *name, double x, double y);
40 int xgr_setCurWindow(int win, int which);
41 int xgr_pixmapToWindow(char *name);
42 int xgr_mapUnmapWindow(char *name, int map);
43 int xgr_findWindow(Display *dpy, Window win, struct WINDOW **w);
44 int xgr_putXimage(char *win_name, double fx, double fy, int w, int h, unsigned char *data);
45 int xgr_reSizeProc(Window window, int width, int height);
46 int xgr_eventProc(XEvent *event, Window window, unsigned int mask);
47 int xgr_rePaintProc(Window window);
48 struct WINDOW *xgr_getWin(Window win);
49 int xgr_hardCopy(char *win, int land, int rev, char *file);
50 int xgr_makeGif(char *win, char *file);
51 int xgr_clearScreen(void);
52 int xgr_clearArea(double x, double y, double dx, double dy);
53 int find_close_color(Display *dpy, Colormap cmap, XColor *exact_color, char *color);
54 int xgr_drawLine(float *xdata, float *ydata, int n, int color);
55 int xgr_drawLineDirect(double xmin, double xmax, double ymin, double ymax, float *xdata, float *ydata, int n, int color);
56 int xgr_drawPoints(double xmin, double xmax, double ymin, double ymax, float *xdata, float *ydata, int n, int color);
57 int xgr_drawBin(float *xdata, float *ydata, int n, int color);
58 int xgr_drawGrid(double f1b, double f1e, double f2b, double f2e, int n1, int n2, int dx, int dy, int tick, int label, int clr1, int clr2, int format);
59 int xgr_drawBox(double x, double y, double x2, double y2, int color);
60 int xgr_setBox(double x, double y, double dx, double dy);
61 int xgr_drawFillBox(double xmin, double xmax, double ymin, double ymax, double xl, double yt, double xr, double yb, int color);
62 int xgr_drawRectangle(double xmin, double xmax, double ymin, double ymax, double xl, double yt, double xr, double yb, int color, int bold);
63 int xgr_drawTextInGrid(double xmin, double xmax, double ymin, double ymax, double x, double y, char *msg, int color, int f);
64 int xgr_drawCircle(double xmin, double xmax, double ymin, double ymax, double x, double y, double w, double h, int color, int size);
65 int xgr_drawPosText(double x, double y, char *msg, int clr, int f);
66 int xgr_drawText(double x, double y, char *msg, int clr, int f);
67 int xgr_drawTextClear(double x, double y, char *msg, int clr, int f);
68 int xgr_drawPoint(float *xdata, float *ydata, int n, double xmin, double xmax, char *msg, int color, int f);
69 int xgr_drawOn(double x, double y, int n, double xmin, double xmax, char *msg, int color, int f);
70 int xgr_drawLabel(char *b1, char *b2, char *b3, int color);
71 int xgr_setFont(struct XGR_ *s, int f);
72 int setInValid(int w);
73 char **findFixedFonts(Display *dpy, int *num);
74 int charcompare(char **s1, char **s2);
75 int setFrameFooter(char *msg, int lr);
76 int xgr_checkForEvents(void);
77 
78 #ifdef X_H
79 extern XImage *createXimage(Display *display, int w, int h, int depth);
80 #endif
int main(void)
Definition: gsl_try_2.c:176
int doSpecWinRepaint(void)
Definition: specplot.c:211
int xgr_drawGrid(double f1b, double f1e, double f2b, double f2e, int n1, int n2, int dx, int dy, int tick, int label, int clr1, int clr2, int format)
int xgr_drawLine(float *xdata, float *ydata, int n, int color)
Definition: xgr.c:1124
int xgr_drawBin(float *xdata, float *ydata, int n, int color)
Definition: xgr.c:1455
int printKeySymHelp(void)
Definition: otf.c:2891
int xgr_drawPosText(double x, double y, char *msg, int clr, int f)
int find_close_color(Display *dpy, Colormap cmap, XColor *exact_color, char *color)
Definition: xgr.c:981
int xgr_drawBox(double x, double y, double x2, double y2, int color)
int checkKeyPress(XEvent *event)
Definition: otf.c:3293
int xgr_drawLabel(char *b1, char *b2, char *b3, int color)
Definition: xgr.c:2164
int xgr_makeGif(char *win, char *file)
Definition: xgr.c:887
int parseMail(char *buf)
Definition: mailparse.c:245
int myErrorHandler(Display *display, XErrorEvent *myerr)
Definition: dataserv.c:333
int scan
int xgr_drawTextInGrid(double xmin, double xmax, double ymin, double ymax, double x, double y, char *msg, int color, int f)
int xgr_drawText(double x, double y, char *msg, int clr, int f)
int determine_min_max(float *ydata, int dl, double scan)
int xgr_freeWindows(struct XGR_ *s)
Definition: xgr.c:348
int xgr_putXimage(char *win_name, double fx, double fy, int w, int h, unsigned char *data)
int display_image(double xb, double xe, double yb, double ye, struct DS_IMAGE_INFO *im)
int doSpecPlotWinEvent(XEvent *event, unsigned int mask)
Definition: specplot.c:404
int xgr_drawLineDirect(double xmin, double xmax, double ymin, double ymax, float *xdata, float *ydata, int n, int color)
int usPixmap
Definition: xgr.h:53
int flame(double a, double b, double x)
Definition: xgr.c:195
int xgr_setNumColors(int n)
Definition: xgr.c:93
XImage * createXimage(Display *display, int w, int h, int depth)
Definition: otf.c:4520
int do_help(char *buf)
Definition: mailparse.c:419
#define dy(i)
int xgr_drawFillBox(double xmin, double xmax, double ymin, double ymax, double xl, double yt, double xr, double yb, int color)
struct WINDOW * xgr_getWin(Window win)
Definition: xgr.c:826
int setInValid(int w)
Definition: xgr.c:2333
int xgr_hardCopy(char *win, int land, int rev, char *file)
Definition: xgr.c:851
int xgr_setWindowSize(char *name, double x, double y)
int xgr_drawPoint(float *xdata, float *ydata, int n, double xmin, double xmax, char *msg, int color, int f)
int putChanTemp(int c, double t)
int exitProc(int status)
Definition: dataserv.c:371
int loadGrayScale(struct XGR_ *s)
Definition: xgr.c:168
Definition: xgr.h:48
Definition: xgr.h:75
int xgr_findWindow(Display *dpy, Window win, struct WINDOW **w)
Definition: xgr.c:602
int charcompare(char **s1, char **s2)
Definition: xgr.c:2458
int xgr_drawPoints(double xmin, double xmax, double ymin, double ymax, float *xdata, float *ydata, int n, int color)
int xgr_graphInit(struct XGR_ *s)
Definition: xgr.c:71
char title[256]
Definition: specplot.c:34
int xgr_reSizeProc(Window window, int width, int height)
Definition: xgr.c:698
int xgr_drawTextClear(double x, double y, char *msg, int clr, int f)
int xgr_eventProc(XEvent *event, Window window, unsigned int mask)
Definition: xgr.c:762
int main_loop(void)
Definition: dataserv.c:847
Window win
Definition: xgr.h:52
int loadFlameScale(struct XGR_ *s, int cindx)
Definition: xgr.c:215
int loadPseudoScale(struct XGR_ *s)
Definition: xgr.c:279
int xgr_setFont(struct XGR_ *s, int f)
Definition: xgr.c:2294
int set_sock_callback(int(*call)(void))
int xgr_setColorChoice(int c)
Definition: xgr.c:106
float xdata[MAX_ATM_ELEMENTS]
Definition: atm.c:90
int putHeader(struct DS_IMAGE_INFO *image)
Definition: specplot.c:819
int readMail(char *buf, int len)
Definition: mailparse.c:223
int xgr_pixmapToWindow(char *name)
Definition: xgr.c:530
int setFrameFooter(char *msg, int lr)
Definition: xgr.c:2514
int myIOErrorHandler(Display *display, XErrorEvent *myerr)
Definition: dataserv.c:314
int xgr_clearArea(double x, double y, double dx, double dy)
int xgr_setBox(double x, double y, double dx, double dy)
int xgr_drawCircle(double xmin, double xmax, double ymin, double ymax, double x, double y, double w, double h, int color, int size)
char ** findFixedFonts(Display *dpy, int *num)
Definition: xgr.c:2351
char * vxstrtok(char *string, char *last_token, char *delim)
Definition: mailparse.c:655
int xgr_drawOn(double x, double y, int n, double xmin, double xmax, char *msg, int color, int f)
int doSpecPlot(struct DS_IMAGE_INFO *im)
Definition: specplot.c:964
float ydata[MAX_ATM_ELEMENTS]
Definition: atm.c:91
struct WINDOW * createWindow(struct XGR_ *s, char *title, int cw, int ch, int xpos, int ypos, int bg, int usPixmap, int which)
Definition: dataserv.c:415
int xgr_mapUnmapWindow(char *name, int map)
Definition: xgr.c:568
void signalHandler(void)
Definition: dataserv.c:351
int xgr_drawRectangle(double xmin, double xmax, double ymin, double ymax, double xl, double yt, double xr, double yb, int color, int bold)
int do_quit(void)
Definition: mailparse.c:384
#define dx(i)
int doSpecWinReSize(void)
Definition: specplot.c:227
int to_helper(char *buf)
Definition: dataserv.c:125
int xgr_rePaintProc(Window window)
Definition: xgr.c:794
int xgr_checkForEvents(void)
Definition: xgr.c:2547
int to_dataserv(char *buf)
Definition: otf.c:82
int createWindows(struct XGR_ *s, char *title, int cw, int ch, int xpos, int ypos, int bg, int usPixmap)
Definition: dataserv.c:512
int xgr_clearScreen(void)
Definition: xgr.c:921
int processEvent(struct XGR_ *s)
Definition: dataserv.c:908
int xgr_setCurWindow(int win, int which)
Definition: xgr.c:483