libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::MassSpecTracePlotContext Class Reference

#include <massspectraceplotcontext.h>

Inheritance diagram for pappso::MassSpecTracePlotContext:
pappso::BasePlotContext

Public Member Functions

 MassSpecTracePlotContext ()
 
 MassSpecTracePlotContext (const MassSpecTracePlotContext &other)
 
virtual ~MassSpecTracePlotContext ()
 
MassSpecTracePlotContextoperator= (const BasePlotContext &other)
 
MassSpecTracePlotContextoperator= (const MassSpecTracePlotContext &other)
 
QString toString () const
 
- Public Member Functions inherited from pappso::BasePlotContext
 BasePlotContext ()
 
 BasePlotContext (const BasePlotContext &other)
 
virtual ~BasePlotContext ()
 
void updateIntegrationScope ()
 
void updateIntegrationScopeRect ()
 
void updateIntegrationScopeRhomb ()
 
void updateIntegrationScopeRhombHorizontal ()
 
void updateIntegrationScopeRhombVertical ()
 
BasePlotContextoperator= (const BasePlotContext &other)
 
DragDirections recordDragDirections ()
 
QString toString () const
 

Public Attributes

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
 
IntegrationScopeBaseCstSPtr msp_integrationScope = nullptr
 
SelectionPolygon m_selectionPolygon
 
double m_integrationScopeRhombWidth = 0
 
double m_integrationScopeRhombHeight = 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 18 of file massspectraceplotcontext.cpp.

19{
20}

◆ MassSpecTracePlotContext() [2/2]

pappso::MassSpecTracePlotContext::MassSpecTracePlotContext ( const MassSpecTracePlotContext other)

Definition at line 23 of file massspectraceplotcontext.cpp.

25 : BasePlotContext(other),
26 m_lastZ(other.m_lastZ),
27 m_lastMz(other.m_lastMz),
28 m_lastTicIntensity(other.m_lastTicIntensity),
29 m_lastMr(other.m_lastMr),
30 m_lastResolvingPower(other.m_lastResolvingPower)
31{
32 // qDebug() << "Constructing MassSpecTracePlotContext by copy:" << toString();
33}

◆ ~MassSpecTracePlotContext()

pappso::MassSpecTracePlotContext::~MassSpecTracePlotContext ( )
virtual

Definition at line 36 of file massspectraceplotcontext.cpp.

37{
38}

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 41 of file massspectraceplotcontext.cpp.

42{
43 if(this == &other)
44 return *this;
45
46 // First the BasePlotContext members
48
49 return *this;
50}
BasePlotContext & operator=(const BasePlotContext &other)

References pappso::BasePlotContext::operator=().

◆ operator=() [2/2]

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

Definition at line 54 of file massspectraceplotcontext.cpp.

55{
56 if(this == &other)
57 return *this;
58
59 // First the BasePlotContext members
61
62 // Second the mass spec trace plot-specific members
63
64 m_lastZ = other.m_lastZ;
65 m_lastMz = other.m_lastMz;
66 m_lastTicIntensity = other.m_lastTicIntensity;
67 m_lastMr = other.m_lastMr;
68 m_lastResolvingPower = other.m_lastResolvingPower;
69
70 return *this;
71}

References m_lastMr, m_lastMz, m_lastResolvingPower, m_lastTicIntensity, m_lastZ, and pappso::BasePlotContext::operator=().

◆ toString()

QString pappso::MassSpecTracePlotContext::toString ( ) const

Definition at line 75 of file massspectraceplotcontext.cpp.

76{
77 QString text("Base context:\n");
78
80
81 text += "\n";
82
83 text += "Mass spectrum trace plot context\n";
84
85 text += QString("last z: %1").arg(m_lastZ);
86 text += QString("last m/z: %1").arg(m_lastMz, 0, 'f', 6);
87 text += QString("last TIC intensity: %1").arg(m_lastTicIntensity, 0, 'g', 0);
88 text += QString("last Mr: %1").arg(m_lastMr, 0, 'f', 6);
89 text +=
90 QString("last resolving power: %1").arg(m_lastResolvingPower, 0, 'g', 0);
91
92 text += "\n";
93
94 return text;
95}

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

Member Data Documentation

◆ m_lastMr

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

◆ m_lastMz

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

◆ m_lastResolvingPower

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

◆ m_lastTicIntensity

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

◆ m_lastZ


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