Changeset 35603
- Timestamp:
- May 27, 2013, 4:34:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/Ohana/src/libkapa/src/KapaWindow.c
r29938 r35603 22 22 23 23 KiiSendCommand (fd, 4, "RSIZ"); 24 KiiSendMessage (fd, "%d %d ", Nx, Ny);24 KiiSendMessage (fd, "%d %d ", Nx, Ny); 25 25 KiiWaitAnswer (fd, "DONE"); 26 26 return (TRUE); … … 37 37 38 38 KiiSendCommand (fd, 4, "MOVE"); 39 KiiSendMessage (fd, "%d %d ", x, y);39 KiiSendMessage (fd, "%d %d ", x, y); 40 40 KiiWaitAnswer (fd, "DONE"); 41 41 return (TRUE); … … 83 83 84 84 KiiSendCommand (fd, 4, "TOOL"); 85 KiiSendMessage (fd, "%d ", location);85 KiiSendMessage (fd, "%d ", location); 86 86 KiiWaitAnswer (fd, "DONE"); 87 87 return (TRUE); … … 134 134 135 135 /* send kapa the plot details */ 136 KiiSendMessage (fd, "%8d %8d %d %d %d %d %d %f %f ",136 KiiSendMessage (fd, "%8d %8d %d %d %d %d %d %f %f ", 137 137 Npts, data[0].style, 138 138 data[0].ptype, data[0].ltype, 139 139 data[0].etype, data[0].ebar, data[0].color, 140 140 data[0].lweight, data[0].size); 141 KiiSendMessage (fd, "%g %g %g %g ",141 KiiSendMessage (fd, "%g %g %g %g ", 142 142 data[0].xmin, data[0].xmax, 143 143 data[0].ymin, data[0].ymax); … … 149 149 150 150 /* send kapa the plot details */ 151 KiiSendMessage (fd, "%g %g %g %g ",151 KiiSendMessage (fd, "%g %g %g %g ", 152 152 data[0].xmin, data[0].xmax, 153 153 data[0].ymin, data[0].ymax); 154 154 155 KiiSendMessage (fd, "%8d %d %d %d %d %d %f %f ",155 KiiSendMessage (fd, "%8d %d %d %d %d %d %f %f ", 156 156 data[0].style, 157 157 data[0].ptype, data[0].ltype, … … 159 159 data[0].lweight, data[0].size); 160 160 161 KiiSendMessage (fd, "%g %g %g %g %g ",161 KiiSendMessage (fd, "%g %g %g %g %g ", 162 162 data[0].ticktextPad, 163 163 data[0].padXm, data[0].padXp, 164 164 data[0].padYm, data[0].padYp); 165 165 166 KiiSendMessage (fd, "%g %g %g %g ",166 KiiSendMessage (fd, "%g %g %g %g ", 167 167 data[0].labelPadXm, data[0].labelPadXp, 168 168 data[0].labelPadYm, data[0].labelPadYp); 169 169 170 KiiSendMessage (fd, "%g %g %g %g ",170 KiiSendMessage (fd, "%g %g %g %g ", 171 171 data[0].coords.pc1_1, data[0].coords.pc2_2, 172 172 data[0].coords.pc1_2, data[0].coords.pc2_1); 173 173 174 KiiSendMessage (fd, "%d %d %s ",174 KiiSendMessage (fd, "%d %d %s ", 175 175 data[0].flipeast, data[0].flipnorth, 176 176 data[0].coords.ctype); 177 177 178 KiiSendMessage (fd, "%g %g %g %g %g %g ",178 KiiSendMessage (fd, "%g %g %g %g %g %g ", 179 179 data[0].coords.crval1, 180 180 data[0].coords.crval2, … … 184 184 data[0].coords.cdelt2); 185 185 186 KiiSendMessage (fd, "%s %s %s ", data[0].axis, data[0].ticks, data[0].labels);186 KiiSendMessage (fd, "%s %s %s ", data[0].axis, data[0].ticks, data[0].labels); 187 187 188 188 return (TRUE); … … 265 265 266 266 /* send kapa the plot details */ 267 KiiSendMessage (fd, "%g %g %s %s ",267 KiiSendMessage (fd, "%g %g %s %s ", 268 268 data[0].zero, data[0].range, data[0].name, data[0].file); 269 269 … … 308 308 valid: 309 309 KiiSendCommand (fd, 4, "PLOB"); 310 KiiSendMessage (fd, "%s %d %d %d ", type, Npts, Nbytes, swap);310 KiiSendMessage (fd, "%s %d %d %d ", type, Npts, Nbytes, swap); 311 311 312 312 Nwrite = write (fd, values, Nbytes); … … 322 322 323 323 KiiSendCommand (fd, 4, "FONT"); 324 KiiSendCommand (fd, 16, "%s ", name);325 KiiSendCommand (fd, 16, "%d ", size);324 KiiSendCommand (fd, 16, "%s ", name); 325 KiiSendCommand (fd, 16, "%d ", size); 326 326 KiiWaitAnswer (fd, "DONE"); 327 327 return (TRUE); … … 331 331 332 332 KiiSendCommand (fd, 4, "LABL"); 333 KiiSendMessage (fd, "%6d ", mode);333 KiiSendMessage (fd, "%6d ", mode); 334 334 KiiSendData (fd, string, strlen(string)); 335 335 KiiWaitAnswer (fd, "DONE"); … … 340 340 341 341 KiiSendCommand (fd, 4, "PTXT"); 342 KiiSendMessage (fd, "%f %f %f ", x, y, angle);342 KiiSendMessage (fd, "%f %f %f ", x, y, angle); 343 343 KiiSendData (fd, string, strlen(string)); 344 344 KiiWaitAnswer (fd, "DONE"); … … 366 366 367 367 KiiSendCommand (fd, 4, "DSEC"); 368 KiiSendMessage (fd, "%s %6.3f %6.3f %6.3f %6.3f %3d ",368 KiiSendMessage (fd, "%s %6.3f %6.3f %6.3f %6.3f %3d ", 369 369 section[0].name, 370 370 section[0].x, … … 380 380 381 381 KiiSendCommand (fd, 4, "ISEC"); 382 KiiSendMessage (fd, "%s %6.3f %6.3f %3d ",382 KiiSendMessage (fd, "%s %6.3f %6.3f %3d ", 383 383 section[0].name, 384 384 section[0].x, … … 392 392 393 393 KiiSendCommand (fd, 4, "BSEC"); 394 KiiSendMessage (fd, "%s %3d ", name, bg);394 KiiSendMessage (fd, "%s %3d ", name, bg); 395 395 KiiWaitAnswer (fd, "DONE"); 396 396 return (TRUE); … … 409 409 valid: 410 410 KiiSendCommand (fd, 4, "MSEC"); 411 KiiSendMessage (fd, "%s %s ", name, direction);411 KiiSendMessage (fd, "%s %s ", name, direction); 412 412 KiiWaitAnswer (fd, "DONE"); 413 413 return (TRUE); … … 417 417 418 418 KiiSendCommand (fd, 4, "SSEC"); 419 KiiSendMessage (fd, "%s ", name);419 KiiSendMessage (fd, "%s ", name); 420 420 KiiWaitAnswer (fd, "DONE"); 421 421 return (TRUE); … … 425 425 426 426 KiiSendCommand (fd, 4, "LSEC"); 427 KiiSendMessage (fd, "%s ", name);428 KiiWaitAnswer (fd, "DONE"); 429 return (TRUE); 430 } 427 KiiSendMessage (fd, "%s ", name); 428 KiiWaitAnswer (fd, "DONE"); 429 return (TRUE); 430 }
Note:
See TracChangeset
for help on using the changeset viewer.
