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

Class DimInfoRT

src/openms_gui/source/VISUAL/Painter2DBase.cpp:287–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 virtual DimMapper<2>::Point mapToPoint(double value, double mz) const = 0;
286 };
287 struct DimInfoRT : DimInfo
288 {
289 using DimInfo::DimInfo; // inherit C'tor
290 double getMaximum() const override
291 {
292 return exp_.getMaxRT();
293 }
294 double getValue(const MSSpectrum& spec) const override
295 {
296 return spec.getRT();
297 }
298 MSExperiment::ConstIterator getFirstScan(double value) const override
299 {
300 return exp_.RTBegin(value);
301 }
302 DimMapper<2>::Point mapToPoint(double value, double mz) const override
303 {
304 return mapper_.map(Peak2D({value, mz}, 0));
305 }
306 };
307 struct DimInfoIM : DimInfo {
308 using DimInfo::DimInfo; // inherit C'tor
309 double getMaximum() const override

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected