MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / showIntensityDistribution

Method showIntensityDistribution

src/openms_gui/source/VISUAL/PlotWidget.cpp:109–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 }
108
109 void PlotWidget::showIntensityDistribution(const Histogram<>& dist)
110 {
111 HistogramDialog dw(dist);
112 dw.setLegend(PlotWidget::INTENSITY_AXIS_TITLE);
113 dw.setLogMode(true);
114 if (dw.exec() == QDialog::Accepted)
115 {
116 DataFilters filters;
117
118 if (dw.getLeftSplitter() > dist.minBound())
119 {
120 DataFilters::DataFilter filter;
121 filter.value = dw.getLeftSplitter();
122 filter.field = DataFilters::INTENSITY;
123 filter.op = DataFilters::GREATER_EQUAL;
124 filters.add(filter);
125 }
126
127 if (dw.getRightSplitter() < dist.maxBound())
128 {
129 DataFilters::DataFilter filter;
130 filter.value = dw.getRightSplitter();
131 filter.field = DataFilters::INTENSITY;
132 filter.op = DataFilters::LESS_EQUAL;
133 filters.add(filter);
134 }
135
136 canvas_->setFilters(filters);
137 }
138 }
139
140 void PlotWidget::showMetaDistribution(const String& name, const Histogram<>& dist)
141 {

Callers 1

showDistributionFunction · 0.80

Calls 8

minBoundMethod · 0.80
maxBoundMethod · 0.80
setFiltersMethod · 0.80
setLegendMethod · 0.45
setLogModeMethod · 0.45
getLeftSplitterMethod · 0.45
addMethod · 0.45
getRightSplitterMethod · 0.45

Tested by

no test coverage detected