Changeset 23242 for trunk/psphot/src
- Timestamp:
- Mar 9, 2009, 4:19:37 PM (17 years ago)
- Location:
- trunk/psphot
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
src/psphot.h (modified) (1 diff)
-
src/psphotArguments.c (modified) (1 diff)
-
src/psphotVisual.c (modified) (30 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/cnb_branches/cnb_branch_20090215/psphot merged eligible /branches/cnb_branch_20090215/psphot 21495-22685
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/psphot/src/psphot.h
r23195 r23242 171 171 172 172 // psphotVisual functions 173 bool psphotSetVisual (bool mode);174 173 bool psphotVisualShowImage (pmReadout *readout); 175 174 bool psphotVisualShowBackground (pmConfig *config, const pmFPAview *view, pmReadout *readout); -
trunk/psphot/src/psphotArguments.c
r21458 r23242 82 82 if ((N = psArgumentGet (argc, argv, "-visual"))) { 83 83 psArgumentRemove (N, &argc, argv); 84 psphotSetVisual (true); 85 // pmSourceSetVisual (true); 84 pmVisualSetVisual(true); 86 85 } 87 86 -
trunk/psphot/src/psphotVisual.c
r21519 r23242 18 18 // these are invoked by the -visual options 19 19 20 static bool isVisual = false;21 20 static int kapa = -1; 22 21 static int kapa2 = -1; 23 22 static int kapa3 = -1; 24 23 25 bool psphotSetVisual (bool mode) {26 27 isVisual = mode;28 return true;29 }30 24 31 25 bool psphotVisualShowMask (int kapaFD, psImage *inImage, const char *name, int channel) { … … 135 129 bool psphotVisualShowImage (pmReadout *readout) { 136 130 137 if (! isVisual) return true;131 if (!pmVisualIsVisual()) return true; 138 132 139 133 if (kapa == -1) { … … 141 135 if (kapa == -1) { 142 136 fprintf (stderr, "failure to open kapa; visual mode disabled\n"); 143 isVisual = false;137 pmVisualSetVisual(false); 144 138 return false; 145 139 } … … 164 158 pmReadout *backgnd; 165 159 166 if (! isVisual) return true;160 if (!pmVisualIsVisual()) return true; 167 161 168 162 if (kapa == -1) { … … 170 164 if (kapa == -1) { 171 165 fprintf (stderr, "failure to open kapa; visual mode disabled\n"); 172 isVisual = false;166 pmVisualSetVisual(false); 173 167 return false; 174 168 } … … 199 193 bool psphotVisualShowSignificance (psImage *image) { 200 194 201 if (! isVisual) return true;195 if (!pmVisualIsVisual()) return true; 202 196 203 197 if (kapa == -1) { … … 205 199 if (kapa == -1) { 206 200 fprintf (stderr, "failure to open kapa; visual mode disabled\n"); 207 isVisual = false;201 pmVisualSetVisual(false); 208 202 return false; 209 203 } … … 228 222 KiiOverlay *overlay; 229 223 230 if (! isVisual) return true;224 if (!pmVisualIsVisual()) return true; 231 225 232 226 if (kapa == -1) { … … 306 300 KiiOverlay *overlay; 307 301 308 if (! isVisual) return true;302 if (!pmVisualIsVisual()) return true; 309 303 310 304 if (kapa == -1) { … … 423 417 psEllipseAxes axes; 424 418 425 if (! isVisual) return true;419 if (!pmVisualIsVisual()) return true; 426 420 427 421 if (kapa == -1) { … … 478 472 Graphdata graphdata; 479 473 480 if (! isVisual) return true;474 if (!pmVisualIsVisual()) return true; 481 475 482 476 if (kapa3 == -1) { … … 484 478 if (kapa3 == -1) { 485 479 fprintf (stderr, "failure to open kapa; visual mode disabled\n"); 486 isVisual = false;480 pmVisualSetVisual(false); 487 481 return false; 488 482 } … … 694 688 bool psphotVisualShowRoughClass (psArray *sources) { 695 689 696 if (! isVisual) return true;690 if (!pmVisualIsVisual()) return true; 697 691 698 692 if (kapa == -1) { … … 723 717 bool psphotVisualShowPSFModel (pmReadout *readout, pmPSF *psf) { 724 718 725 if (! isVisual) return true;719 if (!pmVisualIsVisual()) return true; 726 720 727 721 if (kapa2 == -1) { … … 729 723 if (kapa2 == -1) { 730 724 fprintf (stderr, "failure to open kapa; visual mode disabled\n"); 731 isVisual = false;725 pmVisualSetVisual(false); 732 726 return false; 733 727 } … … 801 795 bool status; 802 796 803 if (! isVisual) return true;797 if (!pmVisualIsVisual()) return true; 804 798 805 799 if (kapa2 == -1) { … … 807 801 if (kapa2 == -1) { 808 802 fprintf (stderr, "failure to open kapa; visual mode disabled\n"); 809 isVisual = false;803 pmVisualSetVisual(false); 810 804 return false; 811 805 } … … 961 955 bool status; 962 956 963 if (! isVisual) return true;957 if (!pmVisualIsVisual()) return true; 964 958 965 959 if (kapa2 == -1) { … … 967 961 if (kapa2 == -1) { 968 962 fprintf (stderr, "failure to open kapa; visual mode disabled\n"); 969 isVisual = false;963 pmVisualSetVisual(false); 970 964 return false; 971 965 } … … 1214 1208 KapaSection section; // put the positive profile in one and the residuals in another? 1215 1209 1216 if (! isVisual) return true;1210 if (!pmVisualIsVisual()) return true; 1217 1211 1218 1212 if (kapa3 == -1) { … … 1220 1214 if (kapa3 == -1) { 1221 1215 fprintf (stderr, "failure to open kapa; visual mode disabled\n"); 1222 isVisual = false;1216 pmVisualSetVisual(false); 1223 1217 return false; 1224 1218 } … … 1286 1280 psEllipseAxes axes; 1287 1281 1288 if (! isVisual) return true;1282 if (!pmVisualIsVisual()) return true; 1289 1283 1290 1284 if (kapa == -1) { … … 1387 1381 KiiOverlay *overlay; 1388 1382 1389 if (! isVisual) return true;1383 if (!pmVisualIsVisual()) return true; 1390 1384 1391 1385 if (kapa == -1) { … … 1464 1458 KapaSection section; 1465 1459 1466 if (! isVisual) return true;1460 if (!pmVisualIsVisual()) return true; 1467 1461 1468 1462 if (kapa3 == -1) { … … 1470 1464 if (kapa3 == -1) { 1471 1465 fprintf (stderr, "failure to open kapa; visual mode disabled\n"); 1472 isVisual = false;1466 pmVisualSetVisual(false); 1473 1467 return false; 1474 1468 } … … 1604 1598 bool psphotVisualShowResidualImage (pmReadout *readout) { 1605 1599 1606 if (! isVisual) return true;1600 if (!pmVisualIsVisual()) return true; 1607 1601 1608 1602 if (kapa == -1) { … … 1610 1604 if (kapa == -1) { 1611 1605 fprintf (stderr, "failure to open kapa; visual mode disabled\n"); 1612 isVisual = false;1606 pmVisualSetVisual(false); 1613 1607 return false; 1614 1608 } … … 1631 1625 Graphdata graphdata; 1632 1626 1633 if (! isVisual) return true;1627 if (!pmVisualIsVisual()) return true; 1634 1628 1635 1629 if (kapa3 == -1) { … … 1637 1631 if (kapa3 == -1) { 1638 1632 fprintf (stderr, "failure to open kapa; visual mode disabled\n"); 1639 isVisual = false;1633 pmVisualSetVisual(false); 1640 1634 return false; 1641 1635 } … … 1712 1706 # else 1713 1707 1714 bool psphotSetVisual (bool mode){}1715 1708 bool psphotVisualShowImage (pmConfig *config, pmReadout *readout) { return true; } 1716 1709 bool psphotVisualShowBackground (pmConfig *config, const pmFPAview *view, pmReadout *readout) { return true; }
Note:
See TracChangeset
for help on using the changeset viewer.
