#endif
*/
+#include "marTypes.h"
#include "wx/defs.h"
#include <wx/wx.h>
For convenience mpLayer defines a name, a font (wxFont), and a pen (wxPen)
as class members. These may or may not be used by implementations.
*/
-class mpLayer : public wxObject
+class creaMaracasVisu_EXPORT mpLayer : public wxObject
{
public:
mpLayer();
*/
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
/** 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
The context menu can be retrieved with mpWindow::GetPopupMenu, e.g. for extending it
externally.
*/
-class mpWindow : public wxScrolledWindow
+class creaMaracasVisu_EXPORT mpWindow : public wxScrolledWindow
{
public:
mpWindow() {}
{
drawGuides = ifDrawing;
}
-
+ */
+
/*
* Gets the condition for drawing or not the guide lines
* @retval drawGuides The assigned condition
/** 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);