Enable/disable the double-buffering of the window, eliminating the flicker (default=disabled).

void mpWindow::EnableMousePanZoom

(

bool

enabled

)

[inline]

Enable/disable the feature of pan/zoom with the mouse (default=enabled)

void mpWindow::Fit

(

double

xMin,

double

xMax,

double

yMin,

double

yMax,

wxCoord *

printSizeX = NULL,

wxCoord *

printSizeY = NULL

)

Set view to fit a given bounding box and refresh display. The X/Y scale aspect lock is taken into account. If provided, the parameters printSizeX and printSizeY are taken as the DC size, and the pixel scales are computed accordingly. Also, in this case the passed borders are not saved as the "desired borders", since this use will be invoked only when printing.

the mpPrintout where to print the graph Returns the left-border layer coordinate that the user wants the mpWindow to show (it may be not exactly the actual shown coordinate in the case of locked aspect ratio).

Get current view's X dimension in device context units. Usually this is equal to wxDC::GetSize, but it might differ thus mpLayer implementations should rely on the value returned by the function. See rules for coordinate transformation

Get current view's Y dimension in device context units. Usually this is equal to wxDC::GetSize, but it might differ thus mpLayer implementations should rely on the value returned by the function. See rules for coordinate transformation

This value sets the zoom steps whenever the user clicks "Zoom in/out" or performs zoom with the mouse wheel. It must be a number above unity. This number is used for zoom in, and its inverse for zoom out. Set to 1.5 by default.