44 qRegisterMetaType<pappso::MassSpecTracePlotContext>(
"pappso::MassSpecTracePlotContext");
47 qRegisterMetaType<pappso::MassSpecTracePlotContext *>(
"pappso::MassSpecTracePlotContext *");
62 const QString &x_axis_label,
63 const QString &y_axis_label)
155 if(
m_context.m_mouseButtonsAtMousePress & Qt::LeftButton)
359 double startMz =
m_context.m_xRegionRangeStart;
360 double curMz =
m_context.m_xRegionRangeEnd;
366 m_context.m_lastZ = std::numeric_limits<quint16>::max();
380 double chargeTemp = ((startMz * span) - span) / (curMz - startMz);
387 double chargeIntPart;
388 double chargeFracPart = modf(chargeTemp, &chargeIntPart);
411 m_context.m_lastZ = std::numeric_limits<quint16>::max();
441 else if(
static_cast<int>(
m_context.m_dragDirections) &
492 double startMz =
m_context.m_xRegionRangeStart;
493 double curMz =
m_context.m_xRegionRangeEnd;
499 m_context.m_lastZ = std::numeric_limits<quint16>::max();
514 double chargeTemp = 1 / fabs(
m_context.m_xDelta);
520 if(fabs(
m_context.m_xDelta) != fabs(curMz - startMz))
521 qFatal() <<
"Programming error.";
524 double chargeIntPart;
525 double chargeFracPart = modf(chargeTemp, &chargeIntPart);
536 m_context.m_lastZ = std::numeric_limits<quint16>::max();
581 else if(
static_cast<int>(
m_context.m_dragDirections) &
613 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)