ProteoWizard
SpectrumList_PeakFilter.hpp
Go to the documentation of this file.
1//
2// $Id$
3//
4//
5// Original author: Matt Chambers <matt.chambers <a.t> vanderbilt.edu>
6//
7// Copyright 2008 Vanderbilt University - Nashville, TN 37232
8//
9// Licensed under the Apache License, Version 2.0 (the "License");
10// you may not use this file except in compliance with the License.
11// You may obtain a copy of the License at
12//
13// http://www.apache.org/licenses/LICENSE-2.0
14//
15// Unless required by applicable law or agreed to in writing, software
16// distributed under the License is distributed on an "AS IS" BASIS,
17// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18// See the License for the specific language governing permissions and
19// limitations under the License.
20//
21
22
23#ifndef _SPECTRUMLIST_PEAKFILTER_HPP_
24#define _SPECTRUMLIST_PEAKFILTER_HPP_
25
26
27#include <boost/scoped_ptr.hpp>
30
31
32namespace pwiz {
33namespace analysis {
34
35/// SpectrumList implementation that returns spectra with the specified SpectrumDataFilter operation applied
37{
38 public:
39
41 SpectrumDataFilterPtr filterFunctor);
42
43 /// peak filters work on any SpectrumList
44 static bool accept(const msdata::SpectrumListPtr& inner) {return true;}
45
46 virtual msdata::SpectrumPtr spectrum(size_t index, bool getBinaryData = false) const;
47 virtual msdata::SpectrumPtr spectrum(size_t index, msdata::DetailLevel detailLevel = msdata::DetailLevel_FullMetadata) const;
48
49 private:
51};
52
53
54
56{
60
61 public:
62
63 IsolationWindowFilter(double defaultWindowWidth, const msdata::SpectrumListPtr& sl);
64 IsolationWindowFilter(double defaultWindowWidth, const msdata::IsolationWindow& window);
65
66 virtual void operator () (const pwiz::msdata::SpectrumPtr&) const;
68};
69
70} // namespace analysis
71} // namespace pwiz
72
73
74#endif // _SPECTRUMLIST_PEAKFILTER_HPP_
#define PWIZ_API_DECL
Definition Export.hpp:32
IsolationWindowFilter(double defaultWindowWidth, const msdata::SpectrumListPtr &sl)
virtual void describe(pwiz::msdata::ProcessingMethod &) const
IsolationWindowFilter(double defaultWindowWidth, const msdata::IsolationWindow &window)
SpectrumList implementation that returns spectra with the specified SpectrumDataFilter operation appl...
virtual msdata::SpectrumPtr spectrum(size_t index, msdata::DetailLevel detailLevel=msdata::DetailLevel_FullMetadata) const
retrieve a spectrum by index
virtual msdata::SpectrumPtr spectrum(size_t index, bool getBinaryData=false) const
retrieve a spectrum by index
SpectrumList_PeakFilter(const msdata::SpectrumListPtr &inner, SpectrumDataFilterPtr filterFunctor)
static bool accept(const msdata::SpectrumListPtr &inner)
peak filters work on any SpectrumList
Inheritable pass-through implementation for wrapping a SpectrumList.
boost::shared_ptr< SpectrumDataFilter > SpectrumDataFilterPtr
boost::shared_ptr< SpectrumList > SpectrumListPtr
Definition MSData.hpp:711
boost::shared_ptr< Spectrum > SpectrumPtr
Definition MSData.hpp:573
This element captures the isolation (or 'selection') window configured to isolate one or more precurs...
Definition MSData.hpp:292
Description of the default peak processing method. This element describes the base method used in the...
Definition MSData.hpp:255