44 qRegisterMetaType<pappso::MassSpecTracePlotContext>(
"pappso::MassSpecTracePlotContext");
47 qRegisterMetaType<pappso::MassSpecTracePlotContext *>(
"pappso::MassSpecTracePlotContext *");
62 const QString &x_axis_label,
63 const QString &y_axis_label)
158 if(
m_context.m_mouseButtonsAtMousePress & Qt::LeftButton)
362 double startMz =
m_context.m_xRegionRangeStart;
363 double curMz =
m_context.m_xRegionRangeStop;
369 m_context.m_lastZ = std::numeric_limits<quint16>::max();
383 double chargeTemp = ((startMz * span) - span) / (curMz - startMz);
390 double chargeIntPart;
391 double chargeFracPart = modf(chargeTemp, &chargeIntPart);
414 m_context.m_lastZ = std::numeric_limits<quint16>::max();
444 else if(
static_cast<int>(
m_context.m_dragDirections) &
495 double startMz =
m_context.m_xRegionRangeStart;
496 double curMz =
m_context.m_xRegionRangeStop;
502 m_context.m_lastZ = std::numeric_limits<quint16>::max();
517 double chargeTemp = 1 / fabs(
m_context.m_xDelta);
523 if(fabs(
m_context.m_xDelta) != fabs(curMz - startMz))
524 qFatal() <<
"Programming error.";
527 double chargeIntPart;
528 double chargeFracPart = modf(chargeTemp, &chargeIntPart);
539 m_context.m_lastZ = std::numeric_limits<quint16>::max();
584 else if(
static_cast<int>(
m_context.m_dragDirections) &
616 m_context.m_lastResolvingPower = std::numeric_limits<double>::min();
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
const pappso_double MPROTON(1.007276466879)