Changeset 23242 for trunk/psModules/src/objects
- Timestamp:
- Mar 9, 2009, 4:19:37 PM (17 years ago)
- Location:
- trunk/psModules
- Files:
-
- 3 edited
- 1 copied
-
. (modified) (1 prop)
-
src/objects/pmSourceIO_CMF_PS1_V1.c (copied) (copied from branches/cnb_branches/cnb_branch_20090215/psModules/src/objects/pmSourceIO_CMF_PS1_V1.c )
-
src/objects/pmSourceVisual.c (modified) (4 diffs)
-
src/objects/pmSourceVisual.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/cnb_branches/cnb_branch_20090215/psModules merged eligible /branches/cnb_branch_20090215/psModules 21495-22685
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/psModules/src/objects/pmSourceVisual.c
r22752 r23242 9 9 #if (HAVE_KAPA) 10 10 #include <kapa.h> 11 #include "pmVisual.h" 11 12 12 13 // functions used to visualize the analysis as it goes 13 14 // these are invoked by the -visual options 14 15 15 static bool isVisual = false;16 16 static int kapa1 = -1; 17 static bool plotPSF = true; 17 18 // static int kapa2 = -1; 18 19 // static int kapa3 = -1; 19 20 21 bool pmSourceVisualClose() { 22 if (kapa1 != -1) 23 KiiClose(kapa1); 24 return true; 25 } 26 20 27 bool pmSourcePlotPoints3D (int myKapa, Graphdata *graphdata, psVector *xn, psVector *yn, psVector *zn, float theta, float phi); 21 28 22 bool pmSourceSetVisual (bool mode) {23 24 isVisual = mode;25 return true;26 }27 29 28 30 bool pmSourceVisualPSFModelResid (pmTrend2D *trend, psVector *x, psVector *y, psVector *param, psVector *mask) { … … 32 34 Graphdata graphdata; 33 35 34 if (! isVisual) return true;36 if (!pmVisualIsVisual() || !plotPSF) return true; 35 37 36 38 if (kapa1 == -1) { … … 38 40 if (kapa1 == -1) { 39 41 fprintf (stderr, "failure to open kapa; visual mode disabled\n"); 40 isVisual = false;42 pmVisualSetVisual(false); 41 43 return false; 42 44 } … … 152 154 // pause and wait for user input: 153 155 // continue, save (provide name), ?? 154 char key[10]; 155 fprintf (stdout, "[c]ontinue? "); 156 if (!fgets(key, 8, stdin)) { 157 psWarning("Unable to read option"); 158 } 156 pmVisualAskUser(&plotPSF); 157 159 158 return true; 160 159 } -
trunk/psModules/src/objects/pmSourceVisual.h
r20582 r23242 1 1 /* @file pmKapaPlots.h 2 * @brief functions to make plots with the external program 'kapa' 2 * @brief functions to make plots with the external program 'kapa' 3 3 * 4 4 * @author EAM, IfA 5 5 * 6 * @version $Revision: 1.1 $ $Name: not supported by cvs2svn $7 * @date $Date: 200 8-11-08 01:52:34$6 * @version $Revision: 1.1.16.1 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2009-02-19 17:59:50 $ 8 8 * Copyright 2006 Institute for Astronomy, University of Hawaii 9 9 */ … … 12 12 #define PM_SOURCE_VISUAL_H 13 13 14 bool pmSourceVisualClose(void); 15 14 16 /// @addtogroup Extras Miscellaneous Funtions 15 17 /// @{ 16 18 17 bool pmSourceSetVisual (bool mode);18 19 bool pmSourceVisualPSFModelResid (pmTrend2D *trend, psVector *x, psVector *y, psVector *param, psVector *mask); 19 20
Note:
See TracChangeset
for help on using the changeset viewer.
