X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuPlotterView.cxx;h=f48e2d26e0b18cad2d3e9eb269b551935b532b24;hb=d79fc05657cfa43ed1cd6937a5acaeaf70e09b45;hp=e3e61bad11061a5e80f15e47956e139715a7aa01;hpb=526a0ca77dbcf5ef9a23aa7d69cfd293287002e1;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuPlotterView.cxx b/bbtk/src/bbmaracasvisuPlotterView.cxx index e3e61ba..f48e2d2 100644 --- a/bbtk/src/bbmaracasvisuPlotterView.cxx +++ b/bbtk/src/bbmaracasvisuPlotterView.cxx @@ -39,6 +39,9 @@ BBTK_BLACK_BOX_IMPLEMENTATION(PlotterView,bbtk::WxBlackBox); //--------------------------------------------------- void PlotterView::Process() { + + double lim=1; + if (bbGetInputInX().size()==bbGetInputInY().size() ) { pGraphicalFunction *pGF = mwxwidget->getFunction(0); @@ -77,7 +80,6 @@ void PlotterView::Process() mwxwidget->deleteFunction(pGF2); pGF2=NULL; } - if ( (bbGetInputInY().size()!=0) && (pGF==NULL) ) { // avoid 'taking address of temporary ' @@ -99,12 +101,15 @@ void PlotterView::Process() int i, size = inY.size(); for ( i=0 ; i-lim) && (inY[i]lim)) {ok=true;} }// for if (ok==true) { pGF = mwxwidget->getFunctionForVectors( &inX, &inY ); mwxwidget->addFunction(pGF); + } else { + printf("EED Warnning!! PlotterView::Process function y with CEROS ????..... \n"); } // if ok } // if bbGetInputInY @@ -130,13 +135,16 @@ void PlotterView::Process() int i, size = inY2.size(); for ( i=0 ; i-lim) && (inY2[i]lim)) {ok2=true;} }// for if (ok2==true) { pGF2 = mwxwidget->getFunctionForVectors( &inX2, &inY2 ); mwxwidget->addFunction(pGF2); - } // if ok + } else { + printf("EED Warnning!! PlotterView::Process function y2 with CEROS ????..... \n"); + } // if ok2 } // if bbGetInputInY @@ -198,7 +206,6 @@ void PlotterView::Process() } else { printf("EED Warnning... PlotterView::Process() Size of vecto X and Y is not coherent.\n"); } // InX.size InY.size - }