libpappsomspp
Library for mass spectrometry
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 MassSpecTracePlotContext &other)
 
QString toString () const
 
- Public Member Functions inherited from pappso::BasePlotContext
 BasePlotContext ()
 
 BasePlotContext (const BasePlotContext &other)
 
virtual ~BasePlotContext ()
 
BasePlotContextoperator= (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.

20{
21}

◆ MassSpecTracePlotContext() [2/2]

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

Definition at line 24 of file massspectraceplotcontext.cpp.

26 : BasePlotContext(other.m_baseContext),
27 m_lastZ(other.m_lastZ),
28 m_lastMz(other.m_lastMz),
29 m_lastTicIntensity(other.m_lastTicIntensity),
30 m_lastMr(other.m_lastMr),
31 m_lastResolvingPower(other.m_lastResolvingPower)
32{
33}

◆ ~MassSpecTracePlotContext()

pappso::MassSpecTracePlotContext::~MassSpecTracePlotContext ( )
virtual

Definition at line 36 of file massspectraceplotcontext.cpp.

37{
38}

Member Function Documentation

◆ operator=()

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

Definition at line 42 of file massspectraceplotcontext.cpp.

43{
44 if(this == &other)
45 return *this;
46
47 m_baseContext = other.m_baseContext;
48
49 m_lastZ = other.m_lastZ;
50 m_lastMz = other.m_lastMz;
51 m_lastTicIntensity = other.m_lastTicIntensity;
52 m_lastMr = other.m_lastMr;
53 m_lastResolvingPower = other.m_lastResolvingPower;
54
55 return *this;
56}

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.

61{
62 QString text("Base context:\n");
63
64 text += m_baseContext.toString();
65
66 text += "\n";
67
68 text += QString("last z: %1").arg(m_lastZ);
69 text += QString("last m/z: %1").arg(m_lastMz, 0, 'f', 6);
70 text += QString("last TIC intensity: %1").arg(m_lastTicIntensity, 0, 'g', 0);
71 text += QString("last Mr: %1").arg(m_lastMr, 0, 'f', 6);
72 text +=
73 QString("last resolving power: %1").arg(m_lastResolvingPower, 0, 'g', 0);
74
75 text += "\n";
76
77 return text;
78}

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

Member Data Documentation

◆ m_baseContext

◆ 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: