#include <OpenMS/KERNEL/RangeManager.h>
This is needed for all peak and feature container like Spectrum, MSExperiment and FeatureMap.
Public Types | |
enum | { DIMENSION = D } |
Dimension of the position range. More... | |
typedef DRange< D > | PositionRangeType |
Position range type. | |
typedef DPosition< D > | PositionType |
Position Type. | |
typedef DRange< 1 > | IntensityRangeType |
Intensity range type. | |
typedef DoubleReal | IntensityType |
Intensity Type. | |
Public Member Functions | |
RangeManager () | |
Default constructor. | |
RangeManager (const RangeManager &rhs) | |
Copy constructor. | |
virtual | ~RangeManager () |
Destructor. | |
RangeManager & | operator= (const RangeManager &rhs) |
Assignment operator. | |
bool | operator== (const RangeManager &rhs) const |
Equality operator. | |
bool | operator!= (const RangeManager &rhs) const |
Equality operator. | |
Range methods | |
| |
const PositionType & | getMin () const |
Returns the minimum position. | |
const PositionType & | getMax () const |
Returns the maximum position. | |
const IntensityType | getMinInt () const |
Returns the minimum intensity. | |
const IntensityType | getMaxInt () const |
Returns the maximum intensity. | |
virtual void | updateRanges ()=0 |
Updates minimum and maximum position/intensity. | |
void | clearRanges () |
Resets the ranges. | |
Protected Member Functions | |
template<class PeakIteratorType> | |
void | updateRanges_ (const PeakIteratorType &begin, const PeakIteratorType &end) |
Updates the range using DPeak or 2D-dimensional data points in the iterator range. | |
Protected Attributes | |
IntensityRangeType | int_range_ |
Intensity range (1-dimensional). | |
PositionRangeType | pos_range_ |
Position range (D-dimensional). |
typedef DRange<D> PositionRangeType |
Position range type.
typedef DPosition<D> PositionType |
Position Type.
typedef DRange<1> IntensityRangeType |
Intensity range type.
typedef DoubleReal IntensityType |
RangeManager | ( | ) | [inline] |
Default constructor.
RangeManager | ( | const RangeManager< D > & | rhs | ) | [inline] |
Copy constructor.
virtual ~RangeManager | ( | ) | [inline, virtual] |
Destructor.
RangeManager& operator= | ( | const RangeManager< D > & | rhs | ) | [inline] |
Assignment operator.
bool operator== | ( | const RangeManager< D > & | rhs | ) | const [inline] |
Equality operator.
bool operator!= | ( | const RangeManager< D > & | rhs | ) | const [inline] |
Equality operator.
const PositionType& getMin | ( | ) | const [inline] |
Returns the minimum position.
const PositionType& getMax | ( | ) | const [inline] |
Returns the maximum position.
const IntensityType getMinInt | ( | ) | const [inline] |
Returns the minimum intensity.
const IntensityType getMaxInt | ( | ) | const [inline] |
Returns the maximum intensity.
virtual void updateRanges | ( | ) | [pure virtual] |
Updates minimum and maximum position/intensity.
This method is usually implemented by calling clearRanges() and updateRanges_() or updateRanges1D_().
Implemented in DSpectrum, FeatureMap, MSExperiment, DSpectrum< OpenMS::DPeakArray< PeakT, AllocT > >, FeatureMap< OpenMS::Feature >, and MSExperiment< OpenMS::PickedPeak1D >.
void clearRanges | ( | ) | [inline] |
Resets the ranges.
void updateRanges_ | ( | const PeakIteratorType & | begin, | |
const PeakIteratorType & | end | |||
) | [inline, protected] |
Updates the range using DPeak or 2D-dimensional data points in the iterator range.
IntensityRangeType int_range_ [protected] |
Intensity range (1-dimensional).
PositionRangeType pos_range_ [protected] |
Position range (D-dimensional).
Generated Tue Apr 1 15:36:46 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |