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:
The mouse commands can be visualized by the user through the popup menu, and are:
Definition at line 841 of file mathplot.h.
#include <mrpt/otherlibs/mathplot/mathplot.h>
Public Member Functions | |
mpWindow () | |
mpWindow (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long flags=0) | |
~mpWindow () | |
wxMenu * | GetPopupMenu () |
Get reference to context menu of the plot canvas. More... | |
bool | AddLayer (mpLayer *layer, bool refreshDisplay=true) |
Add a plot layer to the canvas. More... | |
bool | DelLayer (mpLayer *layer, bool alsoDeleteObject=false, bool refreshDisplay=true) |
Remove a plot layer from the canvas. More... | |
void | DelAllLayers (bool alsoDeleteObject, bool refreshDisplay=true) |
Remove all layers from the plot. More... | |
mpLayer * | GetLayer (int position) |
mpLayer * | GetLayerByName (const wxString &name) |
double | GetXscl () |
Get current view's X scale. More... | |
double | GetScaleX (void) const |
double | GetYscl () const |
Get current view's Y scale. More... | |
double | GetScaleY (void) const |
double | GetXpos () const |
Get current view's X position. More... | |
double | GetPosX (void) const |
double | GetYpos () const |
Get current view's Y position. More... | |
double | GetPosY (void) const |
int | GetScrX (void) const |
Get current view's X dimension in device context units. More... | |
int | GetXScreen (void) const |
int | GetScrY (void) const |
Get current view's Y dimension in device context units. More... | |
int | GetYScreen (void) const |
void | SetScaleX (double scaleX) |
Set current view's X scale and refresh display. More... | |
void | SetScaleY (double scaleY) |
Set current view's Y scale and refresh display. More... | |
void | SetPosX (double posX) |
Set current view's X position and refresh display. More... | |
void | SetPosY (double posY) |
Set current view's Y position and refresh display. More... | |
void | SetPos (double posX, double posY) |
Set current view's X and Y position and refresh display. More... | |
void | SetScr (int scrX, int scrY) |
Set current view's dimensions in device context units. More... | |
double | p2x (wxCoord pixelCoordX) |
Converts mpWindow (screen) pixel coordinates into graph (floating point) coordinates, using current mpWindow position and scale. More... | |
double | p2y (wxCoord pixelCoordY) |
Converts mpWindow (screen) pixel coordinates into graph (floating point) coordinates, using current mpWindow position and scale. More... | |
wxCoord | x2p (double x) |
Converts graph (floating point) coordinates into mpWindow (screen) pixel coordinates, using current mpWindow position and scale. More... | |
wxCoord | y2p (double y) |
Converts graph (floating point) coordinates into mpWindow (screen) pixel coordinates, using current mpWindow position and scale. More... | |
void | EnableDoubleBuffer (bool enabled) |
Enable/disable the double-buffering of the window, eliminating the flicker (default=disabled). More... | |
void | EnableMousePanZoom (bool enabled) |
Enable/disable the feature of pan/zoom with the mouse (default=enabled) More... | |
void | LockAspect (bool enable=TRUE) |
Enable or disable X/Y scale aspect locking for the view. More... | |
bool | IsAspectLocked () |
Checks whether the X/Y scale aspect is locked. More... | |
void | Fit () |
Set view to fit global bounding box of all plot layers and refresh display. More... | |
void | 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. 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 and refresh display. More... | |
void | ZoomOutX () |
Zoom out current view along X and refresh display. More... | |
void | ZoomInY () |
Zoom in current view along Y and refresh display. More... | |
void | ZoomOutY () |
Zoom out current view along Y 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. More... | |
unsigned int | CountLayers () |
Counts the number of plot layers, excluding axes or text: this is to count only the layers which have a bounding box. More... | |
size_t | CountAllLayers () |
Counts the number of plot layers, whether or not they have a bounding box. More... | |
void | ShowPrintDialog () |
Draws the mpWindow on a page for printing. More... | |
double | GetDesiredXmin () |
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 () |
Returns 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 () |
Returns 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 () |
Returns 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... | |
void | GetBoundingBox (double *bbox) |
Returns the bounding box coordinates. More... | |
void | SetMPScrollbars (bool status) |
Enable/disable scrollbars. More... | |
bool | GetMPScrollbars () |
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... | |
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 | SetMarginTop (int top) |
Set the top margin. More... | |
void | SetMarginRight (int right) |
Set the right margin. More... | |
void | SetMarginBottom (int bottom) |
Set the bottom margin. More... | |
void | SetMarginLeft (int left) |
Set the left margin. More... | |
int | GetMarginTop () |
Get the top margin. More... | |
int | GetMarginRight () |
Get the right margin. More... | |
int | GetMarginBottom () |
Get the bottom margin. More... | |
int | GetMarginLeft () |
Get the left margin. More... | |
mpInfoLayer * | IsInsideInfoLayer (wxPoint &point) |
Sets whether to show coordinate tooltip when mouse passes over the plot. 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... | |
void | SetLayerVisible (const unsigned int position, bool viewable) |
Sets the visibility of a layer by its position in layer list. More... | |
bool | IsLayerVisible (const unsigned int position) |
Check whether the layer at given position is visible. More... | |
void | SetColourTheme (const wxColour &bgColour, const wxColour &drawColour, const wxColour &axesColour) |
Set Color theme. More... | |
const wxColour & | GetAxesColour () |
Get axes draw colour. More... | |
virtual bool | UpdateBBox () |
Recalculate global layer bounding box, and save it in m_minX,... More... | |
Static Public Attributes | |
static double | zoomIncrementalFactor |
This value sets the zoom steps whenever the user clicks "Zoom in/out" or performs zoom with the mouse wheel. More... | |
Protected Member Functions | |
void | OnPaint (wxPaintEvent &event) |
Paint handler, will plot all attached layers. More... | |
void | OnSize (wxSizeEvent &event) |
Size handler, will update scroll bar sizes. More... | |
void | OnShowPopupMenu (wxMouseEvent &event) |
Mouse handler, will show context menu. More... | |
void | OnMouseRightDown (wxMouseEvent &event) |
Mouse handler, for detecting when the user drags with the right button or just "clicks" for the menu. More... | |
void | OnCenter (wxCommandEvent &event) |
Context menu handler. More... | |
void | OnFit (wxCommandEvent &event) |
Context menu handler. More... | |
void | OnZoomIn (wxCommandEvent &event) |
Context menu handler. More... | |
void | OnZoomOut (wxCommandEvent &event) |
Context menu handler. More... | |
void | OnLockAspect (wxCommandEvent &event) |
Context menu handler. More... | |
void | OnMouseHelp (wxCommandEvent &event) |
Context menu handler. More... | |
void | OnPrintMenu (wxCommandEvent &event) |
Context menu handler. More... | |
void | OnMouseWheel (wxMouseEvent &event) |
Mouse handler for the wheel. More... | |
void | OnMouseMove (wxMouseEvent &event) |
Mouse handler for mouse motion (for pan) More... | |
void | OnMouseLeftDown (wxMouseEvent &event) |
Mouse left click (for rect zoom) More... | |
void | OnMouseLeftRelease (wxMouseEvent &event) |
Mouse left click (for rect zoom) More... | |
void | OnScrollThumbTrack (wxScrollWinEvent &event) |
Scroll thumb on scroll bar moving. More... | |
void | OnScrollPageUp (wxScrollWinEvent &event) |
Scroll page up. More... | |
void | OnScrollPageDown (wxScrollWinEvent &event) |
Scroll page down. More... | |
void | OnScrollLineUp (wxScrollWinEvent &event) |
Scroll line up. More... | |
void | OnScrollLineDown (wxScrollWinEvent &event) |
Scroll line down. More... | |
void | OnScrollTop (wxScrollWinEvent &event) |
Scroll to top. More... | |
void | OnScrollBottom (wxScrollWinEvent &event) |
Scroll to bottom. More... | |
void | DoScrollCalc (const int position, const int orientation) |
void | DoZoomInXCalc (const int staticXpixel) |
void | DoZoomInYCalc (const int staticYpixel) |
void | DoZoomOutXCalc (const int staticXpixel) |
void | DoZoomOutYCalc (const int staticYpixel) |
Protected Attributes | |
wxLayerList | m_layers |
List of attached plot layers. More... | |
wxMenu | m_popmenu |
Canvas' context menu. More... | |
bool | m_lockaspect |
Scale aspect is locked or not. More... | |
wxColour | m_bgColour |
Background Colour. More... | |
wxColour | m_fgColour |
Foreground Colour. More... | |
wxColour | m_axColour |
Axes Colour. More... | |
double | m_minX |
Global layer bounding box, left border incl. More... | |
double | m_maxX |
Global layer bounding box, right border incl. More... | |
double | m_minY |
Global layer bounding box, bottom border incl. More... | |
double | m_maxY |
Global layer bounding box, top border incl. More... | |
double | m_scaleX |
Current view's X scale. More... | |
double | m_scaleY |
Current view's Y scale. More... | |
double | m_posX |
Current view's X position. More... | |
double | m_posY |
Current view's Y position. More... | |
int | m_scrX |
Current view's X dimension. More... | |
int | m_scrY |
Current view's Y dimension. More... | |
int | m_clickedX |
Last mouse click X position, for centering and zooming the view. More... | |
int | m_clickedY |
Last mouse click Y position, for centering and zooming the view. More... | |
double | m_desiredXmin |
These are updated in Fit() only, and may be different from the real borders (layer coordinates) only if lock aspect ratio is true. More... | |
double | m_desiredXmax |
double | m_desiredYmin |
double | m_desiredYmax |
int | m_marginTop |
int | m_marginRight |
int | m_marginBottom |
int | m_marginLeft |
int | m_last_lx |
int | m_last_ly |
For double buffering. More... | |
wxMemoryDC | m_buff_dc |
For double buffering. More... | |
wxBitmap * | m_buff_bmp |
For double buffering. More... | |
bool | m_enableDoubleBuffer |
For double buffering. More... | |
bool | m_enableMouseNavigation |
For pan/zoom with the mouse. More... | |
bool | m_mouseMovedAfterRightClick |
long | m_mouseRClick_X |
long | m_mouseRClick_Y |
For the right button "drag" feature. More... | |
int | m_mouseLClick_X |
int | m_mouseLClick_Y |
Starting coords for rectangular zoom selection. More... | |
bool | m_enableScrollBars |
int | m_scrollX |
int | m_scrollY |
mpInfoLayer * | m_movingInfoLayer |
For moving info layers over the window area. More... | |
|
inline |
Definition at line 844 of file mathplot.h.
References mpWindow, and mrpt::math::size().
mpWindow::mpWindow | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | flags = 0 |
||
) |
mpWindow::~mpWindow | ( | ) |
bool mpWindow::AddLayer | ( | mpLayer * | layer, |
bool | refreshDisplay = true |
||
) |
Add a plot layer to the canvas.
layer | Pointer to layer. The mpLayer object will get under control of mpWindow, i.e. it will be delete'd on mpWindow destruction |
refreshDisplay | States whether to refresh the display (UpdateAll) after adding the layer. |
TRUE | Success |
FALSE | Failure due to out of memory. |
|
inline |
Counts the number of plot layers, whether or not they have a bounding box.
Definition at line 1064 of file mathplot.h.
unsigned int mpWindow::CountLayers | ( | ) |
Counts the number of plot layers, excluding axes or text: this is to count only the layers which have a bounding box.
void mpWindow::DelAllLayers | ( | bool | alsoDeleteObject, |
bool | refreshDisplay = true |
||
) |
Remove all layers from the plot.
alsoDeleteObject | If set to true, the mpLayer objects will be also "deleted", not just removed from the internal list. |
refreshDisplay | States whether to refresh the display (UpdateAll) after removing the layers. |
bool mpWindow::DelLayer | ( | mpLayer * | layer, |
bool | alsoDeleteObject = false , |
||
bool | refreshDisplay = true |
||
) |
Remove a plot layer from the canvas.
layer | Pointer to layer. The mpLayer object will be destructed using delete. |
alsoDeleteObject | If set to true, the mpLayer object will be also "deleted", not just removed from the internal list. |
refreshDisplay | States whether to refresh the display (UpdateAll) after removing the layer. |
N.B. Only the layer reference in the mpWindow is deleted, the layer object still exists!
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
Enable/disable the double-buffering of the window, eliminating the flicker (default=disabled).
Definition at line 997 of file mathplot.h.
|
inline |
Enable/disable the feature of pan/zoom with the mouse (default=enabled)
Definition at line 1001 of file mathplot.h.
void mpWindow::Fit | ( | ) |
Set view to fit global bounding box of all plot layers and refresh display.
Scale and position will be set to show all attached mpLayers. The X/Y scale aspect lock is taken into account.
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.
|
inline |
Get axes draw colour.
Definition at line 1183 of file mathplot.h.
void mpWindow::GetBoundingBox | ( | double * | bbox | ) |
Returns the bounding box coordinates.
bbox | Pointer to a 6-element double array where to store bounding box coordinates. |
|
inline |
Returns 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).
Definition at line 1085 of file mathplot.h.
|
inline |
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).
Definition at line 1080 of file mathplot.h.
|
inline |
Returns 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).
Definition at line 1095 of file mathplot.h.
|
inline |
Returns 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).
Definition at line 1090 of file mathplot.h.
mpLayer* mpWindow::GetLayer | ( | int | position | ) |
Get the layer in list position indicated. N.B. You must know the index of the layer inside the list!
position | position of the layer in the layers list |
mpLayer* mpWindow::GetLayerByName | ( | const wxString & | name | ) |
Get the layer by its name (case sensitive).
name | The name of the layer to retrieve |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get scrollbars status.
Definition at line 1107 of file mathplot.h.
|
inline |
Get reference to context menu of the plot canvas.
Definition at line 854 of file mathplot.h.
|
inline |
Definition at line 914 of file mathplot.h.
|
inline |
Definition at line 921 of file mathplot.h.
|
inline |
Definition at line 900 of file mathplot.h.
|
inline |
Definition at line 907 of file mathplot.h.
|
inline |
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
Definition at line 929 of file mathplot.h.
|
inline |
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
Definition at line 938 of file mathplot.h.
|
inline |
Get current view's X position.
See rules for coordinate transformation
Definition at line 913 of file mathplot.h.
|
inline |
Get current view's X scale.
See rules for coordinate transformation
Definition at line 899 of file mathplot.h.
|
inline |
Definition at line 930 of file mathplot.h.
|
inline |
Get current view's Y position.
See rules for coordinate transformation
Definition at line 920 of file mathplot.h.
|
inline |
Get current view's Y scale.
See rules for coordinate transformation
Definition at line 906 of file mathplot.h.
|
inline |
Definition at line 939 of file mathplot.h.
|
inline |
Checks whether the X/Y scale aspect is locked.
TRUE | Locked |
FALSE | Unlocked |
Definition at line 1014 of file mathplot.h.
mpInfoLayer* mpWindow::IsInsideInfoLayer | ( | wxPoint & | point | ) |
Sets whether to show coordinate tooltip when mouse passes over the plot.
value | true for enable, false for disable Gets coordinate tooltip status. |
point | The position to be checked |
bool mpWindow::IsLayerVisible | ( | const wxString & | name | ) |
Check whether a layer with given name is visible.
name | The layer name |
bool mpWindow::IsLayerVisible | ( | const unsigned int | position | ) |
Check whether the layer at given position is visible.
position | The layer position in layer list |
void mpWindow::LockAspect | ( | bool | enable = TRUE | ) |
Enable or disable X/Y scale aspect locking for the view.
|
protected |
Context menu handler.
|
protected |
Context menu handler.
|
protected |
Context menu handler.
|
protected |
Context menu handler.
|
protected |
Mouse left click (for rect zoom)
|
protected |
Mouse left click (for rect zoom)
|
protected |
Mouse handler for mouse motion (for pan)
|
protected |
Mouse handler, for detecting when the user drags with the right button or just "clicks" for the menu.
|
protected |
Mouse handler for the wheel.
|
protected |
Paint handler, will plot all attached layers.
|
protected |
Context menu handler.
|
protected |
Scroll to bottom.
|
protected |
Scroll line down.
|
protected |
Scroll line up.
|
protected |
Scroll page down.
|
protected |
Scroll page up.
|
protected |
Scroll thumb on scroll bar moving.
|
protected |
Scroll to top.
|
protected |
Mouse handler, will show context menu.
|
protected |
Size handler, will update scroll bar sizes.
|
protected |
Context menu handler.
|
protected |
Context menu handler.
|
inline |
|
inline |
bool mpWindow::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.
filename | File name where to save the screenshot |
type | image type to be saved: see wxImage output file types for flags |
imageSize | Set a size for the output image. Default is the same as the screen size |
fit | Decide whether to fit the plot into the size |
void mpWindow::SetColourTheme | ( | const wxColour & | bgColour, |
const wxColour & | drawColour, | ||
const wxColour & | axesColour | ||
) |
Set Color theme.
Provide colours to set a new colour theme.
bgColour | Background colour |
drawColour | The colour used to draw all elements in foreground, axes excluded |
axesColour | The colour used to draw axes (but not their labels) |
void mpWindow::SetLayerVisible | ( | const wxString & | name, |
bool | viewable | ||
) |
Sets the visibility of a layer by its name.
name | The layer name to set visibility |
viewable | the view status to be set |
void mpWindow::SetLayerVisible | ( | const unsigned int | position, |
bool | viewable | ||
) |
Sets the visibility of a layer by its position in layer list.
position | The layer position in layer list |
viewable | the view status to be set |
|
inline |
|
inline |
|
inline |
void mpWindow::SetMargins | ( | int | top, |
int | right, | ||
int | bottom, | ||
int | left | ||
) |
Set window margins, creating a blank area where some kinds of layers cannot draw.
This is useful for example to draw axes outside the area where the plots are drawn.
top | Top border |
right | Right border |
bottom | Bottom border |
left | Left border |
|
inline |
void mpWindow::SetMPScrollbars | ( | bool | status | ) |
Enable/disable scrollbars.
status | Set to true to show scrollbars |
|
inline |
Set current view's X and Y position and refresh display.
posX | New position that corresponds to the center point of the view. |
posY | New position that corresponds to the center point of the view. |
Definition at line 965 of file mathplot.h.
|
inline |
Set current view's X position and refresh display.
posX | New position that corresponds to the center point of the view. |
Definition at line 954 of file mathplot.h.
|
inline |
Set current view's Y position and refresh display.
posY | New position that corresponds to the center point of the view. |
Definition at line 959 of file mathplot.h.
void mpWindow::SetScaleX | ( | double | scaleX | ) |
Set current view's X scale and refresh display.
scaleX | New scale, must not be 0. |
|
inline |
Set current view's Y scale and refresh display.
scaleY | New scale, must not be 0. |
Definition at line 949 of file mathplot.h.
|
inline |
Set current view's dimensions in device context units.
Needed by plotting functions. It doesn't refresh display.
scrX | New position that corresponds to the center point of the view. |
scrY | New position that corresponds to the center point of the view. |
Definition at line 972 of file mathplot.h.
|
inline |
Draws the mpWindow on a page for printing.
the mpPrintout where to print the graph |
Definition at line 1070 of file mathplot.h.
void mpWindow::UpdateAll | ( | ) |
Refresh display.
|
virtual |
Recalculate global layer bounding box, and save it in m_minX,...
|
inline |
|
inline |
void mpWindow::ZoomIn | ( | const wxPoint & | centerPoint = wxDefaultPosition | ) |
Zoom into current view and refresh display.
centerPoint | The point (pixel coordinates) that will stay in the same position on the screen after the zoom (by default, the center of the mpWindow). |
void mpWindow::ZoomInX | ( | ) |
Zoom in current view along X and refresh display.
void mpWindow::ZoomInY | ( | ) |
Zoom in current view along Y and refresh display.
void mpWindow::ZoomOut | ( | const wxPoint & | centerPoint = wxDefaultPosition | ) |
Zoom out current view and refresh display.
centerPoint | The point (pixel coordinates) that will stay in the same position on the screen after the zoom (by default, the center of the mpWindow). |
void mpWindow::ZoomOutX | ( | ) |
Zoom out current view along X and refresh display.
void mpWindow::ZoomOutY | ( | ) |
Zoom out current view along Y and refresh display.
void mpWindow::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)
|
protected |
Axes Colour.
Definition at line 1229 of file mathplot.h.
|
protected |
Background Colour.
Definition at line 1227 of file mathplot.h.
|
protected |
For double buffering.
Definition at line 1252 of file mathplot.h.
|
protected |
For double buffering.
Definition at line 1251 of file mathplot.h.
|
protected |
Last mouse click X position, for centering and zooming the view.
Definition at line 1241 of file mathplot.h.
|
protected |
Last mouse click Y position, for centering and zooming the view.
Definition at line 1242 of file mathplot.h.
|
protected |
Definition at line 1246 of file mathplot.h.
|
protected |
These are updated in Fit() only, and may be different from the real borders (layer coordinates) only if lock aspect ratio is true.
Definition at line 1246 of file mathplot.h.
|
protected |
Definition at line 1246 of file mathplot.h.
|
protected |
Definition at line 1246 of file mathplot.h.
|
protected |
For double buffering.
Definition at line 1253 of file mathplot.h.
|
protected |
For pan/zoom with the mouse.
Definition at line 1254 of file mathplot.h.
|
protected |
Definition at line 1258 of file mathplot.h.
|
protected |
Foreground Colour.
Definition at line 1228 of file mathplot.h.
|
protected |
Definition at line 1250 of file mathplot.h.
|
protected |
For double buffering.
Definition at line 1250 of file mathplot.h.
|
protected |
List of attached plot layers.
Definition at line 1223 of file mathplot.h.
|
protected |
Scale aspect is locked or not.
Definition at line 1225 of file mathplot.h.
|
protected |
Definition at line 1248 of file mathplot.h.
|
protected |
Definition at line 1248 of file mathplot.h.
|
protected |
Definition at line 1248 of file mathplot.h.
|
protected |
Definition at line 1248 of file mathplot.h.
|
protected |
Global layer bounding box, right border incl.
Definition at line 1232 of file mathplot.h.
|
protected |
Global layer bounding box, top border incl.
Definition at line 1234 of file mathplot.h.
|
protected |
Global layer bounding box, left border incl.
Definition at line 1231 of file mathplot.h.
|
protected |
Global layer bounding box, bottom border incl.
Definition at line 1233 of file mathplot.h.
|
protected |
Definition at line 1257 of file mathplot.h.
|
protected |
Starting coords for rectangular zoom selection.
Definition at line 1257 of file mathplot.h.
|
protected |
Definition at line 1255 of file mathplot.h.
|
protected |
Definition at line 1256 of file mathplot.h.
|
protected |
For the right button "drag" feature.
Definition at line 1256 of file mathplot.h.
|
protected |
For moving info layers over the window area.
Definition at line 1260 of file mathplot.h.
|
protected |
Canvas' context menu.
Definition at line 1224 of file mathplot.h.
|
protected |
Current view's X position.
Definition at line 1237 of file mathplot.h.
|
protected |
Current view's Y position.
Definition at line 1238 of file mathplot.h.
|
protected |
Current view's X scale.
Definition at line 1235 of file mathplot.h.
|
protected |
Current view's Y scale.
Definition at line 1236 of file mathplot.h.
|
protected |
Definition at line 1259 of file mathplot.h.
|
protected |
Definition at line 1259 of file mathplot.h.
|
protected |
Current view's X dimension.
Definition at line 1239 of file mathplot.h.
|
protected |
Current view's Y dimension.
Definition at line 1240 of file mathplot.h.
|
static |
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.
Definition at line 1118 of file mathplot.h.
Page generated by Doxygen 1.8.11 for MRPT 1.4.0 SVN: at Sun Aug 14 23:58:29 UTC 2016 |