sensorfw: sensors/magnetometersensor/magnetometerscalefilter.h Source File

sensorfw

magnetometerscalefilter.h
Go to the documentation of this file.
1
26#ifndef MAGNETOMETERSCALEFILTER_H
27#define MAGNETOMETERSCALEFILTER_H
28
29#include "orientationdata.h"
30#include "filter.h"
31
38 class MagnetometerScaleFilter : public QObject, public Filter<CalibratedMagneticFieldData, MagnetometerScaleFilter, CalibratedMagneticFieldData>
39{
40 Q_OBJECT;
41
42public:
43
48 static FilterBase* factoryMethod() {
49 return new MagnetometerScaleFilter;
50 }
51
52protected:
53
54 MagnetometerScaleFilter();
55
56private:
57 void filter(unsigned, const CalibratedMagneticFieldData*);
58
59 int factor;
60};
61
62#endif
CalibratedMagneticFieldData
Datatype for calibrated magnetometer measurements.
Definition: orientationdata.h:59
MagnetometerScaleFilter
Scaling filter for CalibratedMagneticFieldData.
Definition: magnetometerscalefilter.h:39
MagnetometerScaleFilter::factoryMethod
static FilterBase * factoryMethod()
Factory method.
Definition: magnetometerscalefilter.h:48
MagnetometerScaleFilter::MagnetometerScaleFilter
MagnetometerScaleFilter()
orientationdata.h
Datatypes for different filters.