Changeset 13405
- Timestamp:
- May 16, 2007, 4:18:15 PM (19 years ago)
- Location:
- branches/kapa-mods-2007-05/Ohana
- Files:
-
- 11 edited
-
Makefile.in (modified) (2 diffs)
-
src/gastro/Makefile (modified) (1 diff)
-
src/gastro2/Makefile (modified) (1 diff)
-
src/kapa2/Makefile (modified) (1 diff)
-
src/kapa2/src/Sections.c (modified) (1 diff)
-
src/libkapa/include/kapa.h (modified) (1 diff)
-
src/libkapa/src/KapaWindow.c (modified) (17 diffs)
-
src/libkapa/src/KiiConvert.c (modified) (4 diffs)
-
src/libkapa/src/KiiCursor.c (modified) (2 diffs)
-
src/libkapa/src/KiiOverlay.c (modified) (3 diffs)
-
src/libkapa/src/KiiPicture.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/kapa-mods-2007-05/Ohana/Makefile.in
r12859 r13405 37 37 imclean \ 38 38 imregister \ 39 kapa \ 40 kii \ 39 kapa2 \ 41 40 misc \ 42 41 mosastro \ … … 96 95 mana: 97 96 make libs 98 make kii.install 99 make kapa.install 97 make kapa2.install 100 98 cd src/opihi; make mana.install && exit 101 99 102 100 dvoshell: 103 101 make libs 104 make kii.install 105 make kapa.install 102 make kapa2.install 106 103 cd src/opihi; make dvo.install && exit 107 104 -
branches/kapa-mods-2007-05/Ohana/src/gastro/Makefile
r12842 r13405 15 15 FULL_CFLAGS = $(BASE_CFLAGS) 16 16 FULL_CPPFLAGS = $(BASE_CPPFLAGS) 17 FULL_LDFLAGS = -l dvo -lFITS -lohana $(BASE_LDFLAGS)17 FULL_LDFLAGS = -lkapa -ldvo -lFITS -lohana $(BASE_LDFLAGS) 18 18 19 19 gastro: $(BIN)/gastro.$(ARCH) -
branches/kapa-mods-2007-05/Ohana/src/gastro2/Makefile
r12842 r13405 15 15 FULL_CFLAGS = $(BASE_CFLAGS) 16 16 FULL_CPPFLAGS = $(BASE_CPPFLAGS) 17 FULL_LDFLAGS = -l dvo -lFITS -lohana $(BASE_LDFLAGS)17 FULL_LDFLAGS = -lkapa -ldvo -lFITS -lohana $(BASE_LDFLAGS) 18 18 19 19 gastro2: $(BIN)/gastro2.$(ARCH) -
branches/kapa-mods-2007-05/Ohana/src/kapa2/Makefile
r13333 r13405 49 49 $(SRC)/Graphs.$(ARCH).o $(SRC)/SetGraphSize.$(ARCH).o \ 50 50 $(SRC)/Resize.$(ARCH).o $(SRC)/ErasePlots.$(ARCH).o \ 51 $(SRC)/EraseImage.$(ARCH).o \ 51 52 $(SRC)/EraseCurrentPlot.$(ARCH).o $(SRC)/EraseSections.$(ARCH).o \ 52 53 $(SRC)/SetSection.$(ARCH).o $(SRC)/DefineSection.$(ARCH).o \ -
branches/kapa-mods-2007-05/Ohana/src/kapa2/src/Sections.c
r13404 r13405 158 158 int MoveSection (int sock) { 159 159 160 int i, N; 160 161 char name[128]; 161 162 char direction[16]; -
branches/kapa-mods-2007-05/Ohana/src/libkapa/include/kapa.h
r13404 r13405 154 154 int KapaSelectSection (int fd, char *name); 155 155 int KapaGetSection (int fd, char *name); 156 int KapaMoveSection (int fd, KapaSection *section, char *direction);156 int KapaMoveSection (int fd, char *name, char *direction); 157 157 158 158 /* KapaColors */ -
branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KapaWindow.c
r13404 r13405 2 2 3 3 int KiiCenter (int fd, double x, double y, int zoom) { 4 5 char word[5]; 4 6 5 7 KiiSendCommand (fd, 4, "CENT"); … … 16 18 int KiiResize (int fd, int Nx, int Ny) { 17 19 20 char word[5]; 21 18 22 KiiSendCommand (fd, 4, "RSIZ"); 19 23 KiiSendMessage (fd, "%d %d", Nx, Ny); … … 29 33 int KapaBox (int fd, Graphdata *graphdata) { 30 34 35 char word[5]; 36 31 37 KiiSendCommand (fd, 4, "DBOX"); 32 33 38 KiiSendMessage (fd, "%12.6g %12.6g %12.6g %12.6g", 34 39 graphdata[0].xmin, graphdata[0].xmax, graphdata[0].ymin, graphdata[0].ymax); … … 46 51 int KapaClearCurrentPlot (int fd) { 47 52 53 char word[5]; 54 48 55 KiiSendCommand (fd, 4, "ERSC"); 49 56 KiiScanCommand (fd, 4, "%s", word); … … 57 64 int KapaClearPlots (int fd) { 58 65 66 char word[5]; 67 59 68 KiiSendCommand (fd, 4, "ERSP"); 60 69 KiiScanCommand (fd, 4, "%s", word); … … 68 77 int KapaClearSections (int fd) { 69 78 79 char word[5]; 80 70 81 KiiSendCommand (fd, 4, "ERSS"); 71 82 KiiScanCommand (fd, 4, "%s", word); … … 79 90 int KapaClearImage (int fd) { 80 91 92 char word[5]; 93 81 94 KiiSendCommand (fd, 4, "ERSI"); 82 95 KiiScanCommand (fd, 4, "%s", word); … … 116 129 int KapaPrepPlot (int fd, int Npts, Graphdata *graphmode) { 117 130 131 char word[5]; 132 118 133 /* tell kapa to look for the incoming image */ 119 134 KiiSendCommand (fd, 4, "PLOT"); … … 149 164 int KapaSetFont (int fd, char *name, int size) { 150 165 166 char word[5]; 167 151 168 KiiSendCommand (fd, 4, "FONT"); 152 169 KiiSendCommand (fd, 16, "%s", name); … … 164 181 int KapaSendLabel (int fd, char *string, int mode) { 165 182 183 char word[5]; 184 166 185 KiiSendCommand (fd, 4, "LABL"); 167 186 KiiSendMessage (fd, "%6d", mode); … … 179 198 int KapaSendTextline (int fd, char *string, float x, float y, float angle) { 180 199 200 char word[5]; 201 181 202 KiiSendCommand (fd, 4, "PTXT"); 182 203 KiiSendMessage (fd, "%f %f %f", x, y, angle); … … 194 215 int KapaSetLimits (int fd, Graphdata *graphmode) { 195 216 217 char word[5]; 218 196 219 KiiSendCommand (fd, 4, "SLIM"); 197 220 KiiSendMessage (fd, "%g %g %g %g ", graphmode[0].xmin, graphmode[0].xmax, graphmode[0].ymin, graphmode[0].ymax); … … 209 232 int KapaGetLimits (int fd, float *dx, float *dy) { 210 233 211 KiiSendCommand (kapa, 4, "LIMS"); 212 KiiScanMessage (kapa, "%lf %lf", dx, dy); 234 char word[5]; 235 236 KiiSendCommand (fd, 4, "LIMS"); 237 KiiScanMessage (fd, "%lf %lf", dx, dy); 213 238 214 239 KiiScanCommand (fd, 4, "%s", word); … … 222 247 223 248 int KapaSetSection (int fd, KapaSection *section) { 249 250 char word[5]; 224 251 225 252 KiiSendCommand (fd, 4, "DSEC"); … … 242 269 int KapaMoveSection (int fd, char *name, char *direction) { 243 270 271 char word[5]; 272 244 273 if (!strcasecmp(direction, "up")) goto valid; 245 274 if (!strcasecmp(direction, "down")) goto valid; … … 264 293 int KapaSelectSection (int fd, char *name) { 265 294 295 char word[5]; 296 266 297 KiiSendCommand (fd, 4, "SSEC"); 267 298 KiiSendMessage (fd, "%s", name); … … 278 309 int KapaGetSection (int fd, char *name) { 279 310 311 char word[5]; 312 280 313 KiiSendCommand (fd, 4, "LSEC"); 281 314 KiiSendMessage (fd, "%s", name); -
branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KiiConvert.c
r13402 r13405 3 3 int KiiJPEG (int fd, const char *filename) { 4 4 5 char buffer[20] ;5 char buffer[20], word[5]; 6 6 7 7 KiiSendCommand (fd, 4, "JPEG"); … … 19 19 int KapaPNG (int fd, const char *filename) { 20 20 21 char buffer[20] ;21 char buffer[20], word[5]; 22 22 23 23 KiiSendCommand (fd, 4, "PNGF"); … … 35 35 int KapaPPM (int fd, const char *filename) { 36 36 37 char buffer[20] ;37 char buffer[20], word[5]; 38 38 39 39 KiiSendCommand (fd, 4, "PPMF"); … … 51 51 int KiiPS (int fd, const char *filename, int scaleMode, int pageMode, char *pagename) { 52 52 53 char buffer[20] ;53 char buffer[20], word[5]; 54 54 55 55 /* the default operation */ -
branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KiiCursor.c
r13402 r13405 2 2 3 3 int KiiCursorOn (int fd) { 4 char word[5]; 5 4 6 KiiSendCommand (fd, 4, "CURS"); 5 7 KiiScanCommand (fd, 4, "%s", word); … … 12 14 13 15 int KiiCursorOff (int fd) { 16 char word[5]; 17 14 18 KiiSendCommand (fd, 4, "NCUR"); 15 19 KiiScanCommand (fd, 4, "%s", word); -
branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KiiOverlay.c
r13402 r13405 53 53 54 54 int i, n, Nline; 55 char *buffer, *type ;55 char *buffer, *type, word[5]; 56 56 57 57 KiiSelectOverlay (overname, &n); … … 99 99 100 100 int n; 101 char word[5]; 101 102 102 103 KiiSelectOverlay (overname, &n); … … 116 117 117 118 int n; 119 char word[5]; 118 120 119 121 KiiSelectOverlay (overname, &n); -
branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KiiPicture.c
r13402 r13405 6 6 int Npix, Ncolors, NNcolors, size; 7 7 float *in, min, max; 8 char *out, *outbuffer, *root ;8 char *out, *outbuffer, *root, word[5]; 9 9 double a1, a2; 10 10 … … 72 72 float *in, min, max; 73 73 char *out, *outbuffer, *root; 74 char buffer[1024] ;74 char buffer[1024], word[5]; 75 75 double a1, a2; 76 76
Note:
See TracChangeset
for help on using the changeset viewer.
