|
pappsomspp
Library for mass spectrometry
|
#include <baseplotwidget.h>
Signals | |
| void | setFocusSignal () |
| void | lastCursorHoveredPointSignal (const QPointF &pointf) |
| void | plotRangesChangedSignal (const BasePlotContext &context) |
| void | xAxisMeasurementSignal (const BasePlotContext &context, bool with_delta) |
| void | keyPressEventSignal (const BasePlotContext &context) |
| void | keyReleaseEventSignal (const BasePlotContext &context) |
| void | mouseReleaseEventSignal (const BasePlotContext &context) |
| void | plottableSelectionChangedSignal (QCPAbstractPlottable *plottable_p, bool selected) |
| void | integrationRequestedSignal (const BasePlotContext &context) |
| void | plottableDestructionRequestedSignal (BasePlotWidget *base_plot_widget_p, QCPAbstractPlottable *plottable_p, const BasePlotContext &context) |
Public Member Functions | |
| BasePlotWidget (QWidget *parent) | |
| BasePlotWidget (QWidget *parent, const QString &x_axis_label, const QString &y_axis_label) | |
| virtual | ~BasePlotWidget () |
Destruct this BasePlotWidget instance. More... | |
| virtual bool | setupWidget () |
| virtual void | setPen (const QPen &pen) |
| virtual const QPen & | getPen () const |
| virtual void | setPlottingColor (QCPAbstractPlottable *plottable_p, const QColor &new_color) |
| virtual void | setPlottingColor (int index, const QColor &new_color) |
| virtual QColor | getPlottingColor (QCPAbstractPlottable *plottable_p) const |
| virtual QColor | getPlottingColor (int index=0) const |
| virtual void | setAxisLabelX (const QString &label) |
| virtual void | setAxisLabelY (const QString &label) |
| virtual void | resetAxesRangeHistory () |
| virtual void | updateAxesRangeHistory () |
| Create new axis range history items and append them to the history. More... | |
| virtual void | restorePreviousAxesRangeHistory () |
| Go up one history element in the axis history. More... | |
| virtual void | restoreAxesRangeHistory (std::size_t index) |
Get the axis histories at index index and update the plot ranges. More... | |
| virtual void | keyPressEvent (QKeyEvent *event) |
| KEYBOARD-related EVENTS. More... | |
| virtual void | keyReleaseEvent (QKeyEvent *event) |
| Handle specific key codes and trigger respective actions. More... | |
| virtual void | spaceKeyReleaseEvent (QKeyEvent *event) |
| virtual void | directionKeyPressEvent (QKeyEvent *event) |
| virtual void | directionKeyReleaseEvent (QKeyEvent *event) |
| virtual void | mousePseudoButtonKeyPressEvent (QKeyEvent *event) |
| virtual void | mousePseudoButtonKeyReleaseEvent (QKeyEvent *event) |
| virtual void | mousePressHandler (QMouseEvent *event) |
| KEYBOARD-related EVENTS. More... | |
| virtual void | mouseReleaseHandler (QMouseEvent *event) |
| virtual void | mouseReleaseHandlerLeftButton () |
| virtual void | mouseReleaseHandlerRightButton () |
| virtual void | mouseMoveHandler (QMouseEvent *event) |
| virtual void | mouseMoveHandlerNotDraggingCursor () |
| virtual void | mouseMoveHandlerDraggingCursor () |
| virtual void | mouseMoveHandlerLeftButtonDraggingCursor () |
| virtual void | mouseMoveHandlerRightButtonDraggingCursor () |
| virtual void | axisDoubleClickHandler (QCPAxis *axis, QCPAxis::SelectablePart part, QMouseEvent *event) |
| bool | isClickOntoXAxis (const QPointF &mousePoint) |
| bool | isClickOntoYAxis (const QPointF &mousePoint) |
| int | dragDirection () |
| MOUSE-related EVENTS. More... | |
| virtual void | moveMouseCursorGraphCoordToGlobal (QPointF plot_coordinates) |
| virtual void | moveMouseCursorPixelCoordToGlobal (QPointF local_coordinates) |
| virtual void | horizontalMoveMouseCursorCountPixels (int pixel_count) |
| virtual QPointF | horizontalGetGraphCoordNewPointCountPixels (int pixel_count) |
| virtual void | verticalMoveMouseCursorCountPixels (int pixel_count) |
| virtual QPointF | verticalGetGraphCoordNewPointCountPixels (int pixel_count) |
| virtual QCPRange | getRangeX (bool &found_range, int index) const |
| MOUSE MOVEMENTS mouse/keyboard-triggered. More... | |
| virtual QCPRange | getRangeY (bool &found_range, int index) const |
| QCPRange | getRange (PlotAxis axis, RangeType range_type, bool &found_range) const |
| virtual QCPRange | getInnermostRangeX (bool &found_range) const |
| virtual QCPRange | getOutermostRangeX (bool &found_range) const |
| virtual QCPRange | getInnermostRangeY (bool &found_range) const |
| virtual QCPRange | getOutermostRangeY (bool &found_range) const |
| void | yMinMaxOnXAxisCurrentRange (double &min, double &max, QCPAbstractPlottable *plottable_p=nullptr) |
| void | yMinMaxOnXAxisCurrentRange (double &min, double &max, int index) |
| virtual void | axisRescale () |
| RANGE-related functions. More... | |
| virtual void | axisReframe () |
| virtual void | axisZoom () |
| virtual void | axisPan () |
| virtual void | replotWithAxesRanges (QCPRange xAxisRange, QCPRange yAxisRange, PlotAxis whichAxis) |
| virtual void | replotWithAxisRangeX (double lower, double upper) |
| virtual void | replotWithAxisRangeY (double lower, double upper) |
| virtual void | hideAllPlotItems () |
| PLOTTING / REPLOTTING functions. More... | |
| virtual void | showTracers () |
| Show the traces (vertical and horizontal). More... | |
| virtual void | hideTracers () |
| Hide the traces (vertical and horizontal). More... | |
| virtual void | drawRectangleAndPrepareZoom () |
| virtual void | prepareXDeltaLineAndMeasure () |
| virtual void | drawXDeltaLineAndMeasure () |
| virtual void | drawXDeltaLineForIntegration () |
| virtual void | calculateDragDeltas () |
| virtual void | calculateDragDeltasAndUnSortedRegionCorners () |
| virtual bool | isProperSelectionRectangle () |
| virtual void | setFocus () |
| PLOT ITEMS : TRACER TEXT ITEMS... More... | |
| virtual void | redrawPlotBackground (QWidget *focusedPlotWidget) |
Redraw the background of the focusedPlotWidget plot widget. More... | |
| virtual void | updateContextRanges () |
| virtual const BasePlotContext & | getContext () const |
Protected Attributes | |
| QString | m_name = "NOT_SET" |
| Name of the plot widget. More... | |
| QString | m_desc = "NOT_SET" |
| Description of the plot widget. More... | |
| QString | m_fileName |
| The name of the data file from which the mass data were read. More... | |
| QString | m_axisLabelX |
| QString | m_axisLabelY |
| BasePlotContext | m_context |
| int | m_leftMousePseudoButtonKey = Qt::Key_Less |
| int | m_rightMousePseudoButtonKey = Qt::Key_Greater |
| QCPItemRect * | mp_zoomRectItem = nullptr |
| Rectangle defining the borders of zoomed-in/out data. More... | |
| QCPItemLine * | mp_selectLineItem = nullptr |
| Line that is printed when the user selects a range. More... | |
| QCPItemText * | mp_xDeltaTextItem = nullptr |
| Text describing the x-axis delta value during a drag operation. More... | |
| bool | m_shouldTracersBeVisible = true |
| Tells if the tracers should be visible. More... | |
| QCPItemLine * | mp_hPosTracerItem |
| Horizontal position tracer. More... | |
| QCPItemLine * | mp_vPosTracerItem |
| Vertical position tracer. More... | |
| QCPItemLine * | mp_vStartTracerItem |
| Vertical selection start tracer (typically in green). More... | |
| QCPItemLine * | mp_vEndTracerItem |
| Vertical selection end tracer (typically in red). More... | |
| std::size_t | m_lastAxisRangeHistoryIndex = 0 |
| Index of the last axis range history item. More... | |
| std::vector< QCPRange * > | m_xAxisRangeHistory |
| List of x axis ranges occurring during the panning zooming actions. More... | |
| std::vector< QCPRange * > | m_yAxisRangeHistory |
| List of y axis ranges occurring during the panning zooming actions. More... | |
| int | m_mouseMoveHandlerSkipAmount = 10 |
| How many mouse move events must be skipped */. More... | |
| int | m_mouseMoveHandlerSkipCount = 0 |
| Counter to handle the "fat data" mouse move event handling. More... | |
| QColor | m_unfocusedColor = QColor("lightgray") |
| Color used for the background of unfocused plot. More... | |
| QBrush | m_unfocusedBrush = QBrush(m_unfocusedColor) |
| Color used for the background of unfocused plot. More... | |
| QColor | m_focusedColor = QColor(Qt::transparent) |
| Color used for the background of focused plot. More... | |
| QBrush | m_focusedBrush = QBrush(m_focusedColor) |
| Color used for the background of focused plot. More... | |
| QPen | m_pen |
| Pen used to draw the graph and textual elements in the plot widget. More... | |
Definition at line 135 of file baseplotwidget.h.
|
explicit |
|
explicit |
|
virtual |
Destruct this BasePlotWidget instance.
The destruction involves clearing the history, deleting all the axis range history items for x and y axes.
Definition at line 162 of file baseplotwidget.cpp.
References m_xAxisRangeHistory, and m_yAxisRangeHistory.
|
virtual |
Reimplemented in pappso::BaseTracePlotWidget.
Definition at line 1343 of file baseplotwidget.cpp.
References pappso::BasePlotContext::keyboardModifiers, m_context, plotRangesChangedSignal(), pappso::BasePlotContext::pressedMouseButtons, resetAxesRangeHistory(), updateAxesRangeHistory(), and updateContextRanges().
Referenced by setupWidget().
|
virtual |
Reimplemented in pappso::BaseTracePlotWidget.
Definition at line 1852 of file baseplotwidget.cpp.
References m_context, plotRangesChangedSignal(), updateContextRanges(), pappso::BasePlotContext::wasClickOnXAxis, pappso::BasePlotContext::wasClickOnYAxis, pappso::BasePlotContext::xDelta, pappso::BasePlotContext::xRange, pappso::BasePlotContext::yDelta, and pappso::BasePlotContext::yRange.
Referenced by mouseMoveHandlerLeftButtonDraggingCursor().
|
virtual |
Reimplemented in pappso::BaseTracePlotWidget.
Definition at line 1795 of file baseplotwidget.cpp.
References m_context, plotRangesChangedSignal(), updateAxesRangeHistory(), updateContextRanges(), pappso::BasePlotContext::xRegionRangeEnd, pappso::BasePlotContext::xRegionRangeStart, pappso::BasePlotContext::yRegionRangeEnd, and pappso::BasePlotContext::yRegionRangeStart.
Referenced by mouseReleaseHandlerLeftButton().
|
virtual |
RANGE-related functions.
PLOTTING / REPLOTTING functions
Reimplemented in pappso::BaseTracePlotWidget.
Definition at line 1713 of file baseplotwidget.cpp.
References pappso::BasePlotContext::currentDragPoint, m_context, plotRangesChangedSignal(), pappso::BasePlotContext::startDragPoint, updateContextRanges(), and pappso::BasePlotContext::wasClickOnXAxis.
Referenced by mouseMoveHandlerLeftButtonDraggingCursor().
|
virtual |
Reimplemented in pappso::BaseTracePlotWidget.
Definition at line 1829 of file baseplotwidget.cpp.
References m_context, plotRangesChangedSignal(), updateAxesRangeHistory(), updateContextRanges(), pappso::BasePlotContext::xRegionRangeEnd, pappso::BasePlotContext::xRegionRangeStart, pappso::BasePlotContext::yRegionRangeEnd, and pappso::BasePlotContext::yRegionRangeStart.
Referenced by mouseReleaseHandlerLeftButton().
|
virtual |
Definition at line 2122 of file baseplotwidget.cpp.
References pappso::BasePlotContext::currentDragPoint, m_context, pappso::BasePlotContext::startDragPoint, pappso::BasePlotContext::xDelta, and pappso::BasePlotContext::yDelta.
Referenced by calculateDragDeltasAndUnSortedRegionCorners().
|
virtual |
Definition at line 2146 of file baseplotwidget.cpp.
References calculateDragDeltas(), pappso::BasePlotContext::currentDragPoint, m_context, pappso::BasePlotContext::startDragPoint, pappso::BasePlotContext::xRegionRangeEnd, pappso::BasePlotContext::xRegionRangeStart, pappso::BasePlotContext::yRegionRangeEnd, and pappso::BasePlotContext::yRegionRangeStart.
Referenced by mouseMoveHandlerDraggingCursor(), and mouseReleaseHandler().
|
virtual |
Definition at line 647 of file baseplotwidget.cpp.
References horizontalMoveMouseCursorCountPixels(), pappso::BasePlotContext::keyboardModifiers, m_context, and verticalMoveMouseCursorCountPixels().
Referenced by keyPressEvent().
|
virtual |
Definition at line 690 of file baseplotwidget.cpp.
Referenced by keyReleaseEvent().
| int pappso::BasePlotWidget::dragDirection | ( | ) |
MOUSE-related EVENTS.
MOUSE MOVEMENTS mouse/keyboard-triggered
Definition at line 1445 of file baseplotwidget.cpp.
References pappso::BasePlotContext::currentDragPoint, m_context, and pappso::BasePlotContext::startDragPoint.
|
virtual |
Definition at line 1985 of file baseplotwidget.cpp.
References pappso::BasePlotContext::currentDragPoint, pappso::BasePlotContext::isMeasuringDistance, m_context, mp_selectLineItem, mp_xDeltaTextItem, mp_zoomRectItem, pappso::BasePlotContext::startDragPoint, xAxisMeasurementSignal(), pappso::BasePlotContext::xRegionRangeEnd, pappso::BasePlotContext::xRegionRangeStart, pappso::BasePlotContext::yRegionRangeEnd, and pappso::BasePlotContext::yRegionRangeStart.
Referenced by mouseMoveHandlerLeftButtonDraggingCursor().
|
virtual |
Definition at line 2088 of file baseplotwidget.cpp.
References m_context, mp_selectLineItem, prepareXDeltaLineAndMeasure(), and xAxisMeasurementSignal().
Referenced by mouseMoveHandlerLeftButtonDraggingCursor().
|
virtual |
Definition at line 2105 of file baseplotwidget.cpp.
References m_context, mp_selectLineItem, prepareXDeltaLineAndMeasure(), and xAxisMeasurementSignal().
Referenced by mouseMoveHandlerRightButtonDraggingCursor().
|
virtual |
Definition at line 2228 of file baseplotwidget.cpp.
References m_context.
|
virtual |
Definition at line 1678 of file baseplotwidget.cpp.
References getRange(), pappso::innermost, and pappso::x_axis.
|
virtual |
Definition at line 1693 of file baseplotwidget.cpp.
References getRange(), pappso::innermost, and pappso::y_axis.
|
virtual |
Definition at line 1686 of file baseplotwidget.cpp.
References getRange(), pappso::outermost, and pappso::x_axis.
|
virtual |
Definition at line 1701 of file baseplotwidget.cpp.
References getRange(), pappso::outermost, and pappso::y_axis.
|
virtual |
|
virtual |
Reimplemented in pappso::BaseColorMapPlotWidget.
Definition at line 338 of file baseplotwidget.cpp.
References getPlottingColor().
|
virtual |
| QCPRange pappso::BasePlotWidget::getRange | ( | PlotAxis | axis, |
| RangeType | range_type, | ||
| bool & | found_range | ||
| ) | const |
Definition at line 1586 of file baseplotwidget.cpp.
References pappso::innermost, pappso::outermost, pappso::x_axis, and pappso::y_axis.
Referenced by getInnermostRangeX(), getInnermostRangeY(), getOutermostRangeX(), and getOutermostRangeY().
|
virtual |
MOUSE MOVEMENTS mouse/keyboard-triggered.
RANGE-related functions
Definition at line 1562 of file baseplotwidget.cpp.
|
virtual |
Definition at line 1574 of file baseplotwidget.cpp.
|
virtual |
PLOTTING / REPLOTTING functions.
PLOT ITEMS : TRACER TEXT ITEMS...
PLOT ITEMS : TRACER TEXT ITEMS... Hide the selection line, the xDelta text and the zoom rectangle items.
Definition at line 1935 of file baseplotwidget.cpp.
References mp_selectLineItem, mp_xDeltaTextItem, and mp_zoomRectItem.
Referenced by restoreAxesRangeHistory().
|
virtual |
Hide the traces (vertical and horizontal).
Definition at line 1969 of file baseplotwidget.cpp.
References m_shouldTracersBeVisible, mp_hPosTracerItem, mp_vEndTracerItem, mp_vPosTracerItem, and mp_vStartTracerItem.
Referenced by keyReleaseEvent().
|
virtual |
Definition at line 1509 of file baseplotwidget.cpp.
References pappso::BasePlotContext::lastCursorHoveredPoint, and m_context.
Referenced by horizontalMoveMouseCursorCountPixels().
|
virtual |
Definition at line 1493 of file baseplotwidget.cpp.
References horizontalGetGraphCoordNewPointCountPixels(), and moveMouseCursorPixelCoordToGlobal().
Referenced by directionKeyPressEvent().
|
signal |
Referenced by mouseReleaseHandlerRightButton().
| bool pappso::BasePlotWidget::isClickOntoXAxis | ( | const QPointF & | mousePoint | ) |
| bool pappso::BasePlotWidget::isClickOntoYAxis | ( | const QPointF & | mousePoint | ) |
|
virtual |
Definition at line 2165 of file baseplotwidget.cpp.
References pappso::BasePlotContext::currentDragPoint, m_context, and pappso::BasePlotContext::startDragPoint.
Referenced by mouseMoveHandlerLeftButtonDraggingCursor().
|
virtual |
KEYBOARD-related EVENTS.
Reimplemented in pappso::MassSpecTracePlotWidget, pappso::TicXicChromTracePlotWidget, pappso::DriftSpecTracePlotWidget, pappso::DriftSpecMassSpecColorMapPlotWidget, and pappso::TicXicChromMassSpecColorMapPlotWidget.
Definition at line 491 of file baseplotwidget.cpp.
References directionKeyPressEvent(), pappso::BasePlotContext::keyboardModifiers, m_context, m_leftMousePseudoButtonKey, m_rightMousePseudoButtonKey, mousePseudoButtonKeyPressEvent(), and pappso::BasePlotContext::pressedKeyCode.
Referenced by pappso::DriftSpecMassSpecColorMapPlotWidget::keyPressEvent(), pappso::TicXicChromMassSpecColorMapPlotWidget::keyPressEvent(), pappso::DriftSpecTracePlotWidget::keyPressEvent(), pappso::TicXicChromTracePlotWidget::keyPressEvent(), and pappso::MassSpecTracePlotWidget::keyPressEvent().
|
signal |
|
virtual |
Handle specific key codes and trigger respective actions.
Reimplemented in pappso::MassSpecTracePlotWidget, pappso::TicXicChromTracePlotWidget, pappso::DriftSpecTracePlotWidget, pappso::DriftSpecMassSpecColorMapPlotWidget, and pappso::TicXicChromMassSpecColorMapPlotWidget.
Definition at line 520 of file baseplotwidget.cpp.
References directionKeyReleaseEvent(), hideTracers(), pappso::BasePlotContext::keyboardModifiers, keyReleaseEventSignal(), m_context, m_leftMousePseudoButtonKey, m_rightMousePseudoButtonKey, m_shouldTracersBeVisible, mousePseudoButtonKeyReleaseEvent(), plottableDestructionRequestedSignal(), pappso::BasePlotContext::pressedKeyCode, pappso::BasePlotContext::releasedKeyCode, restorePreviousAxesRangeHistory(), showTracers(), and spaceKeyReleaseEvent().
Referenced by pappso::DriftSpecMassSpecColorMapPlotWidget::keyReleaseEvent(), pappso::TicXicChromMassSpecColorMapPlotWidget::keyReleaseEvent(), pappso::DriftSpecTracePlotWidget::keyReleaseEvent(), pappso::TicXicChromTracePlotWidget::keyReleaseEvent(), and pappso::MassSpecTracePlotWidget::keyReleaseEvent().
|
signal |
Referenced by keyReleaseEvent().
|
signal |
Referenced by mouseMoveHandlerNotDraggingCursor().
|
virtual |
Reimplemented in pappso::MassSpecTracePlotWidget, pappso::TicXicChromTracePlotWidget, pappso::DriftSpecTracePlotWidget, pappso::DriftSpecMassSpecColorMapPlotWidget, and pappso::TicXicChromMassSpecColorMapPlotWidget.
Definition at line 1070 of file baseplotwidget.cpp.
References pappso::BasePlotContext::lastCursorHoveredPoint, m_context, mouseMoveHandlerDraggingCursor(), mouseMoveHandlerNotDraggingCursor(), pappso::BasePlotContext::pressedMouseButtons, and setFocus().
Referenced by pappso::DriftSpecMassSpecColorMapPlotWidget::mouseMoveHandler(), pappso::TicXicChromMassSpecColorMapPlotWidget::mouseMoveHandler(), pappso::DriftSpecTracePlotWidget::mouseMoveHandler(), pappso::TicXicChromTracePlotWidget::mouseMoveHandler(), pappso::MassSpecTracePlotWidget::mouseMoveHandler(), and setupWidget().
|
virtual |
Reimplemented in pappso::MassSpecTracePlotWidget, pappso::TicXicChromTracePlotWidget, pappso::DriftSpecTracePlotWidget, pappso::DriftSpecMassSpecColorMapPlotWidget, and pappso::TicXicChromMassSpecColorMapPlotWidget.
Definition at line 1153 of file baseplotwidget.cpp.
References calculateDragDeltasAndUnSortedRegionCorners(), pappso::BasePlotContext::currentDragPoint, pappso::BasePlotContext::isMouseDragging, pappso::BasePlotContext::keyboardModifiers, pappso::BasePlotContext::lastCursorHoveredPoint, m_context, m_shouldTracersBeVisible, pappso::BasePlotContext::mouseButtonsAtMousePress, mouseMoveHandlerLeftButtonDraggingCursor(), mouseMoveHandlerRightButtonDraggingCursor(), mp_hPosTracerItem, mp_vEndTracerItem, mp_vPosTracerItem, mp_vStartTracerItem, pappso::BasePlotContext::wasClickOnXAxis, and pappso::BasePlotContext::wasClickOnYAxis.
Referenced by mouseMoveHandler(), pappso::DriftSpecMassSpecColorMapPlotWidget::mouseMoveHandlerDraggingCursor(), pappso::TicXicChromMassSpecColorMapPlotWidget::mouseMoveHandlerDraggingCursor(), pappso::DriftSpecTracePlotWidget::mouseMoveHandlerDraggingCursor(), pappso::TicXicChromTracePlotWidget::mouseMoveHandlerDraggingCursor(), and pappso::MassSpecTracePlotWidget::mouseMoveHandlerDraggingCursor().
|
virtual |
Definition at line 1216 of file baseplotwidget.cpp.
References axisPan(), axisRescale(), drawRectangleAndPrepareZoom(), drawXDeltaLineAndMeasure(), pappso::BasePlotContext::isMeasuringDistance, isProperSelectionRectangle(), pappso::BasePlotContext::keyboardModifiers, m_context, m_mouseMoveHandlerSkipAmount, m_mouseMoveHandlerSkipCount, mp_hPosTracerItem, mp_vEndTracerItem, mp_vPosTracerItem, mp_vStartTracerItem, pappso::BasePlotContext::pressedKeyCode, pappso::BasePlotContext::wasClickOnXAxis, and pappso::BasePlotContext::wasClickOnYAxis.
Referenced by mouseMoveHandlerDraggingCursor().
|
virtual |
Reimplemented in pappso::MassSpecTracePlotWidget, pappso::TicXicChromTracePlotWidget, pappso::DriftSpecTracePlotWidget, pappso::DriftSpecMassSpecColorMapPlotWidget, and pappso::TicXicChromMassSpecColorMapPlotWidget.
Definition at line 1107 of file baseplotwidget.cpp.
References pappso::BasePlotContext::isMouseDragging, pappso::BasePlotContext::lastCursorHoveredPoint, lastCursorHoveredPointSignal(), m_context, m_shouldTracersBeVisible, mp_hPosTracerItem, mp_vEndTracerItem, and mp_vPosTracerItem.
Referenced by mouseMoveHandler(), pappso::DriftSpecMassSpecColorMapPlotWidget::mouseMoveHandlerNotDraggingCursor(), pappso::TicXicChromMassSpecColorMapPlotWidget::mouseMoveHandlerNotDraggingCursor(), pappso::DriftSpecTracePlotWidget::mouseMoveHandlerNotDraggingCursor(), pappso::TicXicChromTracePlotWidget::mouseMoveHandlerNotDraggingCursor(), and pappso::MassSpecTracePlotWidget::mouseMoveHandlerNotDraggingCursor().
|
virtual |
Definition at line 1326 of file baseplotwidget.cpp.
References drawXDeltaLineForIntegration(), pappso::BasePlotContext::isMeasuringDistance, and m_context.
Referenced by mouseMoveHandlerDraggingCursor().
|
virtual |
KEYBOARD-related EVENTS.
MOUSE-related EVENTS
Reimplemented in pappso::MassSpecTracePlotWidget, pappso::TicXicChromTracePlotWidget, pappso::DriftSpecTracePlotWidget, pappso::DriftSpecMassSpecColorMapPlotWidget, and pappso::TicXicChromMassSpecColorMapPlotWidget.
Definition at line 772 of file baseplotwidget.cpp.
References isClickOntoXAxis(), isClickOntoYAxis(), pappso::BasePlotContext::lastCursorHoveredPoint, pappso::BasePlotContext::lastPressedMouseButton, m_context, m_shouldTracersBeVisible, pappso::BasePlotContext::mouseButtonsAtMousePress, mp_vStartTracerItem, pappso::BasePlotContext::pressedMouseButtons, setFocus(), pappso::BasePlotContext::startDragPoint, pappso::BasePlotContext::wasClickOnXAxis, and pappso::BasePlotContext::wasClickOnYAxis.
Referenced by pappso::DriftSpecMassSpecColorMapPlotWidget::mousePressHandler(), pappso::TicXicChromMassSpecColorMapPlotWidget::mousePressHandler(), pappso::DriftSpecTracePlotWidget::mousePressHandler(), pappso::TicXicChromTracePlotWidget::mousePressHandler(), pappso::MassSpecTracePlotWidget::mousePressHandler(), mousePseudoButtonKeyReleaseEvent(), and setupWidget().
|
virtual |
Definition at line 698 of file baseplotwidget.cpp.
Referenced by keyPressEvent().
|
virtual |
Definition at line 705 of file baseplotwidget.cpp.
References pappso::BasePlotContext::isLeftPseudoButtonKeyPressed, pappso::BasePlotContext::isRightPseudoButtonKeyPressed, pappso::BasePlotContext::keyboardModifiers, pappso::BasePlotContext::lastCursorHoveredPoint, m_context, m_leftMousePseudoButtonKey, m_rightMousePseudoButtonKey, mousePressHandler(), and mouseReleaseHandler().
Referenced by keyReleaseEvent().
|
signal |
|
virtual |
Reimplemented in pappso::MassSpecTracePlotWidget, pappso::TicXicChromTracePlotWidget, pappso::DriftSpecTracePlotWidget, pappso::DriftSpecMassSpecColorMapPlotWidget, and pappso::TicXicChromMassSpecColorMapPlotWidget.
Definition at line 877 of file baseplotwidget.cpp.
References calculateDragDeltasAndUnSortedRegionCorners(), pappso::BasePlotContext::isMouseDragging, pappso::BasePlotContext::keyboardModifiers, pappso::BasePlotContext::lastCursorHoveredPoint, pappso::BasePlotContext::lastReleasedMouseButton, m_context, m_mouseMoveHandlerSkipCount, pappso::BasePlotContext::mouseButtonsAtMouseRelease, mouseReleaseHandlerLeftButton(), mouseReleaseHandlerRightButton(), mp_hPosTracerItem, mp_selectLineItem, mp_vEndTracerItem, mp_vPosTracerItem, mp_xDeltaTextItem, pappso::BasePlotContext::pressedMouseButtons, and pappso::BasePlotContext::wasMouseDragging.
Referenced by mousePseudoButtonKeyReleaseEvent(), pappso::DriftSpecMassSpecColorMapPlotWidget::mouseReleaseHandler(), pappso::TicXicChromMassSpecColorMapPlotWidget::mouseReleaseHandler(), pappso::DriftSpecTracePlotWidget::mouseReleaseHandler(), pappso::TicXicChromTracePlotWidget::mouseReleaseHandler(), pappso::MassSpecTracePlotWidget::mouseReleaseHandler(), and setupWidget().
|
virtual |
Definition at line 982 of file baseplotwidget.cpp.
References axisReframe(), axisZoom(), pappso::BasePlotContext::keyboardModifiers, m_context, mp_zoomRectItem, plotRangesChangedSignal(), updateAxesRangeHistory(), pappso::BasePlotContext::wasClickOnXAxis, and pappso::BasePlotContext::wasClickOnYAxis.
Referenced by mouseReleaseHandler().
|
virtual |
Definition at line 1034 of file baseplotwidget.cpp.
References pappso::BasePlotContext::currentDragPoint, integrationRequestedSignal(), m_context, mp_selectLineItem, mp_vEndTracerItem, mp_xDeltaTextItem, and pappso::BasePlotContext::startDragPoint.
Referenced by mouseReleaseHandler().
|
virtual |
|
virtual |
Definition at line 1485 of file baseplotwidget.cpp.
Referenced by horizontalMoveMouseCursorCountPixels(), moveMouseCursorGraphCoordToGlobal(), and verticalMoveMouseCursorCountPixels().
|
signal |
Referenced by pappso::BaseTracePlotWidget::axisDoubleClickHandler(), axisDoubleClickHandler(), pappso::BaseTracePlotWidget::axisPan(), axisPan(), pappso::BaseTracePlotWidget::axisReframe(), axisReframe(), pappso::BaseTracePlotWidget::axisRescale(), axisRescale(), pappso::BaseTracePlotWidget::axisZoom(), axisZoom(), mouseReleaseHandlerLeftButton(), and restoreAxesRangeHistory().
|
signal |
Referenced by keyReleaseEvent().
|
signal |
Referenced by pappso::BaseColorMapPlotWidget::addColorMap(), and pappso::BaseTracePlotWidget::addTrace().
|
virtual |
Definition at line 2029 of file baseplotwidget.cpp.
References pappso::BasePlotContext::currentDragPoint, pappso::BasePlotContext::isMeasuringDistance, m_context, mp_hPosTracerItem, mp_selectLineItem, mp_vPosTracerItem, mp_xDeltaTextItem, mp_zoomRectItem, pappso::BasePlotContext::startDragPoint, pappso::BasePlotContext::xDelta, pappso::BasePlotContext::xRegionRangeEnd, and pappso::BasePlotContext::xRegionRangeStart.
Referenced by drawXDeltaLineAndMeasure(), and drawXDeltaLineForIntegration().
|
virtual |
Redraw the background of the focusedPlotWidget plot widget.
Definition at line 2197 of file baseplotwidget.cpp.
References m_focusedBrush, and m_unfocusedBrush.
|
virtual |
|
virtual |
Definition at line 1908 of file baseplotwidget.cpp.
|
virtual |
Definition at line 1919 of file baseplotwidget.cpp.
|
virtual |
Definition at line 365 of file baseplotwidget.cpp.
References m_lastAxisRangeHistoryIndex, m_xAxisRangeHistory, and m_yAxisRangeHistory.
Referenced by pappso::BaseColorMapPlotWidget::addColorMap(), pappso::BaseTracePlotWidget::addTrace(), pappso::BaseTracePlotWidget::axisDoubleClickHandler(), axisDoubleClickHandler(), pappso::BaseTracePlotWidget::clearGraphData(), and pappso::BaseTracePlotWidget::setGraphData().
|
virtual |
Get the axis histories at index index and update the plot ranges.
| index | index at which to select the axis history item. |
Definition at line 443 of file baseplotwidget.cpp.
References hideAllPlotItems(), m_context, m_xAxisRangeHistory, m_yAxisRangeHistory, mp_hPosTracerItem, mp_vEndTracerItem, mp_vPosTracerItem, mp_vStartTracerItem, plotRangesChangedSignal(), and updateContextRanges().
Referenced by restorePreviousAxesRangeHistory().
|
virtual |
Go up one history element in the axis history.
If possible, back up one history item in the axis histories and update the plot's x/y-axis ranges to match that history item.
Definition at line 415 of file baseplotwidget.cpp.
References m_lastAxisRangeHistoryIndex, and restoreAxesRangeHistory().
Referenced by keyReleaseEvent().
|
virtual |
Definition at line 350 of file baseplotwidget.cpp.
|
virtual |
Definition at line 357 of file baseplotwidget.cpp.
|
virtual |
PLOT ITEMS : TRACER TEXT ITEMS...
Definition at line 2183 of file baseplotwidget.cpp.
References setFocusSignal().
Referenced by mouseMoveHandler(), and mousePressHandler().
|
signal |
Referenced by setFocus().
|
virtual |
|
virtual |
|
virtual |
Reimplemented in pappso::BaseColorMapPlotWidget.
Definition at line 295 of file baseplotwidget.cpp.
Referenced by setPlottingColor().
|
virtual |
Definition at line 172 of file baseplotwidget.cpp.
References axisDoubleClickHandler(), m_pen, mouseMoveHandler(), mousePressHandler(), mouseReleaseHandler(), mp_hPosTracerItem, mp_selectLineItem, mp_vEndTracerItem, mp_vPosTracerItem, mp_vStartTracerItem, mp_xDeltaTextItem, and mp_zoomRectItem.
Referenced by BasePlotWidget().
|
virtual |
Show the traces (vertical and horizontal).
Definition at line 1951 of file baseplotwidget.cpp.
References m_shouldTracersBeVisible, mp_hPosTracerItem, mp_vEndTracerItem, mp_vPosTracerItem, and mp_vStartTracerItem.
Referenced by keyReleaseEvent().
|
virtual |
Definition at line 640 of file baseplotwidget.cpp.
Referenced by keyReleaseEvent().
|
virtual |
Create new axis range history items and append them to the history.
The plot widget is queried to get the current x/y-axis ranges and the current ranges are appended to the history for x-axis and for y-axis.
Definition at line 392 of file baseplotwidget.cpp.
References m_lastAxisRangeHistoryIndex, m_xAxisRangeHistory, and m_yAxisRangeHistory.
Referenced by pappso::BaseTracePlotWidget::axisDoubleClickHandler(), axisDoubleClickHandler(), pappso::BaseTracePlotWidget::axisReframe(), axisReframe(), pappso::BaseTracePlotWidget::axisZoom(), axisZoom(), and mouseReleaseHandlerLeftButton().
|
virtual |
Definition at line 2220 of file baseplotwidget.cpp.
References m_context, pappso::BasePlotContext::xRange, and pappso::BasePlotContext::yRange.
Referenced by pappso::BaseTracePlotWidget::axisDoubleClickHandler(), axisDoubleClickHandler(), pappso::BaseTracePlotWidget::axisPan(), axisPan(), pappso::BaseTracePlotWidget::axisReframe(), axisReframe(), pappso::BaseTracePlotWidget::axisRescale(), axisRescale(), pappso::BaseTracePlotWidget::axisZoom(), axisZoom(), and restoreAxesRangeHistory().
|
virtual |
Definition at line 1542 of file baseplotwidget.cpp.
References pappso::BasePlotContext::lastCursorHoveredPoint, and m_context.
Referenced by verticalMoveMouseCursorCountPixels().
|
virtual |
Definition at line 1525 of file baseplotwidget.cpp.
References moveMouseCursorPixelCoordToGlobal(), and verticalGetGraphCoordNewPointCountPixels().
Referenced by directionKeyPressEvent().
|
signal |
Referenced by drawRectangleAndPrepareZoom(), drawXDeltaLineAndMeasure(), and drawXDeltaLineForIntegration().
| void pappso::BasePlotWidget::yMinMaxOnXAxisCurrentRange | ( | double & | min, |
| double & | max, | ||
| int | index | ||
| ) |
| void pappso::BasePlotWidget::yMinMaxOnXAxisCurrentRange | ( | double & | min, |
| double & | max, | ||
| QCPAbstractPlottable * | plottable_p = nullptr |
||
| ) |
|
protected |
Definition at line 309 of file baseplotwidget.h.
|
protected |
Definition at line 310 of file baseplotwidget.h.
|
protected |
Definition at line 312 of file baseplotwidget.h.
Referenced by pappso::BaseTracePlotWidget::axisDoubleClickHandler(), axisDoubleClickHandler(), pappso::BaseTracePlotWidget::axisPan(), axisPan(), pappso::BaseTracePlotWidget::axisReframe(), axisReframe(), pappso::BaseTracePlotWidget::axisRescale(), axisRescale(), pappso::BaseTracePlotWidget::axisZoom(), axisZoom(), calculateDragDeltas(), calculateDragDeltasAndUnSortedRegionCorners(), directionKeyPressEvent(), dragDirection(), drawRectangleAndPrepareZoom(), drawXDeltaLineAndMeasure(), drawXDeltaLineForIntegration(), pappso::DriftSpecTracePlotWidget::DriftSpecTracePlotWidget(), getContext(), horizontalGetGraphCoordNewPointCountPixels(), isProperSelectionRectangle(), pappso::DriftSpecTracePlotWidget::keyPressEvent(), pappso::TicXicChromTracePlotWidget::keyPressEvent(), keyPressEvent(), keyReleaseEvent(), pappso::MassSpecTracePlotWidget::MassSpecTracePlotWidget(), mouseMoveHandler(), mouseMoveHandlerDraggingCursor(), mouseMoveHandlerLeftButtonDraggingCursor(), mouseMoveHandlerNotDraggingCursor(), mouseMoveHandlerRightButtonDraggingCursor(), mousePressHandler(), mousePseudoButtonKeyReleaseEvent(), mouseReleaseHandler(), mouseReleaseHandlerLeftButton(), mouseReleaseHandlerRightButton(), prepareXDeltaLineAndMeasure(), pappso::MassSpecTracePlotWidget::refreshBaseContext(), restoreAxesRangeHistory(), pappso::TicXicChromTracePlotWidget::TicXicChromTracePlotWidget(), updateContextRanges(), and verticalGetGraphCoordNewPointCountPixels().
|
protected |
Description of the plot widget.
Definition at line 304 of file baseplotwidget.h.
|
protected |
The name of the data file from which the mass data were read.
Definition at line 307 of file baseplotwidget.h.
|
protected |
Color used for the background of focused plot.
Definition at line 389 of file baseplotwidget.h.
Referenced by redrawPlotBackground().
|
protected |
Color used for the background of focused plot.
Definition at line 387 of file baseplotwidget.h.
|
protected |
Index of the last axis range history item.
Each time the user modifies the ranges (x/y axis) during panning or zooming of the graph, the new axis ranges are stored in a axis ranges history list. This index allows to point to the last range of that history.
Definition at line 350 of file baseplotwidget.h.
Referenced by resetAxesRangeHistory(), restorePreviousAxesRangeHistory(), and updateAxesRangeHistory().
|
protected |
Definition at line 314 of file baseplotwidget.h.
Referenced by keyPressEvent(), keyReleaseEvent(), and mousePseudoButtonKeyReleaseEvent().
|
protected |
How many mouse move events must be skipped */.
when the data are so massive that the graph panning becomes sluggish. By default, the value is 10 events to be skipped before accounting one. The "fat data" mouse movement handler mechanism is actuated by using a keyboard key combination. There is no automatic shift between normal processing and "fat data" processing.
Definition at line 368 of file baseplotwidget.h.
Referenced by mouseMoveHandlerLeftButtonDraggingCursor().
|
protected |
Counter to handle the "fat data" mouse move event handling.
Definition at line 376 of file baseplotwidget.h.
Referenced by mouseMoveHandlerLeftButtonDraggingCursor(), and mouseReleaseHandler().
|
protected |
Name of the plot widget.
Definition at line 301 of file baseplotwidget.h.
|
protected |
Pen used to draw the graph and textual elements in the plot widget.
Definition at line 392 of file baseplotwidget.h.
Referenced by BasePlotWidget(), getPen(), pappso::BaseTracePlotWidget::setGraphData(), setPen(), and setupWidget().
|
protected |
Definition at line 315 of file baseplotwidget.h.
Referenced by keyPressEvent(), keyReleaseEvent(), and mousePseudoButtonKeyReleaseEvent().
|
protected |
Tells if the tracers should be visible.
Definition at line 327 of file baseplotwidget.h.
Referenced by hideTracers(), keyReleaseEvent(), mouseMoveHandlerDraggingCursor(), mouseMoveHandlerNotDraggingCursor(), mousePressHandler(), and showTracers().
|
protected |
Color used for the background of unfocused plot.
Definition at line 384 of file baseplotwidget.h.
Referenced by redrawPlotBackground().
|
protected |
Color used for the background of unfocused plot.
Definition at line 382 of file baseplotwidget.h.
|
protected |
List of x axis ranges occurring during the panning zooming actions.
Definition at line 353 of file baseplotwidget.h.
Referenced by resetAxesRangeHistory(), restoreAxesRangeHistory(), updateAxesRangeHistory(), and ~BasePlotWidget().
|
protected |
List of y axis ranges occurring during the panning zooming actions.
Definition at line 356 of file baseplotwidget.h.
Referenced by resetAxesRangeHistory(), restoreAxesRangeHistory(), updateAxesRangeHistory(), and ~BasePlotWidget().
|
protected |
Horizontal position tracer.
Definition at line 330 of file baseplotwidget.h.
Referenced by hideTracers(), mouseMoveHandlerDraggingCursor(), mouseMoveHandlerLeftButtonDraggingCursor(), mouseMoveHandlerNotDraggingCursor(), mouseReleaseHandler(), prepareXDeltaLineAndMeasure(), restoreAxesRangeHistory(), setupWidget(), and showTracers().
|
protected |
Line that is printed when the user selects a range.
Definition at line 321 of file baseplotwidget.h.
Referenced by drawRectangleAndPrepareZoom(), drawXDeltaLineAndMeasure(), drawXDeltaLineForIntegration(), hideAllPlotItems(), mouseReleaseHandler(), mouseReleaseHandlerRightButton(), prepareXDeltaLineAndMeasure(), and setupWidget().
|
protected |
Vertical selection end tracer (typically in red).
Definition at line 339 of file baseplotwidget.h.
Referenced by hideTracers(), mouseMoveHandlerDraggingCursor(), mouseMoveHandlerLeftButtonDraggingCursor(), mouseMoveHandlerNotDraggingCursor(), mouseReleaseHandler(), mouseReleaseHandlerRightButton(), restoreAxesRangeHistory(), setupWidget(), and showTracers().
|
protected |
Vertical position tracer.
Definition at line 333 of file baseplotwidget.h.
Referenced by hideTracers(), mouseMoveHandlerDraggingCursor(), mouseMoveHandlerLeftButtonDraggingCursor(), mouseMoveHandlerNotDraggingCursor(), mouseReleaseHandler(), prepareXDeltaLineAndMeasure(), restoreAxesRangeHistory(), setupWidget(), and showTracers().
|
protected |
Vertical selection start tracer (typically in green).
Definition at line 336 of file baseplotwidget.h.
Referenced by hideTracers(), mouseMoveHandlerDraggingCursor(), mouseMoveHandlerLeftButtonDraggingCursor(), mousePressHandler(), restoreAxesRangeHistory(), setupWidget(), and showTracers().
|
protected |
Text describing the x-axis delta value during a drag operation.
Definition at line 324 of file baseplotwidget.h.
Referenced by drawRectangleAndPrepareZoom(), hideAllPlotItems(), mouseReleaseHandler(), mouseReleaseHandlerRightButton(), prepareXDeltaLineAndMeasure(), and setupWidget().
|
protected |
Rectangle defining the borders of zoomed-in/out data.
Definition at line 318 of file baseplotwidget.h.
Referenced by drawRectangleAndPrepareZoom(), hideAllPlotItems(), mouseReleaseHandlerLeftButton(), prepareXDeltaLineAndMeasure(), and setupWidget().