OpenMS
2.7.0
|
Hierarchical visualization and selection of spectra. More...
#include <OpenMS/VISUAL/SpectraTreeTab.h>
Signals | |
void | spectrumSelected (int) |
void | chromsSelected (std::vector< int > indices) |
void | spectrumDoubleClicked (int) |
void | chromsDoubleClicked (std::vector< int > indices) |
void | showSpectrumAsNew1D (int) |
void | showChromatogramsAsNew1D (std::vector< int > indices) |
void | showSpectrumMetaData (int) |
Public Member Functions | |
SpectraTreeTab (QWidget *parent=nullptr) | |
Constructor. More... | |
~SpectraTreeTab ()=default | |
Destructor. More... | |
bool | hasData (const LayerData *layer) override |
docu in base class More... | |
void | updateEntries (LayerData *cl) override |
refresh the table using data from cl More... | |
void | clear () override |
remove all visible data More... | |
bool | getSelectedScan (MSExperiment &exp, LayerData::DataType ¤t_type) const |
Private Slots | |
void | populateSearchBox_ () |
fill the search-combo-box with current column header names More... | |
void | spectrumSearchText_ () |
searches for rows containing a search text (from spectra_search_box_); called when text search box is used More... | |
void | itemSelectionChange_ (QTreeWidgetItem *, QTreeWidgetItem *) |
emits spectrumSelected() for PEAK or chromsSelected() for CHROM data More... | |
void | searchAndShow_ () |
searches using text box and plots the spectrum More... | |
void | itemDoubleClicked_ (QTreeWidgetItem *) |
called upon double click on an item; emits spectrumDoubleClicked() or chromsDoubleClicked() after some checking More... | |
void | spectrumContextMenu_ (const QPoint &) |
Display context menu; allows to open metadata window. More... | |
Private Attributes | |
QLineEdit * | spectra_search_box_ = nullptr |
QComboBox * | spectra_combo_box_ = nullptr |
TreeView * | spectra_treewidget_ = nullptr |
std::map< size_t, std::map< Precursor, std::vector< Size >, Precursor::MZLess > > | map_precursor_to_chrom_idx_cache_ |
cache to store mapping of chromatogram precursors to chromatogram indices More... | |
const PeakMap * | last_peakmap_ = nullptr |
remember the last PeakMap that we used to fill the spectra list (and avoid rebuilding it) More... | |
Hierarchical visualization and selection of spectra.
SpectraTreeTab | ( | QWidget * | parent = nullptr | ) |
Constructor.
|
default |
Destructor.
|
signal |
|
signal |
|
overridevirtual |
remove all visible data
Implements DataTabBase.
bool getSelectedScan | ( | MSExperiment & | exp, |
LayerData::DataType & | current_type | ||
) | const |
Return a copy of the currently selected spectrum/chrom (for drag'n'drop to new window) and store it either as Spectrum or Chromatogram in exp
(all other data is cleared) If no spectrum/chrom is selected, false is returned and exp
is empty
current_type | Either DT_PEAK or DT_CHROMATOGRAM, depending on what is currently shown |
Referenced by TOPPViewBase::copyLayer().
|
overridevirtual |
docu in base class
Implements DataTabBase.
|
privateslot |
called upon double click on an item; emits spectrumDoubleClicked() or chromsDoubleClicked() after some checking
|
privateslot |
emits spectrumSelected() for PEAK or chromsSelected() for CHROM data
|
privateslot |
fill the search-combo-box with current column header names
|
privateslot |
searches using text box and plots the spectrum
|
signal |
|
signal |
|
signal |
|
privateslot |
Display context menu; allows to open metadata window.
|
signal |
|
privateslot |
searches for rows containing a search text (from spectra_search_box_); called when text search box is used
|
signal |
|
overridevirtual |
refresh the table using data from cl
Implements DataTabBase.
|
private |
remember the last PeakMap that we used to fill the spectra list (and avoid rebuilding it)
|
private |
cache to store mapping of chromatogram precursors to chromatogram indices
|
private |
|
private |
|
private |