X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FpPlotter%2FpGraphicalFunction.h;h=227df55d84157c3888ed06e13d2e0c7d7fe64f1f;hb=26602dbd774eb346068faea73004618887508484;hp=4e8564c3fac753782aaaae3c7353a36aed1cd0c9;hpb=e4ef2b5df5aac431ff3b806f83b7dd5e55e89d86;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.h index 4e8564c..227df55 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.h @@ -270,6 +270,11 @@ public: } return false; } + + + +//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0 +#if wxMAJOR_VERSION <= 2 /** Get Point list of the funcion @param return points @@ -279,16 +284,27 @@ public: logicFunction->GetPoints(points); //points = realPoints; } +#else + /** + Get Point list of the funcion + @param return pointsPtr + */ + virtual wxList* GetPointsPtr() + { + return logicFunction->GetPointsPtr(); + } +#endif + + /** Get the point where the user made a click */ - virtual void getMousePoint(int &x,int &y) { - x=mousePoint.x; - y=mousePoint.y; + x = mousePoint.x; + y = mousePoint.y; } /**