pappso::MassSpecTracePlotContext Class Reference

`#include <massspectraceplotcontext.h>`

Inheritance diagram for pappso::MassSpecTracePlotContext:

## Public Member Functions

| MassSpecTracePlotContext ()
| MassSpecTracePlotContext (const MassSpecTracePlotContext &other)
virtual | ~MassSpecTracePlotContext ()
MassSpecTracePlotContext & | operator= (const MassSpecTracePlotContext &other)
QString | toString () const
Public Member Functions inherited from pappso::BasePlotContext
| BasePlotContext ()
| BasePlotContext (const BasePlotContext &other)
virtual | ~BasePlotContext ()
BasePlotContext & | operator= (const BasePlotContext &other)
DragDirections | recordDragDirections ()
QString | toString () const

## Public Attributes

BasePlotContext | m_baseContext
int | m_lastZ = -1
double | m_lastMz = std::numeric_limits<double>::min()
double | m_lastTicIntensity = std::numeric_limits<double>::min()
double | m_lastMr = std::numeric_limits<double>::min()
double | m_lastResolvingPower = std::numeric_limits<double>::min()
Public Attributes inherited from pappso::BasePlotContext
DataKind | m_dataKind = DataKind::unset
bool | m_isMouseDragging = false
bool | m_wasMouseDragging = false
bool | m_isKeyBoardDragging = false
bool | m_isLeftPseudoButtonKeyPressed = false
bool | m_isRightPseudoButtonKeyPressed = false
bool | m_wassKeyBoardDragging = false
QPointF | m_startDragPoint
QPointF | m_currentDragPoint
QPointF | m_lastCursorHoveredPoint
DragDirections | m_dragDirections = DragDirections::NOT_SET
SelectionPolygon | m_selectionPolygon
double | m_selectRectangleWidth = 0
QCPRange | m_xRange
QCPRange | m_yRange
bool | m_wasClickOnXAxis = false
bool | m_wasClickOnYAxis = false
bool | m_isMeasuringDistance = false
double | m_xRegionRangeStart = std::numeric_limits<double>::min()
double | m_xRegionRangeEnd = std::numeric_limits<double>::min()
double | m_yRegionRangeStart = std::numeric_limits<double>::min()
double | m_yRegionRangeEnd = std::numeric_limits<double>::min()
double | m_xDelta = 0
double | m_yDelta = 0
int | m_pressedKeyCode
int | m_releasedKeyCode
Qt::KeyboardModifiers | m_keyboardModifiers
Qt::MouseButtons | m_lastPressedMouseButton
Qt::MouseButtons | m_lastReleasedMouseButton
Qt::MouseButtons | m_pressedMouseButtons
Qt::MouseButtons | m_mouseButtonsAtMousePress
Qt::MouseButtons | m_mouseButtonsAtMouseRelease

## Detailed Description

Definition at line 21 of file massspectraceplotcontext.h.

## Constructor & Destructor Documentation

## MassSpecTracePlotContext() [1/2]

pappso::MassSpecTracePlotContext::MassSpecTracePlotContext | ( |  | ) |

Definition at line 19 of file massspectraceplotcontext.cpp.

{
}

## MassSpecTracePlotContext() [2/2]

pappso::MassSpecTracePlotContext::MassSpecTracePlotContext | ( | const MassSpecTracePlotContext & | other | ) |

Definition at line 24 of file massspectraceplotcontext.cpp.

: BasePlotContext(other.m_baseContext),
m_lastZ(other.m_lastZ),
m_lastMz(other.m_lastMz),
m_lastTicIntensity(other.m_lastTicIntensity),
m_lastMr(other.m_lastMr),
m_lastResolvingPower(other.m_lastResolvingPower)
{
}
pappso::BasePlotContext::BasePlotContext
BasePlotContext()
Definition: baseplotcontext.cpp:9
pappso::MassSpecTracePlotContext::m_lastMz
double m_lastMz
Definition: massspectraceplotcontext.h:34
pappso::MassSpecTracePlotContext::m_lastResolvingPower
double m_lastResolvingPower
Definition: massspectraceplotcontext.h:37
pappso::MassSpecTracePlotContext::m_lastZ
int m_lastZ
Definition: massspectraceplotcontext.h:33
pappso::MassSpecTracePlotContext::m_lastMr
double m_lastMr
Definition: massspectraceplotcontext.h:36
pappso::MassSpecTracePlotContext::m_lastTicIntensity
double m_lastTicIntensity
Definition: massspectraceplotcontext.h:35

## ~MassSpecTracePlotContext()

pappso::MassSpecTracePlotContext::~MassSpecTracePlotContext | ( |  | ) |

virtual

Definition at line 36 of file massspectraceplotcontext.cpp.

{
}

## Member Function Documentation

## operator=()

MassSpecTracePlotContext & pappso::MassSpecTracePlotContext::operator= | ( | const MassSpecTracePlotContext & | other | ) |

Definition at line 42 of file massspectraceplotcontext.cpp.

{
if(this == &other)
return *this;
m_baseContext = other.m_baseContext;
m_lastZ = other.m_lastZ;
m_lastMz = other.m_lastMz;
m_lastTicIntensity = other.m_lastTicIntensity;
m_lastMr = other.m_lastMr;
m_lastResolvingPower = other.m_lastResolvingPower;
return *this;
}
pappso::MassSpecTracePlotContext::m_baseContext
BasePlotContext m_baseContext
Definition: massspectraceplotcontext.h:31

References m_baseContext, m_lastMr, m_lastMz, m_lastResolvingPower, m_lastTicIntensity, and m_lastZ.

## toString()

QString pappso::MassSpecTracePlotContext::toString | ( |  | ) | const

Definition at line 60 of file massspectraceplotcontext.cpp.

{
QString text("Base context:\n");
text += m_baseContext.toString();
text += "\n";
text += QString("last z: %1").arg(m_lastZ);
text += QString("last m/z: %1").arg(m_lastMz, 0, 'f', 6);
text += QString("last TIC intensity: %1").arg(m_lastTicIntensity, 0, 'g', 0);
text += QString("last Mr: %1").arg(m_lastMr, 0, 'f', 6);
text +=
QString("last resolving power: %1").arg(m_lastResolvingPower, 0, 'g', 0);
text += "\n";
return text;
}
pappso::BasePlotContext::toString
QString toString() const
Definition: baseplotcontext.cpp:173

References m_baseContext, m_lastMr, m_lastMz, m_lastResolvingPower, m_lastTicIntensity, m_lastZ, and pappso::BasePlotContext::toString().

## Member Data Documentation

## m_baseContext

BasePlotContext pappso::MassSpecTracePlotContext::m_baseContext

Definition at line 31 of file massspectraceplotcontext.h.

Referenced by pappso::MassSpecTracePlotWidget::MassSpecTracePlotWidget(), pappso::MassSpecTracePlotWidget::computeResolvingPower(), pappso::MassSpecTracePlotWidget::deconvolute(), pappso::MassSpecTracePlotWidget::deconvoluteChargedState(), pappso::MassSpecTracePlotWidget::deconvoluteIsotopicCluster(), pappso::MassSpecTracePlotWidget::keyPressEvent(), pappso::MassSpecTracePlotWidget::mouseMoveHandlerDraggingCursor(), operator=(), pappso::MassSpecTracePlotWidget::refreshBaseContext(), and toString().

## m_lastMr

double pappso::MassSpecTracePlotContext::m_lastMr = std::numeric_limits<double>::min()

Definition at line 36 of file massspectraceplotcontext.h.

Referenced by pappso::MassSpecTracePlotWidget::deconvoluteChargedState(), pappso::MassSpecTracePlotWidget::deconvoluteIsotopicCluster(), operator=(), and toString().

## m_lastMz

double pappso::MassSpecTracePlotContext::m_lastMz = std::numeric_limits<double>::min()

Definition at line 34 of file massspectraceplotcontext.h.

Referenced by pappso::MassSpecTracePlotWidget::deconvoluteChargedState(), pappso::MassSpecTracePlotWidget::deconvoluteIsotopicCluster(), operator=(), and toString().

## m_lastResolvingPower

double pappso::MassSpecTracePlotContext::m_lastResolvingPower = std::numeric_limits<double>::min()

Definition at line 37 of file massspectraceplotcontext.h.

Referenced by pappso::MassSpecTracePlotWidget::computeResolvingPower(), operator=(), and toString().

## m_lastTicIntensity

double pappso::MassSpecTracePlotContext::m_lastTicIntensity = std::numeric_limits<double>::min()

Definition at line 35 of file massspectraceplotcontext.h.

Referenced by pappso::MassSpecTracePlotWidget::deconvoluteChargedState(), pappso::MassSpecTracePlotWidget::deconvoluteIsotopicCluster(), operator=(), and toString().

## m_lastZ

int pappso::MassSpecTracePlotContext::m_lastZ = -1

Definition at line 33 of file massspectraceplotcontext.h.

Referenced by pappso::MassSpecTracePlotWidget::deconvoluteChargedState(), pappso::MassSpecTracePlotWidget::deconvoluteIsotopicCluster(), operator=(), and toString().

The documentation for this class was generated from the following files:

- pappsomspp/widget/plotwidget/massspectraceplotcontext.h
- pappsomspp/widget/plotwidget/massspectraceplotcontext.cpp