//---------------------------------------------------
void PlotterView::Process()
{
+
+ double lim=1;
+
if (bbGetInputInX().size()==bbGetInputInY().size() )
{
pGraphicalFunction *pGF = mwxwidget->getFunction(0);
mwxwidget->deleteFunction(pGF2);
pGF2=NULL;
}
-
if ( (bbGetInputInY().size()!=0) && (pGF==NULL) )
{
// avoid 'taking address of temporary '
int i, size = inY.size();
for ( i=0 ; i<size ; i++ )
{
- if (inY[i]!=0) {ok=true;}
+ if ((inY[i]>-lim) && (inY[i]<lim)) { inY[i]=0; }
+ if ((inY[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
int i, size = inY2.size();
for ( i=0 ; i<size ; i++ )
{
- if (inY2[i]!=0) {ok2=true;}
+ if ((inY2[i]>-lim) && (inY2[i]<lim)) { inY2[i]=0; }
+ if ((inY2[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
} else {
printf("EED Warnning... PlotterView::Process() Size of vecto X and Y is not coherent.\n");
} // InX.size InY.size
-
}