X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FpPlotter%2Fmathplot.h;h=0856926539196dbf1f63d73607b18d976191d6d8;hb=8138ced89fa9f1cc6933ff739dfa28b1e3c3883b;hp=e8b67dc375c238f2fbf67a485e8cfd50ee2eea0b;hpb=3e48d6cf83c4d96585d3e825899db643f9a62193;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/mathplot.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/mathplot.h index e8b67dc..0856926 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/mathplot.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/mathplot.h @@ -194,6 +194,14 @@ public: */ void SetPen(wxPen& pen) { m_pen = pen; } + /** + ** Get the translation of the Y coordinate acoording to the new orientation of the axis du to the problem + ** identified in MACOS with the funtion 'SetAxisOrientation' + **/ + int GetYTranslated(double sizey, double y){ + return -y+sizey; + } + protected: wxFont m_font; //!< Layer's font wxPen m_pen; //!< Layer's pen @@ -385,7 +393,7 @@ public: /** Layer plot handler. This implementation will plot the ruler adjusted to the visible area. */ - virtual void Plot(wxDC & dc, mpWindow & w); + virtual void Plot(wxDC & dc, mpWindow & w, int orgy); /** Check whether this layer has a bounding box. This implementation returns \a FALSE thus making the ruler invisible @@ -784,6 +792,13 @@ public: /** Refresh display */ void UpdateAll(); + /** + ** Get the translation of the Y coordinate + **/ + int GetYTranslated(wxSize size, double y){ + return size.GetHeight()-y; + } + protected: void Refresh(bool eraseBackground = true, const wxRect* rect = NULL);