IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 23, 2018, 11:21:41 AM (8 years ago)
Author:
eugene
Message:

changing from numerical values to named enums for graphdata elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceVisual.c

    r36856 r40454  
    109109
    110110    graphdata.color = KapaColorByName ("black");
    111     graphdata.ptype = 2;
     111    graphdata.ptype = KAPA_POINT_CROSS;
    112112    graphdata.size = 0.5;
    113     graphdata.style = 2;
     113    graphdata.style = KAPA_PLOT_POINTS;
    114114    graphdata.etype |= 0x01;
    115115
     
    200200
    201201    graphdata.color = KapaColorByName ("black");
    202     graphdata.ptype = 2;
     202    graphdata.ptype = KAPA_POINT_CROSS;
    203203    graphdata.size = 0.5;
    204     graphdata.style = 2;
     204    graphdata.style = KAPA_PLOT_POINTS;
    205205    graphdata.etype |= 0x01;
    206206
     
    265265
    266266    graphdata.color = KapaColorByName ("black");
    267     graphdata.ptype = 2;
     267    graphdata.ptype = KAPA_POINT_CROSS;
    268268    graphdata.size = 0.5;
    269     graphdata.style = 2;
     269    graphdata.style = KAPA_PLOT_POINTS;
    270270    graphdata.etype |= 0x01;
    271271
     
    469469    KapaSendLabel (kapa1, "Model Param", KAPA_LABEL_YM);
    470470
    471     graphdata.ptype = 2;
     471    graphdata.ptype = KAPA_POINT_CROSS;
    472472    graphdata.size = 1.0;
    473     graphdata.style = 2;
     473    graphdata.style = KAPA_PLOT_POINTS;
    474474    KapaPrepPlot (kapa1,   x->n, &graphdata);
    475475    KapaPlotVector (kapa1, x->n, x->data.F32, "x");
     
    477477
    478478    graphdata.color = KapaColorByName ("red");
    479     graphdata.ptype = 1;
     479    graphdata.ptype = KAPA_POINT_BOX_OPEN;
    480480    KapaPrepPlot (kapa1,   xm->n, &graphdata);
    481481    KapaPlotVector (kapa1, xm->n, xm->data.F32, "x");
     
    483483
    484484    graphdata.color = KapaColorByName ("blue");
    485     graphdata.ptype = 1;
     485    graphdata.ptype = KAPA_POINT_BOX_OPEN;
    486486    KapaPrepPlot (kapa1,   x->n, &graphdata);
    487487    KapaPlotVector (kapa1, x->n, x->data.F32, "x");
     
    519519    KapaSendLabel (kapa1, "Model Param", KAPA_LABEL_YM);
    520520
    521     graphdata.ptype = 2;
     521    graphdata.ptype = KAPA_POINT_CROSS;
    522522    graphdata.size = 1.0;
    523     graphdata.style = 2;
     523    graphdata.style = KAPA_PLOT_POINTS;
    524524    KapaPrepPlot (kapa1,   y->n, &graphdata);
    525525    KapaPlotVector (kapa1, y->n, y->data.F32, "x");
     
    527527
    528528    graphdata.color = KapaColorByName ("red");
    529     graphdata.ptype = 1;
     529    graphdata.ptype = KAPA_POINT_BOX_OPEN;
    530530    KapaPrepPlot (kapa1,   xm->n, &graphdata);
    531531    KapaPlotVector (kapa1, xm->n, ym->data.F32, "x");
     
    533533
    534534    graphdata.color = KapaColorByName ("blue");
    535     graphdata.ptype = 1;
     535    graphdata.ptype = KAPA_POINT_BOX_OPEN;
    536536    KapaPrepPlot (kapa1,   y->n, &graphdata);
    537537    KapaPlotVector (kapa1, y->n, y->data.F32, "x");
     
    612612
    613613    graphdata->color = KapaColorByName ("black");
    614     graphdata->ptype = 100;
     614    graphdata->ptype = KAPA_POINT_PAIR_CONNECT;
    615615    graphdata->size = 0.5;
    616     graphdata->style = 2;
     616    graphdata->style = KAPA_PLOT_POINTS;
    617617    KapaPrepPlot (myKapa, xv->n, graphdata);
    618618    KapaPlotVector (myKapa, xv->n, xv->data.F32, "x");
     
    620620
    621621    graphdata->color = KapaColorByName ("blue");
    622     graphdata->ptype = 0;
     622    graphdata->ptype = KAPA_POINT_BOX_OPEN;
    623623    graphdata->size = 1.5;
    624     graphdata->style = 2;
     624    graphdata->style = KAPA_PLOT_POINTS;
    625625    KapaPrepPlot (myKapa, xv->n, graphdata);
    626626    KapaPlotVector (myKapa, xv->n, xv->data.F32, "x");
     
    652652
    653653    graphdata->color = KapaColorByName ("red");
    654     graphdata->ptype = 100;
     654    graphdata->ptype = KAPA_POINT_PAIR_CONNECT;
    655655    graphdata->size = 0.5;
    656     graphdata->style = 2;
     656    graphdata->style = KAPA_PLOT_POINTS;
    657657    KapaPrepPlot (myKapa, xv->n, graphdata);
    658658    KapaPlotVector (myKapa, xv->n, xv->data.F32, "x");
Note: See TracChangeset for help on using the changeset viewer.