X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FpPlotter%2FpGraphicalFunction.cxx;h=5e3ce6310b642ff57065b254ad69d7258ed89761;hb=c016f2efd20188d031f0bc29c5a2bb1aab959adf;hp=a425cb98722d34aacba2500264ab11a76f0c2b84;hpb=8b75d0d7ee7c2aed68f1663282127c8e9932e705;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.cxx index a425cb9..5e3ce63 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.cxx @@ -48,6 +48,7 @@ pGraphicalFunction:: pGraphicalFunction(wxString name, int flags) offsetPixelY=0; xTraslation=0; mType=DEFAULT; + } /** @@ -285,6 +286,7 @@ wxNode* pGraphicalFunction:: getBefore(pFunctionPoint* point) int minDiference=10000000; wxNode* node=logicFunction->GetPointAt(0); wxNode* before=NULL; + while(node) { pFunctionPoint* before1=(pFunctionPoint*)node->GetData(); @@ -395,7 +397,7 @@ double pGraphicalFunction::interpolateY(double m, int x1,int y1,int x) //realPoints.DeleteC np = logicFunction->getSizePoints(); - nps = 100; + nps = 200; delta=( double ) ( np ) / ( double ) ( nps ); for( i = 0; i < nps; i++ ) {