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;
148 qDebug() <<
"left to right - bottom to top";
160 qDebug() <<
"right to left - bottom to top";
172 qDebug() <<
"left to right - top to bottom";
184 qDebug() <<
"right to left - top to bottom";
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);
271 qDebug() <<
"Start point:" << point;
281 points.push_back(point);
282 qDebug() <<
"Second point:" << point;
287 points.push_back(point);
288 qDebug() <<
"Third point:" << point;
293 points.push_back(point);
294 qDebug() <<
"Last point:" << point;
305 points.push_back(point);
306 qDebug() <<
"Second point:" << point;
311 points.push_back(point);
312 qDebug() <<
"Third point:" << point;
317 points.push_back(point);
318 qDebug() <<
"Last point:" << point;
329 points.push_back(point);
330 qDebug() <<
"Second point:" << point;
335 points.push_back(point);
336 qDebug() <<
"Third point:" << point;
341 points.push_back(point);
342 qDebug() <<
"Last point:" << point;
353 points.push_back(point);
354 qDebug() <<
"Second point:" << point;
359 points.push_back(point);
360 qDebug() <<
"Third point:" << point;
365 points.push_back(point);
366 qDebug() <<
"Last point:" << point;
372 qDebug() <<
"Created an integration scope horizontal rhomboid with"
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);
443 qDebug() <<
"Second point:" << point;
448 points.push_back(point);
449 qDebug() <<
"Third point:" << point;
454 points.push_back(point);
455 qDebug() <<
"Last point:" << point;
466 points.push_back(point);
467 qDebug() <<
"Second point:" << point;
472 points.push_back(point);
473 qDebug() <<
"Third point:" << point;
478 points.push_back(point);
479 qDebug() <<
"Last point:" << point;
490 points.push_back(point);
491 qDebug() <<
"Second point:" << point;
496 points.push_back(point);
497 qDebug() <<
"Third point:" << point;
502 points.push_back(point);
503 qDebug() <<
"Last point:" << point;
514 points.push_back(point);
515 qDebug() <<
"Second point:" << point;
520 points.push_back(point);
521 qDebug() <<
"Third point:" << point;
526 points.push_back(point);
527 qDebug() <<
"Last point:" << point;
532 qDebug() <<
"Created an integration scope vertical rhomboid with"
605 qDebug() <<
"In updateIntegrationScopeRhomb, m_integrationScopeRhombWidth:"
607 <<
"and m_integrationScopeRhombHeight:"
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...