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 |
Static Public Member Functions | |
static void | registerJsConstructor (QJSEngine *engine) |
Properties | |
bool | isMouseDragging |
bool | wasMouseDragging |
bool | isKeyBoardDragging |
bool | isLeftPseudoButtonKeyPressed |
bool | isRightPseudoButtonKeyPressed |
bool | wasKeyBoardDragging |
Definition at line 52 of file baseplotcontext.h.
pappso::BasePlotContext::BasePlotContext | ( | QObject * | parent = nullptr | ) |
Definition at line 31 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 103 of file baseplotcontext.cpp.
|
delete |
References BasePlotContext().
BasePlotContext * pappso::BasePlotContext::clone | ( | QObject * | parent = nullptr | ) |
Definition at line 108 of file baseplotcontext.cpp.
References BasePlotContext(), m_currentDragPoint, 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.
void pappso::BasePlotContext::initialize | ( | const BasePlotContext & | other | ) |
Definition at line 176 of file baseplotcontext.cpp.
References BasePlotContext(), m_currentDragPoint, 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 819 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 921 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 842 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::qtMouseButtonsMap, pappso::RIGHT_TO_LEFT, and pappso::TOP_TO_BOTTOM.
Referenced by pappso::MassSpecTracePlotContext::toString().
void pappso::BasePlotContext::updateIntegrationScope | ( | ) |
Definition at line 241 of file baseplotcontext.cpp.
References m_currentDragPoint, m_startDragPoint, and msp_integrationScope.
void pappso::BasePlotContext::updateIntegrationScopeRect | ( | ) |
Definition at line 264 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 666 of file baseplotcontext.cpp.
References m_integrationScopeRhombHeight, m_integrationScopeRhombWidth, updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
void pappso::BasePlotContext::updateIntegrationScopeRhombHorizontal | ( | ) |
Definition at line 365 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 514 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 86 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 75 of file baseplotcontext.h.
Referenced by toString().
DragDirections pappso::BasePlotContext::m_dragDirections = DragDirections::NOT_SET |
Definition at line 88 of file baseplotcontext.h.
Referenced by recordDragDirections(), toString(), updateIntegrationScopeRect(), updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
double pappso::BasePlotContext::m_integrationScopeRhombHeight = 0 |
Definition at line 93 of file baseplotcontext.h.
Referenced by clone(), initialize(), updateIntegrationScopeRhomb(), and updateIntegrationScopeRhombVertical().
double pappso::BasePlotContext::m_integrationScopeRhombWidth = 0 |
Definition at line 92 of file baseplotcontext.h.
Referenced by clone(), initialize(), updateIntegrationScopeRhomb(), and updateIntegrationScopeRhombHorizontal().
bool pappso::BasePlotContext::m_isKeyBoardDragging = false |
Definition at line 80 of file baseplotcontext.h.
Referenced by clone(), and initialize().
bool pappso::BasePlotContext::m_isLeftPseudoButtonKeyPressed = false |
Definition at line 81 of file baseplotcontext.h.
Referenced by clone(), and initialize().
bool pappso::BasePlotContext::m_isMeasuringDistance = false |
Definition at line 106 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
bool pappso::BasePlotContext::m_isMouseDragging = false |
Definition at line 77 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
bool pappso::BasePlotContext::m_isRightPseudoButtonKeyPressed = false |
Definition at line 82 of file baseplotcontext.h.
Referenced by clone(), and initialize().
Qt::KeyboardModifiers pappso::BasePlotContext::m_keyboardModifiers |
Definition at line 126 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
QPointF pappso::BasePlotContext::m_lastCursorHoveredPoint |
Definition at line 87 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
Qt::MouseButtons pappso::BasePlotContext::m_lastPressedMouseButton |
Definition at line 128 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
Qt::MouseButtons pappso::BasePlotContext::m_lastReleasedMouseButton |
Definition at line 129 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
Qt::MouseButtons pappso::BasePlotContext::m_mouseButtonsAtMousePress |
Definition at line 133 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
Qt::MouseButtons pappso::BasePlotContext::m_mouseButtonsAtMouseRelease |
Definition at line 134 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
int pappso::BasePlotContext::m_pressedKeyCode |
Definition at line 123 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
Qt::MouseButtons pappso::BasePlotContext::m_pressedMouseButtons |
Definition at line 131 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
int pappso::BasePlotContext::m_releasedKeyCode |
Definition at line 124 of file baseplotcontext.h.
Referenced by clone(), and initialize().
SelectionPolygon pappso::BasePlotContext::m_selectionPolygon |
Definition at line 91 of file baseplotcontext.h.
Referenced by clone(), and initialize().
QPointF pappso::BasePlotContext::m_startDragPoint |
Definition at line 85 of file baseplotcontext.h.
Referenced by clone(), initialize(), recordDragDirections(), toString(), updateIntegrationScope(), updateIntegrationScopeRect(), updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
bool pappso::BasePlotContext::m_wasClickOnXAxis = false |
Definition at line 103 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
bool pappso::BasePlotContext::m_wasClickOnYAxis = false |
Definition at line 104 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
bool pappso::BasePlotContext::m_wasKeyBoardDragging = false |
Definition at line 83 of file baseplotcontext.h.
Referenced by clone(), and initialize().
bool pappso::BasePlotContext::m_wasMouseDragging = false |
Definition at line 78 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
double pappso::BasePlotContext::m_xDelta = 0 |
Definition at line 120 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
QCPRange pappso::BasePlotContext::m_xRange |
Definition at line 96 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
double pappso::BasePlotContext::m_xRegionRangeEnd = std::numeric_limits<double>::min() |
Definition at line 115 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
double pappso::BasePlotContext::m_xRegionRangeStart = std::numeric_limits<double>::min() |
Definition at line 114 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
double pappso::BasePlotContext::m_yDelta = 0 |
Definition at line 121 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
QCPRange pappso::BasePlotContext::m_yRange |
Definition at line 97 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
double pappso::BasePlotContext::m_yRegionRangeEnd = std::numeric_limits<double>::min() |
Definition at line 118 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
double pappso::BasePlotContext::m_yRegionRangeStart = std::numeric_limits<double>::min() |
Definition at line 117 of file baseplotcontext.h.
Referenced by clone(), initialize(), and toString().
IntegrationScopeBaseCstSPtr pappso::BasePlotContext::msp_integrationScope = nullptr |
Definition at line 90 of file baseplotcontext.h.
Referenced by BasePlotContext(), clone(), initialize(), toString(), updateIntegrationScope(), updateIntegrationScopeRect(), updateIntegrationScopeRhombHorizontal(), and updateIntegrationScopeRhombVertical().
bool pappso::BasePlotContext::isKeyBoardDragging |
Definition at line 57 of file baseplotcontext.h.
bool pappso::BasePlotContext::isLeftPseudoButtonKeyPressed |
Definition at line 58 of file baseplotcontext.h.
bool pappso::BasePlotContext::isMouseDragging |
Definition at line 55 of file baseplotcontext.h.
bool pappso::BasePlotContext::isRightPseudoButtonKeyPressed |
Definition at line 59 of file baseplotcontext.h.
bool pappso::BasePlotContext::wasKeyBoardDragging |
Definition at line 60 of file baseplotcontext.h.
bool pappso::BasePlotContext::wasMouseDragging |
Definition at line 56 of file baseplotcontext.h.