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

Method showMetaDistribution

src/openms_gui/source/VISUAL/PlotWidget.cpp:140–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 }
139
140 void PlotWidget::showMetaDistribution(const String& name, const Histogram<>& dist)
141 {
142 HistogramDialog dw(dist);
143 dw.setLegend(name);
144
145 if (dw.exec() == QDialog::Accepted)
146 {
147 DataFilters filters;
148
149 if (dw.getLeftSplitter() > dist.minBound())
150 {
151 DataFilters::DataFilter filter;
152 filter.value = dw.getLeftSplitter();
153 filter.field = DataFilters::META_DATA;
154 filter.meta_name = name;
155 filter.op = DataFilters::GREATER_EQUAL;
156 filter.value_is_numerical = true;
157 filters.add(filter);
158 }
159
160 if (dw.getRightSplitter() < dist.maxBound())
161 {
162 DataFilters::DataFilter filter;
163 filter.value = dw.getRightSplitter();
164 filter.field = DataFilters::META_DATA;
165 filter.meta_name = name;
166 filter.op = DataFilters::LESS_EQUAL;
167 filter.value_is_numerical = true;
168 filters.add(filter);
169 }
170
171 canvas_->setFilters(filters);
172 }
173 }
174
175 void PlotWidget::showLegend(bool show)
176 {

Callers 1

showDistributionFunction · 0.80

Calls 7

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

Tested by

no test coverage detected