]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterLayer.h
#3144 creaMaracasVisu Bug New Normal - changeWx28to30
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / pPlotterLayer.h
index 1c9022e1e4f370ea6224da3af41cb11cce80958c..1e6ef4d645011bbd6467fc1915f34e3970d6f697 100644 (file)
@@ -213,11 +213,21 @@ void draw(wxDC & dc,mpWindow & w,double x1,double y1,double x2,double y2, int or
        */
        virtual bool GetNextXY(double & x, double & y){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
        */
        virtual void GetPoints(wxList &points){}
+#else
+       /**
+       Get Point list of the funcion
+       @param return points
+       */
+       virtual wxList* GetPointsPtr(){  }
+#endif
+
 
        /** Layer plot handler.
        This implementation will plot the locus in the visible area and
@@ -250,10 +260,17 @@ void draw(wxDC & dc,mpWindow & w,double x1,double y1,double x2,double y2, int or
 
 protected:
        int m_flags; //!< Holds label alignment
+
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
        /*
        * Points of the function thats is drawing
        */
        wxList points;
+#else
+       //  use GetPointsPtr()
+#endif
+
        /*
        * the scale in x, with wich it must draw
        */