X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FpPlotter%2FpPlotterLayer.cxx;h=37c7ba27e888de661a642d41591f83af455fd833;hb=738e5bef4c52a1f25013e598a008a81f20fc6f63;hp=7767471ff509969fb338dcf2acf87bde04087580;hpb=8e7ab74a199d1f05b01dccfb75da7f2c4754ddc5;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterLayer.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterLayer.cxx index 7767471..37c7ba2 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterLayer.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterLayer.cxx @@ -276,6 +276,7 @@ bool pPlotterLayer::initializePolygon(wxPoint* points,double x1, double y1,doubl } else return setted; + return setted; } /** @@ -416,7 +417,7 @@ void pPlotterLayer::drawPoints(wxDC & dc,mpWindow & w) int offsetpx=getOffsetPixelsXv(); int offsetpy=getOffsetPixelsYv(); //traslation - int xTraslation=getXTraslation(); +// int xTraslation=getXTraslation(); //EED /*wxPen mypen(*wxBLACK, 5, wxSOLID); dc.SetPen(mypen);*/ /***********/ @@ -477,7 +478,7 @@ void pPlotterLayer::drawLineToMousePoint(wxDC & dc,mpWindow & w) getMinShowed(minX,minY); /***********/ //traslation - int xTraslation=getXTraslation(); +// int xTraslation=getXTraslation(); //EED if(node) { @@ -567,10 +568,18 @@ void pPlotterLayer::Plot(wxDC & dc, mpWindow & w) Managing the drawing */ int orgx=70; - int orgy=w.GetScrY()-40; + + +//EED 14Mai2009 +// int orgy=w.GetScrY()-40; +// dc.SetDeviceOrigin( orgx ,orgy); +// dc.SetAxisOrientation(true,true); + + int orgy = 40; dc.SetDeviceOrigin( orgx ,orgy); - dc.SetAxisOrientation(true,true); + dc.SetAxisOrientation(true,false); + //if the user dont want to see the points of the function and if he stops drawing //we have to draw the function @@ -607,7 +616,7 @@ void pPlotterLayer::Plot(wxDC & dc, mpWindow & w) { dc.SetPen(wxPen( wxColour(255,0,0),1,wxDOT )); int offsetpx = getOffsetPixelsXv(); - int offsetpy = getOffsetPixelsYv(); +// int offsetpy = getOffsetPixelsYv(); //EED int realX_guide = w.getRealGuideX(); if( realX_guide!=-1 )