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

Class DimInfoIM

src/openms_gui/source/VISUAL/Painter2DBase.cpp:307–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305 }
306 };
307 struct DimInfoIM : DimInfo {
308 using DimInfo::DimInfo; // inherit C'tor
309 double getMaximum() const override
310 {
311 return exp_.getMaxMobility();
312 }
313 double getValue(const MSSpectrum& spec) const override
314 {
315 return spec.getDriftTime();
316 }
317 MSExperiment::ConstIterator getFirstScan(double value) const override
318 {
319 return exp_.IMBegin(value);
320 }
321 DimMapper<2>::Point mapToPoint(double value, double mz) const override
322 {
323 // there is no datastructure
324 return mapper_.map(MobilityPeak2D({value, mz}, 0));
325 }
326 };
327
328
329

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected