| 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 |
no outgoing calls
no test coverage detected