Changeset 13479 for trunk/Ohana/src/libkapa/include/kapa.h
- Timestamp:
- May 22, 2007, 12:23:09 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libkapa/include/kapa.h (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libkapa/include/kapa.h
r13326 r13479 2 2 # define KAPA_H 3 3 4 /* linux is happy with this, not solaris */ 5 # include <netinet/ip.h> 6 # include <netdb.h> 7 # include <arpa/inet.h> 8 9 # include <sys/types.h> 10 # include <sys/socket.h> 4 11 # include <X11/Xlib.h> 5 12 # include <png.h> 6 13 # include <dvo.h> 14 15 typedef struct sockaddr_in KapaSockAddress; 7 16 8 17 typedef struct { … … 11 20 int Nx; 12 21 int Ny; 13 char *file;14 char *name;15 22 } KiiImage; 16 23 17 24 typedef struct { 18 double zero; 19 double range; 20 int logflux; 21 } KiiDisplayMode; 25 float x; 26 float y; 27 float dx; 28 float dy; 29 int type; 30 } KiiOverlayBase; 22 31 23 32 typedef struct { … … 73 82 74 83 typedef struct { 84 int logflux; 85 double zero, range; 86 char name[1024]; 87 char file[1024]; 88 } KapaImageData; 89 90 typedef struct { 75 91 int dx, dy, ascent; 76 92 unsigned char *bits; … … 98 114 int KiiSendData (int device, char *data, int Nbytes); 99 115 char *KiiRecvData (int device); 116 int KiiWaitAnswer (int device, char *expect); 100 117 101 118 /* KiiOpen.c */ … … 105 122 106 123 /* KiiPicture.c */ 107 int KiiNewPicture1D (int fd, KiiImage *image, K iiDisplayMode *mode, Coords *coords);108 int KiiNewPicture2D (int fd, KiiImage *image, K iiDisplayMode *mode, Coords *coords);124 int KiiNewPicture1D (int fd, KiiImage *image, KapaImageData *data, Coords *coords); 125 int KiiNewPicture2D (int fd, KiiImage *image, KapaImageData *data, Coords *coords); 109 126 110 127 /* KiiOverlay.c */ … … 125 142 int KiiCursorOn (int fd); 126 143 int KiiCursorOff (int fd); 127 int KiiCursorRead (int fd, double *x, double *y, char *key);144 int KiiCursorRead (int fd, double *x, double *y, double *z, double *r, double *d, char *key); 128 145 129 146 /* KapaWindow.c */ … … 131 148 int KiiCenter (int fd, double x, double y, int zoom); 132 149 int KapaBox (int fd, Graphdata *graphdata); 133 int KapaClear (int fd, int ClearSection); 150 int KapaClearCurrentPlot (int fd); 151 int KapaClearPlots (int fd); 152 int KapaClearSections (int fd); 153 int KapaClearImage (int fd); 134 154 int KapaInitGraph (Graphdata *graphdata); 135 155 int KapaPrepPlot (int fd, int Npts, Graphdata *graphmode); 136 int KapaPlotVector (int fd, int Npts, float *values );156 int KapaPlotVector (int fd, int Npts, float *values, char *type); 137 157 int KapaSetFont (int fd, char *name, int size); 138 158 int KapaSendLabel (int fd, char *string, int mode); … … 142 162 int KapaSelectSection (int fd, char *name); 143 163 int KapaGetSection (int fd, char *name); 164 int KapaMoveSection (int fd, char *name, char *direction); 165 int KapaSetGraphData (int fd, Graphdata *graphmode); 166 int KapaGetGraphData (int fd, Graphdata *graphmode); 167 int KapaSetImageData (int fd, KapaImageData *graphmode); 168 int KapaGetImageData (int fd, KapaImageData *graphmode); 144 169 145 170 /* KapaColors */ … … 196 221 int bDrawRotBitmap (int x, int y, int dx, int dy, unsigned char *bitmap, int mode, double angle, double scale); 197 222 223 /* Kapa Socket functions */ 224 int KapaOpen (char *kapa_exec, char *kapa_name); 225 int KapaServerInit (KapaSockAddress *Address); 226 int KapaServerWait (int InitSocket, KapaSockAddress *Address); 227 int KapaDefineValidIP (char *ipstring); 228 int KapaClientSocket (char *hostname); 229 198 230 /* define Kapa names for shared functions */ 199 # define KapaOpen(p,n) KiiOpen(p,n)231 // # define KapaOpen(p,n) KiiOpen(p,n) 200 232 # define KapaResize(fd,Nx,Ny) KiiResize(fd,Nx,Ny) 201 233 # define KapaCenter(fd,x,y,z) KiiResize(fd,x,y,z)
Note:
See TracChangeset
for help on using the changeset viewer.
