|
libpappsomspp
Library for mass spectrometry
|
#include <baseplotcontext.h>
Public Member Functions | |
| Q_INVOKABLE | BasePlotContext (QObject *parent=nullptr) |
| virtual | ~BasePlotContext () |
| Q_INVOKABLE BasePlotContext * | clone (QObject *parent=nullptr) |
| Q_INVOKABLE void | initialize (const BasePlotContext &other) |
| BasePlotContext (const BasePlotContext &other)=delete | |
| BasePlotContext & | operator= (const BasePlotContext &other)=delete |
| void | updateIntegrationScope () |
| void | updateIntegrationScopeRect () |
| void | updateIntegrationScopeRhomb () |
| void | updateIntegrationScopeRhombHorizontal () |
| void | updateIntegrationScopeRhombVertical () |
| DragDirections | recordDragDirections () |
| Q_INVOKABLE QString | toString () const |
| Q_INVOKABLE QString | dragDirectionsToString () const |
Static Public Member Functions | |
| static void | registerJsConstructor (QJSEngine *engine) |
Properties | |
| bool | isMouseDragging |
| bool | wasMouseDragging |
| bool | isKeyBoardDragging |
| bool | isLeftPseudoButtonKeyPressed |
| bool | isRightPseudoButtonKeyPressed |
| bool | wasKeyBoardDragging |
| QPointF | startDragPoint |
| QPointF | currentDragPoint |
| QPointF | lastCursorHoveredPoint |
| DragDirections | dragDirections |
| double | xRegionRangeStart |
| double | xRegionRangeEnd |
| double | yRegionRangeStart |
| double | yRegionRangeEnd |
| double | xDelta |
| double | yDelta |
| double | pressedKeyCode |
| double | releasedKeyCode |
| Qt::KeyboardModifiers | keyboardModifiers |
| Qt::MouseButtons | lastPressedMouseButton |
| Qt::MouseButtons | lastReleasedMouseButton |
| Qt::MouseButtons | pressedMouseButtons |
| Qt::MouseButtons | mouseButtonsAtMousePress |
| Qt::MouseButtons | mouseButtonsAtMouseRelease |
Definition at line 52 of file baseplotcontext.h.
|
explicit |
Definition at line 38 of file baseplotcontext.cpp.
References msp_integrationScope.
Referenced by BasePlotContext(), pappso::MassSpecTracePlotContext::MassSpecTracePlotContext(), clone(), initialize(), pappso::MassSpecTracePlotContext::initialize(), operator=(), and pappso::MassSpecTracePlotContext::operator=().
|
virtual |
Definition at line 112 of file baseplotcontext.cpp.
|
delete |
References BasePlotContext().
| BasePlotContext * pappso::BasePlotContext::clone | ( | QObject * | parent = nullptr | ) |
Definition at line 117 of file baseplotcontext.cpp.
References BasePlotContext(), m_currentDragPoint, m_dragDirections, 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_wasKeyBoardDragging, m_wasMouseDragging, m_xDelta, m_xRange, m_xRegionRangeEnd, m_xRegionRangeStart, m_yDelta, m_yRange, m_yRegionRangeEnd, m_yRegionRangeStart, and msp_integrationScope.
| QString pappso::BasePlotContext::dragDirectionsToString | ( | ) | const |
Definition at line 982 of file baseplotcontext.cpp.
References pappso::BOTTOM_TO_TOP, pappso::LEFT_TO_RIGHT, m_dragDirections, m_isMouseDragging, pappso::RIGHT_TO_LEFT, and pappso::TOP_TO_BOTTOM.
Referenced by toString().
| void pappso::BasePlotContext::initialize | ( | const BasePlotContext & | other | ) |
Definition at line 186 of file baseplotcontext.cpp.
References BasePlotContext(), m_currentDragPoint, m_dataKind, m_dragDirections, 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_wasKeyBoardDragging, m_wasMouseDragging, m_xDelta, m_xRange, m_xRegionRangeEnd, m_xRegionRangeStart, m_yDelta, m_yRange, m_yRegionRangeEnd, m_yRegionRangeStart, and msp_integrationScope.
Referenced by pappso::MassSpecTracePlotContext::initialize(), and pappso::MassSpecTracePlotContext::initialize().
|
delete |
References BasePlotContext().
| DragDirections pappso::BasePlotContext::recordDragDirections | ( | ) |
Definition at line 852 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.
|
static |
Definition at line 1007 of file baseplotcontext.cpp.
References pappso::BOTTOM_TO_TOP, pappso::LEFT_TO_RIGHT, pappso::NOT_SET, pappso::RIGHT_TO_LEFT, and pappso::TOP_TO_BOTTOM.
| QString pappso::BasePlotContext::toString | ( | ) | const |
Definition at line 874 of file baseplotcontext.cpp.
References dragDirectionsToString(), m_currentDragPoint, m_dataKind, 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::qtKeyboardModifierMap, and pappso::qtMouseButtonsMap.
Referenced by pappso::MassSpecTracePlotContext::toString().
| void pappso::BasePlotContext::updateIntegrationScope | ( | ) |
Definition at line 251 of file baseplotcontext.cpp.
References m_currentDragPoint, m_startDragPoint, and msp_integrationScope.
| void pappso::BasePlotContext::updateIntegrationScopeRect | ( | ) |
Definition at line 274 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.
| void pappso::BasePlotContext::updateIntegrationScopeRhomb | ( | ) |
Definition at line 696 of file baseplotcontext.cpp.
References m_integrationScopeRhombHeight, m_integrationScopeRhombWidth, updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
| void pappso::BasePlotContext::updateIntegrationScopeRhombHorizontal | ( | ) |
Definition at line 382 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, and pappso::TOP_TO_BOTTOM.
Referenced by updateIntegrationScopeRhomb().
| void pappso::BasePlotContext::updateIntegrationScopeRhombVertical | ( | ) |
Definition at line 537 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, and pappso::TOP_TO_BOTTOM.
Referenced by updateIntegrationScopeRhomb().
| QPointF pappso::BasePlotContext::m_currentDragPoint |
Definition at line 103 of file baseplotcontext.h.
Referenced by clone(), initialize(), recordDragDirections(), toString(), updateIntegrationScope(), updateIntegrationScopeRect(), updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
| Enums::DataKind pappso::BasePlotContext::m_dataKind = Enums::DataKind::unset |
Definition at line 92 of file baseplotcontext.h.
Referenced by initialize(), and toString().
| DragDirections pappso::BasePlotContext::m_dragDirections = DragDirections::NOT_SET |
Definition at line 105 of file baseplotcontext.h.
Referenced by clone(), dragDirectionsToString(), initialize(), recordDragDirections(), updateIntegrationScopeRect(), updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
| double pappso::BasePlotContext::m_integrationScopeRhombHeight = 0 |
Definition at line 110 of file baseplotcontext.h.
Referenced by clone(), initialize(), updateIntegrationScopeRhomb(), and updateIntegrationScopeRhombVertical().
| double pappso::BasePlotContext::m_integrationScopeRhombWidth = 0 |
Definition at line 109 of file baseplotcontext.h.
Referenced by clone(), initialize(), updateIntegrationScopeRhomb(), and updateIntegrationScopeRhombHorizontal().
| bool pappso::BasePlotContext::m_isKeyBoardDragging = false |
Definition at line 97 of file baseplotcontext.h.
Referenced by clone(), and initialize().
| bool pappso::BasePlotContext::m_isLeftPseudoButtonKeyPressed = false |
Definition at line 98 of file baseplotcontext.h.
Referenced by clone(), and initialize().
| bool pappso::BasePlotContext::m_isMeasuringDistance = false |
Definition at line 123 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| bool pappso::BasePlotContext::m_isMouseDragging = false |
Definition at line 94 of file baseplotcontext.h.
Referenced by clone(), dragDirectionsToString(), initialize(), and toString().
| bool pappso::BasePlotContext::m_isRightPseudoButtonKeyPressed = false |
Definition at line 99 of file baseplotcontext.h.
Referenced by clone(), and initialize().
| Qt::KeyboardModifiers pappso::BasePlotContext::m_keyboardModifiers |
Definition at line 143 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| QPointF pappso::BasePlotContext::m_lastCursorHoveredPoint |
Definition at line 104 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| Qt::MouseButtons pappso::BasePlotContext::m_lastPressedMouseButton |
Definition at line 145 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| Qt::MouseButtons pappso::BasePlotContext::m_lastReleasedMouseButton |
Definition at line 146 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| Qt::MouseButtons pappso::BasePlotContext::m_mouseButtonsAtMousePress |
Definition at line 150 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| Qt::MouseButtons pappso::BasePlotContext::m_mouseButtonsAtMouseRelease |
Definition at line 151 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| int pappso::BasePlotContext::m_pressedKeyCode |
Definition at line 140 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| Qt::MouseButtons pappso::BasePlotContext::m_pressedMouseButtons |
Definition at line 148 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| int pappso::BasePlotContext::m_releasedKeyCode |
Definition at line 141 of file baseplotcontext.h.
Referenced by clone(), and initialize().
| SelectionPolygon pappso::BasePlotContext::m_selectionPolygon |
Definition at line 108 of file baseplotcontext.h.
Referenced by clone(), and initialize().
| QPointF pappso::BasePlotContext::m_startDragPoint |
Definition at line 102 of file baseplotcontext.h.
Referenced by clone(), initialize(), recordDragDirections(), toString(), updateIntegrationScope(), updateIntegrationScopeRect(), updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
| bool pappso::BasePlotContext::m_wasClickOnXAxis = false |
Definition at line 120 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| bool pappso::BasePlotContext::m_wasClickOnYAxis = false |
Definition at line 121 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| bool pappso::BasePlotContext::m_wasKeyBoardDragging = false |
Definition at line 100 of file baseplotcontext.h.
Referenced by clone(), and initialize().
| bool pappso::BasePlotContext::m_wasMouseDragging = false |
Definition at line 95 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| double pappso::BasePlotContext::m_xDelta = 0 |
Definition at line 137 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| QCPRange pappso::BasePlotContext::m_xRange |
Definition at line 113 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| double pappso::BasePlotContext::m_xRegionRangeEnd = std::numeric_limits<double>::min() |
Definition at line 132 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| double pappso::BasePlotContext::m_xRegionRangeStart = std::numeric_limits<double>::min() |
Definition at line 131 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| double pappso::BasePlotContext::m_yDelta = 0 |
Definition at line 138 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| QCPRange pappso::BasePlotContext::m_yRange |
Definition at line 114 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| double pappso::BasePlotContext::m_yRegionRangeEnd = std::numeric_limits<double>::min() |
Definition at line 135 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| double pappso::BasePlotContext::m_yRegionRangeStart = std::numeric_limits<double>::min() |
Definition at line 134 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
| IntegrationScopeBaseCstSPtr pappso::BasePlotContext::msp_integrationScope = nullptr |
Definition at line 107 of file baseplotcontext.h.
Referenced by BasePlotContext(), clone(), initialize(), toString(), updateIntegrationScope(), updateIntegrationScopeRect(), updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
| QPointF pappso::BasePlotContext::currentDragPoint |
Definition at line 63 of file baseplotcontext.h.
| DragDirections pappso::BasePlotContext::dragDirections |
Definition at line 65 of file baseplotcontext.h.
| bool pappso::BasePlotContext::isKeyBoardDragging |
Definition at line 58 of file baseplotcontext.h.
| bool pappso::BasePlotContext::isLeftPseudoButtonKeyPressed |
Definition at line 59 of file baseplotcontext.h.
| bool pappso::BasePlotContext::isMouseDragging |
Definition at line 56 of file baseplotcontext.h.
| bool pappso::BasePlotContext::isRightPseudoButtonKeyPressed |
Definition at line 60 of file baseplotcontext.h.
| Qt::KeyboardModifiers pappso::BasePlotContext::keyboardModifiers |
Definition at line 74 of file baseplotcontext.h.
| QPointF pappso::BasePlotContext::lastCursorHoveredPoint |
Definition at line 64 of file baseplotcontext.h.
| Qt::MouseButtons pappso::BasePlotContext::lastPressedMouseButton |
Definition at line 75 of file baseplotcontext.h.
| Qt::MouseButtons pappso::BasePlotContext::lastReleasedMouseButton |
Definition at line 76 of file baseplotcontext.h.
| Qt::MouseButtons pappso::BasePlotContext::mouseButtonsAtMousePress |
Definition at line 78 of file baseplotcontext.h.
| Qt::MouseButtons pappso::BasePlotContext::mouseButtonsAtMouseRelease |
Definition at line 79 of file baseplotcontext.h.
| double pappso::BasePlotContext::pressedKeyCode |
Definition at line 72 of file baseplotcontext.h.
| Qt::MouseButtons pappso::BasePlotContext::pressedMouseButtons |
Definition at line 77 of file baseplotcontext.h.
| double pappso::BasePlotContext::releasedKeyCode |
Definition at line 73 of file baseplotcontext.h.
| QPointF pappso::BasePlotContext::startDragPoint |
Definition at line 62 of file baseplotcontext.h.
| bool pappso::BasePlotContext::wasKeyBoardDragging |
Definition at line 61 of file baseplotcontext.h.
| bool pappso::BasePlotContext::wasMouseDragging |
Definition at line 57 of file baseplotcontext.h.
| double pappso::BasePlotContext::xDelta |
Definition at line 70 of file baseplotcontext.h.
| double pappso::BasePlotContext::xRegionRangeEnd |
Definition at line 67 of file baseplotcontext.h.
| double pappso::BasePlotContext::xRegionRangeStart |
Definition at line 66 of file baseplotcontext.h.
| double pappso::BasePlotContext::yDelta |
Definition at line 71 of file baseplotcontext.h.
| double pappso::BasePlotContext::yRegionRangeEnd |
Definition at line 69 of file baseplotcontext.h.
| double pappso::BasePlotContext::yRegionRangeStart |
Definition at line 68 of file baseplotcontext.h.