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 ()
 
MassSpecTracePlotContext * clone ()
 
void initialize (const BasePlotContext &other)
 
void initialize (const MassSpecTracePlotContext &other)
 
MassSpecTracePlotContext & operator= (const BasePlotContext &other)
 
MassSpecTracePlotContext & operator= (const MassSpecTracePlotContext &other)
 
void resetDeconvolutionData ()
 
QString toString () const
 
- Public Member Functions inherited from pappso::BasePlotContext
 BasePlotContext ()
 
virtual ~BasePlotContext ()
 
BasePlotContext * clone ()
 
void initialize (const BasePlotContext &other)
 
 BasePlotContext (const BasePlotContext &other)
 
BasePlotContext & operator= (const BasePlotContext &other)
 
void updateIntegrationScope ()
 
void updateIntegrationScopeRect ()
 
void updateIntegrationScopeRhomb ()
 
void updateIntegrationScopeRhombHorizontal ()
 
void updateIntegrationScopeRhombVertical ()
 
DragDirections recordDragDirections ()
 
QString toString () const
 
QString dragDirectionsToString () const
 

Public Attributes

quint16 m_lastZ = std::numeric_limits<quint16>::max()
 
double m_lastMz = qQNaN()
 
double m_lastTicIntensity = qQNaN()
 
double m_lastMr = qQNaN()
 
double m_lastResolvingPower = qQNaN()
 
- Public Attributes inherited from pappso::BasePlotContext
Enums::DataKind m_dataKind = Enums::DataKind::unset
 
bool m_isMouseDragging = false
 
bool m_wasMouseDragging = false
 
bool m_isKeyBoardDragging = false
 
bool m_isLeftPseudoButtonKeyPressed = false
 
bool m_isRightPseudoButtonKeyPressed = false
 
bool m_wasKeyBoardDragging = false
 
QPointF m_startDragPoint
 
QPointF m_currentDragPoint
 
QPointF m_lastCursorHoveredPoint
 
DragDirections m_dragDirections = DragDirections::NOT_SET
 
IntegrationScopeBase * mpa_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_xRegionRangeStop = std::numeric_limits<double>::min()
 
double m_yRegionRangeStart = std::numeric_limits<double>::min()
 
double m_yRegionRangeStop = std::numeric_limits<double>::min()
 
double m_xDelta = 0
 
double m_yDelta = 0
 
int m_pressedKeyCode
 
QSet< int > m_pressedKeyCodes
 
QString m_pressedKeyText
 
int m_releasedKeyCode
 
QSet< int > m_releasedKeyCodes
 
QString m_releasedKeyText
 
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 26 of file massspectraceplotcontext.h.

Constructor & Destructor Documentation

◆ MassSpecTracePlotContext() [1/2]

pappso::MassSpecTracePlotContext::MassSpecTracePlotContext ( )

Definition at line 18 of file massspectraceplotcontext.cpp.

Referenced by clone().

◆ MassSpecTracePlotContext() [2/2]

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

Definition at line 22 of file massspectraceplotcontext.cpp.

23 : BasePlotContext(other),
24 m_lastZ(other.m_lastZ),
25 m_lastMz(other.m_lastMz),
26 m_lastTicIntensity(other.m_lastTicIntensity),
27 m_lastMr(other.m_lastMr),
28 m_lastResolvingPower(other.m_lastResolvingPower)
29{
30}

◆ ~MassSpecTracePlotContext()

pappso::MassSpecTracePlotContext::~MassSpecTracePlotContext ( )
virtual

Definition at line 32 of file massspectraceplotcontext.cpp.

33{
34}

Member Function Documentation

◆ clone()

MassSpecTracePlotContext * pappso::MassSpecTracePlotContext::clone ( )

Definition at line 37 of file massspectraceplotcontext.cpp.

References MassSpecTracePlotContext().

◆ initialize() [1/2]

void pappso::MassSpecTracePlotContext::initialize ( const BasePlotContext &  other)

◆ initialize() [2/2]

void pappso::MassSpecTracePlotContext::initialize ( const MassSpecTracePlotContext &  other)

Definition at line 49 of file massspectraceplotcontext.cpp.

50{
52
53 m_lastZ = other.m_lastZ;
54 m_lastMz = other.m_lastMz;
55 m_lastTicIntensity = other.m_lastTicIntensity;
56 m_lastMr = other.m_lastMr;
57 m_lastResolvingPower = other.m_lastResolvingPower;
58}

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

◆ operator=() [1/2]

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

Definition at line 61 of file massspectraceplotcontext.cpp.

62{
64
65 return *this;
66}

References pappso::BasePlotContext::initialize().

◆ operator=() [2/2]

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

Definition at line 69 of file massspectraceplotcontext.cpp.

70{
71 initialize(other);
72
73 return *this;
74}
void initialize(const BasePlotContext &other)

References initialize().

◆ resetDeconvolutionData()

void pappso::MassSpecTracePlotContext::resetDeconvolutionData ( )

Definition at line 77 of file massspectraceplotcontext.cpp.

78{
79 m_lastZ = std::numeric_limits<quint16>::max();
80 m_lastMz = qQNaN();
81 m_lastMr = qQNaN();
82}

References m_lastMr, m_lastMz, and m_lastZ.

Referenced by pappso::MassSpecTracePlotWidget::mouseReleaseHandler().

◆ toString()

QString pappso::MassSpecTracePlotContext::toString ( ) const

Definition at line 85 of file massspectraceplotcontext.cpp.

86{
87 QString text("Base context:\n");
88
90
91 text += "\n";
92
93 text += "Mass spectrum trace plot context\n";
94
95 text += QString("last z: %1").arg(m_lastZ);
96 text += QString(" -- last m/z: %1").arg(m_lastMz, 0, 'f', 6);
97 text += QString(" -- last TIC intensity: %1").arg(m_lastTicIntensity, 0, 'f', 0);
98 text += QString(" -- last Mr: %1").arg(m_lastMr, 0, 'f', 6);
99 text += QString(" -- last resolving power: %1").arg(m_lastResolvingPower, 0, 'f', 0);
100
101 text += "\n";
102
103 return text;
104}

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

Member Data Documentation

◆ m_lastMr

◆ m_lastMz

◆ m_lastResolvingPower

double pappso::MassSpecTracePlotContext::m_lastResolvingPower = qQNaN()

◆ m_lastTicIntensity

double pappso::MassSpecTracePlotContext::m_lastTicIntensity = qQNaN()

◆ m_lastZ

quint16 pappso::MassSpecTracePlotContext::m_lastZ = std::numeric_limits<quint16>::max()

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