Loading...
Searching...
No Matches
driftspecmassspeccolormapplotwidget.cpp
Go to the documentation of this file.
/* This code comes right from the msXpertSuite software project.
*
* msXpertSuite - mass spectrometry software suite
* -----------------------------------------------
* Copyright(C) 2009,...,2018 Filippo Rusconi
*
* http://www.msxpertsuite.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* END software license
*/
/////////////////////// StdLib includes
#include <vector>
/////////////////////// Qt includes
#include <QVector>
/////////////////////// Local includes
#include "driftspecmassspeccolormapplotwidget.h"
#include "../../pappsoexception.h"
namespace pappso
{
DriftSpecMassSpecColorMapPlotWidget::DriftSpecMassSpecColorMapPlotWidget(
QWidget *parent, const QString &x_axis_label, const QString &y_axis_label)
: BaseColorMapPlotWidget(parent, x_axis_label, y_axis_label)
{
}
DriftSpecMassSpecColorMapPlotWidget::~DriftSpecMassSpecColorMapPlotWidget()
{
}
//! Set the \c m_pressedKeyCode to the key code in \p event.
void
DriftSpecMassSpecColorMapPlotWidget::keyPressEvent(QKeyEvent *event)
{
BasePlotWidget::keyPressEvent(event);
}
//! Handle specific key codes and trigger respective actions.
void
DriftSpecMassSpecColorMapPlotWidget::keyReleaseEvent(QKeyEvent *event)
{
BasePlotWidget::keyReleaseEvent(event);
}
//! Handle mouse movements, in particular record all the last visited points.
/*!
This function is reponsible for storing at each time the last visited point
in the graph. Here, point is intended as any x/y coordinate in the plot
widget viewport, not a graph point.
The stored values are then the basis for a large set of calculations
throughout all the plot widget.
\param pointer to QMouseEvent from which to retrieve the coordinates of the
visited viewport points.
*/
void
DriftSpecMassSpecColorMapPlotWidget::mouseMoveHandler(QMouseEvent *event)
{
BasePlotWidget::mouseMoveHandler(event);
}
void
DriftSpecMassSpecColorMapPlotWidget::mouseMoveHandlerNotDraggingCursor()
{
BasePlotWidget::mouseMoveHandlerNotDraggingCursor();
}
void
DriftSpecMassSpecColorMapPlotWidget::mouseMoveHandlerDraggingCursor()
{
BasePlotWidget::mouseMoveHandlerDraggingCursor();
}
//! Record the clicks of the mouse.
void
DriftSpecMassSpecColorMapPlotWidget::mousePressHandler(QMouseEvent *event)
{
BasePlotWidget::mousePressHandler(event);
}
//! React to the release of the mouse buttons.
void
DriftSpecMassSpecColorMapPlotWidget::mouseReleaseHandler(QMouseEvent *event)
{
BasePlotWidget::mouseReleaseHandler(event);
}
} // namespace pappso
pappso::BaseColorMapPlotWidget
Definition basecolormapplotwidget.h:64
pappso::BasePlotWidget::mouseMoveHandlerDraggingCursor
virtual void mouseMoveHandlerDraggingCursor()
Definition baseplotwidget.cpp:1027
pappso::BasePlotWidget::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event)
KEYBOARD-related EVENTS.
Definition baseplotwidget.cpp:620
pappso::BasePlotWidget::mouseMoveHandlerNotDraggingCursor
virtual void mouseMoveHandlerNotDraggingCursor()
Definition baseplotwidget.cpp:963
pappso::BasePlotWidget::mousePressHandler
virtual void mousePressHandler(QMouseEvent *event)
KEYBOARD-related EVENTS.
Definition baseplotwidget.cpp:1300
pappso::BasePlotWidget::mouseReleaseHandler
virtual void mouseReleaseHandler(QMouseEvent *event)
Definition baseplotwidget.cpp:1415
pappso::BasePlotWidget::mouseMoveHandler
virtual void mouseMoveHandler(QMouseEvent *event)
KEYBOARD-related EVENTS.
Definition baseplotwidget.cpp:915
pappso::BasePlotWidget::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *event)
Handle specific key codes and trigger respective actions.
Definition baseplotwidget.cpp:649
pappso::DriftSpecMassSpecColorMapPlotWidget::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event) override
Set the m_pressedKeyCode to the key code in event.
Definition driftspecmassspeccolormapplotwidget.cpp:57
pappso::DriftSpecMassSpecColorMapPlotWidget::mouseMoveHandler
virtual void mouseMoveHandler(QMouseEvent *event) override
Handle mouse movements, in particular record all the last visited points.
Definition driftspecmassspeccolormapplotwidget.cpp:85
pappso::DriftSpecMassSpecColorMapPlotWidget::mouseReleaseHandler
virtual void mouseReleaseHandler(QMouseEvent *event) override
React to the release of the mouse buttons.
Definition driftspecmassspeccolormapplotwidget.cpp:115
pappso::DriftSpecMassSpecColorMapPlotWidget::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *event) override
Handle specific key codes and trigger respective actions.
Definition driftspecmassspeccolormapplotwidget.cpp:65
pappso::DriftSpecMassSpecColorMapPlotWidget::mouseMoveHandlerDraggingCursor
virtual void mouseMoveHandlerDraggingCursor() override
Definition driftspecmassspeccolormapplotwidget.cpp:99
pappso::DriftSpecMassSpecColorMapPlotWidget::mouseMoveHandlerNotDraggingCursor
virtual void mouseMoveHandlerNotDraggingCursor() override
Definition driftspecmassspeccolormapplotwidget.cpp:92
pappso::DriftSpecMassSpecColorMapPlotWidget::DriftSpecMassSpecColorMapPlotWidget
DriftSpecMassSpecColorMapPlotWidget(QWidget *parent, const QString &x_axis_label, const QString &y_axis_label)
Definition driftspecmassspeccolormapplotwidget.cpp:43
pappso::DriftSpecMassSpecColorMapPlotWidget::mousePressHandler
virtual void mousePressHandler(QMouseEvent *event) override
Record the clicks of the mouse.
Definition driftspecmassspeccolormapplotwidget.cpp:107
pappso::DriftSpecMassSpecColorMapPlotWidget::~DriftSpecMassSpecColorMapPlotWidget
virtual ~DriftSpecMassSpecColorMapPlotWidget()
Definition driftspecmassspeccolormapplotwidget.cpp:50
driftspecmassspeccolormapplotwidget.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39