5#include "../../processing/combiners/integrationscope.h"
6#include "../../processing/combiners/integrationscoperect.h"
7#include "../../processing/combiners/integrationscoperhomb.h"
101 QPointF point(x_range_start, y_position);
102 double width = x_range_end - x_range_start;
195 std::make_shared<IntegrationScopeRect>(point, width, height);
258 "The m_integrationScopeRhombWidth of the fixed rhomboid side cannot be "
262 std::vector<QPointF> points;
270 points.push_back(point);
281 points.push_back(point);
287 points.push_back(point);
293 points.push_back(point);
305 points.push_back(point);
311 points.push_back(point);
317 points.push_back(point);
329 points.push_back(point);
335 points.push_back(point);
341 points.push_back(point);
353 points.push_back(point);
359 points.push_back(point);
365 points.push_back(point);
419 qFatal(
"The height of the fixed rhomboid side cannot be 0.");
422 std::vector<QPointF> points;
431 points.push_back(point);
432 qDebug() <<
"Start point:" << point;
442 points.push_back(point);
448 points.push_back(point);
454 points.push_back(point);
466 points.push_back(point);
472 points.push_back(point);
478 points.push_back(point);
490 points.push_back(point);
496 points.push_back(point);
502 points.push_back(point);
514 points.push_back(point);
520 points.push_back(point);
526 points.push_back(point);
612 "Both m_integrationScopeRhombWidth and m_integrationScopeRhombHeight of "
613 "rhomboid integration scope cannot be 0.");
716 QString text(
"Context:");
718 text += QString(
"data kind: %1").arg(
static_cast<int>(
m_dataKind));
720 text += QString(
" isMouseDragging: %1 -- wasMouseDragging: %2")
724 text += QString(
" -- startDragPoint : (%1, %2)")
728 text += QString(
" -- currentDragPoint : (%1, %2)")
732 text += QString(
" -- lastCursorHoveredPoint : (%1, %2)")
741 text +=
" -- dragging from left to right";
744 text +=
" -- dragging from right to left";
747 text +=
" -- dragging from top to bottom";
750 text +=
" -- dragging from bottom to top";
763 text += QString(
" -- wasClickOnXAxis: %1")
765 text += QString(
" -- wasClickOnYAxis: %1")
767 text += QString(
" -- isMeasuringDistance: %1")
770 text += QString(
" -- xRegionRangeStart: %1 -- xRegionRangeEnd: %2")
774 text += QString(
" -- yRegionRangeStart: %1 -- yRegionRangeEnd: %2")
778 text += QString(
" -- xDelta: %1 -- yDelta: %2").arg(
m_xDelta).arg(
m_yDelta);
795 text += QString(
" -- mouseButtonsAtMouseRelease: %1")
double m_xRegionRangeStart
Qt::MouseButtons m_mouseButtonsAtMousePress
SelectionPolygon m_selectionPolygon
virtual ~BasePlotContext()
IntegrationScopeBaseCstSPtr msp_integrationScope
DragDirections recordDragDirections()
Qt::KeyboardModifiers m_keyboardModifiers
void updateIntegrationScope()
Qt::MouseButtons m_lastPressedMouseButton
void updateIntegrationScopeRhombVertical()
void updateIntegrationScopeRhombHorizontal()
bool m_isMeasuringDistance
DragDirections m_dragDirections
double m_integrationScopeRhombHeight
QPointF m_lastCursorHoveredPoint
QPointF m_currentDragPoint
void updateIntegrationScopeRect()
double m_yRegionRangeStart
void updateIntegrationScopeRhomb()
bool m_isRightPseudoButtonKeyPressed
Qt::MouseButtons m_pressedMouseButtons
Qt::MouseButtons m_mouseButtonsAtMouseRelease
bool m_isLeftPseudoButtonKeyPressed
BasePlotContext & operator=(const BasePlotContext &other)
double m_integrationScopeRhombWidth
Qt::MouseButtons m_lastReleasedMouseButton
bool m_wassKeyBoardDragging
bool m_isKeyBoardDragging
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...