libpappsomspp
Library for mass spectrometry
|
#include <baseplotcontext.h>
Public Member Functions | |
BasePlotContext () | |
BasePlotContext (const BasePlotContext &other) | |
virtual | ~BasePlotContext () |
void | updateIntegrationScope () |
void | updateIntegrationScopeRect () |
void | updateIntegrationScopeRhomb () |
void | updateIntegrationScopeRhombHorizontal () |
void | updateIntegrationScopeRhombVertical () |
BasePlotContext & | operator= (const BasePlotContext &other) |
DragDirections | recordDragDirections () |
QString | toString () const |
Definition at line 36 of file baseplotcontext.h.
pappso::BasePlotContext::BasePlotContext | ( | ) |
Definition at line 12 of file baseplotcontext.cpp.
References msp_integrationScope.
pappso::BasePlotContext::BasePlotContext | ( | const BasePlotContext & | other | ) |
Definition at line 19 of file baseplotcontext.cpp.
References m_currentDragPoint, m_dataKind, m_integrationScopeRhombHeight, m_integrationScopeRhombWidth, m_isKeyBoardDragging, m_isLeftPseudoButtonKeyPressed, m_isMeasuringDistance, m_isMouseDragging, m_isRightPseudoButtonKeyPressed, m_keyboardModifiers, m_lastCursorHoveredPoint, m_lastPressedMouseButton, m_lastReleasedMouseButton, m_mouseButtonsAtMousePress, m_mouseButtonsAtMouseRelease, m_pressedKeyCode, m_pressedMouseButtons, m_releasedKeyCode, m_selectionPolygon, m_startDragPoint, m_wasClickOnXAxis, m_wasClickOnYAxis, m_wasMouseDragging, m_wassKeyBoardDragging, m_xDelta, m_xRange, m_xRegionRangeEnd, m_xRegionRangeStart, m_yDelta, m_yRange, m_yRegionRangeEnd, m_yRegionRangeStart, and msp_integrationScope.
|
virtual |
Definition at line 84 of file baseplotcontext.cpp.
BasePlotContext & pappso::BasePlotContext::operator= | ( | const BasePlotContext & | other | ) |
Definition at line 622 of file baseplotcontext.cpp.
References m_currentDragPoint, m_dataKind, m_integrationScopeRhombHeight, m_integrationScopeRhombWidth, m_isKeyBoardDragging, m_isLeftPseudoButtonKeyPressed, m_isMeasuringDistance, m_isMouseDragging, m_isRightPseudoButtonKeyPressed, m_keyboardModifiers, m_lastCursorHoveredPoint, m_lastPressedMouseButton, m_lastReleasedMouseButton, m_mouseButtonsAtMousePress, m_mouseButtonsAtMouseRelease, m_pressedKeyCode, m_pressedMouseButtons, m_releasedKeyCode, m_selectionPolygon, m_startDragPoint, m_wasClickOnXAxis, m_wasClickOnYAxis, m_wasMouseDragging, m_wassKeyBoardDragging, m_xDelta, m_xRange, m_xRegionRangeEnd, m_xRegionRangeStart, m_yDelta, m_yRange, m_yRegionRangeEnd, m_yRegionRangeStart, and msp_integrationScope.
Referenced by pappso::MassSpecTracePlotContext::operator=(), and pappso::MassSpecTracePlotContext::operator=().
DragDirections pappso::BasePlotContext::recordDragDirections | ( | ) |
Definition at line 691 of file baseplotcontext.cpp.
References pappso::BOTTOM_TO_TOP, pappso::LEFT_TO_RIGHT, m_currentDragPoint, m_dragDirections, m_startDragPoint, pappso::NOT_SET, pappso::RIGHT_TO_LEFT, and pappso::TOP_TO_BOTTOM.
Referenced by pappso::BasePlotWidget::mouseMoveHandlerDraggingCursor().
QString pappso::BasePlotContext::toString | ( | ) | const |
Definition at line 714 of file baseplotcontext.cpp.
References pappso::BOTTOM_TO_TOP, pappso::LEFT_TO_RIGHT, m_currentDragPoint, m_dataKind, m_dragDirections, m_isMeasuringDistance, m_isMouseDragging, m_keyboardModifiers, m_lastCursorHoveredPoint, m_lastPressedMouseButton, m_lastReleasedMouseButton, m_mouseButtonsAtMousePress, m_mouseButtonsAtMouseRelease, m_pressedKeyCode, m_pressedMouseButtons, m_startDragPoint, m_wasClickOnXAxis, m_wasClickOnYAxis, m_wasMouseDragging, m_xDelta, m_xRange, m_xRegionRangeEnd, m_xRegionRangeStart, m_yDelta, m_yRange, m_yRegionRangeEnd, m_yRegionRangeStart, msp_integrationScope, pappso::RIGHT_TO_LEFT, and pappso::TOP_TO_BOTTOM.
Referenced by pappso::MassSpecTracePlotContext::toString(), updateIntegrationScopeRhomb(), updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
void pappso::BasePlotContext::updateIntegrationScope | ( | ) |
Definition at line 89 of file baseplotcontext.cpp.
References m_currentDragPoint, m_startDragPoint, and msp_integrationScope.
Referenced by pappso::BasePlotWidget::updateIntegrationScope().
void pappso::BasePlotContext::updateIntegrationScopeRect | ( | ) |
Definition at line 111 of file baseplotcontext.cpp.
References pappso::BOTTOM_TO_TOP, pappso::LEFT_TO_RIGHT, m_currentDragPoint, m_dragDirections, m_startDragPoint, msp_integrationScope, pappso::RIGHT_TO_LEFT, and pappso::TOP_TO_BOTTOM.
Referenced by pappso::BasePlotWidget::updateIntegrationScopeRect().
void pappso::BasePlotContext::updateIntegrationScopeRhomb | ( | ) |
Definition at line 538 of file baseplotcontext.cpp.
References m_integrationScopeRhombHeight, m_integrationScopeRhombWidth, toString(), updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
Referenced by pappso::BasePlotWidget::updateIntegrationScopeRhomb().
void pappso::BasePlotContext::updateIntegrationScopeRhombHorizontal | ( | ) |
Definition at line 221 of file baseplotcontext.cpp.
References pappso::BOTTOM_TO_TOP, pappso::LEFT_TO_RIGHT, m_currentDragPoint, m_dragDirections, m_integrationScopeRhombWidth, m_startDragPoint, msp_integrationScope, pappso::RIGHT_TO_LEFT, pappso::TOP_TO_BOTTOM, and toString().
Referenced by updateIntegrationScopeRhomb().
void pappso::BasePlotContext::updateIntegrationScopeRhombVertical | ( | ) |
Definition at line 378 of file baseplotcontext.cpp.
References pappso::BOTTOM_TO_TOP, pappso::LEFT_TO_RIGHT, m_currentDragPoint, m_dragDirections, m_integrationScopeRhombHeight, m_startDragPoint, msp_integrationScope, pappso::RIGHT_TO_LEFT, pappso::TOP_TO_BOTTOM, and toString().
Referenced by updateIntegrationScopeRhomb().
QPointF pappso::BasePlotContext::m_currentDragPoint |
Definition at line 54 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BaseTracePlotWidget::axisRescale(), pappso::BasePlotWidget::calculateDragDeltas(), pappso::BasePlotWidget::dragDirection(), pappso::BasePlotWidget::isVerticalDisplacementAboveThreshold(), pappso::BasePlotWidget::keyReleaseEvent(), pappso::BasePlotWidget::mouseMoveHandlerDraggingCursor(), pappso::BasePlotWidget::mouseReleaseHandlerRightButton(), operator=(), recordDragDirections(), toString(), updateIntegrationScope(), pappso::BasePlotWidget::updateIntegrationScope(), updateIntegrationScopeRect(), updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
DataKind pappso::BasePlotContext::m_dataKind = DataKind::unset |
Definition at line 43 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::DriftSpecTracePlotWidget::DriftSpecTracePlotWidget(), pappso::MassSpecTracePlotWidget::MassSpecTracePlotWidget(), pappso::MassSpecTracePlotWidget::MassSpecTracePlotWidget(), pappso::TicXicChromTracePlotWidget::TicXicChromTracePlotWidget(), operator=(), and toString().
DragDirections pappso::BasePlotContext::m_dragDirections = DragDirections::NOT_SET |
Definition at line 56 of file baseplotcontext.h.
Referenced by pappso::BasePlotWidget::drawXScopeSpanFeatures(), pappso::BasePlotWidget::drawYScopeSpanFeatures(), recordDragDirections(), toString(), updateIntegrationScopeRect(), updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
double pappso::BasePlotContext::m_integrationScopeRhombHeight = 0 |
Definition at line 61 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::keyReleaseEvent(), operator=(), updateIntegrationScopeRhomb(), pappso::BasePlotWidget::updateIntegrationScopeRhomb(), and updateIntegrationScopeRhombVertical().
double pappso::BasePlotContext::m_integrationScopeRhombWidth = 0 |
Definition at line 60 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::keyReleaseEvent(), operator=(), updateIntegrationScopeRhomb(), pappso::BasePlotWidget::updateIntegrationScopeRhomb(), and updateIntegrationScopeRhombHorizontal().
bool pappso::BasePlotContext::m_isKeyBoardDragging = false |
Definition at line 48 of file baseplotcontext.h.
Referenced by BasePlotContext(), and operator=().
bool pappso::BasePlotContext::m_isLeftPseudoButtonKeyPressed = false |
Definition at line 49 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::mousePseudoButtonKeyReleaseEvent(), and operator=().
bool pappso::BasePlotContext::m_isMeasuringDistance = false |
Definition at line 74 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::drawSelectionRectangleAndPrepareZoom(), pappso::BasePlotWidget::drawXScopeSpanFeatures(), pappso::BasePlotWidget::drawYScopeSpanFeatures(), pappso::MassSpecTracePlotWidget::mouseMoveHandlerDraggingCursor(), pappso::BasePlotWidget::mouseMoveHandlerLeftButtonDraggingCursor(), pappso::BasePlotWidget::mouseMoveHandlerRightButtonDraggingCursor(), operator=(), and toString().
bool pappso::BasePlotContext::m_isMouseDragging = false |
Definition at line 45 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::mouseMoveHandlerDraggingCursor(), pappso::BasePlotWidget::mouseMoveHandlerNotDraggingCursor(), pappso::BasePlotWidget::mouseReleaseHandler(), operator=(), and toString().
bool pappso::BasePlotContext::m_isRightPseudoButtonKeyPressed = false |
Definition at line 50 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::mousePseudoButtonKeyReleaseEvent(), and operator=().
Qt::KeyboardModifiers pappso::BasePlotContext::m_keyboardModifiers |
Definition at line 94 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::axisDoubleClickHandler(), pappso::BaseTracePlotWidget::axisDoubleClickHandler(), pappso::BaseTracePlotWidget::axisPan(), pappso::BaseTracePlotWidget::axisReframe(), pappso::BaseTracePlotWidget::axisRescale(), pappso::BaseTracePlotWidget::axisZoom(), pappso::BasePlotWidget::directionKeyPressEvent(), pappso::BasePlotWidget::keyPressEvent(), pappso::BasePlotWidget::keyReleaseEvent(), pappso::BasePlotWidget::mouseMoveHandlerDraggingCursor(), pappso::BasePlotWidget::mouseMoveHandlerLeftButtonDraggingCursor(), pappso::BasePlotWidget::mousePseudoButtonKeyReleaseEvent(), pappso::BasePlotWidget::mouseReleaseHandler(), pappso::BasePlotWidget::mouseReleaseHandlerLeftButton(), operator=(), toString(), and pappso::BasePlotWidget::updateIntegrationScopeDrawing().
QPointF pappso::BasePlotContext::m_lastCursorHoveredPoint |
Definition at line 55 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::horizontalGetGraphCoordNewPointCountPixels(), pappso::BasePlotWidget::mouseMoveHandler(), pappso::BasePlotWidget::mouseMoveHandlerDraggingCursor(), pappso::BasePlotWidget::mouseMoveHandlerNotDraggingCursor(), pappso::BasePlotWidget::mousePressHandler(), pappso::BasePlotWidget::mousePseudoButtonKeyReleaseEvent(), pappso::BasePlotWidget::mouseReleaseHandler(), operator=(), toString(), and pappso::BasePlotWidget::verticalGetGraphCoordNewPointCountPixels().
Qt::MouseButtons pappso::BasePlotContext::m_lastPressedMouseButton |
Definition at line 96 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::mousePressHandler(), operator=(), and toString().
Qt::MouseButtons pappso::BasePlotContext::m_lastReleasedMouseButton |
Definition at line 97 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::mouseReleaseHandler(), operator=(), and toString().
Qt::MouseButtons pappso::BasePlotContext::m_mouseButtonsAtMousePress |
Definition at line 101 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::mouseMoveHandlerDraggingCursor(), pappso::MassSpecTracePlotWidget::mouseMoveHandlerDraggingCursor(), pappso::BasePlotWidget::mousePressHandler(), operator=(), and toString().
Qt::MouseButtons pappso::BasePlotContext::m_mouseButtonsAtMouseRelease |
Definition at line 102 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::mouseReleaseHandler(), operator=(), and toString().
int pappso::BasePlotContext::m_pressedKeyCode |
Definition at line 91 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::keyPressEvent(), pappso::BasePlotWidget::keyReleaseEvent(), pappso::BasePlotWidget::mouseMoveHandlerLeftButtonDraggingCursor(), operator=(), and toString().
Qt::MouseButtons pappso::BasePlotContext::m_pressedMouseButtons |
Definition at line 99 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::axisDoubleClickHandler(), pappso::BaseTracePlotWidget::axisDoubleClickHandler(), pappso::BasePlotWidget::mouseMoveHandler(), pappso::BasePlotWidget::mousePressHandler(), pappso::BasePlotWidget::mouseReleaseHandler(), operator=(), and toString().
int pappso::BasePlotContext::m_releasedKeyCode |
Definition at line 92 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::keyReleaseEvent(), and operator=().
SelectionPolygon pappso::BasePlotContext::m_selectionPolygon |
Definition at line 59 of file baseplotcontext.h.
Referenced by BasePlotContext(), and operator=().
QPointF pappso::BasePlotContext::m_startDragPoint |
Definition at line 53 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BaseTracePlotWidget::axisRescale(), pappso::BasePlotWidget::calculateDragDeltas(), pappso::BasePlotWidget::dragDirection(), pappso::BasePlotWidget::isVerticalDisplacementAboveThreshold(), pappso::BasePlotWidget::keyReleaseEvent(), pappso::BasePlotWidget::mousePressHandler(), pappso::BasePlotWidget::mouseReleaseHandlerRightButton(), operator=(), recordDragDirections(), toString(), updateIntegrationScope(), pappso::BasePlotWidget::updateIntegrationScope(), updateIntegrationScopeRect(), updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
bool pappso::BasePlotContext::m_wasClickOnXAxis = false |
Definition at line 71 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::axisPan(), pappso::BaseTracePlotWidget::axisPan(), pappso::BasePlotWidget::axisRescale(), pappso::BaseTracePlotWidget::axisRescale(), pappso::BasePlotWidget::mouseMoveHandlerDraggingCursor(), pappso::BasePlotWidget::mouseMoveHandlerLeftButtonDraggingCursor(), pappso::BasePlotWidget::mousePressHandler(), pappso::BasePlotWidget::mouseReleaseHandlerLeftButton(), operator=(), and toString().
bool pappso::BasePlotContext::m_wasClickOnYAxis = false |
Definition at line 72 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::axisPan(), pappso::BaseTracePlotWidget::axisPan(), pappso::BasePlotWidget::mouseMoveHandlerDraggingCursor(), pappso::BasePlotWidget::mouseMoveHandlerLeftButtonDraggingCursor(), pappso::BasePlotWidget::mousePressHandler(), pappso::BasePlotWidget::mouseReleaseHandlerLeftButton(), operator=(), and toString().
bool pappso::BasePlotContext::m_wasMouseDragging = false |
Definition at line 46 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::mouseReleaseHandler(), operator=(), and toString().
bool pappso::BasePlotContext::m_wassKeyBoardDragging = false |
Definition at line 51 of file baseplotcontext.h.
Referenced by BasePlotContext(), and operator=().
double pappso::BasePlotContext::m_xDelta = 0 |
Definition at line 88 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::axisPan(), pappso::BaseTracePlotWidget::axisPan(), pappso::BasePlotWidget::axisRescale(), pappso::BasePlotWidget::calculateDragDeltas(), pappso::MassSpecTracePlotWidget::computeResolvingPower(), pappso::MassSpecTracePlotWidget::deconvolute(), pappso::MassSpecTracePlotWidget::deconvoluteIsotopicCluster(), pappso::BasePlotWidget::drawXScopeSpanFeatures(), operator=(), and toString().
QCPRange pappso::BasePlotContext::m_xRange |
Definition at line 64 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::axisPan(), pappso::BaseTracePlotWidget::axisPan(), pappso::BaseColorMapPlotWidget::currentXaxisRangeIndices(), pappso::BasePlotWidget::mouseWheelHandler(), operator=(), toString(), and pappso::BasePlotWidget::updateContextXandYAxisRanges().
double pappso::BasePlotContext::m_xRegionRangeEnd = std::numeric_limits<double>::min() |
Definition at line 83 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::axisReframe(), pappso::BaseTracePlotWidget::axisReframe(), pappso::BasePlotWidget::axisZoom(), pappso::BaseTracePlotWidget::axisZoom(), pappso::MassSpecTracePlotWidget::computeResolvingPower(), pappso::MassSpecTracePlotWidget::deconvoluteChargedState(), pappso::MassSpecTracePlotWidget::deconvoluteIsotopicCluster(), operator=(), toString(), and pappso::BasePlotWidget::updateIntegrationScopeDrawing().
double pappso::BasePlotContext::m_xRegionRangeStart = std::numeric_limits<double>::min() |
Definition at line 82 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::axisReframe(), pappso::BaseTracePlotWidget::axisReframe(), pappso::BasePlotWidget::axisZoom(), pappso::BaseTracePlotWidget::axisZoom(), pappso::MassSpecTracePlotWidget::computeResolvingPower(), pappso::MassSpecTracePlotWidget::deconvoluteChargedState(), pappso::MassSpecTracePlotWidget::deconvoluteIsotopicCluster(), operator=(), toString(), and pappso::BasePlotWidget::updateIntegrationScopeDrawing().
double pappso::BasePlotContext::m_yDelta = 0 |
Definition at line 89 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::axisPan(), pappso::BaseTracePlotWidget::axisPan(), pappso::BasePlotWidget::axisRescale(), pappso::BasePlotWidget::calculateDragDeltas(), pappso::BasePlotWidget::drawYScopeSpanFeatures(), operator=(), and toString().
QCPRange pappso::BasePlotContext::m_yRange |
Definition at line 65 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::axisPan(), pappso::BaseTracePlotWidget::axisPan(), pappso::BaseColorMapPlotWidget::currentYaxisRangeIndices(), pappso::BasePlotWidget::mouseWheelHandler(), operator=(), toString(), and pappso::BasePlotWidget::updateContextXandYAxisRanges().
double pappso::BasePlotContext::m_yRegionRangeEnd = std::numeric_limits<double>::min() |
Definition at line 86 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::axisReframe(), pappso::BaseTracePlotWidget::axisReframe(), pappso::BasePlotWidget::axisZoom(), pappso::BaseTracePlotWidget::axisZoom(), operator=(), toString(), and pappso::BasePlotWidget::updateIntegrationScopeDrawing().
double pappso::BasePlotContext::m_yRegionRangeStart = std::numeric_limits<double>::min() |
Definition at line 85 of file baseplotcontext.h.
Referenced by BasePlotContext(), pappso::BasePlotWidget::axisReframe(), pappso::BaseTracePlotWidget::axisReframe(), pappso::BasePlotWidget::axisZoom(), pappso::BaseTracePlotWidget::axisZoom(), operator=(), toString(), and pappso::BasePlotWidget::updateIntegrationScopeDrawing().
IntegrationScopeBaseCstSPtr pappso::BasePlotContext::msp_integrationScope = nullptr |
Definition at line 58 of file baseplotcontext.h.
Referenced by BasePlotContext(), BasePlotContext(), pappso::BasePlotWidget::drawXScopeSpanFeatures(), pappso::BasePlotWidget::drawYScopeSpanFeatures(), operator=(), pappso::BasePlotWidget::resetSelectionRectangle(), toString(), updateIntegrationScope(), pappso::BasePlotWidget::updateIntegrationScopeDrawing(), pappso::BasePlotWidget::updateIntegrationScopeHorizontalRhomb(), updateIntegrationScopeRect(), pappso::BasePlotWidget::updateIntegrationScopeRect(), updateIntegrationScopeRhombHorizontal(), updateIntegrationScopeRhombVertical(), and pappso::BasePlotWidget::updateIntegrationScopeVerticalRhomb().