Go to the documentation of this file.00001
00025 #ifndef HEADINGFILTER_H
00026 #define HEADINGFILTER_H
00027
00028 #include "filter.h"
00029 #include "datatypes/orientationdata.h"
00030
00031 #include <ContextProvider>
00032
00033 using ContextProvider::Property;
00034
00035 class HeadingFilter : public QObject, public Filter<CompassData, HeadingFilter, CompassData>
00036 {
00037 Q_OBJECT
00038
00039 public:
00040 HeadingFilter(Property* headingProperty);
00041 void reset();
00042
00043 private:
00044 Property* headingProperty;
00045 void interpret(unsigned, const CompassData* data);
00046 };
00047
00048 #endif