|
| | mpWindow (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long flags=0) |
| | Construct a plotting window. More...
|
| |
| wxMenu * | GetPopupMenu () |
| | Get reference to context menu of the plot canvas. More...
|
| |
| bool | AddLayer (mpLayer *layer, bool refreshDisplay=true, bool refreshConfig=true) |
| | Add a plot layer to the canvas. More...
|
| |
| bool | DelLayer (mpLayer *layer, mpDeleteAction alsoDeleteObject, bool refreshDisplay=true, bool refreshConfig=true) |
| | Remove a plot layer from the canvas. More...
|
| |
| void | DelAllLayers (mpDeleteAction alsoDeleteObject, bool refreshDisplay=true) |
| | Remove all layers from the plot. More...
|
| |
| void | DelAllPlot (mpDeleteAction alsoDeleteObject, mpFunctionType func=mpfAllType, bool refreshDisplay=true) |
| | Remove all plot layers. More...
|
| |
| void | DelAllYAxisAfterID (mpDeleteAction alsoDeleteObject, int yAxisID=0, bool refreshDisplay=true) |
| | Remove all extra y axis after the selected y axis. More...
|
| |
| mpLayer * | GetLayer (int position) |
| |
| int | GetLayerPosition (mpLayer *layer) |
| |
| mpLayer * | GetLayersType (int position, mpLayerType type) |
| |
| mpLayer * | GetLayerPlot (int position, mpFunctionType func=mpfAllType) |
| |
| mpScale * | GetLayerAxis (int position, mpScaleType scale=mpsAllType) |
| |
| mpFXYVector * | GetXYSeries (unsigned int n, const wxString &name=_T("Serie "), bool create=true) |
| |
| mpLayer * | GetClosestPlot (wxCoord ix, wxCoord iy, double *xnear, double *ynear) |
| |
| mpLayer * | GetLayerByName (const wxString &name) |
| |
| mpLayer * | GetLayerByClassName (const wxString &name) |
| |
| void | RefreshLegend (void) |
| |
| bool | IsYAxisUsed (int yAxisID) |
| |
| mpScaleX * | GetLayerXAxis () |
| | Get the first scale X layer (X axis) or NULL if not found. More...
|
| |
| mpScaleY * | GetLayerYAxis (int yAxisID) |
| | Get the scale Y layer (Y axis) with a specific yAxisID or NULL if not found. More...
|
| |
| void | SetScaleX (const double scaleX) |
| | Set current view's X scale and refresh display. More...
|
| |
| double | GetScaleX (void) const |
| | Get current view's X scale. More...
|
| |
| void | SetScaleY (const double scaleY, int yAxisID) |
| | Set current view's Y scale and refresh display. More...
|
| |
| double | GetScaleY (int yAxisID) |
| | Get current view's Y scale. More...
|
| |
| void | SetBound () |
| | Update bound for mpFX and mpFY when axis is scaled. More...
|
| |
| mpRange< double > | GetBoundX (void) const |
| | Get bounding box for X axis. More...
|
| |
| mpRange< double > | GetDesiredBoundX (void) const |
| | Get desired bounding box for X axis. More...
|
| |
| mpRange< double > | GetBoundY (int yAxisID) |
| | Get bounding box for Y axis of ID yAxisID. More...
|
| |
| mpRange< double > | GetDesiredBoundY (int yAxisID) |
| | Get desired bounding box for Y axis of ID yAxisID. More...
|
| |
| std::unordered_map< int, mpRange< double > > | GetAllBoundY () |
| | Returns the bounds for all Y-axes. More...
|
| |
| std::unordered_map< int, mpRange< double > > | GetAllDesiredY () |
| | Returns the desired bounds for all Y-axes. More...
|
| |
| void | SetPosX (const double posX) |
| | Set current view's X position and refresh display. More...
|
| |
| double | GetPosX (void) const |
| | Get current view's X position. More...
|
| |
| void | SetPosY (std::unordered_map< int, double > &posYList) |
| | Set current view's Y position and refresh display. More...
|
| |
| double | GetPosY (int yAxisID) |
| | Get current view's Y position. More...
|
| |
| int | GetNOfYAxis (void) const |
| | Get the number of Y axis. More...
|
| |
| mpAxisList | GetAxisDataYList (void) const |
| | Get the Y-axis data map. More...
|
| |
| std::map< int, mpAxisData > | GetSortedAxisDataYList (void) const |
| | Get a sorted version of the Y-axis data map. More...
|
| |
| void | SetScreen (const int scrX, const int scrY) |
| | Set current view's dimensions in device context units. More...
|
| |
| int | GetScreenX (void) const |
| | Get current view's X dimension in device context units. More...
|
| |
| int | GetScreenY (void) const |
| | Get current view's Y dimension in device context units. More...
|
| |
| void | SetPos (const double posX, std::unordered_map< int, double > &posYList) |
| | Set current view's X and Y position and refresh display. More...
|
| |
| double | p2x (const wxCoord pixelCoordX) const |
| | Converts mpWindow (screen) pixel coordinates into graph (floating point) coordinates, using current mpWindow position and scale. More...
|
| |
| double | p2y (const wxCoord pixelCoordY, int yAxisID=0) |
| | Converts mpWindow (screen) pixel coordinates into graph (floating point) coordinates, using current mpWindow position and scale. More...
|
| |
| wxCoord | x2p (const double x) const |
| | Converts graph (floating point) coordinates into mpWindow (screen) pixel coordinates, using current mpWindow position and scale. More...
|
| |
| wxCoord | y2p (const double y, int yAxisID=0) |
| | Converts graph (floating point) coordinates into mpWindow (screen) pixel coordinates, using current mpWindow position and scale. More...
|
| |
|
void | EnableDoubleBuffer (const bool enabled) |
| | Enable/disable the double-buffering of the window, eliminating the flicker (default=enabled).
|
| |
|
void | EnableMousePanZoom (const bool enabled) |
| | Enable/disable the feature of pan/zoom with the mouse (default=enabled)
|
| |
| void | LockAspect (bool enable=true) |
| | Enable or disable X/Y scale aspect locking for the view. More...
|
| |
| bool | IsAspectLocked () const |
| | Checks whether the X/Y scale aspect is locked. More...
|
| |
| bool | IsRepainting () const |
| | Checks if we are repainting. More...
|
| |
| void | Fit () |
| | Set view to fit global bounding box of all plot layers and refresh display with UpdateAll(). More...
|
| |
| void | Fit (const mpRange< double > &rangeX, std::unordered_map< int, mpRange< double >> rangeY, wxCoord *printSizeX=NULL, wxCoord *printSizeY=NULL) |
| | Set view to fit a given bounding box and refresh display with UpdateAll(). More...
|
| |
| void | FitX (void) |
| | Similar to Fit() but only fit in X. More...
|
| |
| void | FitY (int yAxisID) |
| | Similar to Fit() but only fit in Y and only one Y-axis, specified by ID. More...
|
| |
| void | ZoomIn (const wxPoint ¢erPoint=wxDefaultPosition) |
| | Zoom into current view and refresh display. More...
|
| |
| void | ZoomOut (const wxPoint ¢erPoint=wxDefaultPosition) |
| | Zoom out current view and refresh display. More...
|
| |
|
void | ZoomInX () |
| | Zoom in current view along X around center and refresh display.
|
| |
|
void | ZoomOutX () |
| | Zoom out current view along X around center and refresh display.
|
| |
| void | ZoomInY (mpOptional_int yAxisID=-1) |
| | Zoom in current view along Y around center and refresh display. More...
|
| |
| void | ZoomOutY (mpOptional_int yAxisID=-1) |
| | Zoom out current view along Y around center and refresh display. More...
|
| |
| void | ZoomRect (wxPoint p0, wxPoint p1) |
| | Zoom view fitting given coordinates to the window (p0 and p1 do not need to be in any specific order) More...
|
| |
|
void | UpdateAll () |
| | Refresh display.
|
| |
| unsigned int | CountLayers () |
| | Counts the number of plot layers, including axes: this is to count only the layers which have a bounding box. More...
|
| |
| unsigned int | CountAllLayers () |
| | Counts the number of plot layers, whether or not they have a bounding box. More...
|
| |
| unsigned int | CountLayersType (mpLayerType type) |
| | Counts the number of plot layers: this is to count only the layers which have a plot. More...
|
| |
| unsigned int | CountLayersFXYPlot () |
| | Counts the number of XY plot layers. More...
|
| |
| void | UpdateDesiredBoundingBox (mpAxisUpdate update) |
| | Update m_desired bounds. More...
|
| |
| mpFloatRectSimple | GetBoundingBox (bool desired, unsigned int yAxisID=0) |
| | Return a bounding box for an y-axis ID. More...
|
| |
| double | GetDesiredXmin () const |
| | 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). More...
|
| |
| double | GetDesiredXmax () const |
| | Return the right-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). More...
|
| |
| double | GetDesiredYmin (int yAxisID) |
| | Return the bottom-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). More...
|
| |
| double | GetDesiredYmax (int yAxisID) |
| | Return the top layer-border 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). More...
|
| |
|
bool | GetBoundingBox (mpRange< double > *boundX, mpRange< double > *boundY, int yAxisID) |
| | Return the bounding box coordinates for the Y axis of ID yAxisID.
|
| |
|
bool | PointIsInsideBound (double px, double py, int yAxisID) |
| | Is the given point inside the current bounding box for the selected Y axis?
|
| |
| void | UpdateBoundingBoxToInclude (double px, double py, int yAxisID) |
| | Ensure the bounding box includes the given point for the selected Y axis. More...
|
| |
|
void | InitializeBoundingBox (double px, double py, int yAxisID) |
| | Initialize the bounding box from a first point for the selected Y axis.
|
| |
| void | SetMPScrollbars (bool status) |
| | Enable/disable scrollbars. More...
|
| |
| bool | GetMPScrollbars () const |
| | Get scrollbars status. More...
|
| |
| bool | SaveScreenshot (const wxString &filename, int type=wxBITMAP_TYPE_BMP, wxSize imageSize=wxDefaultSize, bool fit=false) |
| | Draw the window on a wxBitmap, then save it to a file. More...
|
| |
|
wxBitmap * | BitmapScreenshot (wxSize imageSize=wxDefaultSize, bool fit=false) |
| | Get a screen shot of the window plot.
|
| |
|
void | ClipboardScreenshot (wxSize imageSize=wxDefaultSize, bool fit=false) |
| | Send the screen shot to the Clipboard.
|
| |
|
void | SetWildcard (const wxString &wildcard) |
| | Set wildcard for LoadFile() function when we use wxFileDialog.
|
| |
|
const wxString & | GetWildcard (void) const |
| | Get wildcard.
|
| |
| bool | LoadFile (const wxString &filename=wxEmptyString) |
| | Load a data file like a csv file Data must be formatted in 2 or more columns. More...
|
| |
| void | SetDefaultDir (const wxString &dirname) |
| | Set the default directory for wxFileDialog. More...
|
| |
| void | SetMargins (int top, int right, int bottom, int left) |
| | Set window margins, creating a blank area where some kinds of layers cannot draw. More...
|
| |
| void | UpdateMargins () |
| | Update margins if e.g. More...
|
| |
| void | SetMarginTop (int top) |
| | Set the top margin. More...
|
| |
| int | GetMarginTop (bool minusExtra=false) const |
| | Get the top margin. More...
|
| |
| void | SetMarginRight (int right) |
| | Set the right margin. More...
|
| |
| int | GetMarginRight (bool minusExtra=false) const |
| | Get the right margin. More...
|
| |
| int | GetMarginRightOuter () const |
| | Get the right outer margin, exluding Y-axis. More...
|
| |
| void | SetMarginBottom (int bottom) |
| | Set the bottom margin. More...
|
| |
| int | GetMarginBottom (bool minusExtra=false) const |
| | Get the bottom margin. More...
|
| |
| void | SetMarginLeft (int left) |
| | Set the left margin. More...
|
| |
| int | GetMarginLeft (bool minusExtra=false) const |
| | Get the left margin. More...
|
| |
| void | SetExtraMargin (int extra) |
| | Set the extra margin. More...
|
| |
| int | GetExtraMargin () const |
| | Get the extra margin. More...
|
| |
| int | GetMarginLeftOuter () const |
| | Get the left outer margin, exluding Y-axis. More...
|
| |
| int | GetPlotWidth () const |
| | Get the width of the plot. More...
|
| |
| int | GetPlotHeight () const |
| | Get the height of the plot. More...
|
| |
| mpRect | GetPlotBoundaries (bool with_margin) const |
| | Get the boundaries of the plot. More...
|
| |
| int | GetLeftYAxesWidth (mpOptional_int yAxisID=-1) |
| | Calculate width of all axes to the left of this axis. More...
|
| |
| int | GetRightYAxesWidth (mpOptional_int yAxisID=-1) |
| | Calculate width of all axes to the right of this axis. More...
|
| |
| void | SetDrawBox (bool drawbox) |
| | Set the draw of the box around the plot. More...
|
| |
| bool | GetDrawBox () const |
| | Get the draw of the box around the plot. More...
|
| |
| mpOptional_int | IsInsideYAxis (const wxPoint &point) |
| | Check if a given point is inside the area of a visible Y-axis and returns its ID if so. More...
|
| |
| mpInfoLayer * | IsInsideInfoLayer (const wxPoint &point) |
| | Check if a given point is inside the area of a mpInfoLayer and eventually returns its pointer. More...
|
| |
| void | SetLayerVisible (const wxString &name, bool viewable) |
| | Sets the visibility of a layer by its name. More...
|
| |
| bool | IsLayerVisible (const wxString &name) |
| | Check whether a layer with given name is visible. More...
|
| |
| bool | IsLayerVisible (const unsigned int position) |
| | Check whether the layer at given position is visible. More...
|
| |
| void | SetLayerVisible (const unsigned int position, bool viewable) |
| | Sets the visibility of a layer by its position in layer list. More...
|
| |
| void | SetColourTheme (const wxColour &bgColour, const wxColour &drawColour, const wxColour &axesColour) |
| | Set Color theme. More...
|
| |
| const wxColour & | GetAxesColour () const |
| | Get axes draw colour. More...
|
| |
|
const wxColour & | GetbgColour () const |
| | Get the plot background colour.
|
| |
|
void | SetbgColour (const wxColour &colour) |
| | Set the plot background colour.
|
| |
| void | SetOnDeleteLayer (const mpOnDeleteLayer &event) |
| | On delete layer event Allows the user to perform certain actions before deleting the layer. More...
|
| |
|
void | UnSetOnDeleteLayer () |
| | Remove the 'delete layer event' callback.
|
| |
| void | SetOnUserMouseAction (const mpOnUserMouseAction &userMouseEventHandler) |
| | On user mouse action event Allows the user to perform certain actions before normal event processing. More...
|
| |
|
void | UnSetOnUserMouseAction () |
| | Remove the 'user mouse action event' callback.
|
| |
|
bool | IsLogXaxis () |
| | Is this an X axis to be displayed with log scale? It is really an axis property but as we need to control the bound and the scale, it is easiest and faster to declare this property here.
|
| |
|
bool | IsLogYaxis (int yAxisID) |
| | Get the log property (true or false) Y layer (Y axis) with a specific Y ID or false if not found.
|
| |
|
void | SetLogXaxis (bool log) |
| | Enable or disable logarithmic scaling on the X axis.
|
| |
|
void | SetLogYaxis (int yAxisID, bool log) |
| | Set the log property (true or false) for a Y layer (Y axis) given by is ID.
|
| |
|
bool | GetMagnetize () const |
| | Is mouse magnetization enabled? Useful to read the position on the axes.
|
| |
|
void | SetMagnetize (bool mag) |
| | Enable or disable mouse-position magnet lines (cross-hairs) in the plot area.
|
| |
| void | SetMouseLeftDownAction (mpMouseButtonAction action) |
| | Set the type of action for the left mouse button. More...
|
| |
| mpMouseButtonAction | GetMouseLeftDownAction () |
| | Returns the type of action for the left mouse button. More...
|
| |
|
|
virtual void | BindEvents (void) |
| | Connect all events.
|
| |
|
virtual void | OnPaint (wxPaintEvent &event) |
| | Paint handler, will plot all attached layers.
|
| |
|
virtual void | OnSize (wxSizeEvent &event) |
| | Size handler, will update scroll bar sizes.
|
| |
|
virtual void | OnShowPopupMenu (wxMouseEvent &event) |
| | Mouse handler, will show context menu.
|
| |
|
virtual void | OnCenter (wxCommandEvent &event) |
| | Center handler.
|
| |
|
virtual void | OnFit (wxCommandEvent &event) |
| | Fit handler.
|
| |
|
virtual void | OnToggleGrids (wxCommandEvent &event) |
| | Toggle Grids handler.
|
| |
|
virtual void | OnToggleCoords (wxCommandEvent &event) |
| | Toggle Coords handler.
|
| |
|
virtual void | OnScreenShot (wxCommandEvent &event) |
| | ScreenShot handler.
|
| |
|
virtual void | OnFullScreen (wxCommandEvent &event) |
| | FullScreen handler.
|
| |
| virtual void | OnLoadFile (wxCommandEvent &event) |
| | Load File handler. More...
|
| |
|
virtual void | OnZoomIn (wxCommandEvent &event) |
| | Zoom In handler.
|
| |
|
virtual void | OnZoomOut (wxCommandEvent &event) |
| | Zoom Out handler.
|
| |
|
virtual void | OnLockAspect (wxCommandEvent &event) |
| | Lock Aspect handler.
|
| |
|
virtual void | OnMouseHelp (wxCommandEvent &event) |
| | Help handler.
|
| |
|
virtual void | OnMouseLeftDown (wxMouseEvent &event) |
| | Mouse left click (for rect zoom)
|
| |
|
virtual void | OnMouseRightDown (wxMouseEvent &event) |
| | Mouse handler, for detecting when the user drags with the right button or just "clicks" for the menu.
|
| |
|
virtual void | OnMouseMove (wxMouseEvent &event) |
| | Mouse handler for mouse motion (for pan)
|
| |
|
virtual void | OnMouseLeftRelease (wxMouseEvent &event) |
| | Mouse left click (for rect zoom)
|
| |
|
virtual void | OnMouseWheel (wxMouseEvent &event) |
| | Mouse handler for the wheel.
|
| |
| virtual void | OnMouseLeave (wxMouseEvent &event) |
| | Mouse handler for mouse motion (for pan) More...
|
| |
|
bool | CheckUserMouseAction (wxMouseEvent &event) |
| | Check if a user mouse action is required.
|
| |
|
virtual void | OnScrollThumbTrack (wxScrollWinEvent &event) |
| | Scroll thumb on scroll bar moving.
|
| |
|
virtual void | OnScrollPageUp (wxScrollWinEvent &event) |
| | Scroll page up.
|
| |
|
virtual void | OnScrollPageDown (wxScrollWinEvent &event) |
| | Scroll page down.
|
| |
|
virtual void | OnScrollLineUp (wxScrollWinEvent &event) |
| | Scroll line up.
|
| |
|
virtual void | OnScrollLineDown (wxScrollWinEvent &event) |
| | Scroll line down.
|
| |
|
virtual void | OnScrollTop (wxScrollWinEvent &event) |
| | Scroll to top.
|
| |
|
virtual void | OnScrollBottom (wxScrollWinEvent &event) |
| | Scroll to bottom.
|
| |
| void | DoScrollCalc (const int position, const int orientation) |
| | Update scrolling state from a scrollbar position/orientation pair. More...
|
| |
| void | DoZoomXCalc (bool zoomIn, wxCoord staticXpixel=-1) |
| | Zoom in or out X around a X position. More...
|
| |
| void | DoZoomYCalc (bool zoomIn, wxCoord staticYpixel=-1, mpOptional_int yAxisID=-1) |
| | Zoom in or out Y around a Y position. More...
|
| |
| void | SetScaleXAndCenter (double scaleX) |
| | Set the m_scaleX directly to fixed zoom level, but also adjust m_posX to to make the zoom around center. More...
|
| |
| void | SetScaleYAndCenter (double scaleY, int yAxisID) |
| | Set the m_scaleY directly to fixed zoom level, but also adjust m_posY to to make the zoom around center. More...
|
| |
| void | Zoom (bool zoomIn, const wxPoint ¢erPoint) |
| | zoom action More...
|
| |
| virtual bool | UpdateBBox () |
| | Set bounding box 'm_bound' to contain all visible plots of this mpWindow. More...
|
| |
|
void | InitParameters () |
| | Function to initialize all variables to their default values This function is called in mpWindow constructor and should not be used anymore.
|
| |
| virtual void | DesiredBoundsHaveChanged () |
| | To be notified of displayed bounds changes (after user zoom etc), override this callback in your derived class and look at the new value of m_desired. More...
|
| |
|
|
wxTopLevelWindow * | m_parent |
| | Pointer to the top-level window containing the plot (used for fullscreen)
|
| |
|
bool | m_fullscreen |
| | Boolean value indicating that we are in fullscreen mode (default false)
|
| |
|
mpLayerList | m_layers |
| | List of attached plot layers.
|
| |
|
mpAxisData | m_AxisDataX |
| | Axis data for the X direction.
|
| |
|
mpAxisList | m_AxisDataYList |
| | List of axis data for the Y direction.
|
| |
|
wxMenu | m_popmenu |
| | Canvas' context menu.
|
| |
|
bool | m_lockaspect |
| | Scale aspect is locked or not.
|
| |
|
wxColour | m_bgColour |
| | Background Colour.
|
| |
|
wxColour | m_fgColour |
| | Foreground Colour.
|
| |
|
wxColour | m_axColour |
| | Axes Colour.
|
| |
|
bool | m_drawBox |
| | Draw box of the plot bound. Default true.
|
| |
|
int | m_scrX |
| | Current view's X dimension in DC units, including all scales, margins.
|
| |
|
int | m_scrY |
| | Current view's Y dimension.
|
| |
|
int | m_clickedX |
| | Last mouse click X position, for centering and zooming the view.
|
| |
|
int | m_clickedY |
| | Last mouse click Y position, for centering and zooming the view.
|
| |
|
mpRect | m_margin |
| | Margin around the plot including Y-axis.
|
| |
|
mpRect | m_marginOuter |
| | Margin around the plot exluding Y-axis. Default 50.
|
| |
|
int | m_extraMargin |
| | Extra margin around the plot. Default 8.
|
| |
|
wxCoord | m_plotWidth |
| | Width of the plot = m_scrX - (m_margin.left + m_margin.right)
|
| |
|
wxCoord | m_plotHeight |
| | Height of the plot = m_scrY - (m_margin.top + m_margin.bottom)
|
| |
|
mpRect | m_plotBoundaries |
| | The full size of the plot. Calculated.
|
| |
|
mpRect | m_plotBoundariesMargin |
| | The size of the plot with the margins. Calculated.
|
| |
|
wxRect | m_PlotArea |
| | The full size of the plot with m_extraMargin.
|
| |
|
bool | m_repainting |
| | Boolean value indicating that we are in repaint step.
|
| |
|
int | m_last_lx |
| | Last logical X origin, used for double buffering.
|
| |
|
int | m_last_ly |
| | Last logical Y origin, used for double buffering.
|
| |
|
wxBitmap * | m_buff_bmp |
| | For double buffering.
|
| |
|
bool | m_enableDoubleBuffer |
| | For double buffering. Default enabled.
|
| |
|
bool | m_enableMouseNavigation |
| | For pan/zoom with the mouse.
|
| |
|
mpMouseButtonAction | m_mouseLeftDownAction |
| | Type of action for left mouse button.
|
| |
|
bool | m_mouseMovedAfterRightClick |
| | If the mouse does not move after a right click, then the context menu is displayed.
|
| |
|
wxPoint | m_mouseRClick |
| | For the right button "drag" feature.
|
| |
|
wxPoint | m_mouseLClick |
| | Starting coords for rectangular zoom selection.
|
| |
|
double | m_mouseScaleX |
| | Store current X-scale, used as reference during drag zooming.
|
| |
|
std::unordered_map< int, double > | m_mouseScaleYList |
| | Store current Y-scales, used as reference during drag zooming.
|
| |
|
mpOptional_int | m_mouseYAxisID |
| | Indicate which ID of Y-axis the mouse was on during zoom/pan.
|
| |
|
bool | m_enableScrollBars |
| | Enable scrollbar in plot window (default false)
|
| |
|
mpInfoLayer * | m_movingInfoLayer |
| | For moving info layers over the window area.
|
| |
|
mpInfoCoords * | m_InfoCoords |
| | Pointer to the optional info coords layer.
|
| |
|
mpInfoLegend * | m_InfoLegend |
| | Pointer to the optional info legend layer.
|
| |
|
bool | m_InInfoLegend |
| | Boolean value indicating that the mouse is moving over the legend area.
|
| |
|
wxBitmap * | m_zoom_bmp |
| | For zoom selection.
|
| |
|
wxRect | m_zoom_Dim |
| | Rectangular area selected for zoom.
|
| |
|
bool | m_magnetize |
| | For mouse magnetization.
|
| |
|
mpMagnet | m_magnet |
| | For mouse magnetization.
|
| |
|
wxBitmap * | m_Screenshot_bmp |
| | For clipboard, save and print.
|
| |
|
wxString | m_wildcard |
| | For loadfile() function when we use wxFileDialog.
|
| |
|
wxString | m_DefaultDir |
| | The default directory for wxFileDialog.
|
| |
|
mpOnDeleteLayer | m_OnDeleteLayer = NULL |
| | Event when we delete a layer.
|
| |
|
mpOnUserMouseAction | m_OnUserMouseAction = NULL |
| | Event when we have a mouse click.
|
| |
Canvas for plotting mpLayer implementations.
This class defines a zoomable and moveable 2D plot canvas. Any number of mpLayer implementations (scale rulers, function plots, ...) can be attached using mpWindow::AddLayer.
The canvas window provides a context menu with actions for navigating the view. The context menu can be retrieved with mpWindow::GetPopupMenu, e.g. for extending it externally.
Since wxMathPlot version 0.03, the mpWindow incorporates the following features:
- DoubleBuffering (Default=disabled): Can be set with EnableDoubleBuffer
- Mouse based pan/zoom (Default=enabled): Can be set with EnableMousePanZoom.
The mouse commands can be visualized by the user through the popup menu, and are:
- Mouse Move+CTRL: Pan (Move)
- Mouse Wheel UP: Zoom in
- Mouse Wheel DOWN: Zoom out
- Mouse Wheel+CTRL: Vertical scroll
- Mouse Wheel+SHIFT: Horizontal scroll