IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 1, 2009, 3:52:09 PM (17 years ago)
Author:
beaumont
Message:

Additional developments in pmStackVisual

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branches/cnb_branch_20090215/psModules/src/objects/pmSourceVisual.c

    r21536 r22722  
    1515
    1616static int kapa1 = -1;
     17static bool plotPSF = true;
    1718// static int kapa2 = -1;
    1819// static int kapa3 = -1;
    1920
     21bool pmSourceVisualClose() {
     22    if (kapa1 != -1)
     23        KiiClose(kapa1);
     24    return true;
     25}
     26
    2027bool pmSourcePlotPoints3D (int myKapa, Graphdata *graphdata, psVector *xn, psVector *yn, psVector *zn, float theta, float phi);
    2128
     
    2734    Graphdata graphdata;
    2835
    29     if (!pmVisualIsVisual()) return true;
     36    if (!pmVisualIsVisual() || !plotPSF) return true;
    3037
    3138    if (kapa1 == -1) {
     
    147154    // pause and wait for user input:
    148155    // continue, save (provide name), ??
    149     char key[10];
    150     fprintf (stdout, "[c]ontinue? ");
    151     if (!fgets(key, 8, stdin)) {
    152         psWarning("Unable to read option");
    153     }
     156    pmVisualAskUser(&plotPSF);
    154157    return true;
    155158}
Note: See TracChangeset for help on using the changeset viewer.